/* Treatly Glass — the Wallet tab, promises, and the bar on phones.
 * Loaded last. Uses the tokens from glass-material.css. */

/* ---------- the tab bar: five tabs, and see-through glass on phones ---------- */

.g-tabbar {
  grid-template-columns: repeat(5, 1fr);
}
.g-tabbar button .gi {
  width: 25px;
  height: 25px;
}

/* the bar is one clear material: the page shows through, blurred, like
 * the iOS tab bar. Kept on every quality tier. */
html .g-tabbar.glass,
html:is(.g-q-low, .g-q-medium) .g-tabbar.glass {
  background: rgba(28, 28, 32, 0.32);
  /* the low tiers switch blur off with !important; the bar keeps it */
  -webkit-backdrop-filter: blur(28px) saturate(1.9) !important;
  backdrop-filter: blur(28px) saturate(1.9) !important;
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.34),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.12),
    0 12px 36px -8px rgba(0, 0, 0, 0.6);
}
/* the desktop "new task" button, same idea */
html #head-new.g-btn--solid {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.34),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.1);
}
html #head-new.g-btn--solid:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- the Wallet ---------- */

.gw {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 460px;
  margin: 4px auto 0;
  font-family: var(--sys);
  color: var(--label-2);
}
.gw .gm-label {
  margin: 14px 4px -4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--label);
}
.gw .gm-label span {
  font-weight: 500;
  color: var(--label-2);
}

/* two numbers at the top */
.gw-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gw-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 22px;
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--mat-edge);
}
.gw-tile small {
  font-size: 13px;
  color: var(--label-2);
}
.gw-tile b {
  font-family: var(--sys-round);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--label);
}
.gw-tile.is-in b {
  color: #7ff0a8;
}
.gw-tile span {
  font-size: 12px;
  color: var(--label-3);
}

/* the stack: each pass covers all but the top strip of the one behind it */
.gw-stack {
  --peek: 62px;
  --h: 212px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 4px;
}
.gw-pass {
  --mx: 0.5;
  --my: 0.3;
  --paper: #0d1b3d;
  --paper-2: #0a3a55;
  --lit: #1296a8;
  --lit-2: #16678a;
  --line: rgba(237, 207, 142, 0.5);
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: var(--h);
  /* its own layer, so its text never paints over the pass in front */
  isolation: isolate;
  padding: 16px 18px 14px;
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  color: #f7f1e1;
  background:
    radial-gradient(120% 140% at 0% 0%, var(--lit) 0%, transparent 50%),
    radial-gradient(120% 140% at 100% 100%, var(--lit-2) 0%, transparent 52%),
    linear-gradient(135deg, var(--paper-2), var(--paper) 58%);
  /* each card further back is a little narrower, like a real stack, so
   * the front card's rounded corners sit on the page, not on a square */
  margin-inline: calc(min(var(--i, 0), 4) * 7px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.16),
    0 -10px 26px -10px rgba(0, 0, 0, 0.8);
  transition:
    transform 0.5s var(--ease-spring),
    margin 0.5s var(--ease-spring),
    box-shadow 0.3s;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}
