/* The catalog is tall enough for a scrollbar and the other views aren't; reserve it so switching doesn't jump. */
html {
  scrollbar-gutter: stable;
}

.acct {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(32px, 6vh, 64px) 24px clamp(48px, 8vh, 88px);
  min-height: calc(100vh - 140px);
}

.acct .grid {
  position: absolute;
  inset: 0 -20vw auto;
  height: 520px;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 60% 70% at 40% 10%, #000 0%, transparent 72%);
}

.acct-loading {
  position: relative;
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font: 11px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.acct-loading[hidden] {
  display: none;
}

/* The E tile, orbited by the accent notch. */
.spinner {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(145deg, #0b0b0c, #26272c);
  box-shadow: 0 1px 2px #00000024, 0 12px 30px -12px #2e56ff80;
}

.spinner::before {
  content: "E";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 23px/1 var(--display);
  letter-spacing: 0;
  color: #fff;
}

.spinner::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 16px;
  border: 2px solid transparent;
  border-top-color: var(--brand);
  border-right-color: color-mix(in srgb, var(--brand) 35%, transparent);
  animation: spin 0.9s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .spinner::after {
    animation-duration: 2.4s;
  }
}

.acct-out {
  position: relative;
  max-width: 560px;
}

.acct-out .button-link {
  width: auto;
  display: inline-flex;
  padding: 0 22px;
  margin-top: 28px;
}

.acct-shell {
  position: relative;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.side {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tab {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.tab svg {
  width: 18px;
  height: 18px;
  color: var(--ink-3);
}

.tab:hover {
  background: var(--soft);
  color: var(--ink);
}

.tab[aria-current="true"] {
  background: var(--soft);
  color: var(--ink);
  box-shadow: inset 2px 0 0 var(--brand);
}

.tab[aria-current="true"] svg {
  color: var(--brand);
}

.tab .count {
  margin-left: auto;
  font: 11px var(--mono);
  color: var(--ink-4);
}

.views {
  min-width: 0;
}

.views > .error,
.views > .verify {
  margin-bottom: 20px;
}

.verify {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.verify[hidden] {
  display: none;
}

.verify .secondary {
  width: auto;
  height: 36px;
  padding: 0 14px;
}

h1.big--acct {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin-top: 16px;
}

h1.big--acct em {
  color: var(--brand);
}

.shelf {
  margin-top: 48px;
}

.shelf-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.shelf-head--catalog {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.shelf-head h2 {
  font: 600 1.35rem var(--display);
  letter-spacing: -0.025em;
  margin: 0;
}

.shelf-head p {
  margin: 4px 0 0;
  color: var(--ink-3);
  font-size: 14px;
  max-width: 52ch;
}

.empty {
  color: var(--ink-3);
  font-size: 14px;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  margin: 0;
}

.appicon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none;
  object-fit: cover;
  box-shadow: 0 1px 2px #0000001f;
}

.appicon.lg {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.mine {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.own {
  --tint: var(--brand);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--tint) 30%, var(--line));
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tint) 16%, transparent), transparent 60%),
    var(--paper);
  overflow: hidden;
}

.own-text {
  min-width: 0;
  flex: 1;
}

.own-text b,
.own-text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.own-text b {
  font: 600 15px var(--display);
  letter-spacing: -0.02em;
}

.own-text small {
  font: 11px var(--mono);
  color: var(--ink-3);
  margin-top: 4px;
}

.own-dot {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 9.5px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.own-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent);
  animation: blink 2.4s ease-in-out infinite;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(280px, 100%);
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--field);
  color: var(--ink-3);
}

.search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}

.search svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  color: var(--ink-2);
  font: 500 13px var(--sans);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.chip span {
  font: 10.5px var(--mono);
  color: var(--ink-4);
}

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

