:root {
  color-scheme: dark;
  --bg: #090b10;
  --surface: #12151d;
  --surface-2: #181c26;
  --surface-3: #202530;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f7f7f3;
  --muted: #959ca9;
  --gold: #dcc078;
  --gold-deep: #ab873a;
  --green: #62d09a;
  --red: #f17e8c;
  --blue: #6da9f2;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
  background: var(--bg);
  overscroll-behavior: none;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hidden {
  display: none !important;
}

.splash {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--bg);
  transition: opacity 300ms ease, visibility 300ms ease;
}

.splash strong {
  font-size: 20px;
}

.splash.dismissed {
  opacity: 0;
  visibility: hidden;
}

.app-logo {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid rgba(220, 192, 120, 0.45);
  border-radius: 10px;
  background: linear-gradient(145deg, #ead28e, #9b7427);
  color: #111014;
  font-weight: 900;
  box-shadow: 0 12px 36px rgba(171, 135, 58, 0.25);
}

.app-logo.large {
  width: 72px;
  border-radius: 16px;
  font-size: 24px;
}

.login-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow: hidden;
  padding: calc(44px + var(--safe-top)) 22px calc(24px + var(--safe-bottom));
}

.login-glow {
  position: absolute;
  top: -20%;
  left: 20%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 192, 120, 0.16), transparent 65%);
  pointer-events: none;
}

.login-brand,
.login-card,
.login-footer {
  position: relative;
  z-index: 1;
}

.login-brand {
  margin: auto 0 34px;
}

.login-brand p {
  margin: 20px 0 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-brand h1 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.3;
}

.login-card {
  display: grid;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 21, 29, 0.92);
}

label {
  display: grid;
  gap: 8px;
  color: #d8dbe1;
  font-size: 13px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #0d1016;
  color: var(--text);
}

input {
  min-height: 50px;
  padding: 0 14px;
}

textarea {
  padding: 13px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(220, 192, 120, 0.55);
  box-shadow: 0 0 0 4px rgba(220, 192, 120, 0.1);
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 52px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #121014;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.danger-button {
  border: 1px solid rgba(241, 126, 140, 0.25);
  background: rgba(241, 126, 140, 0.08);
  color: var(--red);
}

.text-button,
.inline-link {
  padding: 4px;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}

.login-note,
.login-footer,
.billing-note {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.login-note {
  margin: -4px 0 0;
}

.login-footer {
  margin: 26px 0 0;
}

.app {
  width: 100%;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 90% 2%, rgba(220, 192, 120, 0.08), transparent 270px),
    var(--bg);
}

.app-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 680px);
  min-height: calc(74px + var(--safe-top));
  padding: calc(14px + var(--safe-top)) 18px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 16, 0.9);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.app-header h1 {
  margin-bottom: 0;
  font-size: 23px;
}

.avatar-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(220, 192, 120, 0.3);
  border-radius: 50%;
  background: rgba(220, 192, 120, 0.12);
  color: var(--gold);
  font-weight: 900;
  cursor: pointer;
}

.app-content {
  width: min(100%, 680px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(94px + var(--safe-top)) 16px calc(108px + var(--safe-bottom));
}

.view {
  display: none;
  animation: view-in 180ms ease;
}

.view.active-view {
  display: block;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 134px;
  padding: 20px;
  border: 1px solid rgba(220, 192, 120, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(130deg, rgba(220, 192, 120, 0.16), rgba(18, 21, 29, 0.88)),
    var(--surface);
}

.welcome-card p {
  margin-bottom: 8px;
  color: #b9bdc5;
  font-size: 13px;
}

.welcome-card h2 {
  margin: 0;
  font-size: 25px;
}

.welcome-card > span {
  color: var(--muted);
  font-size: 12px;
}

.today-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.stat-card {
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stat-card.featured {
  border-color: rgba(220, 192, 120, 0.25);
  background: linear-gradient(145deg, rgba(220, 192, 120, 0.17), var(--surface));
}

.stat-card span,
.stat-card small {
  color: var(--muted);
  font-size: 12px;
}

.stat-card strong {
  display: inline-block;
  margin: 11px 5px 0 0;
  font-size: 34px;
}

.section-block {
  margin-top: 28px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
}

.section-title > span {
  color: var(--muted);
  font-size: 12px;
}

.task-list,
.activity-history {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.task-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.task-row:last-child {
  border-bottom: 0;
}

.task-row input {
  width: 20px;
  min-height: 20px;
  margin: 0 12px 0 0;
  accent-color: var(--gold);
}

.progress-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.progress-ring {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--progress) * 1%), var(--surface-3) 0);
}

.progress-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface);
}