.gw-pass + .gw-pass {
  margin-top: calc(var(--peek) - var(--h));
}
/* engraving across the face, as on the cheque */
.gw-pass::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background:
    repeating-radial-gradient(circle at 14% 130%, transparent 0 5px, rgba(255, 255, 255, 0.5) 5.5px 6px),
    repeating-radial-gradient(circle at 96% -40%, transparent 0 7px, rgba(255, 255, 255, 0.35) 7.5px 8px);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.gw-pass .g-cheque-foil {
  opacity: 0.16;
}
.gw-rosette {
  position: absolute;
  right: -14%;
  top: 44%;
  width: 60%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: var(--guill) center / contain no-repeat;
  opacity: 0.45;
  mix-blend-mode: screen;
  pointer-events: none;
}
.gw-top,
.gw-mid,
.gw-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.gw-top {
  align-items: flex-start;
  min-height: 32px;
}
.gw-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}
.gw-brand {
  min-width: 0;
  max-width: 42%;
}
.gw-brand b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--sys-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.gw-key {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 1 1 0;
  min-width: 0;
}
.gw-key small,
.gw-field small {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.gw-key b {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--sys-round);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #fff6d6 20%, #edcf8e 40%, #fffbe9 50%, #d7a94a 62%, #fff1bf 80%);
  background-size: 250% 100%;
  background-position: calc(var(--mx) * 100%) 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gw-pass.is-promise .gw-key b {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
}
.gw-mid {
  align-items: flex-end;
}
.gw-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gw-field b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--sys-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.gw-field--for {
  align-items: flex-end;
  text-align: right;
  max-width: 55%;
}
.gw-field--for b {
  max-width: 100%;
  font-size: 14px;
  font-weight: 500;
  color: rgba(247, 241, 225, 0.8);
}
.gw-foot {
  align-items: center;
  padding-top: 10px;
  border-top: 0.5px solid var(--line);
}
.gw-micr {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(247, 241, 225, 0.5);
}
.gw-stamp {
  padding: 3px 8px;
  border: 1.5px solid currentColor;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.gw-pass.is-due .gw-stamp {
  color: #ffc15e;
}
.gw-pass.is-sent .gw-stamp {
  color: #8ec9f2;
}
.gw-pass.is-cashed .gw-stamp {
  color: #7ff0a8;
}
.gw-pass.is-void .gw-stamp {
  color: #ff6b61;
}

/* three papers: cheque in teal, automatic in gold, promise in rose */
.gw-pass.is-auto {
  --paper: #1a1405;
  --paper-2: #3d2c08;
  --lit: #6f5316;
  --lit-2: #4a3508;
}
.gw-pass.is-promise {
  --paper: #22091f;
  --paper-2: #4a1238;
  --lit: #a23a6c;
  --lit-2: #6b2a78;
  --line: rgba(255, 205, 220, 0.45);
}

/* touch: the pass rises out of the stack before it opens */
.gw-pass:active {
  transform: translateY(-4px);
}
@media (hover: hover) {
  .gw-stack:hover .gw-pass {
    transform: translateY(calc(var(--i) * -3px));
  }
  .gw-stack .gw-pass:hover {
    transform: translateY(calc(var(--i) * -3px - 16px));
  }
}
/* a due pass pulses once when the wallet opens */
.gw-pass.is-due:last-child {
  animation: gw-rise 0.7s var(--ease-spring) both;
}
@keyframes gw-rise {
  from {
    transform: translateY(18px);
  }
}

/* the empty wallet: three faint passes */
.gw-empty {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 6px;
}
.gw-ghost {
  width: 86%;
  height: 54px;
  border-radius: 16px 16px 0 0;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.025);
}
.gw-ghost + .gw-ghost {
  width: 93%;
  margin-top: -30px;
}
.gw-ghost:nth-child(3) {
  width: 100%;
  height: 110px;
  border-radius: 18px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}
.gw-empty p {
  position: absolute;
  bottom: 22px;
  left: 20px;
  right: 20px;
  margin: 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.35;
  color: var(--label-2);
}

/* a stack inside the money sheet ("On this task") */
.gw-stack--sheet {
  text-align: left;
}

/* ---------- promises ---------- */

/* the card pill when a task holds only promises */
.gcard .gcard-meta .gcard-money.is-vow {
  color: #fff;
  background: linear-gradient(135deg, #d0578f, #7d3aa0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 14px rgba(208, 87, 143, 0.35);
}

/* the promise sheet: a big line to write on, and a few to pick from */
.gm-seg--kind {
  --n: 2;
  margin-bottom: 4px;
}
.gm-vow {
  position: relative;
  display: block;
  padding: 18px 20px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
}
.gm-vow-in {
  display: block;
  width: 100%;
  resize: none;
  border: 0;
  outline: 0;
  background: none;
  text-align: center;
  /* pop-ups force system type; this one line is handwriting on a cheque */
  font-family: var(--serif) !important;
  font-style: italic;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--label);
  caret-color: #e889b5;
}
.gm-vow-in::placeholder {
  color: var(--label-3);
}
.gm-vow-n {
  position: absolute;
  right: 14px;
  bottom: 8px;
  font-size: 12px;
  color: var(--label-3);
}
.gm-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.gm-chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  font-size: 14px;
  font-weight: 500;
  color: var(--label);
  background: var(--fill-3);
  transition: transform 0.2s var(--ease-spring), background 0.2s;
}
.gm-chip:active {
  transform: scale(0.94);
  background: var(--fill-2);
}
.gm-cta.is-off {
  opacity: 0.35;
}