.chip[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip[aria-selected="true"] span {
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.tile {
  --tint: var(--brand);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 90% at 0% 0%, color-mix(in srgb, var(--tint) 14%, transparent), transparent 62%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.tile:hover {
  border-color: color-mix(in srgb, var(--tint) 45%, var(--line));
  box-shadow: 0 18px 40px -26px color-mix(in srgb, var(--tint) 60%, #09090b);
  transform: translateY(-2px);
}

.tile:hover::before,
.tile--owned::before {
  opacity: 1;
}

.tile-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.tile-pill {
  font: 9.5px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--tint) 14%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--tint) 35%, transparent);
  border-radius: 100px;
  padding: 3px 8px;
  white-space: nowrap;
}

.tile-name {
  position: relative;
  font: 600 14.5px/1.25 var(--display);
  letter-spacing: -0.015em;
}

.tile-blurb {
  position: relative;
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.tile-go {
  color: var(--ink-2);
  transition: color 0.15s, transform 0.15s;
}

.tile:hover .tile-go {
  color: var(--ink);
  transform: translateX(2px);
}

.services {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.service {
  --tint: var(--brand);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--tint) 12%, transparent), transparent 55%),
    var(--paper);
  overflow: hidden;
}

.service::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tint);
}

.service-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-top > div {
  flex: 1;
  min-width: 0;
}

.service-name {
  display: block;
  font: 700 18px var(--display);
  letter-spacing: -0.025em;
}

.service-kind {
  display: block;
  margin-top: 2px;
  font: 10.5px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tint);
}

.service .tile-pill {
  align-self: flex-start;
}

.service .appicon.lg {
  background: #fff;
  object-fit: contain;
}

.service-blurb {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

.service-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.primary.small,
.service-actions .button-link {
  width: auto;
  height: 36px;
  margin: 0;
  padding: 0 16px;
  font-size: 13.5px;
}

.primary.small::after {
  content: none;
}

.more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.more .secondary {
  width: auto;
  padding: 0 26px;
}

.rows {
  margin-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.row-text {
  flex: 1;
  min-width: 0;
}

.row-text b {
  display: block;
  font: 600 15px var(--display);
  letter-spacing: -0.015em;
}

.row-text small {
  font: 11px var(--mono);
  color: var(--ink-3);
}

.secondary.small {
  width: auto;
  height: 34px;
  padding: 0 14px;
  font-size: 13.5px;
}

.danger-btn {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 40%, transparent);
}

.secondary.small.danger-btn {
  background: var(--danger-soft);
}

.panel {
  margin-top: 28px;
  max-width: 520px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.panel .field span {
  font: 500 10.5px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.actions {
  display: flex;
  gap: 10px;
}

.actions .primary,
.actions .secondary {
  width: auto;
  padding: 0 20px;
  white-space: nowrap;
}

.panel.danger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
  border-color: color-mix(in srgb, var(--danger) 30%, var(--line));
}

.panel.danger h3 {
  margin: 0;
  font: 600 16px var(--display);
  letter-spacing: -0.015em;
}

.panel.danger p {
  margin: 6px 0 0;
  max-width: 44ch;
  color: var(--ink-3);
  font-size: 13.5px;
}

.panel.danger .secondary {
  width: auto;
  padding: 0 18px;
}

.modal {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px #09090b73;
}

.modal::backdrop {
  background: #09090b8c;
  backdrop-filter: blur(3px);
}

.modal[open] {
  animation: rise 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.modal form {
  padding: 26px 24px 22px;
}

.modal-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
}

.modal-mark svg {
  width: 20px;
  height: 20px;
}

.modal h2 {
  margin: 16px 0 8px;
  font: 700 20px/1.2 var(--display);
  letter-spacing: -0.025em;
}

.modal p {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

.modal .field span {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
}

.modal .field b {
  color: var(--ink);
  font-weight: 600;
  word-break: break-all;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.modal-actions .secondary,
.modal-actions .primary,
.modal-actions .danger-solid {
  width: auto;
  height: 38px;
  margin: 0;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 14px;
}

.danger-solid {
  border: 0;
  background: var(--danger);
  color: #fff;
  font: 500 14px var(--sans);
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .danger-solid {
    color: #1a0a08;
  }
}

.danger-solid:disabled {
  opacity: 0.4;
}

/* ---- photo ---- */

.avatar--xl {
  width: 76px;
  height: 76px;
  font-size: 30px;
}

.panel.photo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.photo-text {
  min-width: 0;
}

.photo-text h3,
.panel.split h3 {
  margin: 0;
  font: 600 16px var(--display);
  letter-spacing: -0.015em;
}

.photo-text > p,
.panel.split p {
  margin: 4px 0 0;
  color: var(--ink-3);
  font-size: 13.5px;
}

.photo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.photo-actions .button-link {
  margin: 0;
  cursor: pointer;
}

.photo-text .error {
  margin: 10px 0 0;
}

/* ---- profile email ---- */

.inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline input {
  flex: 1;
  min-width: 0;
}

.inline .secondary.small {
  height: 44px;
  flex: none;
}

/* ---- security ---- */

.method-icon {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink-2);
}

.row .secondary.small + .secondary.small {
  margin-left: -6px;
}

.row-text small {
  display: block;
}

.row-text .row-sub {
  margin-top: 2px;
  opacity: 0.8;
}

.row--event {
  padding-top: 12px;
  padding-bottom: 12px;
}

.row--event .row-text b {
  font: 500 14.5px var(--sans);
  letter-spacing: -0.01em;
}

.rows-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 16px;
}

.rows-foot small {
  color: var(--ink-3);
  font-size: 13px;
}

.views > .view > .note,
.view > .note {
  margin-top: 20px;
  max-width: 640px;
}

/* ---- services with access ---- */

.service-access {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tint) 8%, transparent);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.service-access b {
  color: var(--ink);
  font-weight: 600;
}

.service-access--off {
  background: var(--soft);
}

/* ---- your data ---- */

.panel.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.panel.split .secondary {
  width: auto;
  padding: 0 20px;
}

.panel.split + .error {
  max-width: 520px;
  margin-top: 12px;
}

/* ---- dialogs ---- */

.modal-mark--calm {
  background: var(--accent-soft);
  color: var(--accent);
}

.modal-actions .primary::after {
  content: none;
}

/* ---- account menu ---- */

:root {
  --warn: #b45309;
  --warn-soft: #fffbeb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --warn: #fbbf24;
    --warn-soft: #451a0366;
  }
}

