:root{
  --family-primary:#0a66c2;
  --family-primary-dark:#084f9b;
  --family-navy:#082a60;
  --family-navy-dark:#061f49;
  --family-bg:#f5f8fc;
  --family-surface:#ffffff;
  --family-text:#172033;
  --family-muted:#667085;
  --family-border:#e1e7ef;
  --family-border-soft:#edf1f6;
  --family-green:#168a5b;
  --family-orange:#c97812;
  --family-red:#c83f4f;
  --family-purple:#6941c6;
  --family-shadow:0 8px 28px rgba(15,23,42,.07);
  --family-radius:14px;
  --family-sidebar:236px;
  --family-header:64px;
}

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  min-height:100%;
}

body{
  min-height:100vh;
  background:var(--family-bg);
  color:var(--family-text);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}

button,
input,
select,
textarea{
  font:inherit;
}

button{
  cursor:pointer;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  display:block;
  max-width:100%;
}

.hidden{
  display:none!important;
}

.family-topbar{
  position:fixed;
  inset:0 0 auto 0;
  z-index:1000;
  height:var(--family-header);
  display:grid;
  grid-template-columns:var(--family-sidebar) minmax(260px,1fr) auto;
  align-items:center;
  background:#fff;
  border-bottom:1px solid var(--family-border);
}

.family-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  padding:8px 22px;
  border:0;
  background:#fff;
  color:#173867;
}
.family-menu-icon{width:25px;height:25px;display:block;}

.family-global-search-wrap{
  display:flex;
  justify-content:center;
  padding:0 28px;
}

