@font-face {
  font-family: "Webuscard Inter";
  src: url("/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: "Webuscard Inter", Inter, system-ui, sans-serif;
  font-optical-sizing: none;
  color: #171717;
  background: #f5f5f5;
  --dark: #111111;
  --muted: #555555;
  --line: #dddddd;
  --accent: #191919;
  --green: #303030;
  --site-header-height: 72px;
  --site-logo-size: 23px;
  --site-logo-line: 28px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid #747474;
  outline-offset: 3px;
}
aside {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: var(--dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 31px 20px;
}
.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
}
nav {
  display: grid;
  gap: 7px;
  margin-top: 60px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  text-decoration: none;
  border-radius: 9px;
  color: #cccccc;
  font-weight: 650;
  font-size: 15px;
}
nav a[aria-current] {
  background: #333333;
  color: var(--accent);
}
.icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  font-size: 20px;
  line-height: 1;
}
.account {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #404040;
  padding-top: 19px;
  font-size: 14px;
}
.account small {
  display: block;
  color: #cccccc;
  margin-top: 3px;
}
.mini {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8e8e8;
  color: #252525;
  font-weight: 800;
  flex: none;
}
.mini.blue {
  background: #dddddd;
  color: #252525;
}
.mini.rose {
  background: #eeeeee;
  color: #303030;
}
header {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 35px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.badge {
  background: #e9e9e9;
  color: #383838;
  border-radius: 100px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 13px;
}
#content {
  max-width: 1230px;
  margin: auto;
  padding: 37px 36px 55px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 28px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(32px, 4vw, 51px);
  letter-spacing: -0.055em;
  line-height: 1.05;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.045em;
}
h3 {
  font-size: 17px;
}
.heading p,
.muted {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 1fr);
  gap: 20px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 23px;
  min-width: 0;
}
.vcard {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 26px;
  border-radius: 15px;
  background: linear-gradient(135deg, #0e0e0e, #303030);
  color: white;
}
.vcard:before,
.vcard:after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid #ffffff40;
  width: 350px;
  height: 350px;
  border-radius: 38%;
  right: -177px;
  top: -117px;
  transform: rotate(36deg);
}
.vcard:after {
  right: -204px;
  top: -100px;
  width: 400px;
  height: 400px;
  box-shadow:
    0 0 0 19px #ffffff10,
    0 0 0 38px #ffffff10;
}
.vcard .mark {
  color: #ededed;
  font-weight: 750;
  font-size: 14px;
}
.monogram {
  height: 61px;
  width: 61px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--accent);
  color: #191919;
  font-weight: 850;
  font-size: 23px;
  margin-bottom: 13px;
}
.vcard h2 {
  font-size: clamp(28px, 4vw, 40px);
  overflow-wrap: anywhere;
}
.vcard p {
  color: #ebebeb;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.cardFoot {
  border-top: 1px solid var(--card-divider, #ffffff31);
  padding-top: 13px;
  font-size: 14px;
  color: #ebebeb;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 9px 13px;
  font-weight: 750;
  text-decoration: none;
  font-size: 14px;
}
.primary {
  background: var(--accent);
  color: #ffffff;
}
.secondary {
  background: white;
  border-color: var(--line);
  color: #222222;
}
.primary:hover,
.secondary:hover {
  filter: brightness(0.95);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}
.share h2 {
  margin-bottom: 8px;
}
.share .qr {
  margin: 18px auto 12px;
  max-width: 160px;
  display: block;
  width: 100%;
  height: auto;
}
.share .actions button {
  flex: 1;
}
.profileLink {
  font-size: 14px;
  text-align: center;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.contacts {
  margin-top: 20px;
}
.sectionTitle {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
}
.sectionTitle a {
  font-size: 14px;
  font-weight: 750;
  color: var(--green);
  text-decoration: none;
}
.rows {
  display: grid;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.row:last-child {
  border-bottom: 0;
}
.rowInfo {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.rowInfo small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 14px;
}
.row button {
  flex: none;
}
.row .person {
  background: none;
  border: 0;
  text-align: left;
  color: inherit;
  padding: 0;
  font-weight: 750;
}
.empty {
  padding: 14px 0;
  color: var(--muted);
}
input,
textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #bdbdbd;
  border-radius: 8px;
  color: inherit;
  background: white;
}
label {
  display: grid;
  gap: 5px;
  font-size: 14px;
  font-weight: 650;
}
.fields {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.search {
  margin: 8px 0;
}
.info {
  margin-top: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat {
  margin-top: 20px;
}
.bubble {
  max-width: min(85%, 520px);
  padding: 10px 14px;
  border-radius: 12px;
  background: #eeeeee;
  margin: 9px 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.bubble.mine {
  margin-left: auto;
  background: #dedede;
}
.compose {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.compose input {
  flex: 1;
  min-width: 0;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  width: min(490px, calc(100% - 28px));
  max-height: 90dvh;
  padding: 24px;
  box-shadow: 0 16px 60px #00000044;
}
dialog::backdrop {
  background: #111111aa;
}
.close {
  position: absolute;
  right: 10px;
  top: 8px;
}
.close button {
  background: none;
  border: none;
  font-size: 26px;
  color: var(--muted);
  padding: 3px 9px;
}
dialog h2 {
  padding-right: 31px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 4;
  background: #161616;
  color: white;
  border-radius: 9px;
  padding: 12px 18px;
  max-width: calc(100% - 48px);
}
#toast:empty {
  display: none;
}
.public {
  display: block;
}
.public aside {
  display: none;
}
.public #content {
  max-width: 680px;
  padding-top: clamp(14px, 2.2vw, 20px);
}
.public header {
  max-width: 680px;
  margin: auto;
}
.public .vcard {
  min-height: 285px;
}
@media (max-width: 970px) {
  body {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  aside {
    padding: 25px 14px;
  }
  header {
    padding: 0 22px;
  }
  #content {
    padding: 29px 22px 45px;
  }
  .panel {
    padding: 16px;
  }
  .grid {
    gap: 12px;
  }
  .contacts {
    margin-top: 12px;
  }
}
@media (max-width: 730px) {
  body {
    display: block;
    padding-bottom: 67px;
  }
  aside {
    height: 64px;
    z-index: 2;
    padding: 0 16px;
    justify-content: center;
  }
  aside .account {
    display: none;
  }
  aside > nav {
    position: fixed;
    inset: auto 0 0;
    display: flex;
    justify-content: space-around;
    gap: 0;
    margin: 0;
    background: var(--dark);
    padding: 5px 4px max(5px, env(safe-area-inset-bottom));
  }
  aside > nav a {
    flex: 1;
    max-width: 135px;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    padding: 7px 3px;
    text-align: center;
  }
  header {
    height: 46px;
    padding: 0 16px;
  }
  #content {
    padding: 23px 15px 35px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .heading {
    align-items: start;
    margin-bottom: 18px;
  }
  .heading p {
    font-size: 15px;
  }
  .panel {
    padding: 14px;
  }
  .vcard {
    min-height: 265px;
    padding: 20px;
  }
  .share .qr {
    max-width: 136px;
  }
  .row .secondary {
    padding: 7px 9px;
  }
  #toast {
    bottom: 76px;
  }
  .public {
    padding-bottom: 0;
  }
}
@media (max-width: 370px) {
  .heading {
    display: grid;
  }
}
[hidden] {
  display: none !important;
}
.boardForm {
  margin-top: 14px;
}
.boardForm textarea {
  resize: vertical;
  min-height: 85px;
}
.boardControls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.boardControls span,
.boardPost time {
  color: var(--muted);
  font-size: 14px;
}
.primary:disabled {
  opacity: 0.55;
  cursor: default;
}
.boardPosts {
  margin-top: 10px;
}
.boardPost {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.boardPost:last-child {
  padding-bottom: 0;
}
.boardPost p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.boardPost time {
  display: block;
  margin-top: 5px;
}

.monogram {
  background: #fff;
}
nav a[aria-current] {
  color: #fff;
}
.postMeta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.postActions {
  display: flex;
  gap: 6px;
}
.postActions .secondary {
  min-height: 36px;
  padding: 5px 10px;
}
.theme-nero {
  --card-start: #0e0e0e;
  --card-end: #303030;
  --card-accent: #e6edf8;
}
.theme-blu {
  --card-start: #13234b;
  --card-end: #304f86;
  --card-accent: #d9e9ff;
}
.theme-bosco {
  --card-start: #123229;
  --card-end: #2b5a40;
  --card-accent: #e0f2c8;
}
.theme-vino {
  --card-start: #3b1425;
  --card-end: #763049;
  --card-accent: #fbdce6;
}
.theme-indaco {
  --card-start: #291e50;
  --card-end: #514283;
  --card-accent: #e9dfff;
}
.theme-ottanio {
  --card-start: #12363d;
  --card-end: #236772;
  --card-accent: #d0f4ee;
}
.theme-terra {
  --card-start: #421e16;
  --card-end: #863f2d;
  --card-accent: #ffe2cd;
}
.vcard,
.themeChoices span {
  background: linear-gradient(135deg, var(--card-start), var(--card-end));
}
.monogram {
  background: var(--card-accent);
  overflow: hidden;
}
.monogram img,
.mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mini {
  background: #e0efdc;
  color: #314d35;
  overflow: hidden;
}
.mini.blue {
  background: #e0e9fb;
  color: #354b76;
}
.mini.rose {
  background: #f5e0e4;
  color: #703343;
}
.vcard .cardBio {
  font-style: italic;
  white-space: pre-wrap;
  margin-top: 12px;
}
.cardContacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
}
.cardContacts a {
  max-inline-size: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-underline-offset: 3px;
}
.themeChoices,
.photoFields {
  min-width: 0;
  margin: 0;
  padding: 10px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.themeChoices legend,
.photoFields legend {
  padding: 0 5px;
  font-size: 15px;
  font-weight: 700;
}
.themeChoices > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.themeChoices label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.themeChoices label:has(:checked) {
  border-color: #5678a6;
  background: #edf3fc;
  box-shadow: inset 0 0 0 1px #5678a6;
}
.themeChoices label:has(:focus-visible),
.photoControls input:focus-visible + label {
  outline: 2px solid #747474;
  outline-offset: 2px;
}
.themeChoices input,
.photoControls input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.themeChoices b {
  font-weight: 550;
  overflow-wrap: anywhere;
}
.themeChoices span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: none;
}
.photoControls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.photoControls .secondary {
  min-width: 108px;
  min-height: 44px;
  cursor: pointer;
}
.photoFields p {
  margin: 8px 0 0;
  font-size: 13px;
}
.photoFields p:empty {
  display: none;
}
.appearancePreview h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
@media (max-width: 520px) {
  .themeChoices > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#cardDraft {
  pointer-events: none;
}
#cardDraft .vcard {
  min-height: 200px;
  padding: 16px;
  gap: 14px;
}
#cardDraft .monogram {
  height: 48px;
  width: 48px;
  margin-bottom: 8px;
}
#cardDraft h2 {
  font-size: 27px;
}

