* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #1f1714;
  --ink-soft: #342824;
  --cream: #f5f0e9;
  --cream-2: #ebe3d8;
  --white: #fffdf9;
  --brown: #8e5f47;
  --brown-deep: #6d4433;
  --gold: #c89c60;
  --sage: #8f9a82;
  --muted: #847b74;
  --line: rgba(31, 23, 20, 0.09);
  --danger: #a83e3e;
  --success: #357252;
  --shadow: 0 22px 60px rgba(52, 40, 36, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

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

.hidden {
  display: none !important;
}

.eyebrow {
  color: rgba(255,255,255,.62);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
}

.eyebrow.dark {
  color: var(--brown);
}

.form-message {
  min-height: 18px;
  color: var(--brown);
  font-size: 11px;
  line-height: 1.55;
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--success);
}

/* AUTH */

.auth-body {
  min-height: 100vh;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 54px;
  color: white;
  background:
    radial-gradient(circle at 80% 10%, rgba(200,156,96,.18), transparent 26%),
    linear-gradient(145deg, #211613, #34231d 58%, #5b3b2e);
}

.signup-visual {
  background:
    radial-gradient(circle at 78% 18%, rgba(229,191,140,.15), transparent 24%),
    linear-gradient(145deg, #1f1714, #4a3026 60%, #79523e);
}

.brand-chip {
  width: max-content;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  backdrop-filter: blur(10px);
}

.auth-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.auth-copy h1 {
  margin-top: 20px;
  font-size: clamp(4rem, 6.8vw, 7rem);
  line-height: .86;
  letter-spacing: -.075em;
}

.auth-copy h1 span {
  color: #e9c694;
}

.auth-copy > p:last-child {
  max-width: 540px;
  margin-top: 28px;
  color: rgba(255,255,255,.64);
  font-size: 14px;
  line-height: 1.8;
}

.auth-stats {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.auth-stats > div {
  display: flex;
  flex-direction: column;
}

.auth-stats small {
  color: rgba(255,255,255,.42);
  font-size: 8px;
  letter-spacing: 1.5px;
}

.auth-stats strong {
  margin-top: 5px;
  font-size: 12px;
}

.fabric-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .6;
}

.fabric-orb-one {
  width: 380px;
  height: 380px;
  right: -130px;
  top: 110px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 2px, transparent 2px 10px),
    rgba(198,147,93,.14);
  transform: rotate(18deg);
}

.fabric-orb-two {
  width: 260px;
  height: 260px;
  left: -90px;
  bottom: 70px;
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 11px),
    rgba(143,154,130,.12);
}

.auth-panel {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px;
  background: var(--cream);
}

.mobile-brand {
  display: none;
}

.login-card {
  width: min(100%, 470px);
}

.login-heading h2 {
  margin-top: 13px;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -1.8px;
}

.login-heading > p:last-child {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.login-form label,
.form-grid label,
.measurements-grid label,
.onboarding-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #574d47;
  font-size: 11px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #ddd4c9;
  outline: none;
  border-radius: 14px;
  background: rgba(255,255,255,.76);
  color: var(--ink);
  transition: .2s ease;
}

input,
select {
  height: 50px;
  padding: 0 15px;
}

textarea {
  padding: 14px 15px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brown);
  box-shadow: 0 0 0 4px rgba(142,95,71,.09);
}

.primary-action,
.secondary-action,
.danger-action {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 850;
  transition: .22s ease;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  color: white;
  background: var(--ink);
}

.primary-action:hover {
  background: var(--brown-deep);
  transform: translateY(-1px);
}

.primary-action:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}

.primary-action.wide {
  width: 100%;
}

.primary-action.compact {
  min-height: 44px;
  width: max-content;
  padding: 0 17px;
}

.secondary-action {
  padding: 0 18px;
  border: 1px solid #d9d0c5;
  background: transparent;
  color: var(--ink);
}

.secondary-action:hover {
  background: white;
}

.danger-action {
  padding: 0 18px;
  color: var(--danger);
  border: 1px solid rgba(168,62,62,.18);
  background: rgba(168,62,62,.05);
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #ddd4ca;
  color: var(--muted);
  font-size: 10px;
}

.auth-switch a {
  color: var(--brown);
  font-weight: 850;
}

/* ONBOARDING */

.onboarding-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, rgba(200,156,96,.18), transparent 25%),
    var(--cream);
}

.onboarding-shell {
  width: min(100% - 36px, 920px);
  min-height: 100vh;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.onboarding-brand {
  position: absolute;
  top: 32px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.onboarding-brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.onboarding-brand strong {
  font-size: 11px;
  letter-spacing: 1.2px;
}

.onboarding-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.onboarding-card {
  position: relative;
  overflow: hidden;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}

.onboarding-number {
  position: absolute;
  right: 30px;
  top: 14px;
  color: rgba(31,23,20,.04);
  font-size: 150px;
  font-weight: 950;
  letter-spacing: -12px;
}

.onboarding-card h1 {
  max-width: 690px;
  margin-top: 16px;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: .92;
  letter-spacing: -.065em;
}

.onboarding-intro {
  max-width: 570px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.onboarding-form {
  max-width: 540px;
  display: grid;
  gap: 16px;
  margin-top: 38px;
}

.onboarding-note {
  max-width: 540px;
  margin-top: 26px;
  padding: 17px 18px;
  border-radius: 16px;
  background: #eee4d8;
}

.onboarding-note strong {
  font-size: 10px;
}

.onboarding-note p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.plain-link {
  width: max-content;
  margin: 20px auto 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

/* APP LOADER */

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: white;
  background: var(--ink);
  transition: opacity .3s ease, visibility .3s ease;
}

.app-loader.hidden-loader {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--ink);
  background: #e5bf8c;
  font-size: 16px;
  font-weight: 950;
}

.app-loader p {
  color: rgba(255,255,255,.5);
  font-size: 10px;
}

/* APP */

.app-body {
  min-height: 100vh;
  background: #f3eee7;
}

.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 18px;
  border-right: 1px solid rgba(255,255,255,.08);
  color: white;
  background: #201714;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 6px;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--ink);
  background: #e5bf8c;
  font-size: 12px;
  font-weight: 950;
}

.app-brand > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-brand strong {
  font-size: 12px;
  letter-spacing: 1px;
}

.app-brand small {
  max-width: 145px;
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255,255,255,.4);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-nav {
  display: grid;
  gap: 7px;
}

.nav-item {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 13px;
  color: rgba(255,255,255,.55);
  background: transparent;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  transition: .2s;
}

.nav-item span {
  width: 22px;
  color: rgba(255,255,255,.5);
  font-size: 18px;
}

.nav-item:hover,
.nav-item.active {
  color: white;
  background: rgba(255,255,255,.08);
}

.nav-item.active span {
  color: #e5bf8c;
}

.sidebar-bottom {
  display: grid;
  gap: 10px;
}

.user-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 15px;
  background: rgba(255,255,255,.05);
}