/* the promise cheque: rose paper, a seal where the amount would be */
.g-cheque.is-promise {
  --paper: #22091f;
  --paper-2: #4a1238;
  --line: rgba(255, 205, 220, 0.5);
  background:
    radial-gradient(120% 140% at 0% 0%, #a23a6c 0%, transparent 50%),
    radial-gradient(120% 140% at 100% 100%, #6b2a78 0%, transparent 52%),
    linear-gradient(135deg, var(--paper-2), var(--paper) 55%);
}
.g-cheque-seal {
  display: grid;
  place-items: center;
  padding: 6px 10px;
  color: #edcf8e;
}
.g-cheque.is-promise .g-cheque-words {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .gw-pass,
  .gw-pass.is-due:last-child {
    transition: none;
    animation: none;
  }
}

/* ---------- clear glass for everything that sits on the page ---------- */
/* Request cards, profile stats, the account panel, round header buttons.
 * The lighter phone tiers used to swap these for near-solid grey; on the
 * black page a thin fill and a bright edge read as glass with or without
 * blur, so every tier gets the same look (blur stays where the tier allows). */

html :is(.g-screen, .g-set) .glass,
html:is(.g-q-low, .g-q-medium) :is(.g-screen, .g-set) .glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.36),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.1),
    0 10px 30px -12px rgba(0, 0, 0, 0.6);
}
/* a request keeps a thin line of its sender's colour down the left */
html .g-screen .g-req.glass,
html:is(.g-q-low, .g-q-medium) .g-screen .g-req.glass {
  box-shadow:
    inset 2px 0 0 var(--accent),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.36),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.1),
    0 10px 30px -12px rgba(0, 0, 0, 0.6);
}

/* ✕ and ✓: glass circles, the tick tinted green, no solid fill */
html .g-req-acts .g-btn {
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.4),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}
html .g-req-no {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.09);
}
html .g-req-yes {
  color: #6ff29a;
  background: linear-gradient(180deg, rgba(48, 209, 88, 0.3), rgba(48, 209, 88, 0.14));
  box-shadow:
    inset 0 0.5px 0 rgba(180, 255, 205, 0.55),
    inset 0 0 0 0.5px rgba(48, 209, 88, 0.35),
    0 0 18px -4px rgba(48, 209, 88, 0.35);
}
html .g-req-no:hover {
  background: rgba(255, 255, 255, 0.14);
}
html .g-req-yes:hover {
  background: linear-gradient(180deg, rgba(48, 209, 88, 0.38), rgba(48, 209, 88, 0.2));
}
/* the profile's pill buttons ("Edit profile") match */
html .g-screen .g-account-btn:not(.is-main) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.36),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.1);
}

/* Settings: the icon tiles and pressed rows sit lighter on the clear groups */
html .g-set .g-set-row > i {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.3);
}
html .g-set .g-set-row + .g-set-row {
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.1);
}

/* ---------- getting in: log-in, sign-up, welcome ---------- */
/* Black with a breath of colour on every tier (the cheap tiers used to
 * paint this grey), glass fields, and glass buttons instead of fills. */

html .g-ob .g-ob-bg,
html:is(.g-q-low, .g-q-medium) .g-ob .g-ob-bg {
  background:
    radial-gradient(60% 45% at 15% 18%, rgba(242, 167, 195, 0.16), transparent 70%),
    radial-gradient(55% 42% at 88% 86%, rgba(142, 201, 242, 0.14), transparent 70%),
    radial-gradient(40% 30% at 70% 40%, rgba(185, 167, 245, 0.08), transparent 70%),
    #030305;
}
@media (max-width: 899px) {
  html:is(.g-q-low, .g-q-medium) .g-ob .g-ob-panel {
    background: none;
    box-shadow: none;
  }
}
@media (min-width: 900px) {
  html:is(.g-q-low, .g-q-medium) .g-ob .g-ob-panel {
    background: rgba(255, 255, 255, 0.035);
  }
}

/* one glass recipe for every button on these screens */
html .g-ob .g-ob-btn:not(.g-ob-link) {
  font-family: var(--sys);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.4),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
}
/* the main one is brighter glass, not a colour */
html .g-ob .g-ob-go {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.28),
    0 10px 30px -10px rgba(0, 0, 0, 0.7);
}
html .g-ob .g-ob-go:disabled {
  opacity: 0.4;
}
html .g-ob .g-ob-go.is-busy::after {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
}
html .g-ob .g-ob-btn:not(.g-ob-link):hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
}
html .g-ob .g-ob-go:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.16));
}
/* "Create new account" keeps its blue words, on glass */
html .g-ob .g-ob-outline {
  color: #9fd3ff;
}

/* fields: glass wells, a white ring when typing */
html .g-ob .g-ob-float input,
html .g-ob .g-ob-field {
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
}
html .g-ob .g-ob-float input:focus,
html .g-ob .g-ob-field:focus-within {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.4),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}
/* the envelope tile on "check your email" */
html .g-ob .g-ob-mail {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.5),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.18);
}

/* ---------- the profile's "Create account" ---------- */
html .g-screen .g-account-btn.is-main {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.26);
}

/* ---------- the open card: scrolls, and swipes to the next ---------- */
/* The whole view scrolls, card and panel together; short content still
 * sits in the middle (auto margins in a column centre it). */