.vcard {
  container-type: inline-size;
}
.cardLayout {
  display: grid;
  gap: 18px;
  align-items: end;
  flex: 1;
}
.cardIdentity,
.cardFoot {
  min-width: 0;
}
.cardContacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 6px;
}
.cardSocials {
  display: flex;
  flex-wrap: wrap;
  gap: 0 13px;
  margin-top: 9px;
}
.cardSocials a {
  font-size: 14px;
  font-weight: 500;
  color: #f4ebec;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.cardSocials a:hover,
.cardSocials a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@container (min-width: 390px) {
  .cardLayout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(16px, 4cqi, 32px);
  }
  .cardFoot {
    border-top: 0;
    border-left: 1px solid var(--card-divider, #ffffff31);
    padding: 0 0 0 clamp(14px, 3cqi, 24px);
  }
}
.profileTools {
  margin-top: 0;
  justify-content: flex-end;
  flex: none;
}
:is(.fields, .contactFilters) select {
  font: inherit;
  color: inherit;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}
.info p + p {
  margin-top: 14px;
}
#syncStatus:empty {
  display: none;
}
@media (max-width: 730px) {
  .heading:has(.profileTools) {
    display: grid;
  }
  .profileTools {
    justify-content: start;
  }
}
.cardFoot {
  container-type: inline-size;
  overflow-wrap: anywhere;
}
.cardSocials {
  flex-wrap: nowrap;
  gap: clamp(5px, 4cqi, 13px);
  overflow-x: auto;
  padding-inline: 2px;
  white-space: nowrap;
}
.cardSocials a {
  flex: 0 0 auto;
}
.socialCompact {
  display: none;
}
@container (max-width:225px) {
  .socialFull {
    display: none;
  }
  .socialCompact {
    display: inline;
  }
  .cardSocials {
    gap: 13px;
  }
}
.qrPending {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  background: #f7f7f7;
}
.qrPending p {
  line-height: 1.45;
}
.qrPending p + p {
  color: var(--muted);
  font-size: 14px;
}
.qrPending button {
  margin-top: 4px;
}
.createCardLink {
  border-color: #888;
}
.boardPost p a,
.feedAuthor {
  color: var(--green);
  text-underline-offset: 3px;
}
.feedAuthor {
  text-decoration: none;
}
.feedAuthor:hover .identityName {
  text-decoration: underline;
}
#feedList .boardPost:first-child {
  border-top: 0;
  padding-top: 0;
}
.landing {
  display: block;
  padding-bottom: 0;
}
.landingHeader {
  max-width: 1150px;
  margin: auto;
}
.landingMain {
  max-width: 1150px;
  margin: auto;
  padding: 48px 36px;
}
.landingHero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  gap: clamp(24px, 6vw, 82px);
  padding: 28px 0 54px;
}
.landingHero h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.99;
}
.landingHero p,
.landingFeatures p {
  color: var(--muted);
  line-height: 1.55;
  margin: 17px 0;
}
.landingHero .primary {
  margin-top: 5px;
}
.landingCard {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 19px;
  padding: 25px;
  background: radial-gradient(ellipse at 115% 10%, #74609d, #292141 66%);
  color: #fff;
  box-shadow: 0 16px 35px #241d392a;
}
.landingCard > span {
  font-weight: 750;
  margin-bottom: 20px;
}
.landingCard .monogram {
  background: #e9dfff;
}
.landingCard p {
  color: #f2e9ff;
  margin: 5px 0 12px;
}
.landingFeatures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.landingFeatures article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
}
.landingFeatures p {
  margin: 7px 0 0;
}
@media (max-width: 730px) {
  .landingHeader {
    height: 64px;
  }
  .landingMain {
    padding: 22px 16px 36px;
  }
  .landingHero {
    grid-template-columns: 1fr;
    padding: 20px 0 28px;
  }
  .landingFeatures {
    grid-template-columns: 1fr;
  }
  .landingCard {
    min-height: 220px;
  }
}
.checkSetting {
  display: flex;
  align-items: center;
  gap: 9px;
}
.checkSetting input {
  width: auto;
  accent-color: #222;
}
.checkSetting:has(:disabled) {
  opacity: 0.58;
}
.identityName,
.directoryName,
.chatHeading h2 {
  font-weight: 750;
}
.profileIdentity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.directoryName {
  text-underline-offset: 3px;
}
.directoryName:hover {
  text-decoration-thickness: 2px;
}
#directoryMore {
  margin-top: 12px;
}
#saveArea:empty {
  display: none;
}
#exchangeArea:empty {
  display: none;
}
.exchangeActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.exchangeRow .rowInfo small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#content:has(> #realChat:not([hidden])) > :is(.heading, #exchangeList) {
  display: none;
}
#realChat:not([hidden]) {
  display: flex;
  flex-direction: column;
  height: max(245px, calc(100dvh - 132px));
  margin: 0;
}
#realChat > :not(.chatHistory) {
  flex-shrink: 0;
}
#realChat > .chatHistory {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-anchor: none;
  padding-inline: 5px;
}
#realChat .compose {
  margin-top: 8px;
}
.chatBack {
  display: grid;
  flex: 0 0 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.chatHeading {
  flex: 1;
}
.chatHeading h2 {
  font-size: 1rem;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}
.messageMeta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--muted);
}
.chatHistory time {
  font-size: 12px;
}
.messageReceipt {
  display: inline-flex;
}
.messageReceipt[data-read] {
  color: #2453a6;
}
#cardVisitList {
  margin-top: 12px;
}
.chatHistory .bubble p {
  white-space: pre-wrap;
}
.cookieNotice {
  position: fixed;
  inset-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 440px;
  margin-inline-start: auto;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 28px #1822351a;
}
.cookieNoticeCopy { grid-column: 1 / -1; }
.cookieNoticeCopy h2 { font-size: 16px; margin-bottom: 4px; }
.cookieNoticeCopy p { font-size: 14px; line-height: 1.4; color: var(--muted); }
.cookieNotice button { min-height: 44px; }
@media (max-width: 730px) {
  body:not(.public):not(.landing) .cookieNotice {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}
.legalCopy {
  white-space: normal;
}
.legalCopy h2 {
  margin: 21px 0 6px;
}
.landing {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.landing > .share .actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.share .actions button {
  white-space: nowrap;
}
.consoleLink {
  margin-left: auto;
  margin-right: 14px;
  font-weight: 750;
  text-underline-offset: 3px;
}
.consolePage {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  padding-bottom: 0;
  background: #f7f9fc;
  color: #182235;
}
.consoleHeader,
.consoleMain {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}
.consoleMain {
  padding: 34px 35px 48px;
  flex: 1;
}
.consoleMain h1 {
  font-size: clamp(32px, 5vw, 52px);
}
.metricGrid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
}
.metric,
.consolePanel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 17px;
}
.metric h2 {
  font-size: 15px;
  letter-spacing: 0;
}
.metric strong {
  display: block;
  margin: 10px 0 5px;
  font-size: 31px;
  letter-spacing: -0.04em;
}
.metric p,
.consolePanel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.consolePanel {
  margin-top: 16px;
}
.consolePanel > p {
  margin: 7px 0 14px;
}
.consoleSectionTitle {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.periods {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.periods a {
  font-size: 14px;
  color: #eee9f5;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
}
.periods a[aria-current] {
  background: #decceb;
  color: #251e2b;
  font-weight: 750;
}
.tableScroll {
  overflow: auto;
}
.consolePage table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #e8e3ed;
  text-align: left;
}
.consolePage th,
.consolePage td {
  padding: 10px 8px;
  white-space: nowrap;
  border-bottom: 1px solid #413d46;
}
.consolePage tbody th {
  font-weight: 650;
}
.consolePage .cookieNotice {
  color: #171717;
}
@media (max-width: 730px) {
  .consoleMain {
    padding: 24px 15px 32px;
  }
  .consoleHeader {
    height: 64px;
  }
}

/* Shared light interface and the professional workspace. */
:root {
  color: #22212a;
  background: #f9f8fb;
  --muted: #625e6b;
  --line: #e5e1eb;
  --green: #59417e;
  --accent: #292333;
}
.primary {
  background: #292333;
  color: #fff;
  border-radius: 10px;
}
.secondary {
  color: #332a41;
  border-color: #e3ddea;
  border-radius: 10px;
}
.secondary:hover {
  background: #f1edf6;
  filter: none;
}
.panel {
  border-radius: 15px;
  box-shadow: 0 2px 6px #28173505;
}
.heading p,
.muted {
  line-height: 1.5;
}
.heading h1 {
  font-size: clamp(31px, 4vw, 43px);
  letter-spacing: -0.05em;
}
.appShell:not(.public) {
  grid-template-columns: 216px minmax(0, 1fr);
}
.appShell:not(.public) #sidebar {
  background: #fff;
  color: #25212c;
  border-right: 1px solid var(--line);
  padding: 0 16px 14px;
}
.appShell:not(.public) #sidebar .brand {
  min-height: calc(var(--site-header-height) - 1px);
  flex: none;
  padding-inline: 6px;
  color: #292333;
}
.appShell:not(.public) #nav {
  margin-top: 16px;
  gap: 5px;
}
.appShell:not(.public) #nav a {
  color: #51495e;
  font-size: 15px;
  font-weight: 630;
  border-radius: 9px;
}
.appShell:not(.public) #nav a:hover {
  background: #f7f4fa;
  color: #352749;
}
.appShell:not(.public) #nav a[aria-current] {
  color: #442f64;
  background: #eee8f6;
  font-weight: 750;
}
.appShell:not(.public) #nav .icon {
  width: 19px;
  height: 19px;
  flex: none;
}
.appShell:not(.public) .account {
  border-color: var(--line);
  padding-top: 14px;
}
.appShell:not(.public) .account small {
  color: var(--muted);
}

