:root {
  --dash-forest-950: #072d26;
  --dash-forest-900: #0b3b32;
  --dash-forest-800: #10493d;
  --dash-forest-700: #176253;
  --dash-mint: #4fdcbd;
  --dash-mint-soft: #e6f9f4;
  --dash-canvas: #f4f7f6;
  --dash-surface: #ffffff;
  --dash-surface-soft: #f8faf9;
  --dash-text: #182520;
  --dash-muted: #6d7b75;
  --dash-subtle: #94a09b;
  --dash-line: #e0e8e4;
  --dash-line-strong: #cedbd5;
  --dash-danger: #c94f4f;
  --dash-shadow: 0 18px 55px rgba(23, 48, 39, .09);
}

html { min-width: 320px; background: var(--dash-canvas); }
body {
  min-height: 100vh !important;
  height: 100vh !important;
  display: grid !important;
  grid-template-columns: 252px minmax(0, 1fr);
  overflow: hidden !important;
  color: var(--dash-text) !important;
  background: var(--dash-canvas) !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font-family: inherit !important; }

/* Sidebar */
.workspace-sidebar.desktop-visual {
  width: auto !important;
  min-width: 0;
  height: 100vh;
  flex: none !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding: 22px 18px !important;
  border-right: 1px solid rgba(255,255,255,.08) !important;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(79,220,189,.18), transparent 28%),
    linear-gradient(165deg, var(--dash-forest-900), var(--dash-forest-950)) !important;
  overflow-y: auto;
  scrollbar-width: none;
}
.workspace-sidebar.desktop-visual::-webkit-scrollbar { display: none; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 0 7px; color: #fff; }
.sidebar-brand img { width: 40px; height: 40px; border-radius: 12px; }
.sidebar-brand strong, .sidebar-brand span { display: block; }
.sidebar-brand strong { font-size: .75rem; font-weight: 700; letter-spacing: .15em; }
.sidebar-brand span { margin-top: 3px; color: rgba(255,255,255,.48); font-size: .58rem; }
.sidebar-context { margin: 34px 7px 24px; }
.sidebar-context > span, .sidebar-context > strong, .sidebar-context > small { display: block; }
.sidebar-eyebrow { color: var(--dash-mint); font-size: .56rem; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }
.sidebar-context > strong { margin-top: 9px; overflow: hidden; font-size: .85rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-context > small { margin-top: 4px; color: rgba(255,255,255,.42); font-size: .56rem; line-height: 1.35; }
.sidebar-navigation.desktop-nav-links { display: grid !important; gap: 5px; }
.sidebar-navigation .d-link {
  position: relative;
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255,255,255,.58) !important;
  background: transparent;
  font-size: .64rem;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
  transition: .16s ease;
}
.sidebar-navigation .d-link i { width: 16px; color: rgba(255,255,255,.38); font-size: .7rem; text-align: center; }
.sidebar-navigation .d-link:hover { color: #fff !important; background: rgba(255,255,255,.055); }
.sidebar-navigation .d-link.active { border-color: rgba(79,220,189,.14); color: #fff !important; background: rgba(79,220,189,.1); }
.sidebar-navigation .d-link.active i { color: var(--dash-mint); }
.sidebar-navigation .d-link.active::after { display: none !important; }
.sidebar-nav-group { display: grid; gap: 4px; }
.sidebar-parent-link .sidebar-nav-chevron { width: auto; margin-left: auto; color: rgba(255,255,255,.28); font-size: .48rem; transition: transform .18s ease; }
.sidebar-parent-link[aria-expanded="true"] .sidebar-nav-chevron { transform: rotate(180deg); }
.profile-subnav { max-height: 0; display: grid; gap: 2px; overflow: hidden; padding-left: 16px; opacity: 0; transition: max-height .22s ease, opacity .16s ease, padding .22s ease; }
.profile-subnav.show { max-height: 270px; padding-top: 3px; padding-bottom: 5px; opacity: 1; }
.profile-subnav-link { position: relative; min-height: 34px; display: grid; grid-template-columns: 15px 1fr; align-items: center; gap: 8px; padding: 0 9px; border: 0; border-radius: 8px; color: rgba(255,255,255,.4); background: transparent; font-size: .54rem; font-weight: 500; text-align: left; cursor: pointer; }
.profile-subnav-link::before { content: ""; position: absolute; left: -8px; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.08); }
.profile-subnav-link i { color: rgba(255,255,255,.28); font-size: .55rem; text-align: center; }
.profile-subnav-link:hover { color: rgba(255,255,255,.78); background: rgba(255,255,255,.04); }
.profile-subnav-link.active { color: #fff; background: rgba(79,220,189,.08); }
.profile-subnav-link.active i { color: var(--dash-mint); }
.profile-subnav-link.active::before { width: 2px; background: var(--dash-mint); }
.sidebar-readiness { margin: 18px 6px 0; padding: 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.035); }
.sidebar-readiness-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: rgba(255,255,255,.58); font-size: .52rem; }
.sidebar-readiness-head strong { color: var(--dash-mint); font-size: .62rem; font-weight: 650; }
.sidebar-progress-track { height: 4px; overflow: hidden; margin-top: 9px; border-radius: 99px; background: rgba(255,255,255,.08); }
.sidebar-progress-track i { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--dash-mint); transition: width .25s ease; }
.sidebar-readiness p { margin: 8px 0 11px; color: rgba(255,255,255,.36); font-size: .48rem; line-height: 1.35; }
.sidebar-readiness button { width: 100%; min-height: 32px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; border: 1px solid rgba(79,220,189,.12); border-radius: 8px; color: rgba(255,255,255,.7); background: rgba(79,220,189,.08); font-size: .5rem; font-weight: 600; cursor: pointer; }
.sidebar-readiness button:hover { color: #fff; background: rgba(79,220,189,.13); }
.sidebar-spacer { flex: 1; min-height: 20px; }
.sidebar-quote.quote-card {
  max-width: none;
  margin: 0 0 14px;
  padding: 14px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-left: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.04) !important;
  box-shadow: none !important;
}
.sidebar-quote .quote-text { max-height: 58px; overflow: hidden; margin: 0 28px 10px 0; color: rgba(255,255,255,.7) !important; font-size: .63rem !important; font-weight: 450 !important; line-height: 1.48; letter-spacing: 0 !important; }
.sidebar-quote .quote-sub { color: var(--dash-mint) !important; font-size: .48rem; letter-spacing: .08em; }
.sidebar-quote .edit-quote-btn { top: 10px; right: 10px; width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; color: rgba(255,255,255,.45) !important; background: rgba(255,255,255,.06); opacity: 1; }
.sidebar-home { min-height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 9px; color: rgba(255,255,255,.45); font-size: .57rem; font-weight: 550; }
.sidebar-home:hover { color: #fff; }

/* Main workspace and topbar */
.app-interface { min-width: 0; width: 100% !important; height: 100vh !important; align-items: stretch !important; background: var(--dash-canvas) !important; }
.workspace-topbar {
  width: 100% !important;
  max-width: none !important;
  min-height: 72px;
  flex: 0 0 72px;
  padding: 0 32px !important;
  border-bottom: 1px solid var(--dash-line) !important;
  background: rgba(255,255,255,.9) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px);
}
.nav-left { gap: 11px !important; }
.topbar-page-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--dash-forest-700); background: var(--dash-mint-soft); font-size: .7rem; }
.nav-greeting span { color: var(--dash-subtle) !important; font-size: .53rem !important; font-weight: 550; letter-spacing: .08em !important; }
.nav-greeting strong { margin-top: 3px; color: var(--dash-text) !important; font-size: .73rem !important; font-weight: 600 !important; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-icon-button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--dash-line); border-radius: 9px; color: var(--dash-muted); background: #fff; font-size: .68rem; cursor: pointer; }
.topbar-icon-button:hover { color: var(--dash-forest-800); background: var(--dash-mint-soft); }
.nav-avatar-data { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; }