.who-menu {
  position: relative;
}

.who-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px 3px 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-3);
  cursor: pointer;
  transition: border-color 0.15s;
}

.who-btn:hover,
.who-btn[aria-expanded="true"] {
  border-color: var(--line-strong);
  color: var(--ink);
}

.who-btn .avatar {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.who-caret {
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}

.who-btn[aria-expanded="true"] .who-caret {
  transform: rotate(180deg);
}

.who-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(300px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 24px 60px -20px #09090b52, 0 1px 2px #0000000f;
  animation: rise 0.18s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.who-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px 16px;
  border-radius: 12px;
  background: var(--soft);
}

.who-top b,
.who-top small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.who-top b {
  margin-top: 10px;
  font: 600 15.5px var(--display);
  letter-spacing: -0.015em;
}

.who-top small {
  color: var(--ink-3);
  font-size: 13px;
}

.who-top .button-link {
  margin-top: 14px;
  border-radius: 999px;
  background: var(--paper);
}

.avatar--lg {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.who-links {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  margin: 6px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.who-links a,
.who-out {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--ink-2);
  font: 500 14px var(--sans);
  text-decoration: none;
}

.who-links svg,
.who-out svg {
  width: 18px;
  height: 18px;
  color: var(--ink-3);
}

.who-links a:hover,
.who-out:hover {
  background: var(--soft);
  color: var(--ink);
}

.who-out {
  width: 100%;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

/* ---- home ---- */

.hero {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero-text {
  min-width: 0;
}

.hero .big--acct {
  margin: 10px 0 0;
}

.avatar--hero {
  width: 84px;
  height: 84px;
  font-size: 34px;
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line);
}

.hero-line {
  margin: 10px 0 0;
  color: var(--ink-3);
  font: 12px var(--mono);
  line-height: 1.6;
}

.dash {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.dcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.dcard--wide {
  grid-column: 1 / -1;
}

.dcard-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dcard-head h2,
.check-sum h2 {
  margin: 0;
  font: 600 16px var(--display);
  letter-spacing: -0.015em;
}

.dcard-head a {
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.dcard-head a:hover {
  text-decoration: underline;
}

.dcard-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.dcard-body > .button-link {
  align-self: flex-start;
  margin: 2px 0 0;
}

.dcard-kicker {
  display: block;
  margin: 0;
  font: 10px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.dcard-empty {
  margin: 0;
  color: var(--ink-3);
  font-size: 13.5px;
}

.dcard-big {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
}

.dcard-big b {
  color: var(--ink);
  font: 600 26px var(--display);
  letter-spacing: -0.02em;
  margin-right: 2px;
}

.dcard-sub {
  margin: -4px 0 0;
  color: var(--ink-3);
  font: 11px var(--mono);
}

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

.mini .appicon,
.mini .method-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.mini-text {
  flex: 1;
  min-width: 0;
}

.mini-text b,
.mini-text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-text b {
  font: 600 14px var(--display);
  letter-spacing: -0.01em;
}

.mini-text small {
  margin-top: 2px;
  color: var(--ink-3);
  font: 11px var(--mono);
}

.mini--event {
  padding-left: 12px;
  border-left: 2px solid var(--line);
}

.mini--event .mini-text b {
  font: 500 13.5px var(--sans);
  white-space: normal;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.mini--app {
  --tint: var(--brand);
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--tint) 24%, var(--line));
  border-radius: 12px;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tint) 12%, transparent), transparent 60%), var(--paper);
}

.mini--more {
  justify-content: center;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--ink-3);
  font: 12px var(--mono);
  text-decoration: none;
}

.mini--more:hover {
  color: var(--ink);
  border-color: var(--ink-3);
}

.pick {
  --tint: var(--brand);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tint) 7%, var(--soft));
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
}