.user-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: #e5bf8c;
  font-size: 12px;
  font-weight: 900;
}

.user-mini > div:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.user-mini strong {
  font-size: 10px;
}

.user-mini small {
  max-width: 130px;
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255,255,255,.36);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-pill {
  width: max-content;
  margin-left: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #e5bf8c;
  background: rgba(229,191,140,.08);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.logout-btn {
  height: 40px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  color: rgba(255,255,255,.55);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.mobile-topbar {
  display: none;
}

.app-main {
  min-width: 0;
  padding: 34px;
}

.view {
  display: none;
  max-width: 1350px;
  margin-inline: auto;
}

.view.active {
  display: block;
  animation: fadeIn .25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.page-header h1 {
  margin-top: 10px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.page-header h1 span {
  color: var(--brown);
}

.page-header > div > p:last-child {
  margin-top: 11px;
  color: var(--muted);
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.metric-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 12px 35px rgba(42,31,27,.04);
}

.metric-dark {
  color: white;
  background: var(--ink);
}

.metric-accent {
  color: white;
  background: linear-gradient(145deg, #77503d, #9d6b50);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.metric-top > span:first-child {
  color: inherit;
  opacity: .65;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .7px;
}

.metric-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,.04);
  font-size: 15px;
}

.metric-dark .metric-icon,
.metric-accent .metric-icon {
  background: rgba(255,255,255,.1);
}

.metric-card > strong {
  margin-top: 24px;
  font-size: 43px;
  letter-spacing: -2px;
}

.metric-card > small {
  margin-top: 7px;
  color: inherit;
  opacity: .5;
  font-size: 9px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 16px;
  margin-top: 16px;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 35px rgba(42,31,27,.035);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
}

.panel-head small,
.insight-panel small,
.profile-notes-panel > small {
  color: var(--brown);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.panel h2 {
  margin-top: 5px;
  font-size: 23px;
  letter-spacing: -1px;
}

.text-button {
  border: 0;
  color: var(--brown);
  background: transparent;
  font-size: 10px;
  font-weight: 850;
}

.customer-list {
  display: grid;
}

.customer-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid #ece6de;
}

.customer-row:first-child {
  border-top: 0;
}

.customer-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #49352b;
  background: #eadbc9;
  font-size: 10px;
  font-weight: 900;
}

.customer-row-info {
  min-width: 0;
}

.customer-row-info strong {
  display: block;
  font-size: 11px;
}

.customer-row-info small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.open-profile {
  width: 34px;
  height: 34px;
  border: 1px solid #e3dbd1;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
}

.insight-panel {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  background:
    radial-gradient(circle at 100% 0%, rgba(229,191,140,.22), transparent 34%),
    #30211b;
}

.insight-panel h2 {
  max-width: 360px;
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -1.8px;
}

.insight-panel p {
  max-width: 400px;
  margin-top: 13px;
  color: rgba(255,255,255,.55);
  font-size: 11px;
  line-height: 1.65;
}

.cloud-chip {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.04);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1px;
}

.cloud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #69d89c;
  box-shadow: 0 0 0 5px rgba(105,216,156,.08);
}

/* customer directory */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.search-box {
  width: min(100%, 560px);
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #ded5ca;
  border-radius: 15px;
  background: rgba(255,255,255,.68);
}

.search-box span {
  color: #9b9088;
  font-size: 18px;
}

.search-box input {
  height: auto;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.customer-count {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.customers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.customer-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.75);
  transition: .22s ease;
}

.customer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.customer-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.customer-card .customer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 16px;
}

.measure-badge {
  height: max-content;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--brown-deep);
  background: #efe2d4;
  font-size: 8px;
  font-weight: 850;
}

.customer-card h3 {
  margin-top: 24px;
  font-size: 20px;
  letter-spacing: -.7px;
}

.customer-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.customer-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #ece5dc;
}

.customer-card-bottom small {
  color: #9b928b;
  font-size: 8px;
}

.customer-card-bottom button {
  border: 0;
  color: var(--brown);
  background: transparent;
  font-size: 9px;
  font-weight: 850;
}

.empty-state {
  min-height: 380px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #eadbc9;
  font-size: 24px;
}

.empty-state h3 {
  margin-top: 18px;
  font-size: 24px;
}

.empty-state p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 11px;
}

/* forms */

.customer-form {
  display: grid;
  gap: 16px;
}

.form-section {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
}

.form-section-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.form-section-title > span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: var(--ink);
  font-size: 9px;
  font-weight: 900;
}

.form-section-title h2 {
  font-size: 21px;
  letter-spacing: -.8px;
}

.form-section-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

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

.span-2 {
  grid-column: span 2;
}

.measurements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.measure-input {
  position: relative;
}

.measure-input input {
  padding-right: 38px;
}

.measure-input span {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #988e86;
  font-size: 9px;
  font-weight: 800;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* profile */

.back-link {
  margin-bottom: 20px;
  border: 0;
  color: var(--brown);
  background: transparent;
  font-size: 10px;
  font-weight: 850;
}

.profile-hero {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 28px;
  border-radius: 26px;
  color: white;
  background:
    radial-gradient(circle at 95% 5%, rgba(229,191,140,.2), transparent 24%),
    var(--ink);
}

.profile-avatar {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: var(--ink);
  background: #e5bf8c;
  font-size: 19px;
  font-weight: 950;
}

.profile-title h1 {
  margin-top: 8px;
  font-size: 36px;
  letter-spacing: -1.8px;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin-top: 10px;
}

.profile-meta span {
  color: rgba(255,255,255,.5);
  font-size: 9px;
}

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

.profile-hero .secondary-action {
  color: white;
  border-color: rgba(255,255,255,.15);
}

.profile-layout {
  display: grid;
  grid-template-columns: 1.4fr .7fr;
  gap: 16px;
  margin-top: 16px;
}

.measurement-display {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.measurement-tile {
  padding: 16px;
  border: 1px solid #e8e0d7;
  border-radius: 16px;
  background: #fbf8f4;
}

.measurement-tile small {
  color: #8f867f;
  font-size: 8px;
}

.measurement-tile strong {
  display: block;
  margin-top: 7px;
  font-size: 23px;
}

.measurement-tile strong span {
  margin-left: 2px;
  color: #9a9189;
  font-size: 9px;
}

.profile-notes-panel > p {
  min-height: 130px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.record-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 16px;
  border-top: 1px solid #ece5dc;
}

.record-info span {
  color: #918880;
  font-size: 9px;
}

.record-info strong {
  font-size: 10px;
}

/* modals */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23,16,13,.58);
  backdrop-filter: blur(8px);
}

