body { background: var(--id-surface); }
.topbar { height: 66px; background: var(--id-navy); gap: 20px; padding: 0 clamp(18px,3vw,46px); }
.topbar .brand { font-size: 1.56rem; }
.topbar .sample-link { margin-left: 0; }
.header-signin { color: #fff; padding: 8px 13px; border: 1px solid #657797; border-radius: 7px; font-size: .85rem; text-decoration: none; font-weight: 700; }
.header-signin:hover, .topbar .logout:hover { background: #253a60; }
.hub-layout { min-height: calc(100dvh - 66px); grid-template-columns: 222px minmax(0,1fr); }
.hub-layout .sidebar { padding: 22px 13px; background: #fff; }
.hub-layout .nav-item { color: #485873; gap: 10px; margin: 3px 0; border-radius: 8px; }
.hub-layout .nav-item:is(.active,:hover) { color: #1b45c8; background: #eef2ff; }
.hub-layout .nav-item span { display: inline-grid; place-items: center; width: 19px; }
.nav-item svg, .widget-icon svg, .widget-glyph svg, .provider-button svg, .dash-action svg { width: 18px; height: 18px; vertical-align: middle; }
.content { padding: clamp(20px,3.2vw,50px) clamp(16px,3.6vw,54px) 62px; }
.business-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.business-heading h1, .view-title h1, .account-login h1 { color: var(--id-ink); font: 800 clamp(28px,4.4vw,43px)/1.12 var(--id-font); letter-spacing: -.05em; margin: 0; }
.business-heading p { color: var(--id-muted); font-size: 15px; margin: 8px 0 0; }
#overview-badge { display: inline-block; color: #425572; background: #e9eef7; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.business-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px; align-items: start; }
.business-widget { grid-column: span 2; min-width: 0; padding: 16px; border: 1px solid var(--id-line); border-radius: 12px; background: white; }
.business-widget:nth-child(1), .business-widget:nth-child(2) { grid-column: span 3; }
.widget-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.widget-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.widget-title h2, .business-dialog h2 { color: var(--id-ink); font-size: 16px; line-height: 1.25; margin: 0; }
.widget-glyph { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #2346b1; background: #eef2fc; flex: none; }
.widget-buttons { display: flex; gap: 4px; align-items: center; }
.widget-icon { display: grid; place-items: center; min-width: 34px; min-height: 34px; padding: 4px; color: #4c5d77; border: 0; border-radius: 7px; background: transparent; }
.widget-icon:hover { color: #1d48c4; background: #edf2ff; }
.widget-body { padding-top: 12px; }
.widget-list, .business-list { display: grid; padding: 0; list-style: none; margin: 0; }
.widget-list li { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid #e9edf4; }
.widget-list li strong, .business-list strong { font-size: 14px; overflow-wrap: anywhere; }
.widget-list small, .business-list small { display: block; color: var(--id-muted); font-size: 12px; margin: 4px 0 0; overflow-wrap: anywhere; }
.widget-list li > span { max-width: 108px; font-size: 12px; font-weight: 700; color: #335090; text-align: right; }
.widget-empty { padding: 16px 0 19px; color: var(--id-muted); font-size: 14px; margin: 0; }
.widget-link { margin-top: 8px; padding: 4px 0; border: 0; background: none; color: #2249cb; font-size: 13px; font-weight: 750; }
.business-dialog { width: min(88vw,560px); padding: 22px; color: var(--id-ink); border: 1px solid var(--id-line); border-radius: 14px; }
.business-dialog::backdrop { background: #0b1634a1; }
.business-dialog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.account-login { margin: clamp(28px,7vh,72px) auto; width: min(92%,440px); padding: 28px; border-radius: 13px; }
.account-login h1 { margin: 18px 0 22px; font-size: clamp(26px,6vw,34px); }
.auth-options { display: grid; gap: 9px; }
.provider-button { display: flex; justify-content: center; align-items: center; gap: 9px; border: 1px solid #cbd6e6; border-radius: 7px; padding: 11px 12px; color: var(--id-ink); font-weight: 700; text-decoration: none; }
.provider-button[aria-disabled="true"] { color: #56647b; background: #f4f6fa; cursor: default; }
.account-divider { display: flex; align-items: center; gap: 10px; color: var(--id-muted); font-size: 13px; margin: 18px 0 0; }
.account-divider::before,.account-divider::after { content: ''; height: 1px; background: var(--id-line); flex: 1; }
.account-login label { margin-top: 15px; }
.auth-text-button { border: 0; background: none; color: #2346b1; display: block; padding: 12px 0 0; font-weight: 700; }
#auth-status { font-size: 13px; }
#auth-status:empty { display: none; }
.business-module { margin-bottom: 18px; }
.business-module h2 { margin: 0 0 6px; font-size: 19px; color: var(--id-ink); }
.business-list li { border-top: 1px solid var(--id-line); padding: 14px 0; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.business-list li:first-child { margin-top: 9px; }
.business-list button, .record-secondary { background: white; color: #25417a; border: 1px solid #cdd7e7; border-radius: 6px; padding: 7px 11px; }
.record-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.record-form label { display: grid; gap: 5px; font-weight: 700; font-size: 13px; }
.record-form input, .record-form select { width: 100%; border: 1px solid #cbd5e4; border-radius: 6px; background: white; padding: 8px; color: var(--id-ink); }
.record-actions { grid-column: 1/-1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.record-actions .primary { margin: 0; padding: 8px 13px; }
.project-filter-panel { margin: 0 0 16px; }
.project-filter-panel summary { color: #25417a; cursor: pointer; font-weight: 700; margin: 0 0 8px; }
#billing-panel, #accounts-panel { overflow-wrap: anywhere; }
#scheduling-integrations { margin-top: 22px; }
.schedule-shortcuts, .widget-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.schedule-shortcuts { margin: 0 0 16px; }
.schedule-shortcuts a, .widget-actions a { text-decoration: none; }
.schedule-shortcuts a:hover, .widget-actions a:hover { text-decoration: underline; }
@media (max-width: 1060px) {
  .business-widget, .business-widget:nth-child(1), .business-widget:nth-child(2) { grid-column: span 3; }
}
@media (max-width: 740px) {
  .topbar .top-note, .topbar .employee-account-name { display: none; }
  .topbar .sample-link, .topbar #logout { margin-left: auto; }
  .hub-layout { display: block; }
  .hub-layout .sidebar { padding: 7px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--id-line); }
  .hub-layout .sidebar nav { display: flex; align-items: center; gap: 5px; min-width: max-content; }
  .hub-layout .nav-item { width: auto; padding: 9px 10px; white-space: nowrap; font-size: 13px; }
  .hub-layout .nav-group-label { display: none; }
}
@media (max-width: 520px) {
  .topbar { gap: 11px; }
  .topbar .sample-link { font-size: 12px; }
  .business-widget,.business-widget:nth-child(1),.business-widget:nth-child(2) { grid-column: 1/-1; }
  .business-heading p { font-size: 13px; line-height: 1.5; }
  .business-heading { gap: 8px; }
  .widget-icon { min-width: 40px; min-height: 40px; }
}

.portal-reviews { margin-top: 1rem; }
.portal-reviews select,
.portal-reviews textarea {
  display: block;
  width: 100%;
  max-width: 36rem;
  margin: .3rem 0 1rem;
  padding: .6rem .7rem;
  border: 1px solid #b7c6d9;
  border-radius: 7px;
  color: #182840;
  background: #fff;
  font: inherit;
}
.portal-reviews form > label { font-weight: 650; }
.portal-reviews .review-consent {
  display: flex;
  gap: .55rem;
  align-items: baseline;
  margin-bottom: 1rem;
  font-weight: 400;
}
.portal-reviews .review-consent input { width: auto; margin: 0; }
.review-moderation-item { padding: .8rem 0; border-top: 1px solid #dce5ef; }
.review-moderation-item p { white-space: pre-wrap; overflow-wrap: anywhere; }

.team-management { display: grid; gap: 1rem; }
.team-management .dash-panel { margin: 0; }
.team-management textarea {
  display: block;
  width: 100%;
  margin: .5rem 0 .75rem;
  padding: .65rem;
  border: 1px solid #b7c6d9;
  border-radius: 7px;
  font: inherit;
}
.company-team-member { padding: 1rem 0; border-top: 1px solid #dce5ef; }
.company-team-member h3, .company-team-member p { margin: 0 0 .35rem; overflow-wrap: anywhere; }
.company-team-member .record-actions { margin: .7rem 0; }
.company-team-member .record-actions select { width: auto; max-width: 100%; }
#team-sign-in h2 { margin: .6rem 0 0; font-size: 1.1rem; }

.provider-panel { margin-bottom: 16px; }
.provider-panel > h2 { margin-bottom: 4px; }
.provider-panel > .control-caption { margin: 0 0 8px; }
.provider-panel > .business-list { margin: 8px 0 12px; }
.provider-panel .calendar-actions { margin-top: 10px; }
.provider-form { max-width: 620px; align-items: end; }
.provider-form > button { justify-self: start; }
.provider-panel p:empty { display: none; }
.provider-summary { margin: 12px 0 6px; border-top: 1px solid #e9edf4; }
.provider-summary h3 { margin: 12px 0 6px; font-size: 13px; color: #335090; }
.provider-balance { color: #335090; font-weight: 700; white-space: nowrap; }
#demo-workspace-badge { white-space: nowrap; }

.account-login .remember-sign-in { display: flex; align-items: center; gap: 9px; margin-bottom: 2px; cursor: pointer; }
.account-login .remember-sign-in input { width: auto; flex: none; margin: 0; accent-color: #1846bd; }
.account-login .remember-sign-in-hint { margin: 0 0 18px 23px; color: #516078; font-size: .84rem; }