.family-global-search{
  width:min(660px,100%);
  height:44px;
  display:flex;
  align-items:center;
  padding:0 17px;
  border:1px solid #d8e1ec;
  border-radius:999px;
  background:#f8fafc;
  box-shadow:0 1px 2px rgba(15,23,42,.02);
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.family-global-search:hover{background:#fff;border-color:#c7d3e2;}
.family-global-search:focus-within{background:#fff;border-color:#0a66c2;box-shadow:0 0 0 4px rgba(10,102,194,.10),0 7px 20px rgba(15,23,42,.05);}
.family-global-search input{width:100%;height:100%;border:0;outline:0;background:transparent;color:var(--family-text);font-size:13px;font-weight:500;}
.family-global-search input::placeholder{color:#8a96a8;}

.family-top-actions{
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 18px 0 8px;
}

.family-icon-button{
  position:relative;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#1e335d;
}

.family-icon-button:hover{
  background:#f1f5fb;
}

.family-top-icon{width:21px;height:21px;display:block;}
.family-notification-button{color:#243b64;}
body[data-family-mode="family"] [data-investor-nav],body:not([data-investor-enabled="true"]) [data-investor-nav]{display:none!important;}

.family-badge{
  position:absolute;
  top:0;
  right:0;
  min-width:17px;
  height:17px;
  display:grid;
  place-items:center;
  padding:0 4px;
  border:2px solid #fff;
  border-radius:10px;
  background:#e11d48;
  color:#fff;
  font-size:9px;
  font-weight:800;
}

.family-account{
  min-width:170px;
  display:flex;
  align-items:center;
  gap:10px;
  padding-left:13px;
  border-left:1px solid var(--family-border);
}

.family-avatar{
  width:36px;
  height:36px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#dbeafe;
  color:#0a66c2;
  border:1px solid #cfe0f5;
  object-fit:cover;
  font-size:12px;
  font-weight:800;
}

.family-account-copy{
  min-width:0;
}

.family-account-name{
  max-width:125px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  font-weight:800;
}

.family-account-role{
  margin-top:2px;
  color:var(--family-muted);
  font-size:10px;
}

.family-sidebar{
  position:fixed;
  top:var(--family-header);
  bottom:0;
  left:0;
  z-index:900;
  width:var(--family-sidebar);
  display:flex;
  flex-direction:column;
  overflow:auto;
  padding:14px 14px 22px;
  background:linear-gradient(180deg,var(--family-navy),var(--family-navy-dark));
  color:#fff;
}

.family-sidebar-title{
  margin:0 8px 4px;
  font-size:20px;
  font-weight:850;
  letter-spacing:-.4px;
}

.family-sidebar-subtitle{
  margin:0 8px 14px;
  color:rgba(255,255,255,.75);
  font-size:11px;
}

.family-mode-switch{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3px;
  padding:3px;
  margin-bottom:18px;
  border:1px solid rgba(100,174,255,.75);
  border-radius:20px;
  background:rgba(2,21,52,.34);
}

.family-mode-button{
  min-height:31px;
  border:0;
  border-radius:17px;
  background:transparent;
  color:rgba(255,255,255,.78);
  font-size:11px;
  font-weight:750;
}

.family-mode-button.active{
  background:#0c73ed;
  color:#fff;
}

.family-nav-label{
  margin:11px 10px 7px;
  color:rgba(255,255,255,.58);
  font-size:9px;
  font-weight:850;
  letter-spacing:.65px;
}

.family-nav{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.family-nav-button{
  width:100%;
  min-height:39px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:8px 11px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:rgba(255,255,255,.87);
  text-align:left;
  font-size:12px;
}

.family-nav-button:hover{
  background:rgba(255,255,255,.08);
}

.family-nav-button.active{
  background:#0a66d8;
  color:#fff;
  font-weight:750;
}

.family-nav-button .family-nav-count{
  margin-left:auto;
  min-width:19px;
  height:19px;
  display:grid;
  place-items:center;
  padding:0 5px;
  border-radius:10px;
  background:rgba(255,255,255,.16);
  font-size:9px;
  font-weight:800;
}

.family-sidebar-footer{
  margin-top:auto;
  padding-top:18px;
}

.family-sidebar-note{
  padding:12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  color:rgba(255,255,255,.7);
  font-size:10px;
  line-height:1.5;
}

.family-app{
  min-height:100vh;
  padding-top:var(--family-header);
  padding-left:var(--family-sidebar);
}

.family-workspace{
  min-height:calc(100vh - var(--family-header));
  padding:18px 20px 34px;
}

.family-page{
  display:none;
}

.family-page.active{
  display:block;
}

.family-page-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:16px;
}

.family-page-head h1{
  margin:0;
  font-size:24px;
  letter-spacing:-.5px;
}

.family-page-head p{
  margin:5px 0 0;
  color:var(--family-muted);
  font-size:12px;
  line-height:1.55;
}

.family-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.family-button{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 14px;
  border:1px solid #d8e0eb;
  border-radius:9px;
  background:#fff;
  color:#23375b;
  font-size:12px;
  font-weight:750;
}

.family-button:hover{
  background:#f8fbff;
}

.family-button.primary{
  border-color:var(--family-primary);
  background:var(--family-primary);
  color:#fff;
}

.family-button.primary:hover{
  background:var(--family-primary-dark);
}

.family-button.danger{
  color:var(--family-red);
  border-color:#f0c8ce;
}

.family-button:disabled{
  cursor:not-allowed;
  opacity:.55;
}

.family-card{
  border:1px solid var(--family-border);
  border-radius:var(--family-radius);
  background:#fff;
  box-shadow:0 3px 14px rgba(15,23,42,.035);
}

.family-card-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:15px 16px;
  border-bottom:1px solid var(--family-border-soft);
}

.family-card-head h2,
.family-card-head h3{
  margin:0;
  font-size:14px;
}

.family-card-body{
  padding:16px;
}

.family-overview-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 285px;
  gap:18px;
}

.family-overview-main{
  min-width:0;
}

.family-overview-side{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.family-hero{
  min-height:190px;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  padding:30px 38% 30px 34px;
  border-radius:14px;
  background:
    radial-gradient(circle at 76% 48%,rgba(78,160,255,.58),transparent 33%),
    linear-gradient(110deg,#09285d,#0b45a8 55%,#1268e5);
  color:#fff;
  box-shadow:var(--family-shadow);
}

.family-hero::after{
  content:"";
  position:absolute;
  width:250px;
  height:250px;
  right:8%;
  top:-70px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:50%;
}

.family-hero-content{
  position:relative;
  z-index:2;
}

.family-hero h1{
  margin:0;
  font-size:31px;
  line-height:1.12;
  letter-spacing:-.7px;
}

.family-hero p{
  max-width:590px;
  margin:12px 0 0;
  color:rgba(255,255,255,.86);
  font-size:13px;
  line-height:1.6;
}

.family-hero-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:20px;
}

.family-hero .family-button{
  border-color:rgba(255,255,255,.6);
  background:rgba(255,255,255,.12);
  color:#fff;
  backdrop-filter:blur(8px);
}

.family-hero .family-button.primary{
  border-color:#fff;
  background:#fff;
  color:#0a4fa9;
}

.family-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:14px 0;
}

.family-metric{
  min-height:92px;
  padding:14px;
  border:1px solid var(--family-border);
  border-radius:12px;
  background:#fff;
}

.family-metric-label{
  color:var(--family-muted);
  font-size:10px;
  font-weight:750;
}

.family-metric-value{
  margin-top:8px;
  color:#102246;
  font-size:25px;
  line-height:1;
  font-weight:850;
}

.family-metric-note{
  margin-top:7px;
  color:#8993a5;
  font-size:9px;
}

.family-two-column{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:14px;
}

.family-stack{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.family-list-row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 0;
  border-bottom:1px solid var(--family-border-soft);
}

.family-list-row:last-child{
  border-bottom:0;
}

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

.family-row-title{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  font-weight:800;
}

.family-row-subtitle{
  margin-top:3px;
  color:var(--family-muted);
  font-size:10px;
  line-height:1.4;
}

.family-row-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.family-chip{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 8px;
  border-radius:999px;
  background:#f2f4f7;
  color:#475467;
  font-size:9px;
  font-weight:750;
}

.family-chip.active,
.family-chip.approved,
.family-chip.awarded,
.family-chip.open{
  background:#e9f8f1;
  color:#177451;
}

.family-chip.draft{
  background:#fff5df;
  color:#9a6510;
}

.family-chip.submitted,
.family-chip.review,
.family-chip.shortlisted{
  background:#eaf3ff;
  color:#155fa8;
}

.family-chip.rejected,
.family-chip.withdrawn,
.family-chip.closed{
  background:#fff0f2;
  color:#ad3141;
}

.family-empty,
.family-error,
.family-loading{
  padding:22px 16px;
  text-align:center;
  color:var(--family-muted);
  font-size:11px;
  line-height:1.55;
}

.family-error{
  color:#a7313e;
}

.family-filter-bar{
  display:grid;
  grid-template-columns:minmax(220px,1fr) repeat(3,minmax(140px,190px)) auto;
  gap:9px;
  margin-bottom:14px;
  padding:12px;
  border:1px solid var(--family-border);
  border-radius:12px;
  background:#fff;
}

.family-input,
.family-select,
.family-textarea{
  width:100%;
  border:1px solid #d8e0eb;
  border-radius:9px;
  background:#fff;
  color:var(--family-text);
  outline:0;
  transition:.17s ease;
}

.family-input,
.family-select{
  height:40px;
  padding:0 11px;
  font-size:11px;
}

.family-textarea{
  min-height:100px;
  resize:vertical;
  padding:10px 11px;
  font-size:11px;
  line-height:1.5;
}

.family-input:focus,
.family-select:focus,
.family-textarea:focus{
  border-color:#7fb2ef;
  box-shadow:0 0 0 3px rgba(10,102,194,.07);
}

.family-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.family-discovery-card{
  min-width:0;
  display:flex;
  flex-direction:column;
  padding:15px;
  border:1px solid var(--family-border);
  border-radius:12px;
  background:#fff;
  box-shadow:0 3px 14px rgba(15,23,42,.03);
}

.family-discovery-top{
  display:flex;
  gap:11px;
  align-items:flex-start;
}

.family-logo{
  width:48px;
  height:48px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid #e1e7ef;
  border-radius:11px;
  background:#f3f7fc;
  color:#496483;
  font-size:13px;
  font-weight:850;
}

.family-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.family-discovery-title{
  margin:0;
  font-size:13px;
  line-height:1.3;
  font-weight:850;
}

.family-discovery-source{
  margin-top:4px;
  color:var(--family-muted);
  font-size:10px;
}

.family-discovery-description{
  margin:11px 0 0;
  color:#566177;
  font-size:10px;
  line-height:1.55;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.family-discovery-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:11px;
}

.family-discovery-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-top:auto;
  padding-top:14px;
}

.family-money{
  color:#0a4fa9;
  font-size:12px;
  font-weight:850;
}

.family-small-button{
  min-height:31px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  border:1px solid #d8e0eb;
  border-radius:8px;
  background:#fff;
  color:#2b3d5d;
  font-size:10px;
  font-weight:750;
}

.family-small-button.primary{
  border-color:#0a66c2;
  background:#0a66c2;
  color:#fff;
}

.family-small-button.saved{
  border-color:#b8d7f8;
  background:#eaf3ff;
  color:#155fa8;
}

.family-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.family-field.full{
  grid-column:1/-1;
}

.family-label{
  display:block;
  margin-bottom:6px;
  color:#344054;
  font-size:10px;
  font-weight:750;
}

.family-help{
  margin-top:5px;
  color:#98a2b3;
  font-size:9px;
  line-height:1.45;
}

.family-form-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--family-border-soft);
}