.modal-card {
  width: min(100%, 720px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 25px;
  border-radius: 24px;
  background: var(--cream);
  box-shadow: 0 35px 100px rgba(0,0,0,.25);
}

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

.modal-head h2 {
  margin-top: 7px;
  font-size: 28px;
  letter-spacing: -1.2px;
}

.modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid #ddd3c7;
  border-radius: 12px;
  color: var(--ink);
  background: white;
  font-size: 22px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

/* responsive */

@media (max-width: 1100px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .measurements-grid,
  .measurement-display {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 26px;
  }

  .mobile-brand {
    position: absolute;
    top: 26px;
    left: 26px;
    display: block;
    color: var(--brown);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 1.8px;
  }

  .app-layout {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1500;
    width: 260px;
    transform: translateX(-105%);
    transition: .25s ease;
    box-shadow: 18px 0 60px rgba(0,0,0,.18);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: rgba(245,240,233,.9);
    backdrop-filter: blur(14px);
  }

  .mobile-menu-btn,
  .mobile-add-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd4ca;
    border-radius: 12px;
    background: rgba(255,255,255,.7);
  }

  .mobile-logo {
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .mobile-logo strong {
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 1.4px;
  }

  .mobile-logo small {
    max-width: 190px;
    margin-top: 2px;
    overflow: hidden;
    color: var(--muted);
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-main {
    padding: 24px 18px 40px;
  }

  .dashboard-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    grid-template-columns: 78px 1fr;
  }

  .profile-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .customers-grid,
  .form-grid,
  .measurements-grid,
  .measurement-display {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .profile-hero {
    grid-template-columns: 1fr;
  }

  .profile-avatar {
    width: 68px;
    height: 68px;
  }

  .profile-title h1 {
    font-size: 31px;
  }

  .profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .form-actions,
  .modal-actions {
    flex-direction: column-reverse;
  }

  .form-actions button,
  .modal-actions button {
    width: 100%;
  }

  .panel {
    padding: 20px;
  }

  .insight-panel {
    min-height: 280px;
  }

  .onboarding-card {
    padding: 34px 22px;
  }

  .onboarding-number {
    font-size: 100px;
  }

  .auth-switch {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================================================
   V3 — ORDERS, DUE DATES & PAYMENTS
   ========================================================= */

.order-toolbar {
  justify-content: flex-start;
}

.order-toolbar .search-box {
  flex: 1 1 420px;
}

.filter-select {
  min-width: 160px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #ded5ca;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 750;
}

.orders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.order-card {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  transition: .22s ease;
}

.order-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.order-card.overdue {
  border-color: rgba(168,62,62,.24);
}

.order-card-top,
.order-card-footer,
.order-money-row,
.order-detail-row,
.profile-order-row,
.payment-row,
.upcoming-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-customer {
  min-width: 0;
}

.order-customer small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.order-customer strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge,
.due-badge {
  width: max-content;
  padding: 7px 9px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.status-pending {
  color: #6c5540;
  background: #eee3d4;
}

.status-in_progress {
  color: #425f75;
  background: #e0e8ed;
}

.status-ready {
  color: #38634b;
  background: #deebe3;
}

.status-collected {
  color: #5b5b5b;
  background: #e7e7e7;
}

.status-cancelled {
  color: #8a4141;
  background: #f1dddd;
}

.order-card h3 {
  margin-top: 22px;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -.9px;
}

.order-due-line {
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
}

.order-due-line.overdue-text {
  color: var(--danger);
  font-weight: 850;
}

.order-money-row {
  margin-top: 22px;
  padding: 14px;
  border-radius: 15px;
  background: #f3ece4;
}

.order-money-row div {
  display: flex;
  flex-direction: column;
}

.order-money-row small {
  color: #8b8179;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .7px;
}

.order-money-row strong {
  margin-top: 4px;
  font-size: 14px;
}

.order-money-row .balance-money strong {
  color: var(--brown-deep);
}

.order-card-footer {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ece5dc;
}

.order-card-footer small {
  color: var(--muted);
  font-size: 8px;
}

.order-card-footer button {
  border: 0;
  color: var(--brown);
  background: transparent;
  font-size: 9px;
  font-weight: 900;
}

.upcoming-list {
  display: grid;
}

.upcoming-row {
  padding: 13px 0;
  border-top: 1px solid #ece6de;
}

.upcoming-row:first-child {
  border-top: 0;
}

.upcoming-row > div:first-child {
  min-width: 0;
}

.upcoming-row strong {
  display: block;
  font-size: 10px;
}

.upcoming-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.upcoming-date {
  flex: 0 0 auto;
  text-align: right;
}

.upcoming-date strong {
  color: var(--brown);
}

.upcoming-date.overdue strong {
  color: var(--danger);
}

.customer-orders-panel {
  margin-top: 16px;
}

.profile-orders-list {
  display: grid;
  gap: 9px;
}

.profile-order-row {
  padding: 13px 14px;
  border: 1px solid #e8e0d7;
  border-radius: 15px;
  background: #fbf8f4;
}

.profile-order-main {
  min-width: 0;
}

.profile-order-main strong {
  display: block;
  font-size: 11px;
}

.profile-order-main small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.profile-order-finance {
  text-align: right;
}

.profile-order-finance strong {
  display: block;
  font-size: 10px;
}

.profile-order-finance small {
  color: var(--brown);
  font-size: 8px;
}

.profile-order-row button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #e2d9cf;
  border-radius: 50%;
  background: white;
}

.modal-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.order-detail-card {
  width: min(100%, 820px);
}

.payment-modal-card {
  width: min(100%, 620px);
}

.order-finance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.order-finance-grid > div {
  padding: 15px;
  border: 1px solid #e6ded4;
  border-radius: 16px;
  background: rgba(255,255,255,.62);
}

.order-finance-grid small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .8px;
}

.order-finance-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
}

.order-finance-grid .balance-box {
  color: white;
  border-color: transparent;
  background: var(--ink);
}

.order-finance-grid .balance-box small {
  color: rgba(255,255,255,.48);
}

.order-detail-row {
  align-items: flex-end;
  margin-bottom: 18px;
}

.order-detail-row label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #574d47;
  font-size: 10px;
  font-weight: 800;
}

.due-badge {
  margin-bottom: 5px;
  color: #38634b;
  background: #deebe3;
}

.due-badge.overdue {
  color: #8a4141;
  background: #f1dddd;
}

.due-badge.soon {
  color: #735823;
  background: #f1e5c9;
}

.order-description-block {
  padding: 16px;
  border: 1px solid #e7ded4;
  border-radius: 16px;
  background: #fbf8f4;
}

.order-description-block small {
  color: var(--brown);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1px;
}

.order-description-block p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.payment-section {
  margin-top: 22px;
}

.payment-history {
  display: grid;
}

.payment-row {
  padding: 12px 0;
  border-top: 1px solid #e8e0d7;
}

.payment-row:first-child {
  border-top: 0;
}

.payment-row > div:first-child {
  min-width: 0;
}

.payment-row strong {
  display: block;
  font-size: 11px;
}

.payment-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.payment-amount {
  color: var(--success);
  font-size: 12px !important;
}

.order-detail-actions {
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid #e6ddd3;
}

@media (max-width: 1100px) {
  .orders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .orders-grid,
  .order-finance-grid {
    grid-template-columns: 1fr;
  }

  .order-detail-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-order-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .profile-order-finance {
    margin-left: auto;
  }

  .order-detail-actions {
    flex-direction: column-reverse;
  }

  .order-detail-actions button {
    width: 100%;
  }
}


/* =========================================================
   V4 — AUTH BACKGROUND, PASSWORD TOGGLE, DUE REMINDERS
   ========================================================= */

.auth-body {
  position: relative;
  min-height: 100vh;
  background: #1b1412;
}

.auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(17,12,10,.78) 0%, rgba(17,12,10,.55) 35%, rgba(17,12,10,.25) 100%),
    url('login-bg.png') center center / cover no-repeat;
}

