/* Official BrandGrove customer dashboard presentation.
   Scoped to .portal-shell so demo-mode chrome is unchanged.
   Tokens and login/setup wordmark also apply to the signed-out owner screens.
   Do not use the prototype's hash routing or mock data. */
.portal-shell button:focus-visible,
.portal-shell a:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:4px
}
.portal-shell button:hover,
.portal-shell a:hover {
  transition:background-color .15s,box-shadow .15s,border-color .15s,color .15s
}
.portal-shell h1,
.portal-shell h2,
.portal-shell h3,
.portal-shell p {
  margin:0
}
html, body, #app {
  margin:0;
  min-height:100%;
  min-height:100dvh;
  background:var(--base,#f5f7fc)
}
.portal-shell,
.portal-shell.shell {
  min-height:100%;
  min-height:100dvh;
  width:100%;
  padding-left:0;
  background:var(--base,#f5f7fc);
  display:grid;
  grid-template-columns:248px minmax(0,1fr);
  align-items:stretch
}
.portal-shell .rail {
  height:auto;
  min-height:100%;
  align-self:stretch;
  position:sticky;
  top:0;
  background:white;
  border-right:1px solid var(--line);
  padding:26px 17px 21px;
  display:flex;
  flex-direction:column
}
.portal-shell .brand {
  width:166px;
  height:37px;
  position:relative;
  display:block;
  overflow:hidden;
  margin:4px 0 25px 7px
}
.portal-shell .brand img {
  width:209px;
  max-width:none;
  height:auto;
  position:absolute;
  left:-23px;
  top:-35px;
  mix-blend-mode:multiply;
  display:block
}
.portal-shell .workspace {
  display:flex;
  align-items:center;
  gap:11px;
  padding:11px 10px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#f8f9fd;
  min-width:0
}
.portal-shell .workspace:hover {
  background:#f1f2fc;
  border-color:#c9c5f0
}
.portal-shell .workspace-icon {
  display:grid;
  place-items:center;
  width:39px;
  height:39px;
  flex:none;
  background:#e9e7ff;
  color:#4c3ac2;
  border-radius:10px
}
.portal-shell .workspace-icon svg {
  width:19px;
  height:19px
}
.portal-shell .workspace small,
.portal-shell .workspace strong {
  display:block
}
.portal-shell .workspace small {
  color:var(--quiet);
  font-size:.8125rem
}
.portal-shell .workspace strong {
  font-size:.95rem;
  line-height:1.25
}
.portal-shell .selector {
  margin-left:auto;
  width:16px;
  color:var(--quiet)
}
.portal-shell .nav-label {
  color:var(--quiet);
  font-size:.75rem;
  font-weight:750;
  letter-spacing:.11em;
  margin:27px 0 9px 11px
}
.portal-shell .rail nav {
  display:grid;
  gap:5px
}
.portal-shell .rail nav a {
  display:flex;
  gap:11px;
  align-items:center;
  min-height:46px;
  padding:10px 12px;
  color:var(--muted);
  font-size:.95rem;
  font-weight:640;
  border-radius:10px;
  border:1px solid transparent
}
.portal-shell .rail nav a:hover {
  background:#f4f5fc;
  color:var(--ink)
}
.portal-shell .rail nav a[aria-current] {
  background:#eeedff;
  color:#4939bd;
  border-color:#e2defe
}
.portal-shell .topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:#fff;
  border-bottom:1px solid var(--line);
  height:76px;
  padding:0 32px
}
.portal-shell .breadcrumb {
  display:flex;
  gap:10px;
  font-size:.9375rem;
  color:var(--muted);
  align-items:center
}
.portal-shell .breadcrumb strong {
  color:var(--ink)
}
.portal-shell .slash {
  color:#8c93a6
}
.portal-shell .top-actions {
  display:flex;
  align-items:center;
  gap:12px;
  position:relative
}
.portal-shell .btn {
  min-height:42px;
  border:1px solid transparent;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:9px 14px;
  font-size:.9375rem;
  font-weight:700;
  white-space:nowrap
}
.portal-shell .btn svg {
  width:18px;
  height:18px
}
.portal-shell .quiet {
  background:#fff;
  border-color:var(--line);
  color:#37415b
}
.portal-shell .quiet:hover {
  background:#f4f4ff;
  border-color:#d8d3ff
}
.portal-shell .avatar {
  border:1px solid #dcd7fc;
  background:#eeebff;
  color:#4430ae;
  font-size:.8125rem;
  font-weight:800;
  border-radius:50%;
  width:41px;
  height:41px
}
.portal-shell .avatar:hover {
  background:#e5dfff
}
.portal-shell .profile-menu {
  position:absolute;
  right:0;
  top:49px;
  z-index:5;
  background:white;
  border:1px solid var(--line);
  box-shadow:0 10px 30px #22295622;
  padding:6px;
  border-radius:12px;
  min-width:150px
}
.portal-shell .profile-menu a,
.portal-shell .profile-menu button {
  display:flex;
  width:100%;
  align-items:center;
  gap:9px;
  padding:9px 10px;
  color:var(--ink);
  background:none;
  border:0;
  border-radius:7px;
  font-size:.93rem;
  text-align:left
}
.portal-shell .profile-menu a:hover,
.portal-shell .profile-menu button:hover {
  background:#efedff
}
.portal-shell .profile-menu svg {
  width:17px
}
.portal-shell main {
  max-width:1250px;
  margin:auto;
  padding:27px 32px 18px
}
.portal-shell .hero {
  border-radius:21px;
  overflow:hidden;
  position:relative;
  isolation:isolate;
  background:radial-gradient(ellipse at 94% 4%,#5242bf66,transparent 58%),radial-gradient(ellipse at 60% 120%,#17449577,transparent 72%),linear-gradient(111deg,#101a39,#172657 61%,#2b236b);
  color:#fff;
  min-height:229px;
  display:flex;
  align-items:center;
  box-shadow:0 8px 22px #17245b23
}
.portal-shell .hero-copy {
  position:relative;
  z-index:1;
  padding:22px 31px 24px;
  width:100%;
  max-width:660px
}
.portal-shell .hero-tag,
.portal-shell .minor {
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.12em
}
.portal-shell .hero-tag {
  display:inline-flex;
  border:1px solid #9db0ee50;
  border-radius:50px;
  color:#e1e9ff;
  background:#cedaff14;
  padding:4px 9px
}
.portal-shell .hero h1 {
  font-size:clamp(2.35rem,4.3vw,3.45rem);
  font-weight:760;
  letter-spacing:-.055em;
  line-height:1.08;
  margin:8px 0
}
.portal-shell .hero p {
  color:#dce3f7;
  font-size:1.025rem;
  max-width:440px
}
.portal-shell .hero-btn {
  margin-top:14px;
  background:#fff;
  color:#24347a;
  border-color:#fff
}
.portal-shell .hero-btn:hover {
  background:#eae7ff;
  border-color:#eae7ff
}
.portal-shell .hero-art {
  height:220px;
  width:340px;
  position:absolute;
  right:2%;
  top:50%;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  color:#d6ddff;
  opacity:.9
}
.portal-shell .hero-art i {
  width:88%;
  height:72%;
  position:absolute;
  border:1px solid #91a1ff50;
  border-radius:50%;
  transform:rotate(-24deg)
}
.portal-shell .hero-art i:nth-child(2) {
  width:72%;
  height:62%;
  transform:rotate(22deg)
}
.portal-shell .hero-art i:nth-child(3) {
  width:61%;
  height:56%;
  transform:rotate(-40deg);
  border-color:#77dbf552
}
.portal-shell .hero-art i:nth-child(4) {
  width:96%;
  height:80%;
  transform:rotate(-16deg);
  border-color:#8c89f02f
}
.portal-shell .art-cal {
  z-index:1;
  width:87px;
  height:87px;
  display:grid;
  place-items:center;
  background:linear-gradient(140deg,#84d5ff44,#9377fb75);
  border:1px solid #b2bbff9c;
  border-radius:23px;
  box-shadow:0 10px 30px #22246944,inset 0 0 19px #ced0ff24;
  transform:rotate(-9deg)
}
.portal-shell .art-cal svg {
  width:42px;
  height:42px;
  stroke-width:1.45
}
.portal-shell .star {
  position:absolute;
  color:#a9e7ff;
  font-size:1.35rem
}
.portal-shell .star.one {
  top:25%;
  right:18%
}
.portal-shell .star.two {
  bottom:19%;
  left:17%;
  color:#c8afff;
  font-size:1.7rem
}
.portal-shell .section {
  margin-top:22px
}
.portal-shell .section-head {
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  margin-bottom:10px
}
.portal-shell .section-head h2,
.portal-shell .empty h2,
.portal-shell .account-card h2 {
  font-size:1.22rem;
  line-height:1.28;
  letter-spacing:-.02em;
  font-weight:760
}
.portal-shell .section-head p {
  margin-top:3px;
  color:var(--muted);
  font-size:.9375rem
}
.portal-shell .section-sub {
  font-size:.875rem;
  color:var(--quiet)
}
.portal-shell .metrics,
.portal-shell .card-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px
}
.portal-shell .metric,
.portal-shell .action {
  background:#fff;
  border:1px solid var(--line);
  border-radius:13px;
  box-shadow:var(--shadow);
  text-align:left;
  min-width:0;
  color:var(--ink)
}
.portal-shell .metric {
  min-height:91px;
  display:grid;
  grid-template-columns:38px 1fr;
  grid-template-rows:auto auto;
  gap:0 10px;
  align-content:center;
  padding:11px 13px
}
.portal-shell .metric .icon-tile {
  grid-row:1/3;
  align-self:center
}
.portal-shell .metric strong {
  font-size:1.75rem;
  line-height:1.1;
  font-weight:770;
  letter-spacing:-.04em
}
.portal-shell .metric>span:last-child {
  font-size:.875rem;
  color:var(--muted);
  font-weight:600
}
.portal-shell .action:hover,
.portal-shell .metric:hover {
  border-color:#b5a9f4;
  background:#fdfcff;
  box-shadow:0 6px 18px #34267b15
}
.portal-shell .icon-tile {
  border-radius:10px;
  width:37px;
  height:37px;
  display:grid;
  place-items:center;
  flex:none
}
.portal-shell .icon-tile svg {
  width:19px;
  height:19px
}
.portal-shell .sky {
  color:#087d99;
  background:#e3f7fc
}
.portal-shell .lilac {
  color:#6a3dbb;
  background:#f0eafe
}
.portal-shell .blue {
  color:#315bd5;
  background:#e8efff
}
.portal-shell .action {
  font:inherit;
  display:flex;
  gap:11px;
  padding:13px 12px;
  align-items:flex-start;
  min-height:84px
}
.portal-shell .action-title {
  font-size:.97rem;
  font-weight:740;
  letter-spacing:-.01em;
  line-height:1.26;
  margin:1px 0 4px
}
.portal-shell .action-description {
  font-size:.875rem;
  line-height:1.37;
  color:var(--muted)
}
.portal-shell .action-text {
  min-width:0
}
.portal-shell .action-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  margin:8px 0 0 auto;
  background:#6544d5;
  opacity:.6;
  flex:none
}
.portal-shell .settings {
  margin-top:19px
}
.portal-shell .subhead {
  padding:14px 0 20px
}
.portal-shell .minor {
  color:#5841b7
}
.portal-shell .subhead h1 {
  font-size:clamp(1.95rem,4vw,3.15rem);
  font-weight:760;
  letter-spacing:-.05em;
  line-height:1.1;
  margin:5px 0 9px
}
.portal-shell .subhead p,
.portal-shell .empty p,
.portal-shell .account-card p {
  color:var(--muted)
}
.portal-shell .switches {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:0 0 11px
}
.portal-shell .filter {
  background:white;
  border:1px solid var(--line);
  padding:9px 14px;
  border-radius:8px;
  color:var(--muted);
  font-weight:650
}
.portal-shell .filter[aria-pressed=true] {
  background:#eeedff;
  border-color:#cfc8fa;
  color:#4530ad
}
.portal-shell .empty,
.portal-shell .account-card {
  background:white;
  border-radius:15px;
  border:1px solid var(--line);
  box-shadow:var(--shadow)
}
.portal-shell .empty {
  min-height:205px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  text-align:center;
  padding:20px
}
.portal-shell .empty .icon-tile {
  margin-bottom:4px
}
.portal-shell .account-card {
  display:flex;
  gap:14px;
  align-items:center;
  max-width:610px;
  padding:18px
}
.portal-shell .account-card .btn {
  margin-left:auto
}
.portal-shell .primary {
  background:#4c3cc4;
  color:white
}
.portal-shell .primary:hover {
  background:#3f2eaa
}
.portal-shell .icon-button {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  background:white;
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--muted)
}
.portal-shell .icon-button:hover {
  background:#eeedff
}
@media(max-width:1050px) {
  .portal-shell {
    grid-template-columns:204px minmax(0,1fr)
  }
  .portal-shell .topbar {
    padding:0 23px
  }
  .portal-shell main {
    padding:23px
  }
  .portal-shell .hero-art {
    right:0;
    width:260px
  }
  .portal-shell .hero-copy {
    max-width:530px
  }
  .portal-shell .hero p {
    max-width:340px
  }
  .portal-shell .card-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}

