/* Shared studio surfaces; scoped so chat geometry and private tool controls stay intact. */
body.member-page,.owner-body{background:#f4f8ff;color:#102746}
.member-account{max-width:1000px;margin:32px auto;padding:0 20px;box-sizing:border-box}
.member-account .member-page-heading{margin-bottom:24px;text-align:start}
.member-account .member-page-heading h1,#owner-home .hq-heading h1{font-size:clamp(26px,4vw,38px);line-height:1.5;color:#102746}
.member-account .member-page-heading p{max-width:680px;color:#536b82;line-height:1.9}
.member-account .member-card{border:1px solid #d7e3f1;border-radius:24px;background:#fff;box-shadow:0 10px 30px #163e6810;padding:24px}
.nq-account-identity{position:relative;padding:4px 0 20px;border-bottom:1px solid #e0eaf5;margin-bottom:20px}
.nf-account-avatar{display:grid;place-items:center;width:64px;height:64px;border-radius:20px;background:linear-gradient(140deg,#08c1dd,#1469ec);font-size:34px;font-weight:800;color:#fff;overflow:hidden;margin-bottom:12px}
.nf-account-avatar img{width:100%;height:100%;object-fit:cover}
.member-account .account-sections{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.member-account .account-sections a,.member-account .member-secondary{border:1px solid #cbddef;background:#f2f7ff;color:#245276;border-radius:14px;min-height:44px;padding:10px 14px;box-sizing:border-box;text-decoration:none}
.member-account .nq-account-primary{background:#1168ed;color:#fff;border-color:#1168ed}
.member-account .account-optional{border:1px solid #dce7f3;border-radius:18px;background:#fbfdff;padding:16px;margin-top:16px}
.member-account .account-optional summary{cursor:pointer;min-height:32px;font-weight:700;color:#234b70}
.member-account .member-actions{display:flex;flex-wrap:wrap;gap:10px}
.member-account input,.member-account select,.member-account textarea{max-width:100%;box-sizing:border-box}
#owner-gate,#team-app{box-sizing:border-box;max-width:1100px;margin:32px auto;padding:24px}
#owner-gate{border:1px solid #d7e3f1;border-radius:24px;background:#fff;max-width:700px}
#owner-home .hq-heading{padding:24px;border:1px solid #d5e4f5;border-radius:24px;background:linear-gradient(130deg,#fff,#eaf5ff);text-align:start}
#owner-home .hq-heading p{color:#536b82;line-height:1.9}
#owner-home .hq-eyebrow{color:#1168ed;font-weight:700;font-size:13px}
#owner-home .workspace-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
#owner-home .assistant-card{display:flex;justify-content:center;flex-direction:column;min-height:120px;padding:20px;border:1px solid #d0e1f3;border-radius:20px;background:#fff;color:#214e74;font:inherit;font-weight:700;text-decoration:none;box-shadow:0 6px 24px #173c6209;cursor:pointer;box-sizing:border-box}
#owner-home .assistant-card:first-child{background:#1168ed;color:#fff;border-color:#1168ed}
.nf-owner-allowance{border:1px solid #cde4f4;border-radius:18px;padding:18px 22px;background:#eef9fc;line-height:1.9;color:#24516e}.nf-owner-allowance strong{color:#095d9c;unicode-bidi:isolate}.nf-owner-allowance small{font-size:13px}
#owner-home .hq-resume{border:1px solid #d7e3f1;border-radius:20px;background:#fff;padding:20px}
#team-app [hidden],#owner-gate[hidden],#team-app[hidden]{display:none!important}
#team-menu #reload-owner{font:inherit;min-height:44px;border:1px solid #cbddef;border-radius:12px;padding:10px;color:#245276;background:#edf5ff}
.nf-status-page{max-width:640px;box-sizing:border-box;margin:10vh auto;padding:28px;text-align:center;color:#102746}.nf-status-page img{width:64px;height:64px}.nf-status-page a{display:inline-block;padding:14px 22px;background:#1168ed;color:white;border-radius:14px;text-decoration:none}
@media(max-width:600px){.member-account{margin-top:24px;padding:0 16px}.member-account .member-card{padding:18px}#owner-gate,#team-app{margin:20px 12px;padding:16px}#owner-home .hq-heading{padding:18px}#owner-home .workspace-grid{grid-template-columns:1fr}.nf-owner-allowance{padding:16px}.member-account .member-actions>*{flex:1;text-align:center}.member-account .member-email{overflow-wrap:anywhere}}
/* Override legacy business-card colors and compressed action widths. */
#owner-home .assistant-card{background:#fff!important;color:#214e74!important;text-align:start!important;line-height:1.8!important}
#owner-home .assistant-card:first-child{background:#1168ed!important;color:#fff!important}
#owner-home .assistant-card:before{display:none!important}
#owner-home .hq-resume button{display:inline-block!important;background:#1168ed!important;color:#fff!important;border:1px solid #1168ed!important;border-radius:14px;padding:12px 18px;min-height:46px;font:inherit;cursor:pointer}
.member-account .member-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
.member-account .member-actions>*{width:auto!important;min-width:0!important;margin:0!important;text-align:center;line-height:1.8;overflow-wrap:normal}
.member-account .member-actions .nq-account-primary{background:#1168ed!important;color:#fff!important}

.nf-studio-narration [data-trim]:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: .75rem;
}
.nf-studio-narration label { margin: .5rem 0; }
.nf-studio-narration input[type=file],
.nf-studio-narration input[type=number] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: .45rem .6rem;
  border: 1px solid #bdcce0;
  border-radius: .65rem;
  font: inherit;
}
.nf-studio-narration [data-listen] { min-height: 44px; }
.nf-studio-narration [role=status] { min-height: 1.5em; }