.auth-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 14% 24%, rgba(200,156,96,.18), transparent 26%),
    radial-gradient(circle at 85% 18%, rgba(143,154,130,.12), transparent 22%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.18));
}

.auth-shell-enhanced {
  position: relative;
  min-height: 100vh;
  background: transparent;
}

.auth-visual-enhanced {
  background: transparent;
}

.auth-panel-enhanced {
  background: rgba(245, 240, 233, 0.18);
  backdrop-filter: blur(10px);
}

.login-card-glass {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  background: rgba(255,253,249,.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 28px 80px rgba(0,0,0,.16);
}

.auth-feature-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(142,95,71,.12);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.65);
  font-size: 10px;
  line-height: 1.55;
}

.feature-ping {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #69d89c;
  box-shadow: 0 0 0 5px rgba(105,216,156,.12);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 12px;
  color: #6d4433;
  background: transparent;
  font-size: 17px;
}

.password-toggle:hover {
  background: rgba(142,95,71,.08);
}

.password-toggle.active {
  color: var(--ink);
}

.order-due-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.due-reminder {
  width: max-content;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.reminder-ok {
  color: #3b634b;
  background: #e1ede5;
}

.reminder-soon {
  color: #735823;
  background: #f1e5c9;
}

.reminder-overdue {
  color: #8a4141;
  background: #f1dddd;
}

.reminder-done {
  color: #5b5b5b;
  background: #e7e7e7;
}

.order-card .order-due-line {
  margin-top: 0;
}

.profile-order-main .due-reminder {
  margin-top: 8px;
}

.upcoming-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.upcoming-date small {
  text-align: right;
}

.upcoming-date .due-reminder {
  align-self: flex-end;
}

@media (max-width: 900px) {
  .auth-panel-enhanced {
    background: rgba(245,240,233,.08);
    backdrop-filter: none;
  }

  .login-card-glass {
    padding: 24px 20px;
    background: rgba(255,253,249,.92);
  }
}

@media (max-width: 650px) {
  .order-due-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================================================
   V5 — NOTIFICATIONS, EDIT ORDER, WHATSAPP, INVOICE
   ========================================================= */

.sidebar-notification-btn {
  position: relative;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  color: rgba(255,255,255,.66);
  background: rgba(255,255,255,.035);
  font-size: 9px;
  font-weight: 800;
}

.sidebar-notification-btn:hover {
  color: white;
  background: rgba(255,255,255,.07);
}

.bell-icon {
  font-size: 13px;
}

.notification-count {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 999px;
  color: white;
  background: #a83e3e;
  font-size: 7px;
  font-weight: 950;
}

.mobile-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mobile-notification-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd4ca;
  border-radius: 12px;
  background: rgba(255,255,255,.7);
}

.mobile-notification-btn .notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  margin: 0;
}

.notification-overlay {
  position: fixed;
  inset: 0;
  z-index: 2800;
  background: rgba(24,17,14,.28);
  backdrop-filter: blur(2px);
}

.notification-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2900;
  width: min(92vw, 430px);
  height: 100vh;
  overflow-y: auto;
  padding: 26px 22px;
  border-left: 1px solid rgba(31,23,20,.08);
  background: #f8f4ee;
  box-shadow: -24px 0 70px rgba(31,23,20,.15);
}

.notification-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5ddd3;
}

.notification-panel-head h2 {
  margin-top: 6px;
  font-size: 30px;
  letter-spacing: -1.4px;
}

.notification-panel-head p:last-child {
  max-width: 300px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.notification-summary {
  margin: 16px 0 10px;
  padding: 12px 13px;
  border-radius: 13px;
  color: #5d514b;
  background: #eee5da;
  font-size: 9px;
  font-weight: 800;
}

.notification-list {
  display: grid;
  gap: 9px;
}

.notification-item {
  padding: 14px;
  border: 1px solid #e7ded4;
  border-radius: 16px;
  background: rgba(255,255,255,.76);
}

.notification-item.overdue {
  border-color: rgba(168,62,62,.23);
}

.notification-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notification-item h3 {
  font-size: 13px;
  letter-spacing: -.3px;
}

.notification-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.notification-item-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #eee6dd;
  color: var(--muted);
  font-size: 8px;
}

.notification-item-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 11px;
}

.notification-item-actions button {
  min-height: 37px;
  border: 0;
  border-radius: 11px;
  font-size: 8px;
  font-weight: 900;
}

.notification-open-order {
  color: var(--ink);
  background: #eee7df;
}

.notification-whatsapp {
  color: white;
  background: #246b48;
}

.order-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.compact-action {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 9px;
}

.whatsapp-action {
  border: 0;
  color: white;
  background: #246b48;
}

.whatsapp-action:hover {
  background: #1d5b3c;
}

.edit-order-finance-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 13px;
  color: #665a53;
  background: #eee5da;
  font-size: 9px;
  line-height: 1.55;
}

.invoice-print-root {
  display: none;
}