@media(max-width:760px) {
  .portal-shell {
    display:block
  }
  .portal-shell .rail {
    position:relative;
    height:auto;
    padding:13px 17px 0;
    border-right:0;
    border-bottom:1px solid var(--line);
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:11px
  }
  .portal-shell .brand {
    margin:0;
    width:155px;
    height:32px
  }
  .portal-shell .brand img {
    width:194px;
    left:-22px;
    top:-33px
  }
  .portal-shell .workspace {
    padding:5px 7px;
    gap:7px;
    border-radius:9px
  }
  .portal-shell .workspace-icon {
    width:31px;
    height:31px;
    border-radius:7px
  }
  .portal-shell .workspace small {
    display:none
  }
  .portal-shell .workspace strong {
    font-size:.86rem
  }
  .portal-shell .selector {
    width:14px
  }
  .portal-shell .nav-label,
  .portal-shell .rail-note {
    display:none
  }
  .portal-shell .rail nav {
    grid-column:1/-1;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:4px;
    padding-bottom:8px;
    overflow-x:hidden
  }
  .portal-shell .rail nav a {
    gap:5px;
    justify-content:center;
    padding:6px 2px;
    min-height:40px;
    font-size:.85rem
  }
  .portal-shell .rail nav a svg {
    width:17px;
    height:17px
  }
  .portal-shell .topbar {
    height:58px;
    padding:0 17px
  }
  .portal-shell .breadcrumb {
    font-size:.875rem
  }
  .portal-shell .top-actions {
    gap:7px
  }
  .portal-shell .quiet {
    min-height:36px;
    padding:6px 8px;
    font-size:.82rem
  }
  .portal-shell .quiet svg {
    width:15px
  }
  .portal-shell .avatar {
    width:36px;
    height:36px
  }
  .portal-shell main {
    padding:16px 17px
  }
  .portal-shell .hero {
    min-height:205px
  }
  .portal-shell .hero-copy {
    padding:18px
  }
  .portal-shell .hero-art {
    right:-69px;
    width:260px;
    opacity:.36
  }
  .portal-shell .hero h1 {
    margin:7px 0
  }
  .portal-shell .hero p {
    max-width:295px
  }
  .portal-shell .section {
    margin-top:19px
  }
  .portal-shell .metrics {
    gap:7px
  }
  .portal-shell .metric {
    min-height:100px;
    padding:8px 7px;
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto;
    gap:4px
  }
  .portal-shell .metric .icon-tile {
    grid-row:auto;
    width:28px;
    height:28px;
    border-radius:7px
  }
  .portal-shell .metric .icon-tile svg {
    width:16px;
    height:16px
  }
  .portal-shell .metric strong {
    font-size:1.5rem
  }
  .portal-shell .metric>span:last-child {
    font-size:.8125rem;
    line-height:1.23
  }
  .portal-shell .card-grid {
    gap:8px
  }
  .portal-shell .action {
    padding:10px;
    gap:8px;
    min-height:90px
  }
  .portal-shell .action-dot {
    display:none
  }
  .portal-shell .action .icon-tile {
    width:29px;
    height:29px;
    border-radius:7px
  }
  .portal-shell .action .icon-tile svg {
    width:16px
  }
  .portal-shell .action-title {
    font-size:.9rem
  }
  .portal-shell .action-description {
    font-size:.8125rem
  }
}

