:root {
  color-scheme: light;
  --ink: #271f27;
  --ink-soft: #50454f;
  --muted: #817681;
  --soft: #a79ca6;
  --line: #e9e0e4;
  --line-strong: #d9cbd2;
  --bg: #f8f5f2;
  --surface: #fff;
  --surface-soft: #fdf9f8;
  --tint: #fff0f4;
  --rose: #c33e68;
  --rose-dark: #8c294d;
  --rose-deep: #67213c;
  --orange: #ed874b;
  --green: #257653;
  --green-bg: #e9f5ee;
  --warning: #94601c;
  --warning-bg: #fff4df;
  --danger: #a43e43;
  --danger-bg: #fff0ee;
  --focus: #7d2c98;
  --radius: 20px;
  --radius-small: 12px;
  --radius-large: 28px;
  --shadow-soft: 0 8px 28px rgba(62, 34, 48, .045);
  --shadow-card: 0 18px 48px rgba(62, 34, 48, .09);
  --shadow-float: 0 28px 70px rgba(43, 24, 36, .18);
  --sidebar: 252px;
  --font: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
  --latin: 'Manrope', 'Hind Siliguri', system-ui, sans-serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.22, 1.2, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--bg); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 92% 6%, rgba(241, 188, 191, .18), transparent 27rem),
    radial-gradient(ellipse at 5% 58%, rgba(244, 222, 206, .2), transparent 30rem),
    var(--bg);
  font: 16px/1.62 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }
a:not(.button):hover { color: var(--rose-dark); }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; flex: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.28; letter-spacing: -.018em; }
h1 { margin-bottom: 10px; font-size: clamp(29px, 3vw, 40px); font-weight: 700; }
h2 { margin-bottom: 8px; font-size: 22px; font-weight: 700; }
h3 { margin-bottom: 6px; font-size: 18px; font-weight: 700; }
p { color: var(--ink-soft); }
.latin { font-family: var(--latin); }
.muted { color: var(--muted) !important; }
.small { font-size: 13px; }
.eyebrow, .page-kicker {
  color: var(--rose-dark);
  font: 700 11px/1.5 var(--latin);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow { margin: 0 0 9px; }
.page-kicker { margin-bottom: 7px; }
.skip-link { position: absolute; z-index: 1000; left: 14px; top: -60px; padding: 10px 15px; border-radius: 9px; background: #fff; box-shadow: var(--shadow-card); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { color: var(--rose-deep); background: #f7c6d4; }
[hidden] { display: none !important; }

/* Member app shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; z-index: 30; display: flex; height: 100vh; flex-direction: column;
  padding: 25px 16px 18px; border-right: 1px solid rgba(222, 208, 215, .75);
  background: rgba(255, 253, 252, .88); backdrop-filter: blur(22px);
}
.brand { display: flex; min-height: 57px; align-items: center; gap: 11px; padding: 0 10px 21px; text-decoration: none; }
.brand-mark {
  position: relative; isolation: isolate; display: grid; width: 42px; height: 42px; flex: none; place-items: center;
  overflow: hidden; border: 1px solid rgba(255,255,255,.48); border-radius: 15px;
  color: #fff; background: linear-gradient(145deg, #d84976 4%, #b0325e 56%, #88254d 100%);
  box-shadow: 0 7px 16px rgba(177, 50, 95, .22); font: 800 22px/1 var(--latin); transform: rotate(-5deg);
}
.brand-mark::after { position: absolute; z-index: -1; top: -10px; right: -8px; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.46); border-radius: 50%; content: ''; }
.brand-copy strong { display: block; color: var(--ink); font: 800 16px/1.15 var(--latin); letter-spacing: -.05em; }
.brand-copy small { display: block; margin-top: 4px; color: var(--rose-dark); font: 700 10px/1.2 var(--latin); letter-spacing: .14em; text-transform: uppercase; }
.sidebar-label { margin: 18px 0 8px; padding: 0 12px; color: #9b8f99; font: 700 10px/1.4 var(--latin); letter-spacing: .13em; text-transform: uppercase; }
.nav-list { display: grid; gap: 4px; }
.nav-link {
  position: relative; display: flex; width: 100%; min-height: 45px; align-items: center; gap: 12px;
  padding: 9px 12px; border: 1px solid transparent; border-radius: 13px; color: #685d67;
  background: transparent; font-weight: 600; line-height: 1.35; text-align: left; text-decoration: none;
  transition: color .22s var(--ease-out), background .22s var(--ease-out), border-color .22s var(--ease-out), transform .22s var(--ease-spring);
}
.nav-link:hover { border-color: rgba(219, 177, 192, .45); color: var(--rose-dark); background: #fff8fa; transform: translateX(2px); }
.nav-link[aria-current=page] { border-color: #f1d5df; color: var(--rose-dark); background: linear-gradient(100deg, #fff0f4, #fff9f8); box-shadow: inset 3px 0 0 var(--rose); }
.nav-icon { width: 19px; height: 19px; flex: none; stroke-width: 1.8; }
.nav-link[aria-current=page] .nav-icon { filter: drop-shadow(0 2px 5px rgba(174, 45, 91, .25)); }
.nav-link .nav-count { min-width: 21px; margin-left: auto; border-radius: 30px; color: #fff; background: var(--rose); font: 700 11px/21px var(--latin); text-align: center; }
.sidebar-bottom { margin-top: auto; padding: 12px 5px 0; }
.member-mini { position: relative; overflow: hidden; padding: 15px; border: 1px solid #f0dfe4; border-radius: 16px; background: linear-gradient(145deg, #fffaf9, #fff2f4); }
.member-mini::after { position: absolute; right: -22px; bottom: -30px; width: 86px; height: 86px; border: 1px solid rgba(195,62,104,.12); border-radius: 50%; content: ''; }
.member-mini strong { position: relative; z-index: 1; display: block; font-size: 14px; }
.member-mini span { position: relative; z-index: 1; color: var(--muted); font-size: 12px; }
.member-mini .mini-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; color: var(--rose-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.mini-link svg { width: 15px; height: 15px; }
.shell-main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 25; display: flex; height: 74px; align-items: center; justify-content: space-between; gap: 15px;
  padding: 0 clamp(22px, 3.2vw, 48px); border-bottom: 1px solid rgba(225, 214, 219, .78);
  background: rgba(250, 247, 245, .84); backdrop-filter: blur(20px);
}
.crumb { color: var(--muted); font-size: 12px; }
.crumb strong { display: block; margin-top: 2px; color: var(--ink); font-size: 17px; font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid var(--line); border-radius: 13px; color: var(--ink-soft); background: rgba(255,255,255,.88); transition: color .2s, border-color .2s, background .2s, transform .25s var(--ease-spring); }
.icon-button:hover { border-color: #e0b8c6; color: var(--rose-dark); background: #fff; transform: translateY(-2px) rotate(-3deg); }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 9px; padding: 5px 9px 5px 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.88); cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: var(--rose-dark); background: linear-gradient(145deg, #f9dce5, #f6edf0); font-weight: 700; }
.account-name { max-width: 165px; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.account-menu summary > svg { width: 16px; height: 16px; color: var(--muted); }
.dropdown { position: absolute; top: calc(100% + 9px); right: 0; z-index: 60; min-width: 230px; padding: 7px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-float); animation: pop-in .2s var(--ease-out) both; }
.dropdown button, .dropdown a { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; color: var(--ink-soft); background: transparent; font-size: 14px; text-align: left; text-decoration: none; }
.dropdown button:hover, .dropdown a:hover { color: var(--rose-dark); background: var(--tint); }
.dropdown-divider { height: 1px; margin: 6px 5px; background: var(--line); }
.content { width: min(100%, 1510px); margin: 0 auto; padding: 36px clamp(22px, 3.2vw, 48px) 76px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.page-header p:last-child { max-width: 700px; margin-bottom: 0; color: var(--muted); font-size: 15px; }
.header-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.mobile-nav, .more-panel { display: none; }

/* Shared controls and states */
.button {
  position: relative; display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px;
  overflow: hidden; padding: 10px 17px; border: 1px solid transparent; border-radius: 13px;
  color: #fff; background: linear-gradient(105deg, #c43d68, #a72f5a 82%); box-shadow: 0 8px 18px rgba(171, 47, 90, .16);
  font-weight: 700; line-height: 1.35; text-decoration: none;
  transition: transform .24s var(--ease-spring), box-shadow .24s var(--ease-out), background .24s, border-color .24s, color .24s;
}
.button::after { position: absolute; top: -70%; left: -42%; width: 24%; height: 240%; background: rgba(255,255,255,.24); content: ''; transform: rotate(24deg) translateX(-170%); transition: transform .65s var(--ease-out); }
.button:hover { color: #fff; background: linear-gradient(105deg, #b43460, #8c294d 82%); box-shadow: 0 12px 24px rgba(171, 47, 90, .24); transform: translateY(-2px); }
.button:hover::after { transform: rotate(24deg) translateX(720%); }
.button:active { transform: translateY(0) scale(.985); }
.button.secondary { border-color: var(--line-strong); color: var(--ink-soft); background: #fff; box-shadow: none; }
.button.secondary::after, .button.ghost::after { display: none; }
.button.secondary:hover { border-color: #d8aabd; color: var(--rose-dark); background: #fff8fa; box-shadow: 0 7px 16px rgba(83, 43, 60, .07); }
.button.ghost { border-color: transparent; color: var(--rose-dark); background: transparent; box-shadow: none; }
.button.ghost:hover { color: var(--rose-deep); background: var(--tint); }
.button.danger { background: var(--danger); box-shadow: 0 8px 18px rgba(164,62,67,.16); }
.button.danger:hover { background: #8d3038; }
.button.small-button { min-height: 39px; padding: 7px 12px; border-radius: 11px; font-size: 13px; }
.button.full { width: 100%; }
.button svg { width: 18px; height: 18px; }
.button:disabled { transform: none; box-shadow: none; }
.button[aria-busy=true] { pointer-events: none; }
.card { border: 1px solid rgba(228, 218, 222, .92); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card-head h2 { margin: 0; }
.card-head p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.inline-link { color: var(--rose-dark); font-weight: 700; text-decoration: none; }
.inline-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.status { display: inline-flex; min-height: 27px; align-items: center; gap: 7px; padding: 4px 9px; border: 1px solid transparent; border-radius: 30px; color: #655b63; background: #f4f0f2; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ''; }
.status.good { border-color: #cfe5d6; color: var(--green); background: var(--green-bg); }
.status.warn { border-color: #f1dfbb; color: var(--warning); background: var(--warning-bg); }
.status.bad { border-color: #efcecc; color: var(--danger); background: var(--danger-bg); }
.tag { display: inline-flex; min-height: 27px; align-items: center; padding: 3px 9px; border: 1px solid #ece3e6; border-radius: 9px; color: #6e626d; background: #fff; font-size: 12px; line-height: 1.4; }
.notice { margin: 0 0 17px; padding: 14px 17px; border: 1px solid #f0dcbf; border-radius: 14px; color: #6f4c29; background: #fff9ec; font-size: 14px; }
.notice.good { border-color: #cde7d5; color: #226545; background: #f0faf4; }
.notice.danger { border-color: #efcfcc; color: #8c3439; background: #fff5f3; }
.notice p:last-child { margin-bottom: 0; }
.empty { padding: 42px 22px; border: 1px dashed #dccbd3; border-radius: 18px; color: var(--muted); background: linear-gradient(145deg, #fff, #fffaf9); text-align: center; }
.empty h3 { color: var(--ink); }
.empty p { max-width: 420px; margin: 0 auto 8px; color: var(--muted); }
.empty .button { margin-top: 12px; }
.skeleton { border-radius: 10px; background: linear-gradient(100deg, #eee7e8 18%, #fbf7f7 35%, #eee7e8 55%); background-size: 220% 100%; animation: shimmer 1.55s linear infinite; }
.skeleton-line { height: 14px; margin: 9px 0; }
.skeleton-card { height: 355px; border-radius: var(--radius); }
.divider { height: 1px; margin: 22px 0; background: var(--line); }

/* Dashboard */
.discover-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 26px; }
.discover-intro h1 { margin: 4px 0 5px; font-size: clamp(32px, 3.4vw, 52px); letter-spacing: -.048em; }
.discover-intro p { margin: 0; color: var(--muted); font-size: 15px; }
.discover-intro .button { flex: none; }
.headline-dot { color: var(--rose); }
.discovery-section { overflow: hidden; border: 1px solid #e7dcdf; border-radius: 25px; background: #fffdfb; box-shadow: 0 24px 65px rgba(50,33,42,.075); }
.discovery-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 51px; padding: 9px 24px; border-bottom: 1px solid #eee6e8; color: var(--muted); font-size: 12px; }
.discovery-topline > span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.live-dot { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: #e9987c; box-shadow: 0 0 0 4px rgba(233,152,124,.15); }
.discovery-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px, 295px); min-height: 500px; }
.feature-profile { display: grid; grid-template-columns: minmax(245px, .87fr) minmax(0,1.13fr); min-width: 0; color: #fff; background: #2c222a; }
.feature-portrait { position: relative; min-width: 0; overflow: hidden; background: #e8d6d6; }
.feature-portrait .profile-photo { height: 100%; min-height: 500px; color: #865364; background: radial-gradient(circle at 48% 38%, #f5e9e4, #cbaeb8 72%); }
.feature-portrait .profile-photo svg { width: 112px; height: 112px; opacity: .48; }
.feature-portrait .profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-portrait::after { position: absolute; inset: auto 0 0; height: 32%; background: linear-gradient(transparent, rgba(29,20,27,.42)); content: ''; pointer-events: none; }
.feature-index { position: absolute; bottom: 20px; left: 22px; z-index: 2; color: #fff; font: 700 12px/1 var(--latin); letter-spacing: .18em; }
.feature-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(28px, 3.5vw, 54px); }
.feature-overline { display: flex; align-items: center; gap: 10px; color: #e8c5cf; font-size: 12px; font-weight: 600; }
.feature-copy h2 { margin: 21px 0 5px; color: #fff; font-size: clamp(38px, 4vw, 65px); line-height: 1.1; letter-spacing: -.055em; }
.feature-location { margin: 0 0 27px; color: #ddcdd5; font-size: 16px; }
.feature-facts { display: grid; width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; margin-bottom: 29px; border-top: 1px solid rgba(255,255,255,.16); }
.feature-facts > div { min-width: 0; padding: 13px 0 11px; border-bottom: 1px solid rgba(255,255,255,.16); }
.feature-facts span { display: block; margin-bottom: 3px; color: #bca9b3; font-size: 11px; }
.feature-facts strong { display: block; overflow: hidden; color: #fff; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.button.feature-cta { min-height: 47px; padding-inline: 20px; color: #30222b; background: #fff; box-shadow: none; }
.button.feature-cta:hover { color: var(--rose-dark); background: #fff5f3; }
.feature-privacy { margin: 13px 0 0; color: #bfaeb7; font-size: 11px; }
.discovery-rail { display: flex; min-width: 0; flex-direction: column; padding: 22px 19px 19px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.rail-head span:first-child { color: var(--ink); font-size: 15px; font-weight: 700; }
.rail-profile { display: flex; width: 100%; min-height: 98px; align-items: center; gap: 11px; padding: 11px 5px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; transition: background .2s, transform .25s var(--ease-out); }
.rail-profile:hover { background: #fbf5f4; transform: translateX(3px); }
.rail-profile .profile-photo { width: 59px; height: 72px; flex: none; border-radius: 10px; }
.rail-profile .profile-photo svg { width: 27px; height: 27px; }
.rail-profile > span { min-width: 0; flex: 1; }
.rail-profile strong, .rail-profile small, .rail-profile em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-profile strong { font-size: 15px; }
.rail-profile small { color: var(--muted); font-size: 11px; }
.rail-profile em { margin-top: 5px; color: var(--rose-dark); font-size: 11px; font-style: normal; }
.rail-profile > svg { width: 16px; color: var(--rose); }
.rail-all { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 20px 4px 2px; color: var(--rose-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.rail-all svg { width: 16px; }
.discovery-empty { display: flex; min-height: 350px; flex-direction: column; align-items: center; justify-content: center; padding: 35px; text-align: center; }
.discovery-empty > svg { width: 35px; height: 35px; color: var(--rose); }
.discovery-empty h2 { margin: 15px 0 5px; font-size: 25px; }
.discovery-empty p { max-width: 440px; color: var(--muted); }
.discovery-skeleton { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; min-height: 440px; padding: 18px; }
.discovery-skeleton > * { border-radius: 17px; }
.member-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin: 19px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.strip-cell { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; min-height: 106px; padding: 17px 23px; border-right: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.strip-cell:last-child { border-right: 0; }
.strip-cell:hover { background: #fff9f9; }
.strip-cell > span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.strip-cell svg { width: 15px; height: 15px; color: var(--rose); }
.strip-cell strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.strip-cell small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.inbox-peek { display: grid; grid-template-columns: minmax(195px,.65fr) minmax(0,1.15fr) auto; align-items: start; gap: 25px; margin-top: 38px; padding: 29px 0 0; border-top: 1px solid var(--line-strong); }
.inbox-peek h2 { margin: 4px 0; font-size: 24px; }
.inbox-peek p { margin: 0; color: var(--muted); font-size: 13px; }
.peek-rows { min-width: 0; }
.peek-rows .empty { padding: 8px 0; text-align: left; }
.peek-rows .empty p { margin: 0; }
.peek-rows .empty h3 { font-size: 16px; }
.text-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--rose-dark); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.text-arrow svg { width: 17px; height: 17px; }
.dashboard-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr); gap: 16px; margin-bottom: 16px; }
.welcome {
  position: relative; isolation: isolate; min-height: 264px; display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; padding: clamp(25px, 3vw, 38px); border: 1px solid #f0dce2; border-radius: var(--radius-large);
  background: linear-gradient(115deg, #fff 20%, #fff8f7 67%, #fbedef 100%);
}
.welcome::before { position: absolute; z-index: -1; top: -116px; right: -48px; width: 340px; height: 340px; border: 1px solid rgba(193, 61, 103, .13); border-radius: 50%; box-shadow: 0 0 0 25px rgba(193,61,103,.026), 0 0 0 58px rgba(193,61,103,.02); content: ''; }
.welcome::after { position: absolute; z-index: -1; right: 72px; bottom: 25px; width: 14px; height: 14px; border: 3px solid rgba(215, 89, 130, .24); border-radius: 50%; box-shadow: 55px -82px 0 -4px rgba(237,135,75,.42), -145px -100px 0 -5px rgba(193,61,103,.3); content: ''; }
.welcome > * { position: relative; z-index: 1; }
.welcome h1 { max-width: 620px; margin-bottom: 10px; font-size: clamp(32px, 3.4vw, 45px); }
.welcome p { max-width: 580px; margin-bottom: 0; color: #6e606a; font-size: 16px; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.access-card {
  position: relative; isolation: isolate; display: flex; min-height: 264px; flex-direction: column; justify-content: space-between;
  overflow: hidden; padding: 25px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-large); color: #fff;
  background: linear-gradient(145deg, #442437 0%, #362432 48%, #28212c 100%); box-shadow: 0 18px 42px rgba(48, 29, 42, .14);
}
.access-card::before { position: absolute; z-index: -1; top: -96px; right: -70px; width: 260px; height: 260px; border: 1px solid rgba(255,220,229,.18); border-radius: 50%; box-shadow: 0 0 0 20px rgba(255,255,255,.035), 0 0 0 48px rgba(255,255,255,.025), 0 0 0 82px rgba(255,255,255,.02); content: ''; }
.access-card::after { position: absolute; z-index: -1; top: 34px; right: 65px; width: 9px; height: 9px; border-radius: 50%; background: #ffcbba; box-shadow: 65px 74px 0 -2px rgba(255,255,255,.65), -66px 135px 0 -3px #e988ab; content: ''; }
.access-card .eyebrow { color: #f3b7c8; }
.access-card h2 { max-width: 320px; margin: 8px 0; color: #fff; font-size: 25px; }
.access-card p { max-width: 380px; color: #e2d5dd; font-size: 14px; }
.access-card .access-date { margin: 13px 0 15px; color: #fff; font-size: 15px; font-weight: 700; }
.access-card .button { align-self: flex-start; border-color: rgba(255,255,255,.7); color: #402538; background: #fff; box-shadow: none; }
.access-card .button:hover { color: var(--rose-dark); background: #fff2f6; }
.dashboard-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 15px; }
.stat-card { position: relative; min-height: 184px; padding: 21px 22px; overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .3s var(--ease-spring); }
.stat-card:hover { border-color: #e6cbd5; box-shadow: var(--shadow-card); transform: translateY(-3px); }
.stat-card .card-head { align-items: center; margin-bottom: 11px; }
.stat-card .card-head h2 { font-size: 16px; }
.stat-card .card-head svg { width: 21px; height: 21px; color: var(--rose); }
.stat-card .stat-value { margin: 11px 0 5px; color: var(--rose-dark); font: 800 35px/1.2 var(--latin); letter-spacing: -.05em; }
.stat-card .stat-value.text { font: 700 21px/1.3 var(--font); letter-spacing: 0; }
.stat-card p { margin: 0; color: var(--muted); font-size: 13px; }
.progress { height: 9px; margin: 16px 0 10px; overflow: hidden; border-radius: 20px; background: #f0e7eb; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rose), #ef8b6d); transform-origin: left; transition: width 1s var(--ease-out); }
.dashboard-lower { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .85fr); gap: 15px; margin-top: 16px; }
.dashboard-lower > .card { padding: 22px 24px; }
.list-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid #f0e9ec; }
.list-row:first-child { padding-top: 0; border-top: 0; }
.list-row:last-child { padding-bottom: 0; }
.row-avatar { display: grid; width: 43px; height: 43px; flex: none; place-items: center; border: 1px solid #f0dce3; border-radius: 14px; color: var(--rose-dark); background: linear-gradient(140deg, #fff4f6, #f8e6eb); font-weight: 700; }
.row-body { min-width: 0; flex: 1; }
.row-body strong { display: block; color: var(--ink); font-size: 14px; }
.row-body small, .row-body > span { display: block; color: var(--muted); font-size: 12px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quick-action { display: flex; min-height: 50px; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink-soft); background: #fff; font-size: 13px; font-weight: 700; text-decoration: none; transition: .22s var(--ease-out); }
.quick-action svg { width: 18px; height: 18px; color: var(--rose); }
.quick-action:hover { border-color: #dbb5c4; color: var(--rose-dark); background: #fff8fa; transform: translateY(-2px); }

/* Search, filters, result cards */
.search-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 22px; }
.filter-card { position: sticky; top: 94px; max-height: calc(100vh - 108px); overflow: auto; padding: 20px; scrollbar-color: #dbc2cc transparent; scrollbar-width: thin; }
.filter-card h2 { margin-bottom: 4px; font-size: 18px; }
.filter-card > p { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.filters { display: grid; gap: 13px; }
.field { display: grid; min-width: 0; gap: 6px; }
.field label { color: #514651; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea, .search-toolbar select {
  width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #ded3d8; border-radius: 12px;
  color: var(--ink); background: #fff; line-height: 1.4; transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input:hover, .field select:hover, .field textarea:hover, .search-toolbar select:hover { border-color: #d2adb9; }
.field input:focus, .field select:focus, .field textarea:focus, .search-toolbar select:focus { border-color: var(--rose); outline: 0; box-shadow: 0 0 0 4px rgba(195,62,104,.11); }
.field input[readonly], .field input:disabled, .field select:disabled { color: #8b8189; background: #f6f3f3; }
.field textarea { min-height: 112px; resize: vertical; }
.field .hint { color: var(--muted); font-size: 12px; }
.field-error { color: var(--danger); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.filter-actions { position: sticky; bottom: -20px; display: flex; gap: 8px; margin: 2px -20px -20px; padding: 12px 20px 16px; border-top: 1px solid rgba(230,219,223,.86); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.filter-actions .button { flex: 1; }
.search-main { min-width: 0; }
.search-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.search-toolbar strong { color: var(--ink); font-size: 16px; }
.toolbar-right { display: flex; align-items: center; gap: 8px; }
.search-toolbar select { width: auto; min-width: 154px; min-height: 42px; padding: 8px 32px 8px 11px; font-size: 13px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.filter-chip { padding: 6px 10px; border: 1px solid #e8c8d3; border-radius: 30px; color: var(--rose-dark); background: #fff4f7; font-size: 12px; line-height: 1.3; transition: background .2s, transform .2s; }
.filter-chip:hover { background: #ffe8ef; transform: translateY(-1px); }
.results-grid { display: grid; grid-template-columns: 1fr; align-items: stretch; gap: 12px; }
.profile-card { display: grid; grid-template-columns: 178px minmax(0,1fr); min-width: 0; min-height: 198px; overflow: hidden; box-shadow: none; transition: border-color .25s, box-shadow .28s var(--ease-out), transform .3s var(--ease-spring); }
.profile-card:hover { border-color: #dfbdca; box-shadow: 0 18px 38px rgba(56,30,45,.12); transform: translateY(-4px); }
.profile-photo { position: relative; display: grid; height: 244px; place-items: center; overflow: hidden; color: #b97991; background: linear-gradient(145deg, #f9e7ea 0%, #f3e9e1 50%, #f7edf1 100%); }
.profile-photo::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(39,22,33,.16)); content: ''; pointer-events: none; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.profile-card:hover .profile-photo img { transform: scale(1.045); }
.profile-photo svg { width: 69px; height: 69px; opacity: .45; }
.profile-card .profile-photo { height: 100%; min-height: 198px; }
.profile-body { display: flex; flex-direction: column; align-items: flex-start; padding: 18px 23px; }
.profile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.profile-card .profile-top { width: 100%; }
.profile-top h3 { margin: 0; font-size: 20px; }
.profile-sub { margin: 7px 0 12px; color: var(--muted); font-size: 13px; }
.profile-meta { display: flex; min-height: 28px; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.profile-body .button { width: auto; margin-top: auto; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px 0 4px; }
.pager span { color: var(--muted); font-size: 13px; }
.mobile-filter-button { display: none; }
.filter-sheet { display: none; }

/* Candidate profile details */
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 18px; }
.profile-layout > div { min-width: 0; }
.profile-hero { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); overflow: hidden; }
.profile-hero .profile-photo { height: 100%; min-height: 355px; }
.profile-hero-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(22px, 3vw, 38px); }
.profile-hero-content h1 { margin: 15px 0 6px; font-size: clamp(29px, 3.2vw, 39px); }
.profile-hero-content > p { margin: 8px 0 0; }
.facts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.profile-detail-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 15px; }
.profile-detail-sections > .card { padding: 21px; }
.profile-detail-sections h2 { margin-bottom: 14px; font-size: 17px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-item { min-width: 0; padding: 11px 12px; border: 1px solid #f0e9ec; border-radius: 12px; background: #fffcfb; }
.detail-item dt { margin-bottom: 3px; color: var(--muted); font-size: 12px; }
.detail-item dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.profile-side { position: sticky; top: 96px; padding: 22px; }
.profile-side h2 { font-size: 20px; }
.profile-side p { color: var(--muted); font-size: 14px; }
.profile-side .button { width: 100%; }
.sticky-contact { display: none; }

/* Requests and inbox */
.tabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 20px 0 17px; padding: 5px; border: 1px solid #e9dfe3; border-radius: 15px; background: #f1ebed; }
.tab { min-height: 42px; padding: 8px 16px; border: 0; border-radius: 11px; color: #726671; background: transparent; font-weight: 700; transition: color .2s, background .2s, box-shadow .2s, transform .2s; }
.tab[aria-selected=true] { color: var(--rose-dark); background: #fff; box-shadow: 0 2px 8px rgba(46,31,39,.08); }
.tab:hover { transform: translateY(-1px); }
.request-list { display: grid; gap: 11px; }
.request-card { display: flex; align-items: center; gap: 14px; padding: 18px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.request-card:hover { border-color: #e1c4cf; box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.request-card .row-body { min-width: 180px; }
.request-card .row-body > strong { margin-bottom: 3px; font-size: 15px; }
.request-card .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.request-card .actions a:not(.button) { color: var(--rose-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.request-card .date { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }

/* Profile preview and editor */
.preview-head { display: grid; grid-template-columns: minmax(220px, .45fr) minmax(0, 1fr); align-items: center; gap: 25px; max-width: 960px; overflow: hidden; padding: 20px; }
.preview-head .profile-photo { height: 255px; border-radius: 15px; }
.preview-head h1 { margin: 7px 0; font-size: 32px; }
.profile-detail-sections + .summary-grid { margin-top: 15px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.summary-grid > .card { padding: 19px; }
.summary-grid h3 { font-size: 16px; }
.summary-grid p { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; align-items: start; gap: 20px; }
.form-sections { display: grid; gap: 13px; }
.form-section { padding: 22px 24px; }
.form-section .eyebrow { margin-bottom: 4px; }
.form-section h2 { margin-bottom: 6px; font-size: 19px; }
.form-section > p { margin-bottom: 15px; color: var(--muted); font-size: 13px; }
.form-side { position: sticky; top: 96px; display: grid; gap: 13px; }
.form-side > .card { padding: 19px; }
.form-side h2 { font-size: 17px; }
.form-side p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.form-footer { position: sticky; bottom: 12px; z-index: 10; display: flex; justify-content: flex-end; gap: 9px; margin-top: 15px; padding: 12px; border: 1px solid rgba(230,219,223,.92); border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 10px 28px rgba(56,30,45,.1); backdrop-filter: blur(18px); }
.otp-code { max-width: 240px; font: 700 22px var(--latin) !important; letter-spacing: .25em; }

/* Membership, settings, privacy and help */
.billing-overview { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 15px; margin-bottom: 17px; }
.billing-primary { position: relative; isolation: isolate; min-height: 248px; overflow: hidden; padding: 27px 30px; border-radius: var(--radius-large); color: #fff; background: linear-gradient(125deg, #4a2738, #352432 66%, #29232d); }
.billing-primary::after { position: absolute; z-index: -1; top: -82px; right: -25px; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.035), 0 0 0 58px rgba(255,255,255,.02); content: ''; }
.billing-primary h2 { color: #fff; font-size: 27px; }
.billing-primary p { color: #e4d6de; }
.billing-primary .eyebrow { color: #f1b5c6; }
.billing-primary .large-date { margin: 15px 0; color: #fff; font-size: 15px; font-weight: 700; }
.billing-primary .button { color: var(--rose-deep); background: #fff; box-shadow: none; }
.billing-secondary { padding: 23px; }
.billing-secondary h2 { font-size: 19px; }
.data-table-wrap { overflow-x: auto; border: 1px solid #eee6e9; border-radius: 13px; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid #f0e9ec; font-size: 13px; white-space: nowrap; }
.data-table th { color: var(--muted); background: #fcf9f8; font-weight: 700; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.settings-list { display: grid; max-width: 950px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.settings-row { display: flex; min-height: 84px; align-items: center; gap: 14px; padding: 16px 20px; border-top: 1px solid #f0e9ec; }
.settings-row:first-child { border-top: 0; }
.settings-row .row-body span { display: block; color: var(--muted); font-size: 13px; }
.settings-row .button { margin-left: auto; }
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.privacy-grid > .card { padding: 22px; }
.privacy-grid > .wide { grid-column: 1 / -1; }
.privacy-grid p { color: var(--muted); font-size: 14px; }
.faq-search { max-width: 680px; margin-bottom: 15px; }
.faq-list { display: grid; max-width: 860px; gap: 9px; }
.faq { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq[open] { border-color: #dfc1cd; box-shadow: var(--shadow-soft); }
.faq summary { position: relative; padding: 15px 46px 15px 17px; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; top: 50%; right: 18px; color: var(--rose); content: '+'; font: 600 22px/1 var(--latin); transform: translateY(-50%); transition: transform .2s; }
.faq[open] summary::after { content: '−'; transform: translateY(-50%) rotate(180deg); }
.faq p { margin: 0; padding: 0 17px 17px; color: var(--muted); font-size: 14px; }

/* Login and onboarding */
.auth-wrap { display: grid; min-height: 100vh; grid-template-columns: minmax(330px, .8fr) minmax(0, 1.2fr); background: #fff; }
.auth-aside { position: relative; isolation: isolate; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 30px clamp(25px, 4vw, 60px); color: #fff; background: radial-gradient(circle at 18% 80%, rgba(236,130,151,.25), transparent 34%), linear-gradient(145deg, #49273a, #302330 66%, #25202b); }
.auth-aside::before { position: absolute; z-index: -1; top: 18%; right: -220px; width: 500px; height: 500px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.035), 0 0 0 66px rgba(255,255,255,.025), 0 0 0 116px rgba(255,255,255,.018); content: ''; }
.auth-aside .brand-copy strong { color: #fff; }
.auth-aside .brand-copy small { color: #f0b2c2; }
.auth-aside .brand-mark { border-color: rgba(255,255,255,.2); }
.auth-aside .eyebrow { color: #f0b8c8; }
.auth-aside h1 { max-width: 540px; color: #fff; font-size: clamp(34px, 4.5vw, 54px); }
.auth-aside p { max-width: 480px; color: #e1d2dc; font-size: 17px; }
.auth-decoration { position: absolute; right: 8%; bottom: 5%; color: rgba(255,255,255,.045); font: 800 clamp(180px,28vw,390px)/.8 var(--latin); letter-spacing: -.1em; pointer-events: none; }
.auth-main { display: grid; min-width: 0; place-items: center; padding: 36px clamp(24px, 6vw, 90px); background: radial-gradient(ellipse at 85% 5%, #fff2f3, transparent 32rem), #fffdfc; }
.auth-panel { width: min(100%, 650px); }
.auth-simple { width: min(100%, 450px); margin: 0 auto; }
.auth-panel h1 { margin: 4px 0 8px; }
.auth-panel > p, .auth-simple > p { margin-bottom: 22px; color: var(--muted); }
.auth-panel form, .auth-simple form { display: grid; gap: 15px; }
.auth-note { margin-top: 20px; font-size: 14px; }
.auth-note a { color: var(--rose-dark); font-weight: 700; }
.loading-panel { padding: 35px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); background: #fff; text-align: center; }

/* Confirmation, toast and mobile filters */
.dialog-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(34, 24, 31, .52); backdrop-filter: blur(8px); animation: fade-in .18s ease both; }
.dialog { width: min(100%, 470px); padding: 26px; border: 1px solid rgba(255,255,255,.7); border-radius: 23px; background: #fff; box-shadow: var(--shadow-float); animation: dialog-in .35s var(--ease-spring) both; }
.dialog h2 { margin-bottom: 9px; font-size: 23px; }
.dialog p { color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 120; max-width: min(460px, calc(100vw - 32px)); padding: 14px 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; color: #fff; background: #302630; box-shadow: var(--shadow-float); animation: toast-in .35s var(--ease-spring) both; }
.toast[hidden] { display: none; }

/* Page and component motion */
#screen { view-transition-name: screen-content; }
@supports (view-transition-name: screen-content) {
  ::view-transition-old(screen-content) { animation: screen-out .18s ease both; }
  ::view-transition-new(screen-content) { animation: screen-in .42s var(--ease-out) both; }
}
.screen-enter > * { animation: section-enter .62s var(--ease-out) both; }
.screen-enter > :nth-child(2) { animation-delay: .06s; }
.screen-enter > :nth-child(3) { animation-delay: .11s; }
.screen-enter > :nth-child(4) { animation-delay: .16s; }
.screen-enter > :nth-child(5) { animation-delay: .2s; }
.screen-enter > :nth-child(6) { animation-delay: .23s; }
.dashboard-grid > *, .results-grid > *, .profile-detail-sections > *, .summary-grid > *, .request-list > *, .privacy-grid > * { animation: card-enter .54s var(--ease-out) both; }
.dashboard-grid > :nth-child(2), .results-grid > :nth-child(2), .profile-detail-sections > :nth-child(2), .summary-grid > :nth-child(2), .privacy-grid > :nth-child(2) { animation-delay: .055s; }
.dashboard-grid > :nth-child(3), .results-grid > :nth-child(3), .profile-detail-sections > :nth-child(3), .summary-grid > :nth-child(3), .privacy-grid > :nth-child(3) { animation-delay: .1s; }
.results-grid > :nth-child(4), .profile-detail-sections > :nth-child(4) { animation-delay: .145s; }
.results-grid > :nth-child(5) { animation-delay: .19s; }
.results-grid > :nth-child(6) { animation-delay: .23s; }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes section-enter { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes card-enter { from { opacity: 0; transform: translateY(11px) scale(.992); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(15px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes screen-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Tablet and compact desktop */
@media (max-width: 1180px) {
  :root { --sidebar: 226px; }
  .content { padding-right: 28px; padding-left: 28px; }
  .results-grid { gap: 13px; }
  .profile-photo { height: 220px; }
  .profile-body { padding: 15px; }
  .profile-top { align-items: flex-start; flex-direction: column; }
  .profile-top .status { min-height: 24px; }
  .profile-layout { grid-template-columns: minmax(0,1fr) 290px; }
}
@media (max-width: 980px) {
  :root { --sidebar: 76px; }
  .sidebar { align-items: center; padding: 18px 9px; }
  .brand { justify-content: center; padding: 0 0 23px; }
  .brand-copy, .sidebar-label, .nav-link > span, .member-mini { display: none; }
  .nav-list { width: 100%; justify-items: center; }
  .nav-link { width: 50px; height: 50px; justify-content: center; padding: 0; border-radius: 15px; }
  .nav-link[aria-current=page] { box-shadow: inset 0 -3px 0 var(--rose); }
  .nav-icon { width: 22px; height: 22px; }
  .dashboard-hero { grid-template-columns: minmax(0,1.15fr) minmax(260px,.85fr); }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-grid > .stat-card:last-child { grid-column: 1 / -1; }
  .search-layout { grid-template-columns: 245px minmax(0,1fr); gap: 16px; }
  .results-grid { grid-template-columns: 1fr; }
  .profile-card { display: grid; grid-template-columns: 145px minmax(0,1fr); min-height: 190px; }
  .profile-card .profile-photo { height: 100%; min-height: 190px; }
  .profile-card .profile-top { align-items: center; flex-direction: row; }
  .profile-card .profile-body .button { width: auto; }
  .profile-layout { grid-template-columns: minmax(0,1fr); }
  .profile-side { display: none; }
  .sticky-contact { position: fixed; right: 0; bottom: calc(66px + env(safe-area-inset-bottom)); left: 0; z-index: 24; display: block; padding: 10px 20px; border-top: 1px solid var(--line); background: rgba(255,255,255,.94); box-shadow: 0 -10px 28px rgba(56,30,45,.07); backdrop-filter: blur(18px); }
  .sticky-contact .button { width: min(100%, 700px); margin: 0 auto; }
  .content:has(.sticky-contact) { padding-bottom: calc(165px + env(safe-area-inset-bottom)); }
  .form-layout { grid-template-columns: minmax(0,1fr); }
  .form-side { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Mobile app */
@media (max-width: 740px) {
  html { scroll-padding-top: 72px; }
  body { font-size: 15px; }
  .app-shell { display: block; min-height: 100vh; }
  .sidebar { display: none; }
  .topbar { height: 65px; padding: 0 16px; }
  .crumb { font-size: 11px; }
  .crumb strong { font-size: 15px; }
  .top-actions { gap: 7px; }
  .top-actions > .icon-button { width: 39px; height: 39px; }
  .account-menu summary { padding: 4px; }
  .account-name, .account-menu summary > svg { display: none; }
  .avatar { width: 31px; height: 31px; }
  .content { padding: 25px 16px calc(100px + env(safe-area-inset-bottom)); }
  .page-header { display: block; margin-bottom: 20px; }
  .page-header h1 { font-size: 29px; }
  .page-header p:last-child { font-size: 14px; }
  .header-actions { margin-top: 15px; }
  .header-actions .button { flex: 1; }
  .mobile-filter-button { display: inline-flex; }
  .mobile-nav {
    position: fixed; right: 10px; bottom: calc(9px + env(safe-area-inset-bottom)); left: 10px; z-index: 40;
    display: grid; grid-template-columns: repeat(5,1fr); gap: 3px; padding: 7px;
    border: 1px solid rgba(255,255,255,.78); border-radius: 20px; background: rgba(255,255,255,.92);
    box-shadow: 0 14px 38px rgba(46,28,39,.16); backdrop-filter: blur(20px);
  }
  .mobile-nav a, .mobile-nav button { display: flex; min-width: 0; min-height: 53px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 2px; border: 0; border-radius: 13px; color: #817681; background: transparent; font: 600 10px/1.2 var(--font); text-decoration: none; }
  .mobile-nav svg { width: 20px; height: 20px; stroke-width: 1.8; }
  .mobile-nav [aria-current=page] { color: var(--rose-dark); background: #fff0f4; }
  .more-panel { position: fixed; right: 12px; bottom: calc(77px + env(safe-area-inset-bottom)); z-index: 45; display: grid; width: min(300px,calc(100vw - 24px)); gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-float); animation: pop-in .24s var(--ease-out) both; }
  .more-panel[hidden] { display: none; }
  .more-panel .card-head { align-items: center; margin-bottom: 7px; }
  .more-panel .card-head h2 { font-size: 18px; }
  .more-panel .nav-link { min-height: 44px; }
  .dashboard-hero { grid-template-columns: 1fr; gap: 12px; }
  .welcome { min-height: 255px; padding: 23px; border-radius: 23px; }
  .welcome::before { top: -125px; right: -155px; width: 300px; height: 300px; }
  .welcome h1 { font-size: 32px; }
  .welcome p { max-width: 450px; font-size: 14px; }
  .welcome-actions { gap: 8px; margin-top: 18px; }
  .welcome-actions .button { flex: 1; padding-right: 10px; padding-left: 10px; }
  .access-card { min-height: 220px; padding: 22px; border-radius: 23px; }
  .access-card h2 { font-size: 23px; }
  .dashboard-grid { gap: 10px; }
  .stat-card { min-height: 164px; padding: 17px; }
  .stat-card .card-head h2 { font-size: 14px; }
  .stat-card .stat-value { font-size: 30px; }
  .stat-card .stat-value.text { font-size: 18px; }
  .dashboard-lower { grid-template-columns: 1fr; gap: 11px; margin-top: 11px; }
  .dashboard-lower > .card { padding: 18px; }
  .quick-grid { gap: 7px; }
  .quick-action { min-height: 47px; padding: 9px; font-size: 12px; }
  .search-layout { display: block; }
  .filter-card { display: none; }
  .search-toolbar { align-items: flex-start; flex-direction: column; }
  .search-toolbar .toolbar-right { width: 100%; justify-content: space-between; }
  .search-toolbar select { flex: 1; }
  .results-grid { grid-template-columns: 1fr; gap: 11px; }
  .profile-card { grid-template-columns: 116px minmax(0,1fr); min-height: 175px; border-radius: 17px; }
  .profile-card .profile-photo { min-height: 175px; }
  .profile-body { display: flex; flex-direction: column; align-items: flex-start; padding: 13px 12px; }
  .profile-top { align-items: flex-start !important; flex-direction: column !important; gap: 5px; }
  .profile-top h3 { font-size: 18px; }
  .profile-top .status { min-height: 22px; padding: 2px 7px; font-size: 10px; }
  .profile-sub { margin: 4px 0 7px; font-size: 12px; line-height: 1.4; }
  .profile-meta { min-height: 0; gap: 4px; margin-bottom: 8px; }
  .profile-meta .tag:nth-child(n+3) { display: none; }
  .profile-meta .tag { min-height: 23px; padding: 2px 6px; font-size: 10px; }
  .profile-body .button { width: auto; min-height: 35px; margin-top: auto; padding: 6px 10px; font-size: 12px; }
  .profile-hero { grid-template-columns: 1fr; }
  .profile-hero .profile-photo { height: min(98vw,390px); min-height: 290px; }
  .profile-hero-content { padding: 20px; }
  .profile-hero-content h1 { font-size: 28px; }
  .profile-detail-sections { grid-template-columns: 1fr; gap: 10px; }
  .profile-detail-sections > .card { padding: 17px; }
  .detail-grid { gap: 8px; }
  .detail-item { padding: 9px 10px; }
  .preview-head { grid-template-columns: 1fr; gap: 15px; padding: 14px; }
  .preview-head .profile-photo { height: 245px; }
  .preview-head h1 { font-size: 29px; }
  .summary-grid, .billing-overview, .privacy-grid { grid-template-columns: 1fr; gap: 10px; }
  .privacy-grid .wide { grid-column: auto; }
  .summary-grid > .card, .privacy-grid > .card { padding: 18px; }
  .billing-primary { min-height: 225px; padding: 23px; border-radius: 23px; }
  .billing-secondary { padding: 20px; }
  .request-card { align-items: flex-start; flex-wrap: wrap; gap: 10px; padding: 15px; }
  .request-card .row-avatar { width: 38px; height: 38px; }
  .request-card .row-body { min-width: calc(100% - 52px); }
  .request-card .date { width: 100%; margin-left: 48px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 8px 9px; font-size: 13px; }
  .form-layout { display: block; }
  .form-sections { gap: 10px; }
  .form-section { padding: 18px; border-radius: 17px; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .form-side { display: grid; grid-template-columns: 1fr; margin-top: 10px; }
  .form-footer { position: fixed; right: 0; bottom: calc(65px + env(safe-area-inset-bottom)); left: 0; justify-content: stretch; margin: 0; padding: 10px 14px; border-radius: 0; }
  .form-footer .button { flex: 1; }
  .content:has(.form-footer) { padding-bottom: calc(175px + env(safe-area-inset-bottom)); }
  .settings-row { align-items: flex-start; flex-wrap: wrap; gap: 11px; padding: 15px; }
  .settings-row .row-body { min-width: calc(100% - 55px); }
  .settings-row .button { margin-left: 52px; }
  .settings-row .status { margin-left: 52px; }
  .data-table th, .data-table td { padding: 10px; }
  .filter-sheet:not([hidden]) { position: fixed; inset: auto 0 0; z-index: 80; display: flex; max-height: min(92dvh, 840px); flex-direction: column; padding: 16px 17px max(14px, env(safe-area-inset-bottom)); overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -15px 60px rgba(34,24,31,.22), 0 0 0 100vmax rgba(34,24,31,.42); animation: sheet-up .34s var(--ease-out) both; }
  .sheet-head { display: flex; flex: none; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .sheet-head h2 { margin: 0; font-size: 20px; }
  .filter-sheet .filters { min-height: 0; flex: 1; gap: 11px; padding: 14px 2px 0; overflow: auto; overscroll-behavior: contain; }
  .filter-sheet .filters .form-grid { gap: 10px; }
  .filter-sheet .filter-actions { position: sticky; bottom: 0; flex: none; margin: 0 -2px; padding: 12px 2px 3px; border-top: 1px solid var(--line); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { min-height: 225px; padding: 20px 22px; }
  .auth-aside .brand { min-height: 42px; padding: 0; }
  .auth-aside .brand-copy { display: block; }
  .auth-aside h1 { max-width: 520px; margin-bottom: 6px; font-size: 29px; }
  .auth-aside p { max-width: 520px; margin-bottom: 0; font-size: 14px; }
  .auth-aside .eyebrow { margin-bottom: 4px; }
  .auth-decoration { right: 3%; bottom: -2%; font-size: 160px; }
  .auth-main { display: block; padding: 26px 18px 42px; }
  .auth-panel { margin: 0 auto; }
  .dialog { padding: 22px; border-radius: 20px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
  .toast { right: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 12px; max-width: none; }
}
@media (max-width: 420px) {
  .content { padding-right: 13px; padding-left: 13px; }
  .topbar { padding-right: 12px; padding-left: 12px; }
  .welcome { padding: 20px; }
  .welcome h1 { font-size: 29px; }
  .welcome-actions { flex-direction: column; }
  .welcome-actions .button { width: 100%; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 14px; }
  .stat-card .card-head { align-items: flex-start; }
  .stat-card .card-head h2 { max-width: 115px; font-size: 13px; }
  .profile-card { grid-template-columns: 102px minmax(0,1fr); }
  .profile-card .profile-photo { min-height: 181px; }
  .profile-body { padding: 11px 10px; }
  .profile-top h3 { font-size: 17px; }
  .tabs { padding: 4px; }
  .tab { font-size: 12px; }
}
@media (min-width: 1680px) {
  .results-grid { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: minmax(0,1fr) 350px; }
}
@media (max-width: 1100px) {
  .discovery-layout { grid-template-columns: 1fr; }
  .feature-profile { min-height: 450px; }
  .feature-portrait .profile-photo { min-height: 450px; }
  .discovery-rail { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; border-top: 1px solid var(--line); }
  .rail-head, .rail-all { grid-column: 1 / -1; }
}
@media (max-width: 740px) {
  .discover-intro { display: block; margin-bottom: 17px; }
  .discover-intro h1 { font-size: clamp(31px, 8vw, 39px); }
  .discover-intro p { font-size: 13px; }
  .discover-intro .button { width: 100%; margin-top: 17px; }
  .discovery-section { border-radius: 19px; }
  .discovery-topline { min-height: 46px; padding: 8px 17px; }
  .discovery-topline > span:last-child { display: none; }
  .feature-profile { display: flex; min-height: 0; flex-direction: column; }
  .feature-portrait .profile-photo { height: clamp(230px, 64vw, 340px); min-height: 0; }
  .feature-copy { padding: 23px 22px 27px; }
  .feature-copy h2 { margin: 15px 0 3px; font-size: 39px; }
  .feature-location { margin-bottom: 18px; font-size: 14px; }
  .feature-facts { margin-bottom: 19px; }
  .feature-facts > div { padding: 9px 0; }
  .feature-facts strong { font-size: 12px; }
  .feature-cta { width: 100%; }
  .discovery-rail { display: block; padding: 16px; }
  .rail-profile { min-height: 86px; }
  .rail-profile .profile-photo { height: 60px; }
  .rail-all { padding-top: 16px; }
  .discovery-skeleton { min-height: 380px; grid-template-columns: 1fr; }
  .discovery-skeleton > :last-child { display: none; }
  .member-strip { display: block; margin-top: 13px; border-radius: 16px; }
  .strip-cell { min-height: 76px; padding: 13px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .strip-cell:last-child { border-bottom: 0; }
  .inbox-peek { grid-template-columns: 1fr; gap: 14px; margin-top: 27px; padding-top: 23px; }
  .inbox-peek h2 { font-size: 21px; }
  .inbox-peek .text-arrow { margin-top: 0; }
}
@keyframes sheet-up { from { opacity: .6; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