.family-request-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  padding:15px 0;
  border-bottom:1px solid var(--family-border-soft);
}

.family-request-card:last-child{
  border-bottom:0;
}

.family-request-title{
  margin:0;
  font-size:13px;
  font-weight:850;
}

.family-request-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:7px;
  color:var(--family-muted);
  font-size:9px;
}

.family-child-card{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px;
  border:1px solid var(--family-border);
  border-radius:12px;
  background:#fff;
}

.family-child-avatar{
  width:54px;
  height:54px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:50%;
  background:#eaf3ff;
  color:#0a66c2;
  font-weight:850;
}

.family-child-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.family-child-main{
  min-width:0;
  flex:1;
}

.family-child-main h3{
  margin:0;
  font-size:13px;
}

.family-child-main p{
  margin:4px 0 0;
  color:var(--family-muted);
  font-size:10px;
  line-height:1.5;
}

.family-network-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.family-network-stat{
  padding:12px;
  border:1px solid var(--family-border-soft);
  border-radius:10px;
  background:#fafcff;
}

.family-network-stat strong{
  display:block;
  color:#102246;
  font-size:18px;
}

.family-network-stat span{
  display:block;
  margin-top:3px;
  color:var(--family-muted);
  font-size:9px;
}

.family-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:5000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(7,19,42,.48);
}