@media(max-width:400px) {
  .portal-shell .breadcrumb>span {
    display:none
  }
  .portal-shell .rail nav a {
    font-size:.81rem
  }
  .portal-shell .rail nav a svg {
    width:15px
  }
  .portal-shell .card-grid {
    grid-template-columns:1fr
  }
  .portal-shell .action {
    min-height:66px
  }
  .portal-shell .account-card {
    flex-wrap:wrap
  }
  .portal-shell .account-card .btn {
    margin-left:0
  }
  .portal-shell .section-sub {
    display:none
  }
}

.portal-shell .action-title,
.portal-shell .action-description {
  display:block
}
@media(max-width:460px) {
  .portal-shell .hero-art {
    display:none
  }
}

@media(max-width:350px) {
  .portal-shell .rail {
    padding-inline:12px
  }
  .portal-shell .brand {
    width:142px
  }
  .portal-shell .brand img {
    width:178px;
    left:-21px;
    top:-30px
  }
  .portal-shell .workspace .workspace-icon {
    display:none
  }
  .portal-shell .rail nav a {
    gap:3px;
    font-size:.75rem
  }
}


/* Portal chrome resets so generic workspace buttons do not flatten the official cards. */
.portal-shell {
  min-width: 0;
  overflow-x: hidden;
}
.portal-shell .metric,
.portal-shell .action,
.portal-shell .filter,
.portal-shell .avatar,
.portal-shell .workspace {
  min-height: 0;
  font-weight: inherit;
  border-radius: inherit;
}
.portal-shell .metric,
.portal-shell .action {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 11px 13px;
}
.portal-shell .action {
  padding: 13px 12px;
}
.portal-shell .filter {
  background: #fff;
  border: 1px solid var(--line);
}
.portal-shell .avatar {
  padding: 0;
  min-width: 41px;
}
.portal-shell .workspace {
  width: 100%;
  text-align: left;
  background: #f8f9fd;
}
.portal-shell .bottom-nav { display: none !important; }
.portal-shell .brand img { max-width: none; }