.pick:hover {
  background: color-mix(in srgb, var(--tint) 12%, var(--soft));
}

.pick .mini-text small {
  font: 13px var(--sans);
}

.pick .mini-text b {
  font-size: 15px;
  margin-top: 3px;
}

.pick:hover .tile-go {
  color: var(--tint);
}

/* ---- security checkup ---- */

.dcard--check {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  --state: var(--ok);
  border-color: color-mix(in srgb, var(--state) 28%, var(--line));
  background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--state) 9%, transparent), transparent 62%), var(--paper);
}

.dcard--check.dcard--warn {
  --state: var(--warn);
}

.check-sum {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-sum h2 {
  margin-top: 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.check-sum p:last-child {
  margin: 6px 0 0;
  color: var(--ink-3);
  font-size: 13.5px;
}

.check-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--state) 14%, transparent);
  color: var(--state);
}

.check-mark svg {
  width: 26px;
  height: 26px;
}

.check-list {
  display: flex;
  flex-direction: column;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.check-item:last-child {
  border-bottom: 0;
}

.check-item .mini-text small {
  font: 12.5px/1.45 var(--sans);
  white-space: normal;
}

.check-item .button-link,
.check-item .secondary.small {
  flex: none;
  margin: 0;
}

.check-dot {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.check-dot svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.check-item--ok .check-dot,
.check-dot--ok {
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  color: var(--ok);
}

.check-item--todo .check-dot,
.check-dot--todo {
  background: var(--warn-soft);
  color: var(--warn);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 30%, transparent);
}

.check-item--soft .check-dot {
  background: var(--soft);
  color: var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--line);
}

.check-item--ok .mini-text b {
  font-weight: 500;
  color: var(--ink-2);
}

.check-said {
  flex: none;
  max-width: 22ch;
  color: var(--ok);
  font-size: 12.5px;
}

@media (max-width: 720px) {
  .dash {
    grid-template-columns: minmax(0, 1fr);
  }

  .dcard--check {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .hero {
    align-items: flex-start;
  }

  .avatar--hero {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
}

@media (max-width: 440px) {
  .check-item {
    flex-wrap: wrap;
  }

  .check-item .button-link,
  .check-item .secondary.small {
    margin-left: 38px;
  }
}

@media (max-width: 860px) {
  .acct-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .tab {
    border: 1px solid var(--line);
  }

  .tab[aria-current="true"] {
    box-shadow: none;
    border-color: var(--ink);
  }
}

@media (max-width: 440px) {
  .panel.photo {
    flex-direction: column;
    align-items: flex-start;
  }

  .row {
    flex-wrap: wrap;
  }

  .acct {
    padding-left: 16px;
    padding-right: 16px;
  }

  .catalog {
    grid-template-columns: 1fr 1fr;
  }

  .tile-blurb,
  .tile-pill {
    display: none;
  }
}