.appShell:not(.public) .appHeader {
  height: 58px;
  background: #fff;
  padding-inline: clamp(20px, 4vw, 44px);
}
.appShell:not(.public) .badge {
  background: #eee9f4;
  color: #55496a;
  font-size: 13px;
}
.appShell:not(.public) #content {
  max-width: 1120px;
  padding: 30px clamp(18px, 4vw, 44px) 44px;
}
.appShell:not(.public):is(
    [data-view="feed"],
    [data-view="rubrica"],
    [data-view="esplora"],
    [data-view="messaggi"]
  )
  #content {
  max-width: 900px;
}
.appShell:not(.public) .heading {
  margin-bottom: 20px;
}
.appShell:not(.public) .heading .actions {
  align-items: center;
}
#feedList .boardPost {
  padding-block: 16px;
}
.boardPost p {
  line-height: 1.55;
}
.landingHeader,
.consoleHeader {
  width: 100%;
  flex-shrink: 0;
  margin: 0 auto;
  gap: 18px;
}
.landingHeader > .secondary,
.consoleHeader > .secondary {
  margin-left: auto;
  flex-shrink: 0;
}
.landingHeader .brand,
.consoleHeader .brand {
  color: #292333;
  min-width: 0;
}
.landingMain {
  width: 100%;
  margin-block: 0;
  flex: 1;
}
.consoleHeader {
  background: transparent;
  color: #292333;
  border-color: var(--line);
}
.consoleMain .metric,
.consolePanel {
  background: #fff;
  border-color: var(--line);
}
.consoleMain .metric p,
.consolePanel p,
.consolePage table,
.consolePage .periods a {
  color: #392e46;
}
.consolePage th,
.consolePage td {
  border-color: var(--line);
}
.consolePage .periods a[aria-current] {
  background: #eee8f6;
  color: #442f64;
}
.public .appHeader {
  margin-block: 0;
}
@media (max-width: 730px) {
  .appShell:not(.public) #nav {
    margin: 0;
    background: #fff;
    border-top: 1px solid var(--line);
  }
  .appShell:not(.public) #nav a {
    font-size: 11px;
  }
  .appShell:not(.public) .appHeader {
    height: 43px;
  }
  .appShell:not(.public) #content {
    padding-top: 23px;
  }
  .landingHeader,
  .consoleHeader {
    gap: 12px;
  }
  .landingHeader > .secondary,
  .consoleHeader > .secondary {
    padding-inline: 9px;
  }
}
.cardActionLink {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--green);
  text-decoration: none;
}
.cardActionLink:hover,
.cardActionLink:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.public.appShell .appHeader {
  height: var(--site-header-height);
  gap: 16px;
  justify-content: space-between;
}
.public.appShell #breadcrumb,
.public.appShell .appHeader .badge,
.public.appShell .consoleLink {
  display: none;
}
.publicBrand {
  display: none;
  color: #292333;
  text-decoration: none;
}
.public.appShell .publicBrand {
  display: block;
}
.publicCard .vcard {
  --card-divider: #ffffff2b;
  border-radius: 16px;
}
.publicUpdates {
  margin-top: clamp(14px, 3vw, 20px);
  padding: clamp(16px, 3.5vw, 22px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.publicUpdates h2 {
  font-size: 20px;
  margin-bottom: 12px;
}
.publicUpdates article + article {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.publicUpdates time {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}
.publicUpdates article p {
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.publicUpdates article a {
  color: var(--green);
  text-underline-offset: 3px;
}
.updatesEmpty {
  color: var(--muted);
  font-size: 14px;
}
.postLinkCard {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 36rem;
  margin-block: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f9fc;
  text-decoration: none;
}
.postLinkCard:hover {
  background: #eef3fa;
}
.postLinkIcon {
  flex: 0 0 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e3ecfa;
  color: #243e6a;
}
.postLinkDetails {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
  font-size: 14px;
}
.postLinkDetails > * {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.postLinkDetails > span {
  font-weight: 450;
  color: var(--muted);
  font-size: 13px;
}
.postLinkArrow {
  flex: none;
  color: var(--muted);
}
.postLinkDetails > small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.hasPostLinkMetadata .postLinkDetails > :is(strong, span) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow-wrap: anywhere;
}
.postLinkPhoto {
  display: block;
  flex: none;
  width: clamp(80px, 23vw, 144px);
  aspect-ratio: 1.91;
  object-fit: contain;
  border-radius: 7px;
}
.publicUpdates .postLinkCard:has(.postLinkPhoto) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  max-width: none;
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.publicUpdates .postLinkPhoto {
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: 0;
}
.publicUpdates .postLinkCard:has(.postLinkPhoto) .postLinkDetails {
  padding: 12px;
}
.publicUpdates .postLinkCard:has(.postLinkPhoto) .postLinkArrow {
  margin-inline-end: 12px;
}
.cardTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
}
.cardTop:has(.cardIcons) {
  position: relative;
}
.cardIcons {
  position: absolute;
  top: -7px;
  right: -7px;
  display: flex;
  gap: 5px;
}
.cardDownload {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #ffffff13;
}
.cardDownload:hover,
.cardDownload:focus-visible {
  background: #ffffff29;
}
.cardDownload:focus-visible {
  outline-color: #fff;
}
.brand,
.publicBrand {
  font-size: var(--site-logo-size);
  line-height: var(--site-logo-line);
  font-weight: 750;
  letter-spacing: -0.045em;
}
.vcard .mark,
.landingCard > span {
  font-weight: 800;
  letter-spacing: -0.045em;
}
.appShell[data-loading] #sidebar > :not(.brand),
.appShell[data-loading]:not(.public) .appHeader {
  visibility: hidden;
}
.public.appShell .appHeader {
  width: 100%;
  flex-shrink: 0;
}

/* Product surfaces, controls, and interaction states. */
:root {
  color: #182235;
  background: #f7f9fc;
  --muted: #536174;
  --line: #dfe6ef;
  --green: #2453a6;
  --accent: #182235;
}
.primary,
.secondary {
  min-height: 42px;
  border-radius: 9px;
  line-height: 1.2;
}
.primary {
  background: #182235;
  color: #fff;
}
.primary:hover {
  background: #2b3b57;
  filter: none;
}
.secondary {
  color: #20304c;
  border-color: #dce4ef;
}
.secondary:hover {
  background: #edf3fa;
}
.primary:disabled,
.secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
input,
textarea {
  border-color: #c9d4e3;
}
.heading p {
  max-width: 62ch;
}
.appShell:not(.public) #sidebar .brand,
.landingHeader .brand,
.consoleHeader .brand,
.publicBrand {
  color: #182235;
}
.appShell:not(.public) #nav a {
  color: #40506a;
}
.appShell:not(.public) #nav a:hover {
  background: #f1f5fa;
  color: #1e4079;
}
.appShell:not(.public) #nav a[aria-current] {
  color: #18437e;
  background: #e9f1fd;
}
.appShell:not(.public) .badge {
  background: #edf2f8;
  color: #405171;
}
.consolePage,
.appShell:not(.public),
.landing {
  background: #f7f9fc;
}
.consolePage .periods a[aria-current] {
  background: #e7effd;
  color: #1e4a90;
}
.qrPending {
  background: #f6f8fc;
}
.landing .landingHeader {
  max-width: 1180px;
  height: var(--site-header-height);
  padding-inline: clamp(16px, 4vw, 42px);
}
.landingMain {
  max-width: 1180px;
  padding-inline: clamp(16px, 4vw, 42px);
}
.landingHero {
  padding: 32px 0 42px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
}
.landingHero h1 {
  font-size: clamp(43px, 6vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.058em;
}
.landingIntro p {
  max-width: 45ch;
  margin: 20px 0 22px;
}
.landingIntro .landingCreate {
  width: min(100%, 340px);
  min-height: 56px;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 18px;
  text-align: start;
}
.landingCreate svg { flex: none; }
.landingProduct {
  padding: clamp(18px, 3vw, 36px);
  border-radius: 20px;
  background: #e9f0fc;
}
.landingCard {
  background: radial-gradient(ellipse at 110% 5%, #4772a4, #172b48 67%);
  padding: 24px;
  min-height: 244px;
  border-radius: 15px;
  box-shadow: 0 12px 25px #172b4827;
}
.landingCard .monogram {
  background: #dceaff;
}
.landingCard p {
  color: #e4eefc;
}
.landingCardSocials {
  display: flex;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
}
.landingFeatures article {
  padding: 19px;
  box-shadow: 0 2px 6px #21375506;
}
.landingFeatures h2 {
  font-size: 20px;
  letter-spacing: -0.025em;
}
.publicUpdates h2 {
  letter-spacing: -0.025em;
}
.cookieNotice {
  color: #182235;
}
@media (max-width: 730px) {
  :root {
    --site-header-height: 57px;
  }
  :is(.appShell, .landing, .consolePage) {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  .appShell:not(.public) #sidebar,
  .public.appShell .appHeader,
  .landing .landingHeader,
  .consoleHeader {
    height: var(--site-header-height);
    max-width: none;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: #f7f9fc;
  }
  .appShell:not(.public) #sidebar .brand {
    padding-inline: 0;
  }
  .landingHero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px 0 24px;
  }
  .landingIntro .landingCreate {
    width: 100%;
  }
  .landingCard {
    min-height: 205px;
  }
  .appShell:not(.public) #nav a {
    min-height: 45px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.consoleMain h1, .consoleMain h2, .metric strong { color: #182235; }
.metricGrid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.metric strong { font-variant-numeric: tabular-nums; }
input, textarea, select { font-weight: 400; }
dialog:has(#editForm) { width: min(620px, calc(100vw - 24px)); }
#editForm { margin-top: 18px; }
.editorData, .editorAppearance { display: grid; align-content: start; gap: 12px; min-width: 0; }
.editorGroup { min-width: 0; margin: 0; padding: 0; border: 0; }
.editorGroup legend { padding: 0 0 9px; font-size: 15px; font-weight: 700; }
.editorGroup > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.editorGroup label, .editorAppearance label { font-weight: 550; font-size: 14px; }
.editorWide, .editorGroup label:has(input[name=url]) { grid-column: 1 / -1; }
#editor-social .editorGroup > div { grid-template-columns: minmax(0, 1fr); }
.editorFooter { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 0 3px; margin-top: 15px; background: #fff; border-top: 1px solid var(--line); }
@media (max-width: 730px) {
  #editor-data .editorGroup > div { grid-template-columns: minmax(0, 1fr); }
}

/* Links on light surfaces use the site-wide black treatment. */
a:any-link:not(.vcard a, .footerBrand) {
  color: #000 !important;
  font-weight: 750 !important;
}
a.primary {
  background: #dceafa;
  border-color: #b7cfe9;
}
a.primary:hover {
  background: #c9e0f7;
}
.vcard .cardContacts a,
.vcard .cardSocials a {
  color: #fff;
  font-weight: 600;
}
.vcard .socialFull {
  display: none;
}
.vcard .socialCompact {
  display: inline;
}

.editorTabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 10px; background: #f2f5f9; }
.editorTabs button { min-width: 0; padding: 7px 5px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #43526a; font-size: 14px; font-weight: 650; }
.editorTabs button[aria-selected=true] { background: #fff; border-color: var(--line); color: #182235; }
.editorAppearance #cardDraft .vcard { min-height: 205px; }

.vcard :is(.cardFollowControl, .cardMessage button, .cardConnections button) {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
}
.vcard .cardFollowControl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 116px;
  block-size: 44px;
  gap: 6px;
  color: #192339;
  background: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.vcard .cardFollowControl[aria-pressed="true"] {
  color: #fff;
  background: #ffffff14;
  border-color: #ffffff42;
}
.cardActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-top: 13px;
  border-top: 1px solid var(--card-divider, #ffffff31);
}
.cardConnections {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.vcard .cardConnections button {
  color: #fff;
  padding-inline: 6px;
  background: transparent;
  font-weight: 500;
}
.vcard .cardMessage button {
  color: #192339;
  background: #fff;
}
.cardMessage[hidden] {
  display: block !important;
  visibility: hidden;
}
.vcard .cardContactAction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 4px;
  color: #f0f5ff;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
}
.vcard .cardContactAction:hover {
  text-decoration: underline;
}
.vcard .cardContactAction:focus-visible {
  outline-color: #fff;
}
.vcard :is(.cardFollowControl, .cardMessage button, .cardConnections button):hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vcard :is(.cardFollowControl, .cardMessage button, .cardConnections button):focus-visible {
  outline-color: #fff;
}
.connectionList {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}
.connectionPerson {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.connectionPerson:hover strong {
  text-decoration: underline;
}

.publicCard,
.cardOwner {
  container: card-surface / inline-size;
}

@container card-surface (max-width: 590px) {
  .publicCard .vcard,
  .cardOwner .vcard {
    aspect-ratio: 2.13;
    min-height: min-content;
    padding: 4.3cqi;
    gap: 3.4cqi;
    border-radius: clamp(11px, 2.5cqi, 16px);
  }
  :is(.publicCard, .cardOwner) .cardTop {
    min-height: clamp(15px, 4cqi, 22px);
  }
  :is(.publicCard, .cardOwner) .vcard .mark {
    font-size: clamp(10px, 2.5cqi, 14px);
  }
  :is(.publicCard, .cardOwner) .vcard::before {
    width: 62cqi;
    height: 62cqi;
    right: -31cqi;
    top: -21cqi;
  }
  :is(.publicCard, .cardOwner) .vcard::after {
    width: 71cqi;
    height: 71cqi;
    right: -36cqi;
    top: -18cqi;
    box-shadow: 0 0 0 3.4cqi #ffffff10, 0 0 0 6.8cqi #ffffff10;
  }
  :is(.publicCard, .cardOwner) .cardLayout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 4cqi;
  }
  :is(.publicCard, .cardOwner) .monogram {
    width: 10.8cqi;
    height: 10.8cqi;
    margin-bottom: 2.25cqi;
    border-radius: 2.8cqi;
    font-size: clamp(12px, 4cqi, 23px);
  }
  :is(.publicCard, .cardOwner) .vcard h2 {
    font-size: clamp(16px, 6.9cqi, 40px);
    line-height: 1.05;
  }
  :is(.publicCard, .cardOwner) .vcard p {
    font-size: clamp(10.5px, 2.85cqi, 16px);
    line-height: 1.3;
    margin-top: 1cqi;
  }
  :is(.publicCard, .cardOwner) .vcard .cardBio {
    margin-top: 1.8cqi;
  }
  :is(.publicCard, .cardOwner) .cardFoot {
    container-type: normal;
    border-top: 0;
    border-left: 1px solid var(--card-divider, #ffffff31);
    padding: 0 0 0 2.8cqi;
    font-size: clamp(10.5px, 2.55cqi, 14px);
    line-height: 1.27;
  }
  :is(.publicCard, .cardOwner) .cardContacts {
    gap: 0.6cqi;
    margin-top: 1.5cqi;
  }
  :is(.publicCard, .cardOwner) .cardSocials {
    gap: 2cqi;
    margin-top: 1.35cqi;
  }
  :is(.publicCard, .cardOwner) .cardSocials a {
    min-height: clamp(19px, 5.7cqi, 32px);
    font-size: inherit;
  }
  :is(.publicCard, .cardOwner) .cardDownload {
    width: clamp(32px, 7.5cqi, 42px);
    height: clamp(32px, 7.5cqi, 42px);
  }
  :is(.publicCard, .cardOwner) .cardIcons {
    right: -1.1cqi;
    top: -1.1cqi;
  }
  :is(.publicCard, .cardOwner) .cardDownload svg {
    width: clamp(15px, 3.4cqi, 19px);
    height: auto;
  }
}

@container card-surface (max-width: 590px) {
  :is(.publicCard, .cardOwner) .cardLayout {
    flex: 1 0 auto;
  }
}
@container card-surface (max-width: 330px) {
  .publicCard .vcard,
  .cardOwner .vcard {
    gap: 2cqi;
    padding-block: 3cqi;
  }
  :is(.publicCard, .cardOwner) .vcard h2 {
    font-size: clamp(14px, 6cqi, 21px);
  }
  :is(.publicCard, .cardOwner) .cardSocials {
    margin-top: 0.65cqi;
  }
}

@media (max-width: 730px) {
  .public.appShell {
    overflow-x: clip;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  .public.appShell :is(.appMain, .publicCard) {
    min-width: 0;
    max-width: 100%;
  }
  :is(.publicCard, .cardOwner) .vcard {
    width: 100%;
    aspect-ratio: auto;
    min-height: 0;
    padding: clamp(14px, 4.5cqi, 24px);
    gap: 18px;
  }
  :is(.publicCard, .cardOwner) .vcard .mark {
    font-size: 13px;
  }
  .vcard .cardLayout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    flex: 0 1 auto;
  }
  .vcard .monogram {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    border-radius: 12px;
    font-size: 19px;
  }
  .vcard .cardIdentity h2 {
    font-size: clamp(24px, 7.2cqi, 36px);
    line-height: 1.1;
  }
  :is(.publicCard, .cardOwner) .vcard p {
    font-size: 15px;
    line-height: 1.4;
    margin-top: 5px;
  }
  .vcard .cardFoot {
    border-left: 0;
    border-top: 1px solid var(--card-divider, #ffffff31);
    padding: 13px 0 0;
    font-size: clamp(12.5px, 4.8cqi, 15px);
    line-height: 1.4;
  }
  .vcard .cardFoot:empty {
    display: none;
  }
  .vcard .cardContacts {
    gap: 5px;
    margin-top: 7px;
  }
  .cardContacts:first-child {
    margin-top: 0;
  }
  .publicCard .vcard {
    --card-section-gap: 16px;
    min-height: 0;
    padding: clamp(18px, 4.8cqi, 24px);
    gap: var(--card-section-gap);
    border-radius: 20px;
  }
  .publicCard .cardIcons {
    position: static;
  }
  .publicCard .cardLayout {
    flex: 0 1 auto;
    align-content: start;
    gap: var(--card-section-gap);
  }
  .publicCard .vcard .cardFoot {
    padding-block-start: var(--card-section-gap);
  }
  .publicCard .vcard .cardBio {
    margin-top: 8px;
  }
  .publicCard .vcard .cardContacts {
    gap: 5px;
    margin-top: 8px;
  }
  .publicCard .vcard .cardContacts:first-child {
    margin-top: 0;
  }
  .publicCard .cardActions {
    padding-top: 8px;
  }
  .publicCard .cardConnections {
    margin-inline-start: -7px;
  }
  .publicCard .monogram {
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 16px;
    font-size: 24px;
  }
  .publicCard .cardIdentity h2 {
    font-size: clamp(26px, 8cqi, 40px);
  }
  .publicCard .cardMessage,
  .publicCard .cardMessage button {
    width: 100%;
  }
}

@media (min-width: 731px) {
  .publicCard .cardLayout {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
    column-gap: clamp(16px, 3cqi, 24px);
  }
  .publicCard .cardIdentity h2 {
    font-size: clamp(26px, 5.8cqi, 34px);
    line-height: 1.1;
    text-wrap: balance;
  }
}

.cardToolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 16px;
}
.cardToolbar :is(button, a) {
  min-height: 38px;
  padding-inline: 11px;
  font-size: 14px;
}
.cardWorkspace {
  align-items: start;
}
.cardWorkspace .share .qr {
  margin-block: 12px 6px;
}
.cardWorkspace .qrPending {
  padding: 12px;
}
@media (max-width: 480px) {
  .cardToolbar {
    gap: 6px;
  }
  .cardToolbar :is(button, a) {
    padding-inline: 8px;
  }
}

@media (max-width: 730px) {
  .appShell:not(.public):has(#realChat:not([hidden])) .appHeader {
    display: none;
  }
  .appShell:not(.public) #content:has(> #realChat:not([hidden])) {
    padding-block: 10px 0;
  }
  #realChat:not([hidden]) {
    height: max(245px, calc(100dvh - 130px - env(safe-area-inset-bottom, 0px)));
  }
  .cardToolbar {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 5px;
  }
  .cardToolbar {
    flex-wrap: nowrap;
    padding: 3px 3px 5px;
    scrollbar-width: thin;
  }
  .cardToolbar :is(button, a) {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .appShell:not(.public) #nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 4px max(4px, env(safe-area-inset-right, 0px))
      max(4px, env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left, 0px));
  }
  .appShell:not(.public) #nav a {
    display: grid;
    place-items: center;
    min-width: 0;
    max-width: none;
    min-height: 48px;
    padding: 0;
  }
  .appShell:not(.public) #nav .icon {
    width: 28px;
    height: 28px;
  }
  .appShell:not(.public) #nav .navLabel {
    display: none;
  }
}

.productEmpty {
  padding: 18px 0;
  max-width: 54ch;
}
.productEmpty h2 {
  font-size: 19px;
  letter-spacing: -.025em;
}
.productEmpty p {
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}
.productEmpty :is(a, button) {
  margin-top: 13px;
}
#results .productEmpty {
  padding-block: 12px 4px;
}
.cardWorkspace .share {
  text-align: center;
}
.cardWorkspace .share .profileLink a {
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.showcase { margin: 0 0 28px; }
.showcase h2 { margin-bottom: 12px; }
.showcaseGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.showcaseRail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  padding: 4px 4px 8px;
}
.showcaseRail .showcaseCard {
  flex: 0 0 auto;
  width: max-content;
  min-width: min(250px, 84%);
  max-width: 84%;
  scroll-snap-align: start;
}
#feedList .productEmpty {
  max-width: none;
}