/* Sign-in and first-time setup: same wordmark crop and indigo surface. */
.login.account,
.owner-setup-page,
main.login {
  background: var(--base);
  color: var(--ink);
  font-family: "Inter", Aptos, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.login-brand.brand,
.owner-setup-page .brand.login-brand {
  width: 166px;
  height: 37px;
  position: relative;
  display: block;
  overflow: hidden;
  margin: 1.25rem auto 1.5rem;
}
.login-brand.brand img,
.owner-setup-page .brand.login-brand img {
  width: 209px;
  max-width: none;
  height: auto;
  position: absolute;
  left: -23px;
  top: -35px;
  mix-blend-mode: multiply;
  display: block;
}
.login.account h1,
.owner-setup-page h1,
.login.account h2,
.owner-setup-page h2,
.portal-shell h1,
.portal-shell h2,
.portal-shell .setup-step-title {
  font-family: "Inter", Aptos, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 760;
  letter-spacing: -0.03em;
}
.portal-shell .booking-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.45rem;
  box-shadow: var(--shadow);
}
.portal-shell .booking-row header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}
.portal-shell .booking-row .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.portal-shell .booking-categories,
.portal-shell .booking-notes { margin: 0; }
.portal-shell .booking-categories strong,
.portal-shell .booking-notes strong { font-weight: 650; }
.portal-shell .bookings-list { display: grid; gap: 0.75rem; margin-top: 14px; }
.portal-shell .chip.ok { background: #eeedff; color: #4939bd; }
.portal-shell .chip.wait { background: #fff6e6; color: #705322; }

@media (max-width: 760px) {
  .portal-shell,
  .portal-shell.shell {
    display: block;
    grid-template-columns: none;
  }
  .portal-shell .rail nav {
    overflow-x: hidden;
  }
}

/* Official svg sizing was a global rule; keep it scoped so nav icons are 21px, not the 300x150 SVG default. */
.portal-shell svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.portal-shell svg.symbols,
.portal-shell .symbols,
.symbols {
  position: absolute;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden;
}
.portal-shell a {
  text-decoration: none;
  color: inherit;
}


/* Polish: official card size, typography, avatar, rail footer, and upgrade nav. */
.portal-shell .rail-note {
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:auto;
  padding:12px 9px;
  color:#575f7c;
  border-top:1px solid var(--line);
  font-size:.875rem;
}
.portal-shell .rail-note svg { width:19px; height:19px; color:#6453c9; flex:none; }
.portal-shell .rail-note small,
.portal-shell .rail-note strong { display:block; }
.portal-shell .rail-note small { color:var(--quiet,#8b91a7); font-size:.8125rem; font-weight:600; }
.portal-shell .rail-note strong { font-size:.95rem; line-height:1.25; color:var(--ink,#171d33); }

.portal-shell .metric,
.portal-shell .action {
  min-height:0;
  background:#fff;
  border:1px solid var(--line);
  border-radius:13px;
  box-shadow:var(--shadow);
  text-align:left;
  color:var(--ink);
}
.portal-shell .metric {
  min-height:91px;
  display:grid;
  grid-template-columns:38px 1fr;
  grid-template-rows:auto auto;
  gap:0 10px;
  align-content:center;
  padding:11px 13px;
}
.portal-shell .metric strong {
  font-size:1.75rem;
  line-height:1.1;
  font-weight:770;
  letter-spacing:-.04em;
}
.portal-shell .metric>span:last-child {
  font-size:.875rem;
  color:var(--muted);
  font-weight:600;
  white-space:normal;
}
.portal-shell .action {
  font:inherit;
  display:flex;
  gap:11px;
  padding:13px 12px;
  align-items:flex-start;
  min-height:84px;
  width:100%;
}
.portal-shell .action-title {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:.97rem;
  font-weight:740;
  letter-spacing:-.01em;
  line-height:1.26;
  margin:1px 0 4px;
  display:block;
}
.portal-shell .action-description {
  font-size:.875rem;
  line-height:1.37;
  color:var(--muted);
  display:block;
}
.portal-shell .metrics,
.portal-shell .card-grid { gap:12px; }

.portal-shell .avatar {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:41px;
  height:41px;
  min-width:41px;
  min-height:41px;
  padding:0;
  border-radius:50%;
  border:1px solid #dcd7fc;
  background:#eeebff;
  color:#4430ae;
  font-size:.8125rem;
  font-weight:800;
  line-height:1;
  flex:none;
  box-shadow:none;
}

.portal-shell .nav-upgrade { color:var(--muted); }
.portal-shell .upgrade-tag {
  display:inline-block;
  margin-left:6px;
  padding:1px 6px;
  border-radius:999px;
  background:#eeedff;
  color:#4939bd;
  font-size:.6875rem;
  font-weight:800;
  letter-spacing:.04em;
  vertical-align:middle;
}

@media (max-width:760px) {
  .portal-shell .rail-note { display:none; }
  .portal-shell .metric {
    min-height:100px;
    padding:8px 7px;
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto;
    gap:4px;
  }
  .portal-shell .action { min-height:90px; padding:10px; }
  .portal-shell .upgrade-tag { display:block; margin:2px auto 0; width:max-content; }
}

/* Phone UI (max-width 760px): match the BrandGrove mobile dashboard design.
   Desktop styles above this block stay unchanged. */
.portal-shell .phone-only { display: none; }
.portal-shell .mobile-settings { display: none; }
.portal-shell .mobile-profile { display: none; }
.portal-shell .more-intro { padding-bottom: 24px; }
.portal-shell .more-groups { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 950px; }
.portal-shell .more-groups h2 { color: var(--ink); font-size: 1.0625rem; letter-spacing: -.017em; margin: 0 0 8px; }
.portal-shell .tool-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #e4e6f0; border-radius: 15px; overflow: hidden; }
.portal-shell .tool-list li + li { border-top: 1px solid #ebeaf3; }
.portal-shell .tool-row { width: 100%; min-height: 71px; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; background: transparent; border: 0; color: var(--ink); font: inherit; text-decoration: none; }
.portal-shell .tool-row:hover { background: #faf8ff; }
.portal-shell .tool-row:focus-visible { outline-offset: -3px; }
.portal-shell .tool-row .row-next { margin-left: 0; flex: none; width: 15px; height: 15px; color: #635686; }
.portal-shell .tool-copy { flex: 1; min-width: 0; }
.portal-shell .tool-copy strong, .portal-shell .tool-copy small { display: block; line-height: 1.3; }
.portal-shell .tool-copy strong { font-size: 1rem; }
.portal-shell .tool-copy small { color: var(--muted); font-size: .875rem; margin-top: 3px; }
.portal-shell .tool-upgrade { margin-left: auto; font-size: .75rem; font-weight: 700; padding: 3px 7px; border-radius: 20px; background: #f2effa; color: #5e4b85; }
.portal-shell .return-link { display: inline-flex; align-items: center; color: #513eba; font-weight: 700; min-height: 44px; }
.portal-shell .return-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.portal-shell .service-panel { max-width: 690px; border: 1px solid #e0e4ef; background: #fff; border-radius: 18px; overflow: hidden; }
.portal-shell .service-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; }
.portal-shell .service-panel-head h2 { font-size: 1rem; letter-spacing: -.02em; }
.portal-shell .service-panel details { border-top: 1px solid #e8eaf2; }
.portal-shell .service-panel summary { min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 12px 15px; cursor: pointer; list-style: none; }
.portal-shell .service-panel summary::-webkit-details-marker { display: none; }
.portal-shell .service-panel summary strong, .portal-shell .service-panel summary small { display: block; }
.portal-shell .service-panel summary small { font-size: .875rem; color: var(--muted); }
.portal-shell .service-panel summary:focus-visible { outline: 2px solid var(--focus, #4b42cf); outline-offset: -3px; }
.portal-shell .service-panel .expand { margin-left: auto; width: 17px; height: 17px; color: #635a88; }
.portal-shell .service-panel details[open] .expand { transform: rotate(180deg); }
.portal-shell .service-panel details ul { margin: 0 16px 12px; padding: 6px 12px 7px 31px; background: #f8f7fc; border-radius: 10px; }
.portal-shell .service-panel details li { padding: 4px 0; font-size: .9375rem; }
.portal-shell .avatar svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .portal-shell { background: #f6f7fc; }
  .portal-shell .desktop-only { display: none !important; }
  .portal-shell .phone-only { display: revert !important; }
  .portal-shell .rail nav a.phone-only { display: flex !important; }
  .portal-shell .minor { text-transform: uppercase; }
  .portal-shell .workspace small { display: none; }
  .portal-shell .settings { margin-top: 18px; }
  .portal-shell .desktop-settings { display: none; }
  .portal-shell .mobile-settings { display: block; }
  .portal-shell .rail {
    grid-template-columns: minmax(0, 1fr) minmax(0, max-content) auto;
    padding: 8px 17px;
    gap: 8px;
    min-height: 60px;
  }
  .portal-shell .brand { width: 141px; height: 31px; }
  .portal-shell .brand img { width: 178px; left: -20px; top: -30px; }
  .portal-shell .workspace {
    background: #f8f7ff;
    border-color: #e7e3fc;
    border-radius: 12px;
    min-height: 44px;
    padding: 4px 8px;
  }
  .portal-shell .workspace .workspace-icon { color: #5436b8; background: #eee8fc; width: 28px; height: 28px; }
  .portal-shell .workspace > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .portal-shell .mobile-profile { display: block; position: relative; }
  .portal-shell .mobile-profile .avatar { width: 44px; height: 44px; border-color: #e7e3fc; background: #f8f7ff; }
  .portal-shell .mobile-profile .avatar svg { width: 20px; height: 20px; }
  .portal-shell .mobile-profile .profile-menu { top: 50px; min-width: 165px; }
  .portal-shell .mobile-profile .profile-menu > * { min-height: 44px; }
  .portal-shell .rail nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    background: #fff;
    border-top: 1px solid #e6e8f2;
    padding: 6px 9px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 22px #191e3c08;
    overflow: visible;
  }
  .portal-shell .rail nav a {
    flex-direction: column;
    gap: 3px;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    font-size: .8125rem;
    line-height: 1.15;
    font-weight: 660;
    border-radius: 11px;
    padding: 6px 2px;
  }
  .portal-shell .rail nav a svg { width: 19px; height: 19px; }
  .portal-shell .rail nav a[aria-current] { background: #f0ecfd; border-color: transparent; color: #4939bd; }
  .portal-shell .rail nav .upgrade-tag { display: none; }
  .portal-shell .topbar { display: none; }
  .portal-shell .workspace-main main,
  .portal-shell main {
    padding: 15px 16px calc(88px + env(safe-area-inset-bottom, 0px));
    max-width: 580px;
  }
  .portal-shell .hero {
    min-height: 0;
    border-radius: 18px;
    box-shadow: none;
    background: radial-gradient(ellipse at 99% 4%, #524297aa, transparent 75%), linear-gradient(117deg, #1c2745, #30265d);
  }
  .portal-shell .hero-copy { padding: 16px 18px; }
  .portal-shell .hero-tag { border: 0; background: none; padding: 0; color: #d7cef9; font-size: .6875rem; }
  .portal-shell .hero h1 { font-size: 1.95rem; margin: 2px 0 4px; }
  .portal-shell .hero p { font-size: .9375rem; line-height: 1.35; max-width: 235px; }
  .portal-shell .hero-btn { margin-top: 12px; min-height: 44px; font-size: .875rem; padding-inline: 11px; }
  .portal-shell .section { margin-top: 19px; }
  .portal-shell .summary { padding: 0; margin-bottom: 0; }
  .portal-shell .summary .section-head,
  .portal-shell .summary .metric .icon-tile { display: none !important; margin: 0; }
  .portal-shell .metrics { margin: 0; }
  .portal-shell .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #e4e6f0;
    border-radius: 14px;
    overflow: hidden;
    background: white;
  }
  .portal-shell .metric {
    min-height: 66px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 3px;
    padding: 8px 3px;
    text-align: center;
    justify-items: center;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .portal-shell .metric + .metric { border-left: 1px solid #ebeaf3; }
  .portal-shell .metric strong { font-size: 1.2rem; }
  .portal-shell .metric > span:last-child { font-size: .8rem; line-height: 1.2; padding-inline: 1px; }
  .portal-shell .metric:focus-visible { outline-offset: -3px; }
  .portal-shell .settings { margin-top: 22px; }
  .portal-shell .section-head h2 { font-size: 1.28rem; }
  .portal-shell .section-head p { font-size: .9375rem; line-height: 1.4; margin-top: 4px; }
  .portal-shell .ws-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e0daf6;
    border-radius: 14px;
    background: linear-gradient(125deg, #eeeafa, #f9f6ff 78%);
    min-height: 72px;
    color: #251d46;
    text-decoration: none;
    width: 100%;
    font: inherit;
  }
  .portal-shell .ws-feature:hover { background: #ede7fb; border-color: #c6bbed; }
  .portal-shell .feature-icon {
    width: 41px;
    height: 41px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: white;
    background: linear-gradient(145deg, #6148c1, #4f32a4);
    flex: none;
  }
  .portal-shell .feature-icon svg { width: 21px; height: 21px; }
  .portal-shell .ws-feature strong,
  .portal-shell .ws-feature small,
  .portal-shell .ws-row strong,
  .portal-shell .ws-row small { display: block; line-height: 1.3; }
  .portal-shell .ws-feature strong { font-size: 1rem; }
  .portal-shell .ws-feature small,
  .portal-shell .ws-row small { font-size: .875rem; color: #4e5873; margin-top: 2px; }
  .portal-shell .row-next { margin-left: auto; width: 16px; height: 16px; color: #6b6189; flex: none; }
  .portal-shell .ws-feature > span:nth-child(2),
  .portal-shell .ws-row-label { min-width: 0; }
  .portal-shell .ws-list {
    list-style: none;
    padding: 0;
    margin: 9px 0 0;
    background: #fff;
    border: 1px solid #e4e6f0;
    border-radius: 14px;
    overflow: hidden;
  }
  .portal-shell .ws-list li + li { border-top: 1px solid #edefF6; }
  .portal-shell .ws-row {
    min-height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    text-align: left;
    padding: 8px 12px;
    background: transparent;
    border: 0;
    color: var(--ink);
    font: inherit;
    text-decoration: none;
  }
  .portal-shell .ws-row:hover { background: #f8f6ff; }
  .portal-shell .ws-row:focus-visible { outline-offset: -3px; }
  .portal-shell .ws-row .icon-tile { width: 33px; height: 33px; border-radius: 9px; background: #f3effb; color: #5e49a1; }
  .portal-shell .ws-row .icon-tile svg { width: 17px; height: 17px; }
  .portal-shell .ws-row strong { font-size: .9375rem; font-weight: 725; }
  .portal-shell .more-intro { padding: 13px 0 22px; }
  .portal-shell .more-intro h1 { font-size: 2.1rem; }
  .portal-shell .more-groups { grid-template-columns: 1fr; gap: 21px; }
  .portal-shell .tool-row .icon-tile { width: 34px; height: 34px; border-radius: 9px; }
  .portal-shell .tool-row .icon-tile svg { width: 17px; height: 17px; }
  .portal-shell .page-head { display: none; }
}

@media (max-width: 365px) {
  .portal-shell .rail .workspace-icon { display: none; }
  .portal-shell .rail .brand { width: 131px; }
  .portal-shell .rail .brand img { width: 166px; left: -19px; top: -28px; }
}
@media (max-width: 350px) {
  .portal-shell .rail { padding-inline: 12px; }
  .portal-shell main { padding-inline: 12px; }
  .portal-shell .ws-feature { gap: 10px; }
  .portal-shell .ws-row { gap: 9px; }
}

/* Plan & billing card (Account and #billing). Same card language as the phone design. */
.portal-shell .bill-card { max-width: 610px; margin: 0 0 18px; display: grid; gap: 12px; }
.portal-shell .bill-card h2 { font-size: 1.25rem; letter-spacing: -.015em; }
.portal-shell .bill-rows { margin: 0; display: grid; border-top: 1px solid var(--line); }
.portal-shell .bill-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.portal-shell .bill-row dt { color: var(--muted); font-weight: 600; font-size: .9rem; }
.portal-shell .bill-row dd { margin: 0; text-align: right; font-weight: 650; color: var(--ink); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.portal-shell .bill-status { font-size: .75rem; font-weight: 750; padding: 3px 8px; border-radius: 999px; background: #eeedff; color: #4530ad; }
.portal-shell .bill-status.s-past_due, .portal-shell .bill-status.s-unpaid { background: #fdecec; color: #a12222; }
.portal-shell .bill-status.s-trialing { background: #e7f6ee; color: #1f6b43; }
.portal-shell .bill-trial { background: #f3effb; border: 1px solid #d9d0fa; border-radius: 10px; padding: 10px 12px; color: #3a2a99; font-weight: 600; }
.portal-shell .bill-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.portal-shell .bill-actions button { min-height: 44px; }
.portal-shell .link-btn { background: none; border: 0; padding: 0; min-height: 0; color: #4c3cc4; font: inherit; font-weight: 650; text-decoration: underline; cursor: pointer; }
.portal-shell .danger-text { color: #a12222; }
.portal-shell .bill-catalog { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.portal-shell .bill-catalog li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.portal-shell .bill-catalog small, .portal-shell .bill-opt small { display: block; color: var(--muted); font-weight: 500; }
.portal-shell .bill-price { font-weight: 700; white-space: nowrap; }
.portal-shell .bill-pick { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0; display: grid; gap: 8px; }
.portal-shell .bill-pick legend { font-weight: 700; padding: 0 4px; }
.portal-shell .bill-opt { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.portal-shell .bill-opt input { width: 20px; height: 20px; }
.portal-shell .bill-opt.off { opacity: .6; }
.portal-shell .bill-banner { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid #f1c4c4; background: #fdf1f1; color: #7a1c1c; }
.portal-shell .bill-banner a { color: inherit; font-weight: 700; }
@media (max-width: 760px) {
  .portal-shell .bill-card { margin: 0 0 14px; }
  .portal-shell .bill-row { align-items: flex-start; }
  .portal-shell .bill-actions button { flex: 1 1 140px; }
}
.bill-row dd .bill-incl{display:block;width:100%;text-align:right;color:var(--muted,#5b6472);font-size:.8rem;font-weight:500}