.progress-ring span {
  z-index: 1;
  grid-area: 1 / 1;
  font-size: 12px;
  font-weight: 900;
}

.progress-card p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.progress-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.new-badge,
.admin-badge,
.active-badge,
.plan-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.new-badge {
  padding: 4px 7px;
  background: var(--gold);
  color: #121014 !important;
}

.notice-card,
.bot-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.notice-card strong,
.notice-card small,
.bot-card strong,
.bot-card small {
  display: block;
}

.notice-card small,
.bot-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.notice-icon,
.bot-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(109, 169, 242, 0.12);
  color: var(--blue);
  font-weight: 900;
}

.bot-card {
  margin-top: 28px;
  border-color: rgba(98, 208, 154, 0.25);
  background: linear-gradient(135deg, rgba(98, 208, 154, 0.12), var(--surface));
}

.bot-icon {
  background: rgba(98, 208, 154, 0.14);
  color: var(--green);
}

.chevron {
  color: var(--muted);
  font-size: 24px;
}

.segment-control,
.admin-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.segment-control button,
.admin-tabs button {
  min-height: 40px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.segment-control button.active,
.admin-tabs button.active {
  background: var(--surface-3);
  color: var(--text);
}

.course-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.course-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.course-cover {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 142px;
  background:
    linear-gradient(135deg, rgba(220, 192, 120, 0.22), rgba(20, 24, 33, 0.86)),
    #181c26;
}

.course-number {
  color: rgba(255, 255, 255, 0.12);
  font-size: 62px;
  font-weight: 900;
}

.play-button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: #121014;
}

.course-body {
  padding: 16px;
}

.course-body h2 {
  margin-bottom: 7px;
  font-size: 17px;
}

.course-body p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.course-footer span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.course-footer button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-weight: 700;
}

.course-footer button.done {
  border-color: rgba(98, 208, 154, 0.25);
  color: var(--green);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.summary-strip div {
  padding: 14px 8px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.summary-strip div:last-child {
  border-right: 0;
}

.summary-strip span,
.summary-strip strong {
  display: block;
}

.summary-strip span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}

.summary-strip strong {
  font-size: 21px;
}

.mobile-form {
  display: grid;
  gap: 18px;
}

.counter-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.counter-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 40px 34px 40px;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.counter-row:last-child {
  border-bottom: 0;
}

.counter-row strong {
  font-size: 14px;
}

.counter-row button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
  font-size: 18px;
}

.counter-row output {
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.social-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 900;
}