html .g-cheque-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
html .g-cheque-view .g-cheque-stage {
  flex: none;
  margin: auto 0;
  max-height: none;
  overflow: visible;
}
html .g-cheque-view .g-cheque-bg,
html .g-cheque-view .g-cheque-close {
  position: fixed;
}
html .g-cheque-view .g-cheque-close {
  z-index: 2;
}

.g-cheque-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: -4px 0 -2px;
}
.g-cheque-nav {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.35);
  transition: opacity 0.2s, transform 0.2s var(--ease-spring);
}
.g-cheque-nav:active {
  transform: scale(0.9);
}
.g-cheque-nav:disabled {
  opacity: 0.25;
}
.g-cheque-dots {
  display: flex;
  gap: 6px;
}
.g-cheque-dots i {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.3s var(--ease-spring), background 0.3s;
}
.g-cheque-dots i.is-on {
  width: 18px;
  background: #fff;
}
.g-cheque.is-from-right {
  animation: g-card-r 0.42s var(--ease-spring) both;
}
.g-cheque.is-from-left {
  animation: g-card-l 0.42s var(--ease-spring) both;
}
@keyframes g-card-r {
  from {
    opacity: 0;
    transform: translateX(60px) rotateY(-12deg);
  }
}
@keyframes g-card-l {
  from {
    opacity: 0;
    transform: translateX(-60px) rotateY(12deg);
  }
}

/* ---------- picking a card up to reorder the stack ---------- */
.gw-pass.is-lifted {
  z-index: 10;
  scale: 1.035;
  transition:
    scale 0.25s var(--ease-spring),
    margin 0.4s var(--ease-spring),
    box-shadow 0.25s;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.2),
    0 24px 50px -10px rgba(0, 0, 0, 0.85);
  cursor: grabbing;
}
.gw-hint {
  margin: 2px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--label-3);
}
@media (prefers-reduced-motion: reduce) {
  .g-cheque.is-from-right,
  .g-cheque.is-from-left {
    animation: none;
  }
}

/* ---------- Settings → Phone calls ---------- */
.g-calls-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 6px 12px 4px;
  text-align: center;
}
.g-calls-top p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--label-2, rgba(235, 235, 245, 0.6));
}
.g-calls-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(180deg, rgba(48, 209, 88, 0.34), rgba(48, 209, 88, 0.14));
  box-shadow:
    inset 0 1px 0 rgba(180, 255, 205, 0.5),
    inset 0 0 0 0.5px rgba(48, 209, 88, 0.4);
}
.g-calls-field {
  padding: 10px 16px;
}
.g-set-row.is-busy {
  opacity: 0.45;
  pointer-events: none;
}
.g-calls-err:empty {
  display: none;
}
.g-calls-err {
  color: #ff6b61;
}

/* ---------- Pro: monthly or yearly ---------- */
.g-pro-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.g-pro-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  text-align: left;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.2s, background 0.2s, transform 0.2s;
}
.g-pro-plan:active {
  transform: scale(0.97);
}
.g-pro-plan.is-on {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
}
.g-pro-plan small {
  font-size: 13px;
  font-weight: 600;
  color: rgba(235, 235, 245, 0.6);
}
.g-pro-plan b {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.g-pro-plan span {
  font-size: 13px;
  color: rgba(235, 235, 245, 0.6);
}
.g-pro-plan em {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  color: #0d2a1b;
  background: #6ff29a;
}

/* ---------- Friends: nothing on, so people to add ---------- */
.g-pymk {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin: 8px auto 0;
}
.g-pymk-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px 6px;
  text-align: center;
  color: rgba(235, 235, 245, 0.6);
}
.g-pymk-head .gi {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.45);
}
.g-pymk-head strong {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.g-pymk-head small {
  max-width: 300px;
  font-size: 14px;
  line-height: 1.35;
}
.g-pymk-label {
  margin: 8px 6px -4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(235, 235, 245, 0.45);
}
.g-pymk-list {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
}
.g-pymk-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
}
.g-pymk-row + .g-pymk-row {
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.1);
}
.g-pymk-row > .g-avatar {
  flex: none;
  width: 44px;
  height: 44px;
}
.g-pymk-who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.g-pymk-who strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.g-pymk-who small {
  font-size: 13px;
  color: rgba(235, 235, 245, 0.55);
}
.g-pymk-add {
  flex: none;
  min-width: 92px;
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.24);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.g-pymk-add:active {
  transform: scale(0.94);
}
.g-pymk-add.is-sent {
  color: rgba(235, 235, 245, 0.6);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
}
.g-pymk-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}
.g-pymk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.4),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
  transition: transform 0.2s;
}
.g-pymk-btn.is-main {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.28);
}
.g-pymk-btn:active {
  transform: scale(0.97);
}