.publicFooter {
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.publicFooterInner {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding: 14px clamp(16px, 4vw, 42px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 20px;
}
.publicFooter .footerBrand { color: #797f89; }
.public.appShell:has(> .cardPageFooter) {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}
.public.appShell:has(> .cardPageFooter) #content {
  padding-bottom: 22px;
}
.cardPageFooter {
  width: min(100%, 680px);
  margin-inline: auto;
}
.cardPageFooter .publicFooterInner {
  padding: 4px 35px max(4px, env(safe-area-inset-bottom));
}
.cardPageFooter .footerBrand,
.cardPageCreate {
  min-height: 44px;
}
.cardPageCreate {
  display: inline-flex;
  align-items: center;
  font-size: .875rem;
  font-weight: 700;
  text-underline-offset: 3px;
}
@media (max-width: 970px) {
  .cardPageFooter .publicFooterInner { padding-inline: 22px; }
}
@media (max-width: 730px) {
  .publicFooter .publicFooterInner { padding-inline: 16px; }
}
.publicFooter nav,
.cookieNotice nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  margin: 0;
}
.publicFooter nav a,
.cookieNotice nav a {
  padding: 6px 0;
  min-height: 44px;
  font-size: 14px;
}
.publicFooter nav a:hover,
.cookieNotice nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.serviceMain {
  width: min(100%, 800px);
  margin-inline: auto;
  padding: clamp(20px, 5vw, 54px) clamp(16px, 4vw, 42px);
}
.serviceMain .panel { padding: clamp(20px, 5vw, 38px); }
.serviceMain h1 { font-size: clamp(29px, 5vw, 44px); }
.serviceMain .legalCopy {
  margin-top: 18px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.serviceMain .legalCopy h2 { font-size: 19px; line-height: 1.25; }
.serviceMain .legalCopy .actions { margin-top: 20px; }
.loginMain {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px 20px clamp(44px, 11svh, 104px);
}
.loginCard {
  width: min(100%, 380px);
  padding: clamp(22px, 6vw, 32px);
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}
.loginCard h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}
.loginOptions {
  width: 100%;
  display: grid;
  gap: 12px;
}
.loginContinue {
  width: 100%;
  min-height: 48px;
}
.loginOptions p {
  margin: 0;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
  text-wrap: pretty;
}
.registrationMain {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: clamp(20px, 5vw, 58px) 16px;
}
.registrationCard { padding: clamp(20px, 5vw, 36px); }
.registrationCard h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.06; }
.registrationCard > p { margin-top: 12px; color: var(--muted); }
.registrationSteps {
  padding-inline-start: 1.4em;
  margin: 24px 0;
  display: grid;
  gap: 14px;
}
.registrationSteps li { padding-inline-start: 5px; }
.registrationSteps li::marker { color: #2453a6; font-weight: 750; }
.registrationSteps span { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.registrationContinue { min-height: 48px; width: 100%; }
.registrationCard .registrationPrivacy { font-size: 13px; line-height: 1.5; }
.showcaseCard { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; }
.showcaseCard:hover { border-color: #9dafcb; background: #f3f7fd; }
.rowInfo .followUp { color: #2453a6; }
.visitSetting {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.visitSetting .muted {
  font-size: .875rem;
  margin-top: 6px;
}

.addressPrefix { margin-top: 0; font-weight: 400; overflow-wrap: anywhere; }
.addressStatus {
  min-height: 1.35em;
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.addressStatus[data-state="success"] { color: #226540; }
.addressStatus[data-state="error"] { color: #a42632; }

:is(#profileSettings select[name="visibility"], .contactFilters select) {
  appearance: none;
  padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2343526a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: right 14px center;
}
@media (forced-colors: active) {
  :is(#profileSettings select[name="visibility"], .contactFilters select) {
    appearance: auto;
    padding-inline-end: 10px;
    background-image: none;
  }
}

/* A stable frame keeps the editor's tabs and actions in place. */
dialog:has(#editForm) {
  box-sizing: border-box;
  height: min(700px, 88dvh);
  max-height: none;
  overflow: hidden;
}
dialog:has(#editForm) #dialogContent {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
#editForm {
  display: grid;
  flex: 1 1 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.editorScroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  padding: 4px 5px 8px 2px;
}
.editorFooter {
  flex-wrap: wrap;
  margin-top: 5px;
}
.editorSaveStatus {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.editorSaveStatus:empty { display: none; }
.appShell #nav a { font-weight: 750; }
@media (max-width: 730px), (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]), textarea, select, .fields select {
    font-size: max(16px, 1rem);
  }
}
[data-pointer-focus] :is(input, textarea, select, [contenteditable="true"]):focus-visible,
[data-pointer-focus] :is(.boardPost, #boardTitle):focus,
dialog[data-touch-focus] button:focus-visible {
  outline: none;
}
@media (max-width: 480px) {
  dialog:has(#editForm) { padding: 16px; height: min(680px, 91dvh); }
  .editorTabs button, .editorFooter button { min-height: 44px; }
}

#notificationsButton { position: relative; flex: 0 0 40px; min-height: 40px; display: grid; place-items: center; margin-left: auto; border-radius: 8px; border: 0; background: transparent; color: #182235; }
#notificationsButton:hover { background: #e9f1fd; }
.appHeader:has(#notificationsButton:not([hidden])) .consoleLink { margin-inline: 6px; }
.appHeader:has(#notificationsButton:not([hidden])) .badge { margin-left: 6px; }
#notificationCount { position: absolute; right: 0; top: 1px; min-width: 16px; border-radius: 10px; padding: 1px 4px; background: #2453a6; color: white; font-size: 11px; font-weight: 750; }
.notificationList { list-style: none; margin: 12px 0 0; padding: 0; }
.notificationList li { padding: 12px 0; border-top: 1px solid var(--line); }
.notificationList time { color: var(--muted); font-size: 13px; }
@media (max-width: 420px) {
  .appShell:not(.public) .appHeader #breadcrumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .appHeader .consoleLink { margin-right: 4px; }
  .exchangeRow {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 12px;
  }
  .exchangeActions:not(:empty) {
    grid-column: 2;
    justify-content: flex-start;
  }
  .exchangeActions button {
    min-height: 44px;
  }
}

.contactPreviewRow { text-decoration: none; }
.contactPreviewRow:hover .rowInfo { text-decoration: underline; text-underline-offset: 3px; }

.postInteractions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: .875rem;
}
.postInteractions > :is(button, a, span) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
}
.postInteractions button {
  background: transparent;
  border: 0;
  color: inherit;
  font-weight: 650;
}
.postInteractions button:hover,
.postInteractions button[aria-pressed="true"] {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.postInteractions [data-post-count] {
  font-variant-numeric: tabular-nums;
}
.repostContext {
  color: var(--muted);
  font-size: .875rem;
}
.postComment {
  border-top: 1px solid var(--line);
  padding-block: 12px;
}
.postCommentReply {
  margin-inline-start: 10px;
  padding-inline-start: 12px;
  border-top: 0;
  border-inline-start: 2px solid var(--line);
}
.postCommentCount {
  display: block;
  text-align: end;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}
.postComment time {
  display: block;
  color: var(--muted);
  font-size: .8125rem;
}
.postComment p {
  margin-block: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

:is(.postLikes, .postReposts) {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
:is(.postLikes, .postReposts) > :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
}
.postLikes > .postLikeToggle {
  min-width: 44px;
}
.postLikeToggle[aria-pressed="true"] svg {
  fill: currentColor;
}
.postLikeList .row {
  text-decoration: none;
}
.publicUpdates article[id] {
  scroll-margin-top: 16px;
}

.postCommentActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}
.postCommentActions button {
  border: 0;
  background: transparent;
  padding: 4px 0;
  min-height: 32px;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
}
.postCommentActions button:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.postReplyContext {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .8125rem;
}
.inlineCommentForm {
  margin-top: 6px;
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--line);
}
.inlineCommentForm textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
}

.emailSettings {
  display: grid;
  gap: 8px;
  min-inline-size: 0;
  margin: 0;
  padding: 10px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.emailSettings legend {
  padding-inline: 4px;
  font-weight: 700;
}
.emailSettings .muted {
  margin: 0;
}


.cardName > span {
  display: inline-block;
  white-space: nowrap;
}
.cardNameBreakable > span {
  display: inline;
  white-space: normal;
}
.billingEditor > p {
  margin: 0 0 12px;
  font-size: 14px;
}
.cardBilling {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--accent);
}
.cardBilling summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.cardBilling summary::-webkit-details-marker {
  display: none;
}
.cardBilling summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-inline-end: 4px;
}
.cardBilling[open] summary::after {
  transform: rotate(225deg);
}
.cardBilling dl {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,190px),1fr));
  gap: 14px 20px;
  margin: 0;
  padding: 14px;
  border-top: 1px solid var(--line);
}
.cardBilling dt {
  color: var(--muted);
  font-size: 13px;
}
.cardBilling dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.contactFilters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 12px;
  margin-block: 14px;
}
.contactFilters label {
  flex: 0 1 218px;
  min-width: 0;
}
.contactFilters select {
  display: block;
  width: 100%;
  min-height: 42px;
}
.contactFilters button[aria-pressed="true"] {
  border-color: #b9cde8;
  background: #e9f1fd;
  color: #18437e;
}
.contactCategory {
  font-weight: 650;
}


.chatPostPreview:not([hidden]) {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.chatPostPreview small {
  text-decoration: underline;
}

.postCounterLabel {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
