/* Settings on phones = the owner's mockup (Claude Code 2026-11-11: "design 100% the same … colour consider all our themes").
   Gold frames, gold glow, gold icon tiles and the gold title are the brand's fixed gold; every glass surface is made from the
   active theme's own colours (--btn-a / --vt-base), so all 18 themes keep their character. Tablets / iPads keep the
   side-menu layout (#v-settings.st-split) — nothing here applies there. */
@media (max-width: 767px) {
  html body #v-settings#v-settings:not(.st-split) {
    --spl-gold: linear-gradient(135deg, #FFF3BE 0%, #E9B949 22%, #9A6814 46%, #F7DC82 70%, #B8841F 100%);
    --spl-glass-a: color-mix(in srgb, var(--btn-a) 80%, #000);
    --spl-glass-b: color-mix(in srgb, var(--vt-base, #071226) 88%, #000);
  }

  /* ---------------------------------------------------------------- header: round back key · gear crest + gold title */
  html body #v-settings#v-settings:not(.st-split) .set-back {
    grid-column: 1; grid-row: 1; width: 44px !important; height: 44px !important; min-width: 0 !important; padding: 0 !important;
    border-radius: 50% !important; display: grid !important; place-items: center !important; position: static !important;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--btn-a) 70%, #fff 10%), var(--spl-glass-b)) padding-box, var(--spl-gold) border-box !important;
    border: 2px solid transparent !important; box-shadow: 0 0 12px rgba(255, 196, 77, .28), 0 6px 14px rgba(0, 0, 0, .45) !important;
  }
  html body #v-settings#v-settings:not(.st-split) .set-back .set-back-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  html body #v-settings#v-settings:not(.st-split) .set-back .set-back-ar { font: 700 1.9rem/1 Georgia, serif; color: #F3D27A; margin: -3px 2px 0 0; }
  /* gear crest (gold octagon) and the title sit together in the middle column */
  html body #v-settings#v-settings:not(.st-split) .overflow { grid-column: 3; grid-row: 1; justify-self: end; }

  /* ---------------------------------------------------------------- shared gold frame for the profile card and every row */
  html body #v-settings#v-settings:not(.st-split) .sgroup,
  html body #v-settings#v-settings:not(.st-split) .sgroup.sg-profile {
    border: 2px solid transparent !important; border-radius: 18px !important; overflow: hidden !important;
    background:
      radial-gradient(110% 120% at 0% 0%, color-mix(in srgb, var(--btn-a) 50%, rgba(255, 255, 255, .14)) 0%, transparent 60%) padding-box,
      linear-gradient(170deg, var(--spl-glass-a), var(--spl-glass-b)) padding-box,
      var(--spl-gold) border-box !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 0 14px rgba(255, 196, 77, .28), 0 8px 18px rgba(0, 0, 0, .45) !important;
    margin-bottom: 10px !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }

  /* ---------------------------------------------------------------- section rows */
  html body #v-settings#v-settings:not(.st-split) .sgroup:not(.sg-profile) .group-head {
    display: grid !important; grid-template-columns: 52px minmax(0, 1fr) auto !important; grid-template-areas: "ico t chev" "ico s chev" !important;
    align-items: center !important; column-gap: 14px !important; row-gap: 1px !important; padding: 12px 14px 12px 12px !important; min-height: 72px; text-align: left;
    background: none !important;
  }
  html body #v-settings#v-settings:not(.st-split) .sgroup .group-head .sg-ico {
    grid-area: ico; width: 50px !important; height: 50px !important; border-radius: 13px !important; display: grid !important; place-items: center !important;
    border: 2px solid transparent !important; margin: 0 !important;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--btn-a) 65%, #fff 8%), var(--spl-glass-b)) padding-box, var(--spl-gold) border-box !important;
    box-shadow: 0 0 10px rgba(255, 196, 77, .3), inset 0 1px 0 rgba(255, 255, 255, .15) !important;
  }
  html body #v-settings#v-settings:not(.st-split) .sgroup .group-head .sg-ico .ic { width: 27px !important; height: 27px !important; color: #F5CF63 !important; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
  html body #v-settings#v-settings:not(.st-split) .sgroup .group-head .h-card {
    grid-area: t; font: 700 1.38rem/1.1 "Cormorant Garamond", Georgia, serif !important; color: #FFFFFF !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  html body #v-settings#v-settings:not(.st-split) .sgroup .group-head .summary {
    grid-area: s; font: 500 .74rem/1.25 Manrope, var(--sans) !important; color: rgba(255, 255, 255, .86) !important;
    white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; display: block !important; -webkit-line-clamp: unset !important; max-height: none !important;
  }
  html body #v-settings#v-settings:not(.st-split) .sgroup .group-head > .chev {
    grid-area: chev; width: 24px !important; height: 24px !important; color: #F5F1E6 !important; transform: rotate(-90deg); transition: transform .2s ease;
  }
  html body #v-settings#v-settings:not(.st-split) .sgroup .group-head[aria-expanded="true"] > .chev { transform: rotate(0deg); color: #F3D27A !important; }
  html body #v-settings#v-settings:not(.st-split) .sgroup .theme-dots { display: none !important; }
  html body #v-settings#v-settings:not(.st-split) .sgroup .group-body { border-top: 1px solid rgba(233, 185, 73, .35); }

  /* ---------------------------------------------------------------- profile card */
  html body #v-settings#v-settings:not(.st-split) .sg-profile .profile-card {
    display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; grid-template-areas: "who up" "big big" "keys keys" !important;
    align-items: center !important; gap: 12px 10px !important; padding: 14px 14px 14px !important; background: none !important; border: 0 !important; box-shadow: none !important;
  }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-chev { display: none !important; }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .profile {
    grid-area: who; display: flex !important; align-items: center !important; gap: 14px !important; min-width: 0; padding: 0 0 0 2px !important;
    background: none !important; border: 0 !important; position: relative; text-align: left;
  }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .profile > .chev { display: none !important; }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .profile .av-wreath { position: absolute; left: -9px; top: 50%; width: 80px; height: 80px; transform: translateY(-50%); pointer-events: none; }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .profile .avatar {
    position: relative; z-index: 1; width: 56px !important; height: 56px !important; flex: none; border-radius: 50% !important; margin: 0 6px 0 3px;
    display: grid !important; place-items: center !important; font: 700 1.6rem/1 "Cormorant Garamond", Georgia, serif !important; color: #3A2606 !important;
    background: radial-gradient(circle at 35% 30%, #FFF6CC, #F2C94C 45%, #B07A1C 100%) !important; border: 2px solid #FFF0B0 !important;
    box-shadow: 0 0 12px rgba(255, 200, 80, .55), inset 0 -3px 6px rgba(120, 70, 0, .35) !important;
  }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .profile .who { position: relative; z-index: 1; min-width: 0; padding-left: 12px; border-left: 1px solid rgba(233, 185, 73, .55); }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .profile .name { font: 700 1.45rem/1.1 "Cormorant Garamond", Georgia, serif !important; color: #FFFFFF !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .profile .tag { font: 500 .78rem/1.3 Manrope, var(--sans) !important; color: rgba(255, 255, 255, .85) !important; background: none !important; padding: 0 !important; border: 0 !important; }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .up-pill {
    grid-area: up; height: 40px !important; padding: 0 16px !important; border-radius: 999px !important; gap: 7px !important;
    font: 700 .86rem/1 Manrope, var(--sans) !important; color: #FFFFFF !important; border: 2px solid transparent !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--btn-a) 70%, #000), var(--spl-glass-b)) padding-box, var(--spl-gold) border-box !important;
    box-shadow: 0 0 10px rgba(255, 196, 77, .3) !important;
  }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .up-pill .ic { color: #F5CF63 !important; width: 17px !important; height: 17px !important; }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-big {
    grid-area: big; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 54px; border-radius: 999px; cursor: pointer;
    font: 800 1.08rem/1 Manrope, var(--sans); color: #20160A; border: 1px solid #FFF1B8;
    background: linear-gradient(180deg, #FFF0A6 0%, #F6CF52 42%, #E0A92A 75%, #C98F1C 100%);
    box-shadow: 0 0 16px rgba(255, 196, 77, .55), inset 0 2px 0 rgba(255, 255, 255, .65), inset 0 -3px 0 rgba(140, 90, 10, .45), 0 6px 12px rgba(0, 0, 0, .4);
  }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-big .ic { width: 22px; height: 22px; color: #20160A; }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-big > span { flex: 1; text-align: center; }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-big:active { transform: translateY(1px); }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-keys {
    grid-area: keys; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 14px; overflow: hidden;
    border: 1px solid rgba(233, 185, 73, .45); background: color-mix(in srgb, var(--vt-base, #071226) 55%, transparent);
  }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-key {
    display: flex; align-items: center; gap: 8px; padding: 10px 8px; min-height: 56px; background: none; border: 0; cursor: pointer; text-align: left;
    color: #FFFFFF; font: 700 .7rem/1.2 Manrope, var(--sans); position: relative;
  }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-key + .pc-key { border-left: 1px solid rgba(233, 185, 73, .45); }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-key .ic { width: 28px; height: 28px; flex: none; color: #F5CF63; }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-key:active { background: rgba(233, 185, 73, .12); }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-key.has-new::after { content: ""; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #F5CF63; box-shadow: 0 0 6px #F5CF63; }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-key.busy .ic { animation: splSpin 1s linear infinite; }
  @keyframes splSpin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { html body #v-settings .sg-profile .pc-key.busy .ic { animation: none; } }
  /* the Profile & Membership group's own head stays hidden (the card is its face) */
  html body #v-settings#v-settings:not(.st-split) .sg-profile > .sr-h { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  @media (max-width: 370px) {
    html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-key { font-size: .64rem; gap: 5px; padding: 8px 5px; }
    html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-key .ic { width: 22px; height: 22px; }
  }
}
/* tablets / iPads (side-menu layout) and computers: the new profile keys are not part of that design */
@media (min-width: 768px) { #v-settings .sg-profile .pc-big, #v-settings .sg-profile .pc-keys, #v-settings .sg-profile .av-wreath { display: none !important; } }
#v-settings.st-split .sg-profile .pc-big, #v-settings.st-split .sg-profile .pc-keys, #v-settings.st-split .sg-profile .av-wreath { display: none !important; }
/* round 2 (screenshots): round back key, tighter rows, roomier profile keys */
@media (max-width: 767px) {
  html body #v-settings#v-settings:not(.st-split) .set-back { max-width: none !important; flex: none !important; aspect-ratio: 1 / 1; }
  html body #v-settings#v-settings:not(.st-split) .sgroup,
  html body #v-settings#v-settings:not(.st-split) .sgroup.sg-profile { margin-top: 0 !important; margin-bottom: 4px !important; }
  html body #v-settings#v-settings:not(.st-split) .sg-profile { margin-bottom: 8px !important; }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-key { gap: 6px; padding: 9px 6px; font-size: .66rem; letter-spacing: -.01em; }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-key .ic { width: 24px; height: 24px; }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-key span { min-width: 0; }
}
@media (max-width: 767px) {
  html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-key { padding: 9px 5px; gap: 5px; font-size: .6rem; }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-key span { white-space: nowrap; }
}
@media (max-width: 370px) { html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-key { font-size: .54rem; } html body #v-settings#v-settings:not(.st-split) .sg-profile .pc-key .ic { width: 20px; height: 20px; } }
@media (max-width: 767px) {
}
@media (max-width: 370px) {
  html body #v-settings#v-settings:not(.st-split) .sg-profile .up-pill { padding: 0 11px !important; height: 36px !important; }
}
/* no name yet: "Add your name" as a clear gold call to action (it was cut to "Add / your…") */
@media (max-width: 767px) {
  html body #v-settings#v-settings:not(.st-split) .sg-profile .profile .name { white-space: nowrap !important; display: block !important; -webkit-line-clamp: unset !important; }
  html body #v-settings#v-settings:not(.st-split) .sg-profile .profile[aria-label="Add your name"] .name {
    font: 800 .95rem/1.25 Manrope, var(--sans) !important; color: #F3D27A !important; white-space: normal !important; overflow: visible !important;
  }
}
/* owner 2026-11-11 "replace circle name with polygon": profile coin = the gear emblem's gold octagon (navy inside, gold initial), no wreath */
html body #v-settings#v-settings .sg-profile .profile .av-wreath { display: none !important; }
html body #v-settings#v-settings .sg-profile .profile .avatar {
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 4px 0 0 !important;
  background: url("../assets/brand/octagon-frame.svg") center / 100% 100% no-repeat !important;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .55)) drop-shadow(0 0 8px rgba(255, 200, 80, .3));
  color: #F5CF63 !important; font: 700 1.7rem/1 "Cormorant Garamond", Georgia, serif !important; text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
}
html body #v-settings#v-settings .sg-profile .profile .avatar { -webkit-text-fill-color: #F5CF63; }
@media (max-width: 767px) { html body #v-settings#v-settings .sg-profile .profile .avatar { width: 58px !important; height: 58px !important; } }
html body #v-settings#v-settings:is(.st-split, :not(.st-split)) .sg-profile .profile .avatar.avatar {
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: url("../assets/brand/octagon-frame.svg") center / 100% 100% no-repeat !important;
  color: #F5CF63 !important; -webkit-text-fill-color: #F5CF63 !important; font: 700 1.7rem/1 "Cormorant Garamond", Georgia, serif !important;
}