.family-modal-backdrop.active{
  display:flex;
}

.family-modal{
  width:min(720px,100%);
  max-height:min(86vh,900px);
  overflow:auto;
  border-radius:15px;
  background:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.2);
}

.family-modal-head{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid var(--family-border);
  background:#fff;
}

.family-modal-head h2{
  margin:0;
  font-size:16px;
}

.family-modal-head p{
  margin:4px 0 0;
  color:var(--family-muted);
  font-size:10px;
}

.family-modal-close{
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:#f3f5f8;
  color:#344054;
}

.family-modal-body{
  padding:18px;
}

.family-message-layout{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  min-height:620px;
  overflow:hidden;
  border:1px solid var(--family-border);
  border-radius:14px;
  background:#fff;
}

.family-conversation-list{
  border-right:1px solid var(--family-border);
  overflow:auto;
}

.family-conversation-item{
  width:100%;
  display:flex;
  gap:10px;
  padding:12px;
  border:0;
  border-bottom:1px solid var(--family-border-soft);
  background:#fff;
  text-align:left;
}

.family-conversation-item.active{
  background:#eef6ff;
}

.family-conversation-copy{
  min-width:0;
  flex:1;
}

.family-conversation-copy strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
}

.family-conversation-copy span{
  display:block;
  margin-top:4px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--family-muted);
  font-size:9px;
}

.family-chat{
  min-width:0;
  display:flex;
  flex-direction:column;
}

.family-chat-head{
  min-height:58px;
  display:flex;
  align-items:center;
  padding:0 16px;
  border-bottom:1px solid var(--family-border);
  font-size:12px;
  font-weight:800;
}

.family-chat-messages{
  flex:1;
  overflow:auto;
  padding:16px;
  background:#fbfcfe;
}

.family-message-bubble{
  max-width:72%;
  margin:7px 0;
  padding:9px 11px;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--family-border);
  color:#344054;
  font-size:10px;
  line-height:1.5;
}

.family-message-bubble.mine{
  margin-left:auto;
  border-color:#c5def8;
  background:#eaf3ff;
  color:#174e85;
}

.family-chat-compose{
  display:flex;
  gap:8px;
  padding:11px;
  border-top:1px solid var(--family-border);
  background:#fff;
}

.family-chat-compose input{
  flex:1;
}

.family-notification-row{
  display:flex;
  gap:12px;
  padding:13px 0;
  border-bottom:1px solid var(--family-border-soft);
}