.account-menu-wrap { position: relative; }
.account-pill { min-height: 40px; display: grid; grid-template-columns: 30px auto 12px; align-items: center; gap: 9px; padding: 4px 9px 4px 5px; border: 1px solid var(--dash-line); border-radius: 10px; color: var(--dash-text); background: #fff; cursor: pointer; }
.account-pill:hover, .account-pill[aria-expanded="true"] { border-color: var(--dash-line-strong); background: var(--dash-surface-soft); }
.account-initials { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--dash-forest-900); font-size: .58rem; font-weight: 700; letter-spacing: .04em; }
.account-initials.large { width: 38px; height: 38px; border-radius: 10px; font-size: .66rem; }
.account-copy { min-width: 72px; text-align: left; }
.account-copy strong, .account-copy small { display: block; }
.account-copy strong { max-width: 106px; overflow: hidden; color: var(--dash-text); font-size: .6rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { margin-top: 2px; color: var(--dash-subtle); font-size: .49rem; }
.account-chevron { color: var(--dash-subtle); font-size: .5rem; transition: transform .16s ease; }
.account-pill[aria-expanded="true"] .account-chevron { transform: rotate(180deg); }
.account-menu { position: absolute; z-index: 500; top: calc(100% + 9px); right: 0; width: 235px; display: none; padding: 8px; border: 1px solid var(--dash-line); border-radius: 13px; background: #fff; box-shadow: 0 18px 50px rgba(21,42,34,.14); }
.account-menu.show { display: block; }
.account-menu-head { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; padding: 7px 7px 12px; margin-bottom: 5px; border-bottom: 1px solid var(--dash-line); }
.account-menu-head strong, .account-menu-head span { display: block; }
.account-menu-head strong { max-width: 158px; overflow: hidden; color: var(--dash-text); font-size: .63rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-head div > span { max-width: 158px; margin-top: 3px; overflow: hidden; color: var(--dash-subtle); font-size: .5rem; text-overflow: ellipsis; white-space: nowrap; }
.account-menu > a, .account-menu > button { width: 100%; min-height: 38px; display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 8px; padding: 0 9px; border: 0; border-radius: 8px; color: var(--dash-muted); background: transparent; font-size: .58rem; font-weight: 550; text-align: left; cursor: pointer; }
.account-menu > a:hover, .account-menu > button:hover { color: var(--dash-forest-900); background: var(--dash-mint-soft); }
.account-menu > .danger { color: var(--dash-danger); }
.account-menu-divider { height: 1px; margin: 5px 4px; background: var(--dash-line); }

/* Content */
.container { width: 100% !important; max-width: 1240px !important; padding: 30px 34px 80px !important; margin: 0 auto; color: var(--dash-text); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 4px 0 25px; }
.page-eyebrow, .section-eyebrow { display: block; color: var(--dash-forest-700); font-size: .54rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.page-heading h1 { margin: 8px 0 0; color: var(--dash-text); font-size: clamp(1.65rem, 2.8vw, 2.35rem); line-height: 1; letter-spacing: -.045em; font-weight: 650; }
.page-heading p { max-width: 600px; margin: 9px 0 0; color: var(--dash-muted); font-size: .67rem; line-height: 1.55; }
.workspace-live { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #cde8df; border-radius: 99px; color: var(--dash-forest-700); background: #effaf6; font-size: .54rem; font-weight: 600; white-space: nowrap; }
.workspace-live i { width: 6px; height: 6px; border-radius: 50%; background: #2db989; box-shadow: 0 0 0 4px rgba(45,185,137,.1); }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 14px; align-items: stretch; }
.wallet-card { min-height: 285px; display: flex; flex-direction: column; justify-content: space-between; margin: 0 !important; padding: 25px !important; border: 1px solid rgba(255,255,255,.09) !important; border-radius: 17px !important; background: radial-gradient(circle at 90% 0%, rgba(79,220,189,.19), transparent 30%), linear-gradient(145deg, var(--dash-forest-900), var(--dash-forest-950)) !important; box-shadow: 0 18px 48px rgba(7,45,38,.15) !important; }
.card-accent { display: none; }
.card-top { margin: 0 !important; }
.wallet-brand-lockup { display: flex; align-items: center; gap: 10px; }
.wallet-brand-lockup .card-chip { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; color: var(--dash-mint); background: rgba(79,220,189,.1) !important; font-size: .7rem; }
.wallet-brand-lockup strong, .wallet-brand-lockup small { display: block; }
.wallet-brand-lockup strong { color: #fff; font-size: .65rem; font-weight: 600; }
.wallet-brand-lockup small { margin-top: 3px; color: rgba(255,255,255,.45); font-size: .52rem; }
.card-brand { color: rgba(255,255,255,.5) !important; font-family: Inter, sans-serif !important; font-size: .53rem !important; font-weight: 650 !important; letter-spacing: .14em !important; }
.wallet-label { margin-top: auto; color: rgba(255,255,255,.48); font-size: .55rem; font-weight: 550; letter-spacing: .08em; text-transform: uppercase; }
.wallet-balance { margin: 7px 0 0 !important; color: #fff !important; font-family: Inter, sans-serif !important; font-size: clamp(2rem, 4vw, 3.25rem) !important; font-weight: 550 !important; letter-spacing: -.05em !important; }
.card-actions { width: min(360px, 100%); grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px !important; margin-top: 21px !important; }
.wallet-card .action-btn { min-height: 42px; padding: 0 14px !important; border: 1px solid rgba(255,255,255,.12) !important; border-radius: 9px !important; color: rgba(255,255,255,.78) !important; background: rgba(255,255,255,.07) !important; box-shadow: none !important; font-size: .6rem !important; font-weight: 600 !important; }
.wallet-card .action-btn.btn-primary { border-color: transparent !important; color: var(--dash-forest-950) !important; background: var(--dash-mint) !important; }

.status-column { min-height: 285px; }
.status-column .status-card { height: 100%; min-height: 285px; display: flex; flex-direction: column; justify-content: center; margin: 0 !important; padding: 24px !important; border: 1px solid var(--dash-line) !important; border-radius: 17px !important; background: #fff !important; box-shadow: 0 7px 26px rgba(23,48,39,.05) !important; text-align: left !important; }
.status-column .status-card > div:first-child { font-size: 1.35rem !important; }
.status-column .s-title { margin: 11px 0 7px !important; color: var(--dash-text) !important; font-family: Inter, sans-serif !important; font-size: .82rem !important; font-weight: 650 !important; letter-spacing: -.02em; }
.status-column .s-desc { margin: 0 0 20px !important; color: var(--dash-muted) !important; font-size: .62rem !important; line-height: 1.55 !important; }
.status-column .status-btn { width: fit-content; min-height: 39px; padding: 0 13px !important; border: 0 !important; border-radius: 9px !important; color: #fff !important; background: var(--dash-forest-900) !important; box-shadow: none !important; font-size: .57rem !important; font-weight: 600 !important; }

.content-panel { margin-top: 14px; padding: 21px; border: 1px solid var(--dash-line); border-radius: 17px; background: #fff; box-shadow: 0 5px 22px rgba(23,48,39,.04); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.panel-heading h2 { margin: 6px 0 0; color: var(--dash-text); font-size: .9rem; font-weight: 650; letter-spacing: -.025em; }
.panel-action { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border: 1px solid var(--dash-line); border-radius: 8px; color: var(--dash-muted); background: #fff; font-size: .55rem; font-weight: 600; cursor: pointer; }
.panel-action:hover { color: var(--dash-forest-900); background: var(--dash-mint-soft); }
.panel-action.primary { border-color: var(--dash-forest-900); color: #fff; background: var(--dash-forest-900); }
.txn-list { gap: 7px !important; }
.txn-item { min-height: 58px; padding: 10px 12px !important; border: 1px solid var(--dash-line) !important; border-radius: 10px !important; background: var(--dash-surface-soft) !important; box-shadow: none !important; }
.txn-icon { width: 35px !important; height: 35px !important; border: 0 !important; border-radius: 9px !important; color: var(--dash-forest-700) !important; background: var(--dash-mint-soft) !important; box-shadow: none !important; }
.txn-icon i { color: var(--dash-forest-700) !important; }
.txn-item h4 { color: var(--dash-text) !important; font-size: .63rem !important; font-weight: 600 !important; }
.txn-item span { color: var(--dash-muted) !important; font-size: .52rem !important; }
.txn-amount { color: #208764 !important; font-family: Inter, sans-serif !important; font-size: .63rem !important; }
.empty-inline { padding: 32px 14px; color: var(--dash-subtle); font-size: .62rem; text-align: center; }

/* Profile workspace */
.profile-page-heading { align-items: center; }
.profile-mobile-tabs { display: none; }
.profile-panel { display: none; animation: profilePanelIn .18s ease; }
.profile-panel.active { display: block; }
@keyframes profilePanelIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.profile-panel .profile-save-bar { position: static !important; bottom: auto !important; }
.profile-hero-card { display: grid; grid-template-columns: minmax(250px,.8fr) minmax(300px,1.2fr); gap: 25px; align-items: center; margin-bottom: 23px; padding: 24px; border: 1px solid var(--dash-line); border-radius: 17px; background: #fff; box-shadow: 0 5px 22px rgba(23,48,39,.04); }
.profile-identity-block { display: grid; justify-items: center; padding: 6px 20px; border-right: 1px solid var(--dash-line); text-align: center; }
.profile-upload-wrapper { width: 92px !important; height: 92px !important; margin: 0 !important; }
.profile-main-img { border: 3px solid #fff !important; box-shadow: 0 0 0 1px var(--dash-line), 0 10px 25px rgba(23,48,39,.1); }
.verified-badge { width: 27px !important; height: 27px !important; border: 3px solid #fff !important; font-size: .67rem !important; }
.change-photo-wrap { margin-top: 12px; }
.change-photo-button { min-height: 31px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--dash-line); border-radius: 8px; color: var(--dash-muted); background: var(--dash-surface-soft); font-size: .53rem; font-weight: 600; cursor: pointer; }
.change-photo-button:hover { color: var(--dash-forest-900); background: var(--dash-mint-soft); }
.profile-workspace-name { margin: 14px 0 0; color: var(--dash-text); font-size: 1.15rem; font-weight: 650; letter-spacing: -.035em; }
.profile-workspace-role { margin: 4px 0 0; color: var(--dash-muted); font-size: .59rem; }
.profile-hero-actions { min-width: 0; }
.profile-action-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.profile-action-row .action-btn { min-height: 43px; border-radius: 9px !important; box-shadow: none !important; font-size: .58rem !important; }
.profile-tools-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px !important; margin-top: 8px !important; }
.profile-tools-grid .tool-btn { min-height: 43px !important; border-radius: 9px !important; font-size: .58rem !important; font-weight: 600 !important; box-shadow: none !important; }
.dashboard-section-title { margin: 27px 0 12px !important; }
.dashboard-section-title h3 { color: var(--dash-text) !important; font-size: .9rem !important; font-weight: 650 !important; }
.dashboard-section-title span { padding: 6px 9px !important; border: 1px solid #cce9df !important; color: var(--dash-forest-700) !important; background: var(--dash-mint-soft) !important; font-size: .5rem !important; font-weight: 600 !important; }
.guide-workspace-card { margin-bottom: 12px !important; padding: 21px !important; border: 1px solid var(--dash-line) !important; border-radius: 17px !important; background: #fff !important; box-shadow: 0 5px 22px rgba(23,48,39,.04) !important; }
.guide-workspace-card.dark { background: radial-gradient(circle at 90% 0%, rgba(79,220,189,.17), transparent 30%), linear-gradient(145deg,var(--dash-forest-900),var(--dash-forest-950)) !important; }
.match-card-title { color: var(--dash-text) !important; font-size: .82rem !important; font-weight: 650 !important; }
.match-card-copy { color: var(--dash-muted) !important; font-size: .61rem !important; }
.guide-workspace-card.dark .match-card-title { color: #fff !important; }
.guide-workspace-card.dark .match-card-copy { color: rgba(255,255,255,.58) !important; }
.match-icon { width: 39px !important; height: 39px !important; border-radius: 10px !important; color: var(--dash-forest-700) !important; background: var(--dash-mint-soft) !important; box-shadow: none !important; font-size: .67rem; }
.match-field label { color: #485851 !important; font-size: .57rem !important; font-weight: 600 !important; }
.match-input, .match-select, .match-textarea { border-radius: 9px !important; border-color: var(--dash-line) !important; color: var(--dash-text) !important; background: var(--dash-surface-soft) !important; font-size: .62rem !important; font-weight: 450 !important; }
.match-input, .match-select { min-height: 43px !important; }
.match-input:focus, .match-select:focus, .match-textarea:focus { border-color: #8fd6c5 !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(79,220,189,.12) !important; }
.match-save-btn, .match-ghost-btn { min-height: 41px !important; padding: 0 13px !important; border-radius: 9px !important; font-size: .56rem !important; font-weight: 600 !important; box-shadow: none !important; }
.match-save-btn { color: #fff !important; background: var(--dash-forest-900) !important; }
.match-ghost-btn { border: 1px solid var(--dash-line) !important; color: var(--dash-muted) !important; background: #fff !important; }
.readiness-item { border-radius: 11px !important; }
.readiness-item strong { color: var(--dash-mint) !important; font-size: 1rem !important; font-weight: 600 !important; }
.readiness-item span { font-size: .55rem !important; font-weight: 500 !important; }
.quality-mini { border-radius: 11px !important; }
.quality-mini i { border-radius: 9px !important; color: var(--dash-forest-700) !important; background: var(--dash-mint-soft) !important; }
.quality-mini strong { font-size: .65rem !important; font-weight: 600 !important; }
.quality-mini span, .match-note { color: var(--dash-muted) !important; font-size: .56rem !important; font-weight: 450 !important; }
.profile-save-bar { border-radius: 13px !important; }
.profile-save-bar strong { font-size: .66rem !important; font-weight: 600 !important; }
.profile-save-bar span { font-size: .55rem !important; font-weight: 450 !important; }
.skills-grid { gap: 8px !important; }
.skill-item { border: 1px solid var(--dash-line) !important; border-radius: 12px !important; background: #fff !important; box-shadow: none !important; }
.circle-bg { stroke: #edf2ef !important; }
.circle-text { color: var(--dash-text); font-family: Inter, sans-serif !important; font-size: .7rem !important; }
.skill-name { color: var(--dash-muted) !important; font-size: .55rem !important; }
.review-item { border: 1px solid var(--dash-line) !important; border-radius: 10px !important; background: #fff !important; }
.review-name { color: var(--dash-text) !important; font-size: .62rem !important; }
.review-rating { color: var(--dash-forest-700) !important; background: var(--dash-mint-soft) !important; }

/* Mobile navigation and dialogs */
.bottom-nav { left: 50% !important; width: min(310px, calc(100% - 34px)) !important; max-width: none !important; padding: 7px 18px !important; border: 1px solid rgba(255,255,255,.1) !important; border-radius: 13px !important; background: rgba(7,45,38,.94) !important; box-shadow: 0 16px 40px rgba(7,45,38,.22) !important; }
.nav-item { font-size: .82rem !important; }
.nav-item.active { color: var(--dash-mint) !important; background: rgba(79,220,189,.1) !important; }
.qr-card { position: relative; border: 1px solid var(--dash-line) !important; border-radius: 16px !important; color: var(--dash-text) !important; background: #fff !important; box-shadow: var(--dash-shadow) !important; }
.qr-card h2, .qr-card h3 { color: var(--dash-text) !important; font-family: Inter, sans-serif !important; }
.qr-card p { color: var(--dash-muted) !important; }
#toast { border: 0 !important; border-radius: 10px !important; color: #fff !important; background: var(--dash-forest-950) !important; box-shadow: 0 14px 35px rgba(7,45,38,.2) !important; font-size: .6rem !important; }

/* In-workspace public profile preview */
.profile-preview-overlay { position: fixed; z-index: 3000; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(7,35,29,.58); opacity: 0; visibility: hidden; pointer-events: none; backdrop-filter: blur(12px); transition: opacity .18s ease, visibility .18s ease; }
.profile-preview-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; }
.profile-preview-window { width: min(1180px, 96vw); height: min(860px, 94vh); display: grid; grid-template-rows: 58px minmax(0,1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.24); border-radius: 17px; background: #fff; box-shadow: 0 30px 90px rgba(7,35,29,.28); transform: translateY(10px) scale(.99); transition: transform .18s ease; }
.profile-preview-overlay.show .profile-preview-window { transform: translateY(0) scale(1); }
.profile-preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 12px 0 17px; border-bottom: 1px solid var(--dash-line); background: #fff; }
.profile-preview-title { min-width: 0; display: flex; align-items: center; gap: 10px; }
.profile-preview-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: var(--dash-forest-700); background: var(--dash-mint-soft); font-size: .68rem; }
.profile-preview-title strong, .profile-preview-title span { display: block; }
.profile-preview-title strong { color: var(--dash-text); font-size: .64rem; font-weight: 650; }
.profile-preview-title div > span { margin-top: 3px; color: var(--dash-subtle); font-size: .5rem; }
.profile-preview-actions { display: flex; align-items: center; gap: 6px; }
.profile-preview-actions button, .profile-preview-actions a { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--dash-line); border-radius: 9px; color: var(--dash-muted); background: #fff; font-size: .62rem; cursor: pointer; }
.profile-preview-actions button:hover, .profile-preview-actions a:hover { color: var(--dash-forest-900); background: var(--dash-mint-soft); }
.profile-preview-actions .profile-preview-close { margin-left: 4px; border-color: #f0dcdc; color: #b64a4a; background: #fff8f8; }
.profile-preview-actions .profile-preview-close:hover { color: #9f3434; background: #fff0f0; }
.profile-preview-body { position: relative; min-height: 0; background: var(--dash-canvas); }
.profile-preview-body iframe { width: 100%; height: 100%; display: block; border: 0; background: #fff; }
.profile-preview-loader { position: absolute; z-index: 2; inset: 0; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--dash-muted); background: var(--dash-canvas); font-size: .61rem; transition: opacity .16s ease, visibility .16s ease; }
.profile-preview-loader i { color: var(--dash-forest-700); }
.profile-preview-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

@media (min-width: 901px) {
  .bottom-nav { display: none !important; }
}

@media (max-width: 1080px) {
  body { grid-template-columns: 220px minmax(0,1fr); }
  .container { padding-inline: 24px !important; }
  .account-copy { display: none; }
  .account-pill { grid-template-columns: 30px 12px; }
}

@media (max-width: 900px) {
  body { display: block !important; height: 100vh !important; }
  .workspace-sidebar.desktop-visual { display: none !important; }
  .app-interface { height: 100vh !important; }
  .workspace-topbar { min-height: 64px; flex-basis: 64px; padding: 0 16px !important; }
  .container { padding: 22px 16px 120px !important; }
  .overview-grid { grid-template-columns: 1fr; }
  .wallet-card, .status-column, .status-column .status-card { min-height: 250px; }
  .profile-hero-card { grid-template-columns: 1fr; }
  .profile-identity-block { border-right: 0; border-bottom: 1px solid var(--dash-line); padding-bottom: 22px; }
  .profile-mobile-tabs { position: sticky; z-index: 80; top: 0; display: flex; gap: 5px; overflow-x: auto; margin: -2px 0 16px; padding: 7px; border: 1px solid var(--dash-line); border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 8px 25px rgba(23,48,39,.06); scrollbar-width: none; backdrop-filter: blur(16px); }
  .profile-mobile-tabs::-webkit-scrollbar { display: none; }
  .profile-mobile-tabs button { min-height: 32px; flex: 0 0 auto; padding: 0 11px; border: 0; border-radius: 8px; color: var(--dash-muted); background: transparent; font-size: .53rem; font-weight: 600; cursor: pointer; }
  .profile-mobile-tabs button.active { color: var(--dash-forest-900); background: var(--dash-mint-soft); }
}

@media (max-width: 600px) {
  .topbar-icon-button:first-child { display: none; }
  .account-copy { display: none; }
  .account-pill { grid-template-columns: 30px 12px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .page-heading h1 { font-size: 1.75rem; }
  .page-heading .panel-action { width: 100%; }
  .workspace-live { display: none; }
  .wallet-card { min-height: 265px; padding: 21px !important; }
  .wallet-balance { font-size: 2.2rem !important; }
  .content-panel { padding: 17px; }
  .panel-heading { align-items: flex-start; }
  .profile-hero-card { padding: 18px; }
  .profile-action-row, .profile-tools-grid { grid-template-columns: 1fr; }
  .match-form-grid, .availability-grid, .quality-mini-grid, .readiness-grid { grid-template-columns: 1fr !important; }
  .profile-preview-overlay { padding: 0; }
  .profile-preview-window { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
  .profile-preview-toolbar { min-height: 58px; padding-inline: 12px 8px; }
  .profile-preview-title div > span { display: none; }
  .profile-preview-actions button, .profile-preview-actions a { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