@media (max-width: 650px) {
  .order-quick-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .order-quick-actions button {
    width: 100%;
  }

  .notification-item-actions {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   V6 — Production + Business Intelligence
   ========================================================= */
.v6-finance-strip,.v6-summary-row,.report-metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:16px 0}.v6-finance-card,.v6-summary-card,.report-metric{padding:18px;border:1px solid var(--line);border-radius:20px;background:rgba(255,255,255,.76)}.v6-finance-card span,.v6-summary-card small,.report-metric small{color:var(--brown);font-size:7px;font-weight:900;letter-spacing:1px}.v6-finance-card strong,.v6-summary-card strong,.report-metric strong{display:block;margin-top:9px;font-size:24px;letter-spacing:-1px}.v6-finance-card small,.v6-summary-card span,.report-metric span{display:block;margin-top:4px;color:var(--muted);font-size:8px}.v6-finance-card.profit,.report-metric.profit{color:white;background:linear-gradient(145deg,#41634f,#6f856f)}.v6-finance-card.profit span,.v6-finance-card.profit small,.report-metric.profit small,.report-metric.profit span{color:rgba(255,255,255,.65)}
.appointment-list,.expense-list{display:grid;gap:11px}.appointment-card{display:grid;grid-template-columns:92px 1fr auto;gap:16px;align-items:center;padding:17px;border:1px solid var(--line);border-radius:20px;background:rgba(255,255,255,.78)}.appointment-card.completed{opacity:.62}.appointment-date-box{padding:13px;border-radius:15px;text-align:center;background:#efe4d8}.appointment-date-box strong{display:block;font-size:16px}.appointment-date-box span{display:block;margin-top:3px;color:var(--muted);font-size:9px}.appointment-topline{display:flex;gap:8px;align-items:center}.appointment-type,.appointment-status{width:max-content;padding:5px 8px;border-radius:999px;font-size:7px;font-weight:900;text-transform:uppercase}.appointment-type{color:var(--brown-deep);background:#efe2d4}.appointment-status{color:#45644f;background:#dfebe2}.appointment-main h3{margin-top:8px;font-size:17px}.appointment-main p,.appointment-main small{display:block;margin-top:4px;color:var(--muted);font-size:9px}.appointment-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.appointment-actions button{border:1px solid #ded5ca;border-radius:11px;padding:9px 10px;background:white;font-size:8px;font-weight:850}.appointment-actions .appointment-delete{color:var(--danger)}
.expense-row{display:grid;grid-template-columns:46px 1fr auto;gap:13px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.78)}.expense-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;color:white;background:var(--brown);font-weight:900}.expense-main strong{font-size:11px}.expense-main small,.expense-main p{display:block;margin-top:4px;color:var(--muted);font-size:8px}.expense-money{text-align:right}.expense-money strong{display:block;font-size:13px}.expense-money small{display:block;margin-top:3px;color:var(--muted);font-size:8px}.expense-money button{margin-top:7px;border:0;color:var(--danger);background:transparent;font-size:8px;font-weight:800}
.report-month-control{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:9px;font-weight:800}.report-month-control input{min-width:190px}.report-layout,.v6-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.report-list{display:grid}.report-row{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:12px 0;border-top:1px solid #e9e2da}.report-row:first-child{border-top:0}.report-row strong{font-size:10px}.report-row small{display:block;margin-top:3px;color:var(--muted);font-size:8px}.report-empty{color:var(--muted);font-size:10px}
.order-number-chip,.order-number-label{width:max-content;margin-top:10px;padding:5px 8px;border-radius:999px;color:var(--brown-deep);background:#eee1d2;font-size:7px;font-weight:900;letter-spacing:.8px}.order-number-label{margin-top:8px}.order-media-section{margin-top:22px;padding-top:20px;border-top:1px solid #e6ddd3}.media-help{margin-top:-12px;margin-bottom:13px;color:var(--muted);font-size:8px}.order-media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.media-card{overflow:hidden;border:1px solid #e5ddd3;border-radius:15px;background:#fff}.media-card img,.media-placeholder{width:100%;height:145px;display:block;object-fit:cover}.media-placeholder{display:grid;place-items:center;color:var(--muted);background:#eee7df;font-size:9px;font-weight:900}.media-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px}.media-card-footer span{overflow:hidden;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.media-card-footer button{width:28px;height:28px;flex:0 0 28px;border:0;border-radius:9px;color:var(--danger);background:#f7eaea}.media-empty{grid-column:1/-1;padding:18px;border:1px dashed #d9cfc4;border-radius:14px;color:var(--muted);text-align:center;font-size:9px}
.profile-appointments-list,.customer-timeline{display:grid}.profile-appointment-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:11px 0;border-top:1px solid #e9e2da}.profile-appointment-row:first-child{border-top:0}.profile-appointment-row strong{font-size:10px}.profile-appointment-row small{display:block;margin-top:3px;color:var(--muted);font-size:8px}.timeline-item{position:relative;display:grid;grid-template-columns:16px 1fr;gap:8px;padding:0 0 17px}.timeline-item:before{content:"";position:absolute;left:5px;top:12px;bottom:-2px;width:1px;background:#ded5ca}.timeline-item:last-child:before{display:none}.timeline-dot{width:11px;height:11px;margin-top:4px;border-radius:50%;background:var(--brown);box-shadow:0 0 0 4px #eee4da}.timeline-item small{color:var(--muted);font-size:7px}.timeline-item strong{display:block;margin-top:3px;font-size:10px}.timeline-item p{margin-top:3px;color:var(--muted);font-size:8px}
@media(max-width:1100px){.v6-finance-strip,.report-metric-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:800px){.report-layout,.v6-profile-grid{grid-template-columns:1fr}.appointment-card{grid-template-columns:76px 1fr}.appointment-actions{grid-column:1/-1;justify-content:flex-start}.order-media-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.v6-finance-strip,.v6-summary-row,.report-metric-grid{grid-template-columns:1fr}.reports-header{align-items:flex-start}.order-media-grid{grid-template-columns:1fr}.expense-row{grid-template-columns:44px 1fr}.expense-money{grid-column:2;text-align:left}.appointment-card{grid-template-columns:1fr}.appointment-date-box{text-align:left;width:max-content}}


/* =========================================================
   V7 — TEAM & PERMISSIONS
   ========================================================= */

.team-permission-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.team-permission-grid article {
  min-height: 135px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.team-permission-grid strong {
  display: block;
  font-size: 12px;
}

.team-permission-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.team-panel { margin-top: 16px; }
.team-count { color: var(--muted); font-size: 9px; font-weight: 800; }
.team-members-list { display: grid; }

.team-member-row {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) 170px auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 11px 0;
  border-top: 1px solid #ece5dc;
}
.team-member-row:first-child { border-top: 0; }
.team-avatar {
  width: 42px; height: 42px; display:grid; place-items:center;
  border-radius:14px; color:#49352b; background:#eadbc9;
  font-size:10px; font-weight:900;
}
.team-avatar.invite { background:#e6e8df; }
.team-person { min-width:0; }
.team-person strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.team-person small { display:block; margin-top:4px; color:var(--muted); font-size:8px; }
.team-role-select {
  height: 40px; padding:0 11px; border:1px solid #ded5ca; border-radius:12px;
  background:#fffdf9; font-size:9px; font-weight:800;
}
.team-role { display:inline-flex; padding:7px 10px; border-radius:999px; font-size:8px; font-weight:900; }
.team-role.owner { color:#6d4433; background:#efe2d4; }
.team-remove-btn {
  min-height:36px; padding:0 12px; border:1px solid rgba(168,62,62,.16); border-radius:11px;
  color:var(--danger); background:rgba(168,62,62,.04); font-size:8px; font-weight:900;
}
.team-copy-btn { min-height:36px; font-size:8px; }
.team-empty { padding:10px 0; color:var(--muted); font-size:10px; }

.invite-result {
  margin-top:20px; padding:16px; border-radius:16px; background:#eee4d8;
}
.invite-result > small { color:var(--brown); font-size:7px; font-weight:900; letter-spacing:1px; }
.invite-link-row { display:grid; grid-template-columns:1fr auto; gap:8px; margin-top:8px; }
.invite-link-row input { font-size:9px; }

.staff-join-body::before {
  background:
    linear-gradient(90deg, rgba(17,12,10,.78), rgba(17,12,10,.35)),
    url('login-bg.png') center / cover no-repeat;
}
.staff-join-shell {
  min-height:100vh; display:grid; place-items:center; padding:32px 18px;
}
.staff-join-card {
  width:min(100%,620px); padding:34px; border:1px solid rgba(255,255,255,.18);
  border-radius:30px; background:rgba(255,253,249,.92); backdrop-filter:blur(14px);
  box-shadow:0 28px 90px rgba(0,0,0,.22);
}
.staff-join-brand { display:flex; align-items:center; gap:10px; margin-bottom:34px; }
.staff-join-brand > div { display:flex; flex-direction:column; }
.staff-join-brand strong { font-size:10px; letter-spacing:1.3px; }
.staff-join-brand small { margin-top:2px; color:var(--muted); font-size:8px; }
.join-state h1, #inviteContent h1 { margin-top:12px; font-size:clamp(2.4rem,6vw,4.4rem); line-height:.95; letter-spacing:-.055em; }
#inviteContent h1 span { color:var(--brown); }
.join-state > p:last-child, .join-intro { margin-top:14px; color:var(--muted); font-size:11px; line-height:1.65; }
.join-invite-meta { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:22px; }
.join-invite-meta > div { padding:14px; border:1px solid #e3dacf; border-radius:15px; background:#fbf8f4; }
.join-invite-meta small { display:block; color:var(--muted); font-size:7px; font-weight:900; letter-spacing:.8px; }
.join-invite-meta strong { display:block; margin-top:5px; font-size:10px; }
.join-auth-block { margin-top:24px; padding-top:22px; border-top:1px solid #ded5ca; }
.join-auth-block > p { margin-bottom:14px; color:var(--muted); font-size:10px; line-height:1.6; }
.join-tabs { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:5px; border-radius:14px; background:#eae2d8; }
.join-tab { height:38px; border:0; border-radius:10px; color:var(--muted); background:transparent; font-size:9px; font-weight:900; }
.join-tab.active { color:var(--ink); background:#fffdf9; box-shadow:0 5px 15px rgba(0,0,0,.05); }
.join-form { margin-top:18px; }

body[data-role="tailor"] .payment-section,
body[data-role="tailor"] .order-money-row,
body[data-role="staff"] .payment-section,
body[data-role="staff"] .order-money-row { display:none !important; }

@media (max-width: 1100px) {
  .team-permission-grid { grid-template-columns:repeat(3,1fr); }
}
@media (max-width: 750px) {
  .team-permission-grid { grid-template-columns:1fr 1fr; }
  .team-member-row { grid-template-columns:44px 1fr; }
  .team-role-control, .team-role-select { width:100%; }
  .team-member-row > :nth-child(3), .team-member-row > :nth-child(4) { grid-column:2; }
  .invitation-row .team-copy-btn, .invitation-row .team-remove-btn { width:100%; }
}
@media (max-width: 520px) {
  .team-permission-grid, .join-invite-meta { grid-template-columns:1fr; }
  .staff-join-card { padding:26px 20px; }
  .invite-link-row { grid-template-columns:1fr; }
}


/* V7.2 permission-polish */
body[data-role="receptionist"] .v6-finance-strip,
body[data-role="tailor"] .v6-finance-strip,
body[data-role="staff"] .v6-finance-strip {
  grid-template-columns: minmax(0, 1fr);
}

body[data-role="staff"] .appointment-actions:empty { display: none; }


/* =========================================================
   STITCHGH V8 — BRAND + PRIVATE CUSTOMER PORTAL
   ========================================================= */

.stitchgh-logo-mark,
.stitchgh-mark {
  position: relative;
  overflow: hidden;
  color: #201714 !important;
  background: linear-gradient(145deg, #f1d39f, #c89452) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 10px 24px rgba(91,59,46,.16);
}

.stitchgh-logo-mark::after,
.stitchgh-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(31,23,20,.72) 0 4px, transparent 4px 7px);
}

.portal-action {
  border: 1px solid rgba(142,95,71,.18);
  color: #5f402f;
  background: #f0e1cf;
  font-size: 10px;
  font-weight: 900;
}

.customer-portal-share-card {
  width: min(100%, 720px);
}

.portal-security-note {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid rgba(53,114,82,.14);
  border-radius: 16px;
  background: rgba(53,114,82,.06);
}

.portal-security-note > span { font-size: 20px; }
.portal-security-note strong { font-size: 10px; }
.portal-security-note p { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.55; }

.portal-link-label {
  display: block;
  color: var(--brown);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
}

.portal-link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 9px;
}

.portal-link-row input {
  min-width: 0;
  font-size: 10px;
}

.portal-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}

.portal-share-actions button { min-height: 46px; border-radius: 14px; }

.portal-reset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e6ddd3;
}

.portal-reset-row p {
  max-width: 440px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

/* Public customer portal */
.portal-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 6% 0%, rgba(200,156,96,.16), transparent 28%),
    radial-gradient(circle at 100% 18%, rgba(142,95,71,.1), transparent 24%),
    #f4eee7;
}

.customer-portal-shell {
  width: min(100% - 30px, 980px);
  margin: 0 auto;
  padding: 24px 0 42px;
}

.customer-portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.customer-portal-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.stitchgh-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 950;
}

.customer-portal-brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.customer-portal-brand strong { font-size: 14px; letter-spacing: -.3px; }
.customer-portal-brand small { margin-top: 2px; color: var(--muted); font-size: 8px; }

.portal-lock-chip {
  padding: 8px 10px;
  border-radius: 999px;
  color: #38634b;
  background: #dfeae3;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1px;
}

.portal-state-card {
  min-height: 430px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  text-align: center;
}

.portal-state-card h1 { font-size: 34px; letter-spacing: -1.4px; }
.portal-state-card p { max-width: 480px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.portal-error-icon { width: 60px; height: 60px; display:grid; place-items:center; border-radius:20px; color:white; background:var(--danger); font-size:24px; font-weight:900; }

.portal-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.portal-welcome h1 {
  margin-top: 9px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: .94;
  letter-spacing: -.065em;
}

.portal-welcome h1 span { color: var(--brown); }
.portal-welcome > div > p:last-child { margin-top: 11px; color: var(--muted); font-size: 11px; }

.portal-business-chip {
  max-width: 260px;
  padding: 11px 14px;
  border: 1px solid #ddd3c8;
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}

.portal-order-card,
.portal-section-card,
.portal-security-footer {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 40px rgba(42,31,27,.045);
}

.portal-order-card { padding: 25px; }

.portal-order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.portal-order-number { color: var(--brown); font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.portal-order-top h2 { margin-top: 7px; font-size: 30px; letter-spacing: -1.2px; }
.portal-description { max-width: 700px; margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.7; }

.portal-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 26px 0;
}

.portal-progress-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 11px;
  border-radius: 14px;
  background: #f2ece5;
}

.portal-progress-step > span {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8c8178;
  background: white;
  font-size: 8px;
  font-weight: 900;
}

.portal-progress-step small { color: var(--muted); font-size: 8px; font-weight: 850; }
.portal-progress-step.done { background: #e4eee7; }
.portal-progress-step.done > span { color: white; background: var(--success); }
.portal-progress-step.current { box-shadow: inset 0 0 0 1px rgba(53,114,82,.22); }
.portal-cancelled-note { grid-column: 1 / -1; padding: 11px 13px; border-radius: 12px; color: var(--danger); background: rgba(168,62,62,.07); font-size: 9px; }

.portal-collection-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px;
  border-radius: 18px;
  background: #f1e4d4;
}

.portal-collection-card small { color: #8e6c54; font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.portal-collection-card strong { display:block; margin-top:5px; font-size:18px; }

.portal-finance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.portal-finance-grid > div { padding: 15px; border:1px solid #e7ded4; border-radius:16px; background:#fbf8f4; }
.portal-finance-grid small { color:var(--muted); font-size:7px; font-weight:900; letter-spacing:.7px; }
.portal-finance-grid strong { display:block; margin-top:6px; font-size:18px; }
.portal-finance-grid .paid { color:var(--success); }
.portal-finance-grid .balance { color:var(--brown-deep); }

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

.portal-section-card { padding: 21px; }
.portal-section-head small { color:var(--brown); font-size:7px; font-weight:900; letter-spacing:1px; }
.portal-section-head h2 { margin-top:5px; font-size:21px; letter-spacing:-.8px; }
.portal-list { margin-top: 13px; }
.portal-list-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 0; border-top:1px solid #ebe3da; }
.portal-list-row:first-child { border-top:0; }
.portal-list-row strong { display:block; font-size:10px; }
.portal-list-row small { display:block; margin-top:3px; color:var(--muted); font-size:8px; }
.portal-money-paid { color:var(--success); }
.portal-appointment-status { padding:6px 8px; border-radius:999px; color:#5e5148; background:#eee5db; font-size:7px; font-weight:850; }
.portal-empty-row { padding:18px 0; color:var(--muted); font-size:9px; }

.portal-security-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  margin-top:14px;
  padding:20px;
}

.portal-security-footer strong { font-size:10px; }
.portal-security-footer p { max-width:650px; margin-top:4px; color:var(--muted); font-size:9px; line-height:1.6; }
.portal-footer { padding:22px 0 0; color:#958b83; font-size:8px; text-align:center; }

@media (max-width: 720px) {
  .portal-share-actions,
  .portal-two-column,
  .portal-finance-grid { grid-template-columns: 1fr; }
  .portal-reset-row,
  .portal-security-footer,
  .portal-welcome { align-items:flex-start; flex-direction:column; }
  .portal-progress { grid-template-columns: 1fr 1fr; }
  .portal-business-chip { max-width:100%; }
}

@media (max-width: 480px) {
  .customer-portal-shell { width:min(100% - 20px, 980px); padding-top:14px; }
  .customer-portal-header { margin-bottom:22px; }
  .portal-lock-chip { display:none; }
  .portal-order-card { padding:19px; }
  .portal-order-top { flex-direction:column; }
  .portal-progress { grid-template-columns:1fr; }
  .portal-link-row { grid-template-columns:1fr; }
}

@media print {
  .customer-portal-header,
  .portal-security-footer button,
  .portal-footer { display:none !important; }
  .portal-body { background:white; }
  .customer-portal-shell { width:100%; padding:0; }
  .portal-order-card,
  .portal-section-card,
  .portal-security-footer { box-shadow:none; break-inside:avoid; }
}

.stitchgh-brand-chip{display:inline-flex;align-items:center;gap:8px}.brand-chip-mark{width:24px;height:24px;display:grid;place-items:center;border-radius:8px;color:#201714;background:#e5bf8c;font-size:7px;font-weight:950;letter-spacing:0}.brand-chip-mark::after{content:""}


/* =========================================================
   V9 — SUBSCRIPTIONS + STITCHGH HQ
   ========================================================= */
.subscription-banner{max-width:1350px;margin:0 auto 20px;display:flex;align-items:center;gap:10px;padding:11px 14px;border-radius:14px;font-size:9px}.subscription-banner strong{font-size:10px}.subscription-banner>span:last-child{margin-left:auto;opacity:.65}.sub-status-dot{width:8px;height:8px;border-radius:50%}.sub-active{color:#315d43;background:#dfece4}.sub-active .sub-status-dot{background:#4fa373}.sub-trial{color:#604a2a;background:#f1e5c9}.sub-trial .sub-status-dot{background:#c89c60}.sub-warning{color:#823f3f;background:#f1dddd}.sub-warning .sub-status-dot{background:#b45454}.hq-admin-link{height:40px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid rgba(229,191,140,.18);border-radius:12px;color:#e5bf8c;background:rgba(229,191,140,.06);font-size:9px;font-weight:900;letter-spacing:.5px}

.suspended-body{min-height:100vh;display:grid;place-items:center;padding:25px;background:radial-gradient(circle at 15% 15%,rgba(200,156,96,.2),transparent 25%),#211613}.suspended-shell{width:min(100%,680px)}.suspended-logo{display:flex;align-items:center;gap:11px;margin-bottom:20px;color:white}.suspended-logo .stitchgh-logo-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;color:#201714;background:#e5bf8c;font-weight:950}.suspended-card{padding:40px;border-radius:30px;background:#f7f1e9;box-shadow:0 35px 100px rgba(0,0,0,.28)}.suspended-icon{width:62px;height:62px;display:grid;place-items:center;margin-bottom:20px;border-radius:20px;background:#eadbc9;font-size:25px}.suspended-card h1{margin-top:12px;font-size:42px;line-height:.98;letter-spacing:-2px}.suspended-card>p:not(.eyebrow){margin:16px 0;color:#766c65;font-size:12px;line-height:1.7}.suspended-safe{display:grid;gap:8px;margin:22px 0;padding:18px;border-radius:17px;background:#ede5db}.suspended-safe strong{font-size:10px;color:#4e6554}

.hq-body{min-height:100vh;background:#f2ece5}.hq-loader{position:fixed;inset:0;z-index:5000;display:grid;place-items:center;align-content:center;gap:12px;color:white;background:#1f1714;transition:.3s}.hq-loader.hidden-loader{opacity:0;visibility:hidden}.hq-loader p{max-width:600px;padding:0 25px;text-align:center;color:rgba(255,255,255,.6);font-size:11px;line-height:1.7}.hq-topbar{position:sticky;top:0;z-index:1000;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 28px;border-bottom:1px solid rgba(31,23,20,.08);background:rgba(245,240,233,.92);backdrop-filter:blur(14px)}.hq-brand{display:flex;align-items:center;gap:11px}.hq-brand>span:last-child{display:flex;flex-direction:column}.hq-brand strong{font-size:12px;letter-spacing:1px}.hq-brand small{color:var(--muted);font-size:8px}.hq-top-actions{display:flex;align-items:center;gap:8px}.hq-top-actions>span{margin-right:8px;color:var(--muted);font-size:9px}.hq-top-actions .secondary-action{min-height:38px;display:grid;place-items:center;font-size:9px}.hq-main{width:min(100% - 40px,1500px);margin:auto;padding:38px 0 60px}.hq-hero{min-height:310px;display:grid;grid-template-columns:1.4fr .55fr;align-items:end;gap:30px;padding:38px;border-radius:32px;color:white;background:radial-gradient(circle at 85% 10%,rgba(229,191,140,.22),transparent 28%),linear-gradient(145deg,#1f1714,#4f3026)}.hq-hero h1{margin-top:14px;font-size:clamp(3.3rem,6vw,6rem);line-height:.88;letter-spacing:-.07em}.hq-hero h1 span{color:#e7c38f}.hq-hero>div:first-child>p:last-child{max-width:600px;margin-top:20px;color:rgba(255,255,255,.56);font-size:12px;line-height:1.7}.hq-target-card{padding:24px;border:1px solid rgba(255,255,255,.1);border-radius:23px;background:rgba(255,255,255,.06);backdrop-filter:blur(10px)}.hq-target-card small{font-size:7px;letter-spacing:1px;color:rgba(255,255,255,.5)}.hq-target-card strong{display:block;margin-top:8px;font-size:42px}.target-track{height:8px;margin-top:18px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.1)}.target-track span{display:block;height:100%;width:0;border-radius:999px;background:#e5bf8c;transition:.4s}.hq-target-card p{margin-top:9px;color:rgba(255,255,255,.5);font-size:8px}.hq-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}.hq-metrics article{min-height:150px;display:flex;flex-direction:column;justify-content:space-between;padding:20px;border:1px solid var(--line);border-radius:21px;background:rgba(255,255,255,.78)}.hq-metrics small{color:var(--brown);font-size:7px;font-weight:900;letter-spacing:1px}.hq-metrics strong{font-size:29px;letter-spacing:-1.3px}.hq-metrics span{color:var(--muted);font-size:8px}.hq-metric-dark{color:white!important;background:#1f1714!important}.hq-metric-dark small,.hq-metric-dark span,.hq-metric-gold small,.hq-metric-gold span{color:rgba(255,255,255,.55)!important}.hq-metric-gold{color:white!important;background:#8e5f47!important}.hq-grid{display:grid;grid-template-columns:1.5fr .6fr;gap:14px;margin-top:14px}.hq-panel{padding:24px;border:1px solid var(--line);border-radius:24px;background:rgba(255,255,255,.78)}.hq-toolbar{display:flex;gap:10px;margin-bottom:15px}.hq-toolbar .search-box{flex:1}.hq-business-list{display:grid}.hq-business-row{width:100%;display:grid;grid-template-columns:1.5fr .7fr auto 28px;align-items:center;gap:14px;padding:15px 5px;border:0;border-top:1px solid #e8e0d7;background:transparent;text-align:left}.hq-business-row:first-child{border-top:0}.hq-business-row:hover{background:rgba(142,95,71,.035)}.hq-biz-main strong,.hq-biz-plan strong{display:block;font-size:10px}.hq-biz-main small,.hq-biz-plan small{display:block;margin-top:3px;color:var(--muted);font-size:8px}.hq-status{width:max-content;padding:6px 9px;border-radius:999px;font-size:7px;font-weight:900;text-transform:uppercase}.hq-status-active{color:#315d43;background:#dfece4}.hq-status-trialing{color:#604a2a;background:#f1e5c9}.hq-status-past_due{color:#774f22;background:#f3dfbd}.hq-status-suspended,.hq-status-cancelled{color:#823f3f;background:#f1dddd}.hq-status-missing{background:#eee;color:#666}.hq-row-arrow{color:var(--brown);font-weight:900}.hq-empty,.hq-muted{padding:22px 0;color:var(--muted);font-size:10px}.plan-mix{display:grid}.plan-mix-row{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-top:1px solid #e8e0d7}.plan-mix-row:first-child{border-top:0}.plan-mix-row strong{display:block;font-size:11px}.plan-mix-row small{display:block;margin-top:3px;color:var(--muted);font-size:8px}.plan-mix-row>span{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:#eadbc9;font-size:11px;font-weight:900}.hq-goal-box{margin-top:20px;padding:20px;border-radius:19px;color:white;background:#30211b}.hq-goal-box small{font-size:7px;color:#e5bf8c;letter-spacing:1px}.hq-goal-box strong{display:block;margin-top:7px;font-size:30px}.hq-goal-box p{margin-top:7px;color:rgba(255,255,255,.55);font-size:9px;line-height:1.6}.hq-business-modal{width:min(100%,860px)}.hq-sub-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:20px}.hq-sub-summary>div{padding:14px;border-radius:15px;background:#ede5db}.hq-sub-summary small{font-size:7px;color:var(--muted)}.hq-sub-summary strong{display:block;margin-top:5px;font-size:13px}.hq-action-strip{display:flex;gap:8px;margin:20px 0}.warning-action,.success-action{min-height:44px;padding:0 16px;border:0;border-radius:13px;font-size:10px;font-weight:850}.warning-action{color:#735823;background:#f1e5c9}.success-action{color:#315d43;background:#dfece4}.hq-payment-box{margin-top:22px;padding-top:20px;border-top:1px solid #ddd4ca}.hq-payment-history{margin-top:20px}.hq-payment-history>small{color:var(--brown);font-size:7px;font-weight:900;letter-spacing:1px}.hq-payment-row{padding:12px 0;border-top:1px solid #e7ded4}.hq-payment-row strong{display:block;font-size:11px}.hq-payment-row small{display:block;margin-top:3px;color:var(--muted);font-size:8px}
@media(max-width:1000px){.hq-metrics{grid-template-columns:repeat(2,1fr)}.hq-grid,.hq-hero{grid-template-columns:1fr}.hq-business-row{grid-template-columns:1fr auto}.hq-biz-plan{display:none}.hq-sub-summary{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.hq-main{width:min(100% - 24px,1500px);padding-top:20px}.hq-topbar{padding:12px}.hq-top-actions>span,.hq-top-actions .secondary-action:first-of-type{display:none}.hq-hero{padding:25px 20px}.hq-metrics{grid-template-columns:1fr 1fr}.hq-toolbar{flex-direction:column}.hq-toolbar .filter-select{width:100%}.hq-action-strip{flex-direction:column}.hq-action-strip button{width:100%}.hq-sub-summary{grid-template-columns:1fr 1fr}.subscription-banner{margin-bottom:14px;align-items:flex-start;flex-wrap:wrap}.subscription-banner>span:last-child{width:100%;margin-left:18px}.suspended-card{padding:28px 21px}.suspended-card h1{font-size:34px}}