.family-notification-row.unread{
  background:linear-gradient(90deg,#f5faff,transparent);
}

.family-notification-main{
  min-width:0;
  flex:1;
}

.family-notification-main strong{
  font-size:11px;
}

.family-notification-main p{
  margin:4px 0 0;
  color:var(--family-muted);
  font-size:10px;
  line-height:1.5;
}

.family-notification-time{
  color:#98a2b3;
  font-size:9px;
  white-space:nowrap;
}

.family-investor-banner{
  margin-bottom:14px;
  padding:14px 16px;
  border:1px solid #dacdfc;
  border-radius:12px;
  background:#f6f2ff;
  color:#53389e;
  font-size:11px;
  line-height:1.55;
}

.family-investor-banner strong{
  display:block;
  margin-bottom:3px;
}

.family-toast-wrap{
  position:fixed;
  top:78px;
  right:18px;
  z-index:9000;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.family-toast{
  min-width:260px;
  max-width:390px;
  padding:11px 13px;
  border:1px solid #dce4ee;
  border-radius:10px;
  background:#fff;
  box-shadow:var(--family-shadow);
  color:#344054;
  font-size:10px;
  line-height:1.45;
}

.family-toast.error{
  border-color:#f0c8ce;
  color:#a7313e;
}

.family-toast.success{
  border-color:#bee6d4;
  color:#176b4d;
}

@media(max-width:1180px){
  .family-overview-grid{
    grid-template-columns:1fr;
  }

  .family-overview-side{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .family-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .family-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:900px){
  :root{
    --family-sidebar:0px;
  }

  .family-topbar{
    grid-template-columns:auto 1fr auto;
  }

  .family-brand-copy span,
  .family-account-copy{
    display:none;
  }

  .family-account{
    min-width:auto;
    border:0;
    padding:0;
  }

  .family-sidebar{
    transform:translateX(-100%);
    width:250px;
    transition:transform .2s ease;
  }

  body.family-menu-open .family-sidebar{
    transform:translateX(0);
  }

  .family-workspace{
    padding:14px;
  }

  .family-global-search-wrap{
    padding:0 10px;
  }

  .family-filter-bar{
    grid-template-columns:1fr 1fr;
  }

  .family-two-column,
  .family-form-grid,
  .family-message-layout{
    grid-template-columns:1fr;
  }

  .family-conversation-list{
    max-height:280px;
    border-right:0;
    border-bottom:1px solid var(--family-border);
  }
}

@media(max-width:640px){
  .family-topbar{
    grid-template-columns:auto 1fr auto;
  }

  .family-brand{
    padding:0 10px;
  }

  .family-brand-copy strong{
    font-size:15px;
  }

  .family-top-actions{
    padding-right:8px;
  }

  .family-global-search-wrap{
    display:none;
  }

  .family-page-head{
    flex-direction:column;
  }

  .family-hero{
    padding:25px 20px;
  }

  .family-hero h1{
    font-size:25px;
  }

  .family-metrics,
  .family-grid,
  .family-overview-side,
  .family-network-grid,
  .family-filter-bar{
    grid-template-columns:1fr;
  }

  .family-request-card{
    grid-template-columns:1fr;
  }

  .family-row-actions{
    justify-content:flex-start;
  }

  .family-modal-backdrop{
    padding:0;
    align-items:flex-end;
  }

  .family-modal{
    max-height:94vh;
    border-radius:16px 16px 0 0;
  }
}


/* Focused AIFT Family mobile workspace */
.aift-mobile-nav,
.mobile-nav,
.mobile-bottom-nav,
.bottom-nav{
  display:none!important;
}

body{
  padding-bottom:0!important;
}

@media(max-width:640px){
  .family-topbar{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    width:100%!important;
    padding:0 12px!important;
  }

  .family-brand{
    flex:0 0 auto;
    justify-content:flex-start;
    padding:0!important;
  }

  .family-menu-icon{width:26px;height:26px;}

  .family-top-actions{
    flex:0 0 auto;
    margin-left:auto!important;
    padding:0!important;
    gap:8px;
  }

  .family-icon-button{
    width:36px;
    height:36px;
  }

  .family-account{
    min-width:0!important;
    padding:0!important;
    border:0!important;
  }

  .family-avatar{
    width:38px;
    height:38px;
  }

  .family-workspace{
    padding:12px 10px 28px;
  }

  .family-hero{
    padding:20px 16px;
    border-radius:16px;
  }

  .family-hero h1{
    max-width:100%;
    font-size:21px;
    line-height:1.12;
    letter-spacing:-.35px;
  }

  .family-hero p{
    margin-top:9px;
    font-size:11px;
    line-height:1.48;
  }

  .family-hero-actions{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    width:100%;
    margin-top:15px;
  }

  .family-hero .family-button{
    width:100%;
    min-width:0;
    min-height:38px;
    padding:6px 4px;
    border-radius:10px;
    white-space:nowrap;
    font-size:9px;
    line-height:1.1;
  }

  #aiftMyReviewButton.aift-my-review-button{
    right:12px!important;
    bottom:12px!important;
    z-index:7900!important;
  }

  #aiftMyReviewPanel.aift-my-review-panel{
    right:12px!important;
    bottom:64px!important;
    width:min(430px,calc(100vw - 24px))!important;
    max-height:calc(100dvh - 88px)!important;
  }
}


/* Family mobile top bar follows scroll direction. */
.family-topbar{
  transition:transform .22s ease,box-shadow .22s ease!important;
  will-change:transform;
}

body.family-topbar-hidden .family-topbar{
  transform:translateY(-105%)!important;
  box-shadow:none!important;
}

@media(prefers-reduced-motion:reduce){
  .family-topbar{
    transition:none!important;
  }
}