.instagram { background: #8a3ab9; }
.tiktok { background: #151515; border: 1px solid #444; }
.x { background: #f3f3f3; color: #111; }
.video { background: #d34848; }
.ai { background: rgba(220, 192, 120, 0.16); color: var(--gold); }

.sticky-action {
  position: sticky;
  bottom: calc(84px + var(--safe-bottom));
  z-index: 10;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.history-block {
  margin-bottom: 8px;
}

.activity-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.activity-row:last-child {
  border-bottom: 0;
}

.activity-date {
  text-align: center;
}

.activity-date strong,
.activity-date small {
  display: block;
}

.activity-date strong {
  color: var(--gold);
  font-size: 17px;
}

.activity-date small,
.activity-row p {
  color: var(--muted);
  font-size: 11px;
}

.activity-row p {
  overflow: hidden;
  margin: 4px 0 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-total {
  font-size: 18px;
  font-weight: 900;
}

.plan-hero {
  position: relative;
  overflow: hidden;
  padding: 26px 22px;
  border: 1px solid rgba(220, 192, 120, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 10%, rgba(220, 192, 120, 0.24), transparent 180px),
    var(--surface);
}

.plan-label {
  color: var(--gold);
}

.plan-hero h2 {
  margin: 20px 0 8px;
  font-size: 29px;
}

.plan-hero p {
  margin-bottom: 18px;
  color: var(--muted);
}

.plan-hero p strong {
  color: var(--text);
  font-size: 24px;
}

.active-badge {
  padding: 6px 10px;
  background: rgba(98, 208, 154, 0.12);
  color: var(--green);
}

.settings-group {
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.settings-heading {
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row strong {
  font-size: 13px;
}

.full-width {
  width: 100%;
  margin-top: 18px;
}

.profile-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  color: #121014;
  font-size: 22px;
  font-weight: 900;
}

.profile-card h2 {
  margin-bottom: 5px;
  font-size: 20px;
}

.profile-card p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.profile-card span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.admin-badge {
  padding: 5px 8px;
  background: rgba(109, 169, 242, 0.13);
  color: var(--blue);
}

.admin-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-stat {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.admin-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 25px;
}

.admin-tabs {
  margin-top: 18px;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-item-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--gold);
  font-weight: 900;
}

.admin-item strong,
.admin-item small {
  display: block;
}

.admin-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.admin-item-meta {
  text-align: right;
}

.admin-item-meta strong {
  font-size: 14px;
}

.admin-item-meta small {
  color: var(--green);
}

.admin-action {
  width: 100%;
  min-height: 54px;
  margin-top: 12px;
  border: 1px dashed rgba(220, 192, 120, 0.35);
  border-radius: 8px;
  background: rgba(220, 192, 120, 0.06);
  color: var(--gold);
  font-weight: 800;
}

.bottom-nav {
  position: fixed;
  z-index: 60;
  bottom: 0;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 680px);
  min-height: calc(72px + var(--safe-bottom));
  padding: 6px 6px var(--safe-bottom);
  border-top: 1px solid var(--line);
  background: rgba(12, 14, 20, 0.94);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
}

.bottom-nav button {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  border-radius: 8px;
  background: transparent;
  color: #747c89;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.bottom-nav button.active {
  color: var(--gold);
}

.nav-icon {
  font-size: 21px;
  line-height: 1;
}

.bottom-nav .post-nav .nav-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: -23px;
  border: 5px solid var(--bg);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  color: #121014;
  font-size: 25px;
  box-sizing: content-box;
}

.install-banner {
  position: fixed;
  z-index: 100;
  right: 12px;
  bottom: calc(82px + var(--safe-bottom));
  left: 12px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 11px;
  max-width: 620px;
  margin: auto;
  padding: 12px;
  border: 1px solid rgba(220, 192, 120, 0.28);
  border-radius: 8px;
  background: rgba(25, 29, 38, 0.97);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

.install-banner img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
}

.install-banner strong,
.install-banner small {
  display: block;
}

.install-banner small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.install-banner > button:not(.close-button) {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 8px;
  background: var(--gold);
  color: #121014;
  font-size: 12px;
  font-weight: 900;
}

.close-button {
  background: transparent;
  color: var(--muted);
  font-size: 20px;
}

.modal-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.bottom-sheet {
  width: min(100%, 680px);
  padding: 10px 22px calc(24px + var(--safe-bottom));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: var(--surface);
  text-align: center;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: #4b505b;
}

.bottom-sheet img {
  width: 72px;
  border-radius: 16px;
}

.bottom-sheet h2 {
  margin: 14px 0 8px;
}

.bottom-sheet p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.ios-steps {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  text-align: left;
}

.ios-steps span {
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 13px;
}

.bottom-sheet .primary-button {
  width: 100%;
}

.member-sheet {
  text-align: left;
}

.member-detail-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.member-detail-head .admin-item-avatar {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

.member-detail-head h2 {
  margin: 0 0 5px;
}

.member-detail-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.member-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.member-detail-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.member-detail-grid span,
.member-detail-grid strong {
  display: block;
}

.member-detail-grid span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}

.toast {
  position: fixed;
  z-index: 300;
  top: calc(16px + var(--safe-top));
  left: 50%;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(30, 35, 46, 0.98);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -14px);
  transition: 180ms ease;
  font-size: 13px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 681px) {
  body {
    background: #050609;
  }

  .app,
  .login-screen {
    width: 680px;
    margin: 0 auto;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .login-screen {
    padding-right: 72px;
    padding-left: 72px;
  }
}

@media (max-width: 360px) {
  .app-content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .counter-row {
    grid-template-columns: 32px minmax(0, 1fr) 36px 28px 36px;
    gap: 5px;
    padding: 0 8px;
  }

  .counter-row button {
    width: 34px;
    height: 34px;
  }

  .install-banner {
    grid-template-columns: 40px minmax(0, 1fr) auto 20px;
    gap: 8px;
  }

  .install-banner img {
    width: 40px;
    height: 40px;
  }
}

@media (display-mode: standalone) {
  .install-banner {
    display: none !important;
  }
}
