:root {
  color-scheme: dark;
  --ink: #f8fafc;
  --muted: #9aa4b2;
  --soft: #090b10;
  --paper: #11151d;
  --paper-strong: #171d27;
  --line: #263142;
  --line-strong: #3b485c;
  --teal: #16b8a6;
  --teal-soft: #123f3a;
  --coral: #ff6b6b;
  --coral-soft: #3c171a;
  --sun: #f7bd37;
  --sun-soft: #3d3010;
  --blue: #3b82f6;
  --blue-soft: #12294f;
  --violet: #7c3aed;
  --violet-soft: #2b1b53;
  --green: #22c55e;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --sidebar: 284px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(125deg, rgba(22, 184, 166, 0.2), transparent 33%),
    linear-gradient(215deg, rgba(255, 107, 107, 0.14), transparent 38%),
    linear-gradient(320deg, rgba(59, 130, 246, 0.16), transparent 36%),
    #020304;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(320px, 1fr);
  min-height: 100vh;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 26px;
  justify-content: center;
  padding: 48px;
  background: rgba(255, 255, 255, 0.76);
  border-right: 1px solid rgba(209, 213, 219, 0.76);
  backdrop-filter: blur(18px);
}

.brand-row,
.mini-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #052e2a;
  background:
    linear-gradient(90deg, var(--teal) var(--battery-level, 72%), transparent 0),
    var(--teal-soft);
  border: 1px solid rgba(22, 184, 166, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 10px 20px rgba(22, 184, 166, 0.22);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 0;
  font-size: clamp(2.55rem, 7vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: 0;
}

.lead {
  max-width: 52ch;
  margin-bottom: 0;
  color: #4b5563;
  font-size: 1.03rem;
  line-height: 1.6;
}

.auth-form,
.auth-list,
.panel-form,
.message-composer {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.range-top,
.section-label {
  color: #374151;
  font-size: 0.83rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

input,
select {
  min-height: 44px;
  padding: 10px 12px;
}

textarea {
  min-height: 86px;
  resize: vertical;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(22, 184, 166, 0.82);
  box-shadow: 0 0 0 4px rgba(22, 184, 166, 0.12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.button.primary {
  color: #062f2a;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 14px 30px rgba(22, 184, 166, 0.26);
}

.button.dark {
  color: #fff;
  background: #111827;
  border-color: #111827;
}

.button.ghost {
  background: transparent;
}

.button.coral {
  color: #3f1111;
  background: var(--coral-soft);
  border-color: rgba(255, 107, 107, 0.34);
}

.button.icon {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.button svg,
.nav-button svg,
.tiny-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.auth-preview {
  display: grid;
  align-content: center;
  gap: 26px;
  padding: 56px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 16px;
}

.preview-tile {
  min-height: 150px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(209, 213, 219, 0.76);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(30, 41, 59, 0.08);
}

.preview-tile:nth-child(2) {
  background: rgba(255, 232, 232, 0.78);
}

.preview-tile:nth-child(3) {
  background: rgba(232, 241, 255, 0.82);
}

.preview-tile:nth-child(4) {
  background: rgba(255, 242, 201, 0.78);
}

.tile-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  color: #374151;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.tile-value {
  margin: 16px 0 6px;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.tile-copy {
  margin: 0;
  color: #4b5563;
  line-height: 1.45;
}

.demo-accounts {
  display: grid;
  gap: 10px;
}

.demo-account {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(209, 213, 219, 0.74);
  border-radius: var(--radius);
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: #111827;
  background: var(--avatar-color, var(--teal-soft));
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius);
  font-weight: 900;
}

.avatar.small {
  width: 34px;
  height: 34px;
  font-size: 0.78rem;
}

.avatar.large {
  width: 58px;
  height: 58px;
  font-size: 1.25rem;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
  border-right: 1px solid rgba(209, 213, 219, 0.75);
  backdrop-filter: blur(18px);
}

.profile-block {
  display: grid;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.name-line {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.handle-line {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battery-mini {
  display: grid;
  gap: 7px;
}

.battery-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 800;
}

.battery-bar {
  height: 10px;
  overflow: hidden;
  background: #eef2f7;
  border-radius: 999px;
}

.battery-fill {
  width: var(--battery);
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--sun), var(--teal));
  border-radius: inherit;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  color: #374151;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
}

.nav-button:hover,
.nav-button.active {
  color: #062f2a;
  background: rgba(22, 184, 166, 0.12);
  border-color: rgba(22, 184, 166, 0.25);
}

.sidebar-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.main {
  min-width: 0;
  padding: 28px clamp(18px, 4vw, 48px) 42px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.page-title {
  margin-bottom: 6px;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1;
}

.muted {
  color: var(--muted);
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 10px;
  color: #374151;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(209, 213, 219, 0.78);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.pill.teal {
  background: var(--teal-soft);
  border-color: rgba(22, 184, 166, 0.24);
}

.pill.sun {
  background: var(--sun-soft);
  border-color: rgba(247, 189, 55, 0.35);
}

.view-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.72fr);
  gap: 22px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 18px;
}

.section {
  display: grid;
  gap: 14px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-head h2 {
  margin: 0;
}

.battery-panel,
.tool-panel,
.empty-state {
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(209, 213, 219, 0.74);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(30, 41, 59, 0.08);
}

.battery-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.meter {
  position: relative;
  width: 140px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 57%, transparent 58%),
    conic-gradient(var(--meter-color) calc(var(--value) * 1%), #edf2f7 0);
  border: 1px solid rgba(209, 213, 219, 0.7);
}

.meter::after {
  position: absolute;
  inset: 21px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(209, 213, 219, 0.62);
  content: attr(data-value) "%";
  font-size: 1.75rem;
  font-weight: 950;
}

.battery-form {
  display: grid;
  gap: 14px;
}

.range-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

input[type="range"] {
  height: 30px;
  padding: 0;
  accent-color: var(--teal);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.friends-list,
.request-list,
.pool-list,
.notification-list,
.thread-list {
  display: grid;
  gap: 10px;
}

.friend-card,
.request-card,
.pool-card,
.notification-card,
.thread-card,
.message-bubble {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(209, 213, 219, 0.76);
  border-radius: var(--radius);
}

.friend-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.friend-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.friend-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.friend-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.battery-number {
  flex: 0 0 auto;
  color: var(--meter-color);
  font-size: 1.35rem;
  font-weight: 950;
}

.friend-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 4px;
  padding: 4px;
  background: #eef2f7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.segment {
  min-height: 34px;
  padding: 7px 10px;
  color: #4b5563;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 850;
}

.segment.active {
  color: #052e2a;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.tiny-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tiny-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  color: #1f2937;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 850;
}

.tiny-button:hover {
  border-color: var(--line-strong);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.request-card,
.pool-card,
.notification-card,
.thread-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.identity-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.identity-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.identity-copy strong,
.identity-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
}

.empty-state {
  color: #4b5563;
  line-height: 1.5;
}

.empty-state strong {
  color: var(--ink);
}

.pool-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 10px;
}

.message-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.thread-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  text-align: left;
}

.thread-card.active {
  border-color: rgba(22, 184, 166, 0.62);
  box-shadow: 0 0 0 4px rgba(22, 184, 166, 0.1);
}

.message-panel {
  display: grid;
  min-height: 620px;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  gap: 12px;
}

.conversation {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
  max-height: 460px;
  overflow: auto;
  padding: 6px;
}

.message-bubble {
  max-width: min(74%, 520px);
  padding: 10px 12px;
  line-height: 1.45;
}

.message-bubble.mine {
  align-self: flex-end;
  color: #062f2a;
  background: var(--teal-soft);
  border-color: rgba(22, 184, 166, 0.32);
}

.message-bubble.theirs {
  align-self: flex-start;
  background: #fff;
}

.message-time {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 15px;
  color: #052e2a;
  background: #ecfffb;
  border: 1px solid rgba(22, 184, 166, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 850;
}

.danger-text {
  color: #b42318;
}

.hide-mobile {
  display: inline-flex;
}

.auth-panel,
.sidebar {
  background: rgba(8, 11, 16, 0.86);
  border-color: rgba(70, 83, 105, 0.72);
  box-shadow: 18px 0 54px rgba(0, 0, 0, 0.28);
}

.lead,
.tile-copy,
.note,
.empty-state {
  color: var(--muted);
}

.field span,
.range-top,
.section-label,
.battery-row {
  color: #d9e1ec;
}

input,
select,
textarea {
  color: var(--ink);
  background: #0b1018;
  border-color: var(--line);
}

input::placeholder,
textarea::placeholder {
  color: #6f7b8c;
}

.button {
  color: var(--ink);
  background: #121821;
  border-color: var(--line);
}

.button:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.button.primary {
  color: #021c19;
  background: linear-gradient(135deg, #20ddc8, #f7bd37);
  border-color: rgba(32, 221, 200, 0.72);
  box-shadow: 0 14px 34px rgba(22, 184, 166, 0.22);
}

.button.dark {
  color: #061017;
  background: #f8fafc;
  border-color: #f8fafc;
}

.button.coral {
  color: #ffd6d6;
  background: rgba(255, 107, 107, 0.18);
  border-color: rgba(255, 107, 107, 0.4);
}

.preview-tile,
.demo-account,
.battery-panel,
.tool-panel,
.empty-state,
.friend-card,
.request-card,
.pool-card,
.notification-card,
.thread-card,
.message-bubble {
  background: rgba(14, 18, 26, 0.84);
  border-color: rgba(68, 80, 102, 0.78);
  box-shadow: var(--shadow);
}

.preview-tile:nth-child(2) {
  background: linear-gradient(145deg, rgba(255, 107, 107, 0.2), rgba(14, 18, 26, 0.82));
}

.preview-tile:nth-child(3) {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.2), rgba(14, 18, 26, 0.82));
}

.preview-tile:nth-child(4) {
  background: linear-gradient(145deg, rgba(247, 189, 55, 0.2), rgba(14, 18, 26, 0.82));
}

.tile-kicker,
.pill {
  color: #dce5ef;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.pill.teal,
.pill.open {
  color: #b9fff5;
  background: rgba(22, 184, 166, 0.18);
  border-color: rgba(22, 184, 166, 0.36);
}

.pill.sun {
  color: #ffe5a0;
  background: rgba(247, 189, 55, 0.16);
  border-color: rgba(247, 189, 55, 0.35);
}

.pill.locked {
  color: #ffc2c2;
  background: rgba(255, 107, 107, 0.14);
  border-color: rgba(255, 107, 107, 0.34);
}

.avatar {
  color: #061017;
  border-color: rgba(255, 255, 255, 0.12);
}

.name-line,
.empty-state strong {
  color: var(--ink);
}

.profile-block {
  border-color: var(--line);
}

.battery-bar {
  background: #252f3d;
}

.nav-button {
  color: #b8c2cf;
}

.nav-button:hover,
.nav-button.active {
  color: #cffff8;
  background: rgba(22, 184, 166, 0.14);
  border-color: rgba(22, 184, 166, 0.32);
}

.meter {
  background:
    radial-gradient(circle at center, #11151d 57%, transparent 58%),
    conic-gradient(var(--meter-color) calc(var(--value) * 1%), #273142 0);
  border-color: rgba(255, 255, 255, 0.1);
}

.meter::after {
  color: var(--ink);
  background: rgba(8, 11, 16, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.segmented {
  background: #0b1018;
  border-color: var(--line);
}

.segment {
  color: #adb7c6;
}

.segment.active {
  color: #061017;
  background: linear-gradient(135deg, #20ddc8, #f7bd37);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.tiny-button {
  color: #edf5ff;
  background: #111821;
  border-color: var(--line);
}

.tiny-button:hover {
  border-color: var(--line-strong);
}

.thread-card.active {
  border-color: rgba(22, 184, 166, 0.72);
  box-shadow: 0 0 0 4px rgba(22, 184, 166, 0.12);
}

.message-bubble.mine {
  color: #031c19;
  background: linear-gradient(135deg, #20ddc8, #bbf7d0);
  border-color: rgba(22, 184, 166, 0.34);
}

.message-bubble.theirs {
  background: #151b25;
}

.toast {
  color: #041c19;
  background: linear-gradient(135deg, #ccfff8, #fff2c9);
  border-color: rgba(22, 184, 166, 0.4);
}

.insight-row,
.availability-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.insight-row {
  margin: 12px 0 10px;
}

.availability-line {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.availability-line.open {
  color: #b9fff5;
}

.availability-line.locked {
  color: #ffc2c2;
}

.availability-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted);
}

.availability-dot.open {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(22, 184, 166, 0.14);
}

.availability-dot.locked {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.14);
}

.lock-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: #ffc2c2;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: var(--radius);
  line-height: 1.45;
}

@media (max-width: 1040px) {
  .auth-shell,
  .app-shell,
  .view-grid,
  .split-layout,
  .message-layout {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(209, 213, 219, 0.76);
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-button {
    justify-content: center;
  }

  .sidebar-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .auth-panel,
  .auth-preview,
  .main,
  .sidebar {
    padding: 20px;
  }

  .preview-grid,
  .nav,
  .sidebar-footer,
  .battery-panel,
  .pool-form-grid,
  .search-row {
    grid-template-columns: 1fr;
  }

  .topbar,
  .section-head,
  .friend-top {
    align-items: stretch;
    flex-direction: column;
  }

  .status-pills {
    justify-content: flex-start;
  }

  .meter {
    width: min(180px, 100%);
    margin: 0 auto;
  }

  .friend-card {
    grid-template-columns: 1fr;
  }

  .segmented {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .tiny-actions,
  .actions-row {
    width: 100%;
  }

  .tiny-button,
  .actions-row .button {
    flex: 1 1 auto;
  }

  .hide-mobile {
    display: none;
  }
}
