.cai-app {
  --cai-bg: #f4f0e8;
  --cai-ink: #171512;
  --cai-muted: #777069;
  --cai-line: rgba(23, 21, 18, .12);
  --cai-card: rgba(255, 253, 248, .86);
  --cai-accent: #7c5cff;
  --cai-accent-dark: #5a3ee8;
  --hf-gold: #c7a96b;
  --hf-black: #11100e;
  --hf-cream: #fbf8f1;
  color: var(--cai-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cai-app * {
  box-sizing: border-box;
}

.hf-auth,
.hf-portal {
  background:
    radial-gradient(circle at 12% 8%, rgba(199, 169, 107, .25), transparent 28%),
    linear-gradient(135deg, #f8f4ec 0%, #efe7dc 48%, #f9f7f2 100%);
  border: 1px solid rgba(23, 21, 18, .08);
  border-radius: 18px;
  min-height: 760px;
  overflow: hidden;
}

.hf-auth {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  padding: 28px;
}

.hf-auth-hero {
  align-content: center;
  background:
    linear-gradient(135deg, rgba(17, 16, 14, .92), rgba(35, 30, 25, .88)),
    radial-gradient(circle at 80% 12%, rgba(199, 169, 107, .42), transparent 34%);
  border-radius: 18px;
  color: #fff;
  display: grid;
  min-height: 640px;
  padding: clamp(28px, 5vw, 72px);
}

.hf-auth-hero h1 {
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: .94;
  margin: 12px 0 18px;
  max-width: 860px;
}

.hf-auth-hero p {
  color: rgba(255, 255, 255, .76);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  max-width: 620px;
}

.hf-auth-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hf-auth-metrics span {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 800;
  padding: 9px 12px;
  text-transform: uppercase;
}

.hf-auth-card {
  align-self: center;
  background: rgba(255, 253, 248, .82);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(23, 21, 18, .1);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(35, 30, 25, .16);
  padding: 22px;
}

.hf-auth-brand {
  border-bottom: 1px solid var(--cai-line);
  display: grid;
  gap: 3px;
  padding-bottom: 18px;
}

.hf-auth-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.hf-auth-brand span,
.hf-auth-link {
  color: var(--cai-muted);
  font-size: 13px;
}

.hf-auth-alert {
  background: #fff3df;
  border: 1px solid #f0d49f;
  border-radius: 10px;
  color: #6f4d11;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 14px;
  padding: 12px;
}

.hf-auth-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.hf-auth-form {
  background: #fff;
  border: 1px solid var(--cai-line);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.hf-auth-form-dark {
  background: #171512;
  color: #fff;
}

.hf-auth-form h2 {
  color: inherit;
  font-size: 18px;
  margin: 0 0 4px;
}

.hf-auth-form label {
  color: inherit;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  text-transform: uppercase;
}

.hf-auth-form input {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--cai-line);
  border-radius: 10px;
  color: var(--cai-ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.hf-portal {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  padding: 12px;
  position: relative;
  isolation: isolate;
}

.hf-portal::before,
.hf-portal::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.hf-portal::before {
  background:
    radial-gradient(circle, rgba(124, 92, 255, .17), transparent 58%),
    radial-gradient(circle at 72% 34%, rgba(199, 169, 107, .18), transparent 52%);
  filter: blur(2px);
  inset: 0;
}

.hf-portal::after {
  animation: hfAmbientMove 10s ease-in-out infinite alternate;
  background: linear-gradient(135deg, rgba(255, 255, 255, .38), transparent 62%);
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  height: 240px;
  right: 8%;
  top: -120px;
  transform: rotate(-12deg);
  width: 480px;
}

.hf-sidebar {
  background: rgba(17, 16, 14, .96);
  border-radius: 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 736px;
  padding: 18px;
}

.hf-logo {
  display: grid;
  gap: 2px;
  padding: 6px 4px 22px;
}

.hf-logo strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.04em;
}

.hf-logo span,
.hf-sidebar-card span {
  color: rgba(255, 255, 255, .52);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hf-nav {
  display: grid;
  gap: 8px;
}

.hf-nav a,
.hf-nav button {
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, .74);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  font-family: inherit;
  padding: 11px 12px;
  text-align: left;
  text-decoration: none;
}

.hf-nav a:hover,
.hf-nav button:hover,
.hf-nav button.is-active {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.hf-nav button.is-active {
  box-shadow: inset 3px 0 0 var(--hf-gold);
}

.hf-sidebar-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
}

.hf-sidebar-card p {
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.hf-workspace {
  display: grid;
  gap: 14px;
  padding: 4px 0 4px 14px;
}

.hf-global-header {
  align-items: center;
  background: rgba(255, 253, 248, .72);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 18px;
  box-shadow: 0 18px 70px rgba(35, 30, 25, .08);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, .5fr) auto minmax(280px, 1fr) auto;
  padding: 12px;
  position: sticky;
  top: 10px;
  z-index: 40;
}

.hf-global-brand,
.hf-global-actions,
.hf-command-search {
  align-items: center;
  display: flex;
}

.hf-global-brand {
  gap: 10px;
  min-width: 0;
}

.hf-brand-mark,
.hf-profile-avatar {
  align-items: center;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, .9), transparent 24%),
    linear-gradient(135deg, #171512, #3a2b65 52%, #c7a96b);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(35, 30, 25, .18);
  color: #f9e6b7;
  display: flex;
  flex: 0 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.hf-global-brand strong,
.hf-global-brand span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hf-global-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: -.04em;
}

.hf-global-brand span {
  color: var(--cai-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hf-command-search {
  background:
    linear-gradient(135deg, rgba(17, 16, 14, .94), rgba(41, 33, 54, .92)),
    radial-gradient(circle at 82% 16%, rgba(124, 92, 255, .28), transparent 34%);
  border: 1px solid rgba(199, 169, 107, .28);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 36px rgba(35, 30, 25, .12);
  color: #fff;
  cursor: pointer;
  font: inherit;
  gap: 12px;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 10px 8px 18px;
  text-align: left;
}

.hf-command-search span {
  color: rgba(255, 255, 255, .58);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hf-command-search strong {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: #f4dfaa;
  flex: 0 0 auto;
  font-size: 12px;
  padding: 9px 12px;
}

.hf-global-actions {
  gap: 8px;
  justify-content: end;
}

.hf-live-chip {
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(142, 124, 255, .16);
  border-radius: 999px;
  color: #5143c7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 10px 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hf-live-chip.is-ai {
  background: rgba(214, 255, 159, .72);
  border-color: rgba(111, 191, 73, .18);
  color: #315f22;
}

.hf-icon-action {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(23, 21, 18, .1);
  border-radius: 999px;
  color: var(--cai-ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  min-height: 40px;
  padding: 10px 13px;
  text-decoration: none;
  text-transform: uppercase;
}

.hf-icon-action:hover {
  background: #171512;
  color: #f4dfaa;
}

.hf-icon-action.is-active {
  background: #171512;
  color: #f4dfaa;
}

.hf-topbar,
.hf-app-header,
.hf-panel {
  background: rgba(255, 253, 248, .84);
  border: 1px solid rgba(23, 21, 18, .1);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(35, 30, 25, .08);
}

.hf-topbar,
.hf-app-header {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.hf-app-header::after {
  background:
    radial-gradient(circle, rgba(124, 92, 255, .2), transparent 60%),
    linear-gradient(135deg, rgba(199, 169, 107, .2), transparent);
  border-radius: 999px;
  content: "";
  height: 210px;
  position: absolute;
  right: -70px;
  top: -90px;
  width: 320px;
  z-index: 0;
}

.hf-app-header > * {
  position: relative;
  z-index: 1;
}

.hf-topbar h1,
.hf-app-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: .98;
  margin: 4px 0 10px;
}

.hf-topbar p,
.hf-app-header p {
  color: var(--cai-muted);
  line-height: 1.45;
  margin: 0;
  max-width: 720px;
}

.hf-header-copy {
  min-width: 0;
}

.hf-user-chip {
  align-items: center;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--cai-line);
  border-radius: 999px;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  max-width: 280px;
  padding: 8px 12px 8px 8px;
}

.hf-user-avatar {
  align-items: center;
  background: #171512;
  border-radius: 50%;
  color: #f4dfaa;
  display: flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.hf-user-chip strong,
.hf-user-chip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hf-user-chip strong {
  font-size: 13px;
}

.hf-user-chip span {
  color: var(--cai-muted);
  font-size: 11px;
}

.hf-build-badge {
  background: #171512;
  border: 1px solid rgba(199, 169, 107, .45);
  border-radius: 999px;
  color: #f4dfaa;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-top: 14px;
  padding: 8px 11px;
  text-transform: uppercase;
}

.hf-topbar-actions,
.hf-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hf-panel {
  padding: 18px;
}

.hf-panel-heading {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.hf-panel-heading span {
  color: var(--hf-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hf-panel-heading h2 {
  font-size: 22px;
  letter-spacing: -.02em;
  margin: 3px 0 0;
}

.hf-panel-heading p {
  color: var(--cai-muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  max-width: 520px;
}

.hf-grid-main {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr);
}

.hf-stack {
  display: grid;
  gap: 14px;
}

.hf-form-row,
.hf-activity-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hf-view {
  animation: hfViewIn .28s ease both;
  display: none;
}

.hf-view.is-active {
  display: grid;
  gap: 14px;
}

.hf-identity-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(280px, .52fr) minmax(0, 1fr);
}

.hf-profile-card,
.hf-runway-card {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}

.hf-profile-card {
  background:
    radial-gradient(circle at 90% 8%, rgba(244, 223, 170, .28), transparent 34%),
    linear-gradient(145deg, rgba(17, 16, 14, .98), rgba(39, 33, 47, .96));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 70px rgba(23, 21, 18, .18);
  color: #fff;
  display: grid;
  gap: 18px;
  padding: 20px;
}

.hf-profile-card::after {
  animation: hfScanGlow 5s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  content: "";
  height: 160%;
  left: -120%;
  position: absolute;
  top: -30%;
  transform: rotate(18deg);
  width: 60%;
}

.hf-profile-card > * {
  position: relative;
  z-index: 1;
}

.hf-profile-card-top {
  align-items: center;
  display: flex;
  gap: 14px;
}

.hf-profile-avatar {
  border-radius: 20px;
  font-size: 30px;
  height: 64px;
  width: 64px;
}

.hf-profile-card span,
.hf-runway-copy span {
  color: #f4dfaa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hf-profile-card h2,
.hf-runway-card h2 {
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: .98;
  margin: 3px 0 4px;
}

.hf-profile-card p {
  color: rgba(255, 255, 255, .58);
  margin: 0;
}

.hf-style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hf-style-tags span {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  max-width: 100%;
  overflow: hidden;
  padding: 8px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hf-profile-focus {
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.5;
}

.hf-runway-card {
  align-items: center;
  background:
    radial-gradient(circle at 78% 28%, rgba(124, 92, 255, .2), transparent 34%),
    radial-gradient(circle at 18% 86%, rgba(199, 169, 107, .24), transparent 38%),
    linear-gradient(135deg, rgba(255, 253, 248, .92), rgba(241, 234, 224, .78));
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 22px 70px rgba(35, 30, 25, .1);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 210px;
  min-height: 270px;
  padding: clamp(22px, 4vw, 38px);
}

.hf-runway-card p {
  color: var(--cai-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 620px;
}

.hf-style-orbit {
  aspect-ratio: 1;
  border: 1px solid rgba(23, 21, 18, .12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}

.hf-style-orbit::before,
.hf-style-orbit::after {
  border: 1px solid rgba(124, 92, 255, .18);
  border-radius: 50%;
  content: "";
  inset: 18%;
  position: absolute;
}

.hf-style-orbit::after {
  animation: hfSpin 9s linear infinite;
  border-color: rgba(199, 169, 107, .45);
  border-left-color: transparent;
  border-top-color: transparent;
  inset: 6%;
}

.hf-style-orbit span {
  animation: hfFloat 4s ease-in-out infinite;
  background: #171512;
  border-radius: 999px;
  box-shadow: 0 16px 35px rgba(23, 21, 18, .18);
  height: 18px;
  position: absolute;
  width: 18px;
}

.hf-style-orbit span:nth-child(1) {
  right: 16%;
  top: 20%;
}

.hf-style-orbit span:nth-child(2) {
  animation-delay: .5s;
  background: #c7a96b;
  bottom: 18%;
  left: 18%;
}

.hf-style-orbit span:nth-child(3) {
  animation-delay: 1s;
  background: #7c5cff;
  bottom: 28%;
  right: 20%;
}

.hf-style-orbit strong {
  background: #fff;
  border: 1px solid rgba(23, 21, 18, .1);
  border-radius: 28px;
  box-shadow: 0 20px 46px rgba(35, 30, 25, .14);
  color: #171512;
  display: grid;
  font-size: 34px;
  height: 94px;
  place-items: center;
  width: 94px;
}

.hf-dashboard-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, .85fr) minmax(320px, .55fr);
}

.hf-action-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hf-action-card {
  background: #171512;
  border: 1px solid rgba(199, 169, 107, .28);
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  display: grid;
  gap: 8px;
  font: inherit;
  min-height: 126px;
  padding: 16px;
  text-align: left;
  transition: transform .2s ease, border-color .2s ease;
}

.hf-action-card:hover {
  border-color: rgba(199, 169, 107, .7);
  transform: translateY(-2px);
}

.hf-action-card strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
}

.hf-action-card span {
  color: rgba(255, 255, 255, .64);
  font-size: 13px;
  line-height: 1.4;
}

.hf-chat-panel {
  min-height: 620px;
}

.hf-chat-panel .cai-chat-log {
  max-height: 520px;
}

.hf-app-footer {
  align-items: center;
  color: var(--cai-muted);
  display: flex;
  font-size: 12px;
  gap: 14px;
  justify-content: space-between;
  padding: 8px 4px 2px;
}

.hf-app-footer span:first-child {
  color: var(--cai-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.hf-floating-chat {
  bottom: 24px;
  position: fixed;
  right: 24px;
  z-index: 9999;
}

.hf-chat-fab {
  align-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .95), transparent 22%),
    linear-gradient(135deg, #9d7cff 0%, #ff6fb1 52%, #66e6ff 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(87, 47, 199, .28);
  color: #fff;
  cursor: pointer;
  display: flex;
  font: inherit;
  height: 66px;
  justify-content: center;
  position: relative;
  width: 66px;
}

.hf-chat-fab strong {
  font-size: 15px;
  letter-spacing: -.03em;
  position: relative;
  z-index: 2;
}

.hf-chat-fab::before,
.hf-chat-fab::after,
.hf-chat-fab-spark {
  background: #fff;
  border-radius: 999px;
  content: "";
  height: 7px;
  position: absolute;
  width: 7px;
}

.hf-chat-fab::before {
  animation: hfSpark 2.2s ease-in-out infinite;
  right: 7px;
  top: 9px;
}

.hf-chat-fab::after {
  animation: hfSpark 2.8s ease-in-out infinite .35s;
  bottom: 10px;
  left: 10px;
}

.hf-chat-fab-spark {
  animation: hfSpark 2.4s ease-in-out infinite .7s;
  right: -2px;
  top: 34px;
}

.hf-chat-dock {
  background: rgba(255, 253, 248, .94);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(23, 21, 18, .12);
  border-radius: 20px;
  bottom: 82px;
  box-shadow: 0 28px 90px rgba(34, 25, 54, .22);
  display: grid;
  gap: 12px;
  max-height: min(720px, calc(100vh - 130px));
  opacity: 0;
  overflow: hidden;
  padding: 14px;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: translateY(12px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .22s ease, transform .22s ease;
  width: min(420px, calc(100vw - 32px));
}

.hf-floating-chat.is-open .hf-chat-dock {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.hf-chat-dock header {
  align-items: center;
  background:
    radial-gradient(circle at 86% 20%, rgba(102, 230, 255, .3), transparent 32%),
    linear-gradient(135deg, #171512, #2d2435);
  border-radius: 16px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 14px;
}

.hf-chat-dock header span {
  color: #f4dfaa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hf-chat-dock header h2 {
  color: inherit;
  font-size: 20px;
  margin: 2px 0 0;
}

.hf-chat-dock header button {
  align-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 22px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.hf-chat-suggestions,
.hf-prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hf-chat-suggestions button,
.hf-prompt-row button {
  background: #fff;
  border: 1px solid var(--cai-line);
  border-radius: 999px;
  color: var(--cai-ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
}

.hf-ai-showcase {
  align-content: center;
  background:
    radial-gradient(circle at 18% 14%, rgba(157, 124, 255, .2), transparent 26%),
    radial-gradient(circle at 82% 10%, rgba(102, 230, 255, .18), transparent 28%),
    #fff;
  border: 1px solid var(--cai-line);
  border-radius: 18px;
  display: grid;
  gap: 14px;
  min-height: 430px;
  padding: clamp(18px, 4vw, 42px);
  text-align: center;
}

.hf-ai-orb {
  align-items: center;
  background: linear-gradient(135deg, #9d7cff, #ff6fb1 55%, #66e6ff);
  border-radius: 50%;
  box-shadow: 0 20px 70px rgba(157, 124, 255, .34);
  display: flex;
  height: 96px;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  width: 96px;
}

.hf-ai-orb::before,
.hf-ai-orb::after {
  background: #fff;
  border-radius: 999px;
  content: "";
  height: 10px;
  position: absolute;
  width: 10px;
}

.hf-ai-orb::before {
  animation: hfSpark 2.3s ease-in-out infinite;
  right: 10px;
  top: 14px;
}

.hf-ai-orb::after {
  animation: hfSpark 2.6s ease-in-out infinite .5s;
  bottom: 16px;
  left: 16px;
}

.hf-ai-showcase h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
  margin: 0 auto;
  max-width: 640px;
}

.hf-ai-showcase p {
  color: var(--cai-muted);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 660px;
}

.hf-ai-showcase .hf-prompt-row {
  justify-content: center;
}

/* HeyFashi 0.7 fashion-tech refresh */
.cai-app {
  --cai-bg: #f7f4ff;
  --cai-ink: #15121d;
  --cai-muted: #736f82;
  --cai-line: rgba(49, 39, 83, .11);
  --cai-card: rgba(255, 255, 255, .76);
  --cai-accent: #8e7cff;
  --cai-accent-dark: #5f4deb;
  --hf-gold: #9f8cff;
  --hf-black: #15121d;
  --hf-cream: #fffaff;
}

.hf-auth,
.hf-portal {
  background:
    radial-gradient(circle at 15% 10%, rgba(178, 160, 255, .35), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(108, 230, 255, .24), transparent 30%),
    radial-gradient(circle at 62% 92%, rgba(255, 145, 208, .2), transparent 36%),
    linear-gradient(135deg, #fffaff 0%, #f3f0ff 48%, #eefbff 100%);
}

.hf-sidebar {
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 24px 90px rgba(70, 58, 114, .12);
  color: var(--cai-ink);
}

.hf-logo strong {
  background: linear-gradient(110deg, #15121d, #7b61ff 48%, #e866b8);
  -webkit-background-clip: text;
  color: transparent;
}

.hf-logo span,
.hf-sidebar-card span {
  color: rgba(21, 18, 29, .48);
}

.hf-nav button {
  color: rgba(21, 18, 29, .62);
}

.hf-nav button:hover,
.hf-nav button.is-active {
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 14px 35px rgba(70, 58, 114, .1);
  color: #15121d;
}

.hf-nav button.is-active {
  box-shadow: inset 4px 0 0 #8e7cff, 0 14px 35px rgba(70, 58, 114, .1);
}

.hf-sidebar-card {
  background:
    radial-gradient(circle at 88% 12%, rgba(108, 230, 255, .28), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38));
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 22px 60px rgba(70, 58, 114, .1);
}

.hf-sidebar-card p {
  color: rgba(21, 18, 29, .62);
}

.hf-global-header,
.hf-app-header,
.hf-panel,
.hf-runway-card {
  background: rgba(255, 255, 255, .58);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: 0 24px 80px rgba(82, 71, 132, .1);
}

.hf-global-header {
  border-radius: 28px;
}

.hf-app-header {
  border-radius: 34px;
  min-height: 230px;
}

.hf-app-header::before {
  background:
    linear-gradient(90deg, rgba(142, 124, 255, .52), rgba(102, 230, 255, .42), rgba(255, 111, 177, .38));
  border-radius: 999px;
  bottom: 22px;
  content: "";
  height: 8px;
  left: 28px;
  position: absolute;
  width: min(420px, calc(100% - 56px));
}

.hf-app-header::after {
  background:
    radial-gradient(circle, rgba(108, 230, 255, .34), transparent 58%),
    radial-gradient(circle at 78% 22%, rgba(255, 111, 177, .2), transparent 40%);
}

.hf-app-header h1 {
  background: linear-gradient(115deg, #15121d, #5b48e8 48%, #d85fa8);
  -webkit-background-clip: text;
  color: transparent;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 850;
  letter-spacing: -.06em;
}

.hf-build-badge,
.hf-command-search,
.cai-btn-primary,
.hf-action-card {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, .72), transparent 24%),
    linear-gradient(135deg, #7d6cff, #e96fb6 54%, #66e6ff);
  border: 1px solid rgba(255, 255, 255, .38);
  color: #fff;
}

.hf-command-search {
  box-shadow: 0 18px 46px rgba(122, 94, 255, .18);
}

.hf-brand-mark,
.hf-profile-avatar,
.hf-user-avatar {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, .92), transparent 24%),
    linear-gradient(135deg, #7d6cff, #e96fb6 58%, #66e6ff);
  color: #fff;
}

.hf-profile-card {
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, .62), transparent 24%),
    radial-gradient(circle at 86% 20%, rgba(102, 230, 255, .34), transparent 34%),
    radial-gradient(circle at 24% 100%, rgba(255, 111, 177, .22), transparent 38%),
    linear-gradient(145deg, rgba(127, 107, 255, .96), rgba(41, 33, 79, .94));
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 34px;
}

.hf-runway-card {
  border-radius: 34px;
}

.hf-runway-card h2 {
  color: #15121d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
  letter-spacing: -.055em;
}

.hf-runway-copy span,
.hf-panel-heading span {
  color: #7d6cff;
}

.hf-ai-mesh {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hf-ai-mesh span {
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(142, 124, 255, .18);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(82, 71, 132, .08);
  color: #5143c7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 9px 11px;
  text-transform: uppercase;
}

.hf-style-orbit {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .12) 58%, transparent 60%),
    conic-gradient(from 90deg, rgba(142, 124, 255, .16), rgba(102, 230, 255, .28), rgba(255, 111, 177, .18), rgba(142, 124, 255, .16));
  border: 1px solid rgba(255, 255, 255, .8);
}

.hf-style-orbit strong {
  background: rgba(255, 255, 255, .82);
  color: #5b48e8;
}

.hf-panel {
  border-radius: 26px;
}

.cai-stats article,
.cai-card,
.cai-outfit,
.cai-log,
.hf-action-card,
.cai-selection {
  border-radius: 22px;
}

.hf-action-card {
  box-shadow: 0 18px 46px rgba(122, 94, 255, .16);
}

.hf-action-card:nth-child(2) {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, .72), transparent 24%),
    linear-gradient(135deg, #15121d, #7d6cff 56%, #66e6ff);
}

.hf-action-card:nth-child(3) {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, .72), transparent 24%),
    linear-gradient(135deg, #15121d, #e96fb6 56%, #66e6ff);
}

.hf-chat-fab {
  box-shadow: 0 22px 60px rgba(122, 94, 255, .3);
}

.hf-chat-dock {
  background: rgba(255, 255, 255, .78);
  border-radius: 28px;
}

.hf-chat-dock header {
  background:
    radial-gradient(circle at 86% 20%, rgba(102, 230, 255, .34), transparent 32%),
    linear-gradient(135deg, #7d6cff, #e96fb6);
}

/* HeyFashi 0.8 brand identity layer */
.cai-app {
  --hf-mint: #8dcac2;
  --hf-mint-soft: #cfe9e5;
  --hf-mint-pale: #eef8f6;
  --hf-charcoal: #24343b;
  --hf-charcoal-deep: #17272e;
  --hf-ink-soft: #52656b;
  --hf-paper: #fffdf8;
  --hf-warm: #f7f2ea;
  --cai-bg: var(--hf-paper);
  --cai-ink: var(--hf-charcoal);
  --cai-muted: var(--hf-ink-soft);
  --cai-line: rgba(36, 52, 59, .12);
  --cai-card: rgba(255, 253, 248, .78);
  --cai-accent: var(--hf-mint);
  --cai-accent-dark: #5caea4;
  --hf-gold: var(--hf-mint);
  --hf-black: var(--hf-charcoal);
  --hf-cream: var(--hf-paper);
}

.hf-auth,
.hf-portal {
  background:
    radial-gradient(circle at 12% 8%, rgba(141, 202, 194, .34), transparent 30%),
    radial-gradient(circle at 78% 12%, rgba(207, 233, 229, .52), transparent 28%),
    radial-gradient(circle at 62% 95%, rgba(36, 52, 59, .08), transparent 36%),
    linear-gradient(135deg, #fffdf8 0%, #f6f0e8 44%, #eef8f6 100%);
  border-color: rgba(36, 52, 59, .08);
}

.hf-auth::before,
.hf-portal::before {
  background:
    radial-gradient(circle, rgba(141, 202, 194, .28), transparent 58%),
    radial-gradient(circle at 72% 34%, rgba(36, 52, 59, .08), transparent 52%);
}

.hf-sidebar,
.hf-global-header,
.hf-app-header,
.hf-panel,
.hf-runway-card,
.hf-chat-dock,
.hf-auth-card {
  background: rgba(255, 253, 248, .72);
  border-color: rgba(255, 255, 255, .78);
  box-shadow: 0 26px 80px rgba(36, 52, 59, .09);
}

.hf-sidebar {
  color: var(--hf-charcoal);
}

.hf-logo img {
  display: block;
  height: auto;
  max-width: 170px;
  width: 100%;
}

.hf-logo strong {
  color: var(--hf-charcoal);
}

.hf-logo span,
.hf-sidebar-card span,
.hf-global-brand span,
.hf-auth-brand span {
  color: rgba(36, 52, 59, .56);
}

.hf-nav button {
  color: rgba(36, 52, 59, .68);
}

.hf-nav button:hover,
.hf-nav button.is-active {
  background: rgba(238, 248, 246, .92);
  color: var(--hf-charcoal);
}

.hf-nav button.is-active {
  box-shadow: inset 4px 0 0 var(--hf-mint), 0 14px 35px rgba(36, 52, 59, .08);
}

.hf-sidebar-card {
  background:
    radial-gradient(circle at 84% 14%, rgba(141, 202, 194, .32), transparent 34%),
    linear-gradient(145deg, rgba(255, 253, 248, .9), rgba(238, 248, 246, .58));
}

.hf-sidebar-card p {
  color: rgba(36, 52, 59, .66);
}

.hf-global-brand {
  min-width: 0;
}

.hf-global-brand img {
  display: block;
  height: auto;
  max-width: 146px;
}

.hf-brand-mark,
.hf-profile-avatar,
.hf-user-avatar {
  background: linear-gradient(145deg, var(--hf-mint), #a7d9d2);
  color: #fff;
  overflow: hidden;
}

.hf-brand-mark img,
.hf-profile-avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hf-user-avatar {
  color: var(--hf-paper);
}

.hf-command-search,
.cai-btn-primary,
.hf-build-badge,
.hf-action-card {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, .78), transparent 26%),
    linear-gradient(135deg, var(--hf-charcoal-deep), var(--hf-charcoal) 46%, var(--hf-mint));
  border-color: rgba(141, 202, 194, .36);
  color: #fff;
}

.hf-command-search {
  box-shadow: 0 18px 44px rgba(36, 52, 59, .14);
}

.hf-command-search strong,
.hf-chat-dock header span {
  color: #e9fffb;
}

.hf-live-chip {
  background: rgba(238, 248, 246, .9);
  border-color: rgba(141, 202, 194, .28);
  color: #37645f;
}

.hf-live-chip.is-ai {
  background: rgba(207, 233, 229, .92);
  border-color: rgba(141, 202, 194, .38);
  color: #274f4a;
}

.hf-app-header {
  background:
    radial-gradient(circle at 82% 12%, rgba(141, 202, 194, .26), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 248, .84), rgba(238, 248, 246, .74));
}

.hf-app-header h1 {
  background: linear-gradient(115deg, var(--hf-charcoal-deep), var(--hf-charcoal) 52%, var(--hf-mint));
  -webkit-background-clip: text;
  color: transparent;
}

.hf-app-header::before {
  background: linear-gradient(90deg, var(--hf-charcoal), var(--hf-mint), var(--hf-mint-soft));
}

.hf-app-header::after {
  background:
    radial-gradient(circle, rgba(141, 202, 194, .34), transparent 60%),
    radial-gradient(circle at 78% 22%, rgba(36, 52, 59, .08), transparent 40%);
}

.hf-profile-card {
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, .52), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(207, 233, 229, .48), transparent 34%),
    linear-gradient(145deg, #203139, #2c464a 48%, #8dcac2);
  border-color: rgba(255, 255, 255, .28);
}

.hf-profile-card span,
.hf-runway-copy span,
.hf-panel-heading span {
  color: #5caea4;
}

.hf-profile-card .hf-style-tags span {
  color: rgba(255, 255, 255, .82);
}

.hf-runway-card {
  background:
    radial-gradient(circle at 80% 20%, rgba(141, 202, 194, .26), transparent 34%),
    radial-gradient(circle at 18% 86%, rgba(36, 52, 59, .08), transparent 38%),
    linear-gradient(135deg, rgba(255, 253, 248, .94), rgba(238, 248, 246, .72));
}

.hf-runway-card h2,
.hf-panel-heading h2 {
  color: var(--hf-charcoal);
}

.hf-ai-mesh span {
  background: rgba(255, 253, 248, .76);
  border-color: rgba(141, 202, 194, .24);
  color: #37645f;
}

.hf-style-orbit {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 253, 248, .94), rgba(255, 253, 248, .18) 58%, transparent 60%),
    conic-gradient(from 90deg, rgba(141, 202, 194, .18), rgba(36, 52, 59, .14), rgba(207, 233, 229, .38), rgba(141, 202, 194, .18));
}

.hf-style-orbit strong {
  color: var(--hf-charcoal);
}

.hf-style-orbit span {
  background: var(--hf-charcoal);
}

.hf-style-orbit span:nth-child(2) {
  background: var(--hf-mint);
}

.hf-style-orbit span:nth-child(3) {
  background: var(--hf-mint-soft);
}

.hf-action-card:nth-child(2),
.hf-action-card:nth-child(3) {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, .78), transparent 26%),
    linear-gradient(135deg, var(--hf-charcoal-deep), var(--hf-charcoal) 46%, var(--hf-mint));
}

.hf-chat-fab {
  background: var(--hf-paper);
  border: 1px solid rgba(141, 202, 194, .28);
  box-shadow: 0 22px 60px rgba(36, 52, 59, .18);
  overflow: hidden;
}

.hf-chat-fab img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hf-chat-dock header {
  background:
    radial-gradient(circle at 86% 20%, rgba(141, 202, 194, .34), transparent 32%),
    linear-gradient(135deg, var(--hf-charcoal-deep), var(--hf-charcoal));
}

.hf-auth-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(141, 202, 194, .38), transparent 34%),
    linear-gradient(135deg, var(--hf-charcoal-deep), var(--hf-charcoal));
}

.hf-auth-hero-logo,
.hf-auth-brand img {
  display: block;
  height: auto;
  max-width: 280px;
  width: 100%;
}

.hf-auth-hero-logo {
  filter: drop-shadow(0 18px 45px rgba(0, 0, 0, .22));
  margin: 10px 0 6px;
}

.hf-auth-brand {
  align-items: start;
}

.hf-auth-form-dark {
  background: var(--hf-charcoal);
}

/* HeyFashi 0.9 calm app redesign */
.hf-portal {
  gap: 18px;
  grid-template-columns: 232px minmax(0, 1fr);
  padding: 18px;
}

.hf-sidebar {
  border-radius: 28px;
  min-height: auto;
  padding: 20px 16px;
}

.hf-logo {
  gap: 10px;
  padding: 8px 12px 26px;
}

.hf-logo img {
  max-width: 150px;
}

.hf-logo span {
  font-size: 11px;
  letter-spacing: .12em;
}

.hf-nav {
  gap: 7px;
}

.hf-nav button {
  border-radius: 18px;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -.01em;
  padding: 14px 16px;
}

.hf-nav button.is-active {
  box-shadow: inset 4px 0 0 var(--hf-mint);
}

.hf-sidebar-card {
  border-radius: 24px;
  margin-top: 24px;
  padding: 16px;
}

.hf-workspace {
  gap: 16px;
  padding: 0;
}

.hf-global-header {
  border-radius: 32px;
  gap: 14px;
  grid-template-columns: minmax(210px, auto) auto minmax(260px, 1fr) auto;
  padding: 14px 16px;
  position: relative;
  top: auto;
}

.hf-brand-mark {
  border-radius: 18px;
  height: 46px;
  width: 46px;
}

.hf-global-brand img {
  max-width: 132px;
}

.hf-global-brand > div > span {
  font-size: 10px;
  letter-spacing: .14em;
}

.hf-command-search {
  background: #203139;
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(36, 52, 59, .12);
  min-height: 54px;
}

.hf-command-search span {
  color: rgba(255, 255, 255, .68);
}

.hf-command-search strong {
  background: rgba(141, 202, 194, .22);
  color: #f8fffd;
}

.hf-global-actions {
  gap: 8px;
}

.hf-icon-action {
  border-radius: 18px;
  font-size: 11px;
  padding: 11px 14px;
}

.hf-live-chip {
  border-radius: 18px;
  font-size: 10px;
  letter-spacing: .1em;
  padding: 11px 13px;
}

.hf-app-header {
  align-items: center;
  border-radius: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  min-height: 0;
  padding: clamp(24px, 4vw, 42px);
}

.hf-app-header::before {
  bottom: 18px;
  height: 5px;
  width: min(280px, calc(100% - 48px));
}

.hf-app-header h1 {
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -.055em;
  margin-bottom: 10px;
}

.hf-app-header p {
  color: #52656b;
  font-size: 17px;
  max-width: 600px;
}

.hf-app-header .hf-user-chip,
.hf-app-header .hf-topbar-actions {
  display: none;
}

.hf-fashi-welcome {
  align-items: center;
  background: rgba(255, 253, 248, .72);
  border: 1px solid rgba(141, 202, 194, .24);
  border-radius: 28px;
  box-shadow: 0 20px 55px rgba(36, 52, 59, .08);
  display: grid;
  gap: 12px;
  grid-template-columns: 94px minmax(0, 1fr);
  padding: 12px 14px 12px 10px;
}

.hf-fashi-welcome img {
  align-self: end;
  display: block;
  height: 118px;
  object-fit: contain;
  object-position: bottom center;
  width: 94px;
}

.hf-fashi-welcome strong,
.hf-fashi-welcome span {
  display: block;
}

.hf-fashi-welcome strong {
  color: var(--hf-charcoal);
  font-size: 18px;
  letter-spacing: -.02em;
}

.hf-fashi-welcome span {
  color: #52656b;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
}

.hf-identity-strip {
  grid-template-columns: minmax(280px, .44fr) minmax(0, .56fr);
}

.hf-profile-card,
.hf-runway-card,
.hf-panel {
  border-radius: 30px;
}

.hf-profile-card {
  background:
    radial-gradient(circle at 88% 14%, rgba(141, 202, 194, .24), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 248, .94), rgba(238, 248, 246, .82));
  border-color: rgba(255, 255, 255, .78);
  box-shadow: 0 24px 70px rgba(36, 52, 59, .08);
  color: var(--hf-charcoal);
  padding: 22px;
}

.hf-profile-card::after {
  opacity: .22;
}

.hf-profile-card h2 {
  color: var(--hf-charcoal);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 820;
}

.hf-profile-card p,
.hf-profile-focus {
  color: #52656b;
}

.hf-profile-avatar {
  background: transparent;
  border-radius: 24px;
  box-shadow: none;
  height: 96px;
  width: 86px;
}

.hf-profile-avatar img {
  object-fit: contain;
}

.hf-style-tags span,
.hf-profile-card .hf-style-tags span {
  background: rgba(255, 253, 248, .86);
  border: 1px solid rgba(141, 202, 194, .22);
  color: #416560;
  font-size: 10px;
}

.hf-runway-card {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 240px);
  min-height: 0;
  padding: clamp(24px, 4vw, 40px);
}

.hf-runway-card h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
}

.hf-runway-card p {
  color: #52656b;
  font-size: 16px;
}

.hf-style-orbit {
  aspect-ratio: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  justify-self: center;
  max-width: 210px;
  width: 100%;
}

.hf-style-orbit::before,
.hf-style-orbit::after,
.hf-style-orbit span,
.hf-style-orbit strong {
  display: none;
}

.hf-style-orbit img {
  display: block;
  filter: drop-shadow(0 24px 50px rgba(36, 52, 59, .16));
  height: auto;
  width: 100%;
}

.hf-dashboard-panel .hf-panel-heading {
  align-items: center;
}

.cai-stats {
  gap: 12px;
}

.cai-stats article {
  background: rgba(255, 253, 248, .88);
  border: 1px solid rgba(141, 202, 194, .18);
  box-shadow: none;
  padding: 18px;
}

.cai-stats article strong {
  color: var(--hf-charcoal);
  font-size: clamp(24px, 3vw, 34px);
}

.cai-stats article span {
  color: #52656b;
}

.hf-action-card {
  background: rgba(255, 253, 248, .9);
  border-color: rgba(141, 202, 194, .22);
  box-shadow: none;
  color: var(--hf-charcoal);
  min-height: 118px;
}

.hf-action-card:nth-child(2),
.hf-action-card:nth-child(3) {
  background: rgba(255, 253, 248, .9);
}

.hf-action-card strong {
  color: var(--hf-charcoal);
}

.hf-action-card span {
  color: #52656b;
}

.hf-ai-showcase {
  background:
    radial-gradient(circle at 80% 20%, rgba(141, 202, 194, .22), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 248, .94), rgba(238, 248, 246, .75));
  border-radius: 28px;
  padding: clamp(28px, 5vw, 52px);
}

.hf-ai-orb {
  background: transparent;
  border: 0;
  box-shadow: none;
  height: auto;
  margin: 0 auto 10px;
  width: min(260px, 72vw);
}

.hf-ai-orb::before,
.hf-ai-orb::after,
.hf-ai-orb span {
  display: none;
}

.hf-ai-orb img {
  display: block;
  filter: drop-shadow(0 24px 55px rgba(36, 52, 59, .14));
  height: auto;
  width: 100%;
}

.hf-ai-showcase h3 {
  color: var(--hf-charcoal);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 820;
}

.hf-chat-fab {
  background: transparent;
  border: 0;
  border-radius: 999px;
  height: 86px;
  width: 86px;
}

.hf-chat-fab img {
  object-fit: contain;
}

.hf-chat-dock {
  border-radius: 30px;
  padding: 14px;
}

.hf-chat-dock header {
  align-items: center;
  background: linear-gradient(135deg, #203139, #426d69);
  border-radius: 24px;
  display: grid;
  gap: 12px;
  grid-template-columns: 62px minmax(0, 1fr) 36px;
}

.hf-chat-avatar {
  display: block;
  height: 68px;
  object-fit: contain;
  width: 62px;
}

.hf-chat-dock header h2 {
  font-size: 24px;
}

.cai-chat-log p {
  border-radius: 20px;
  line-height: 1.48;
  padding: 13px 14px;
}

.cai-form,
.hf-form-premium {
  gap: 14px;
}

.cai-form input,
.cai-form textarea,
.cai-form select,
.cai-toolbar input,
.cai-toolbar select,
.cai-chat-form textarea {
  border-color: rgba(36, 52, 59, .12);
  border-radius: 18px;
  color: var(--hf-charcoal);
}

.cai-btn {
  border-radius: 18px;
}

@media (max-width: 1100px) {
  .hf-global-header {
    grid-template-columns: 1fr;
  }

  .hf-app-header,
  .hf-identity-strip,
  .hf-runway-card {
    grid-template-columns: 1fr;
  }

  .hf-fashi-welcome,
  .hf-style-orbit {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .hf-portal {
    gap: 12px;
    padding: 10px;
  }

  .hf-sidebar,
  .hf-global-header,
  .hf-app-header,
  .hf-panel,
  .hf-profile-card,
  .hf-runway-card {
    border-radius: 24px;
  }

  .hf-logo img {
    max-width: 130px;
  }

  .hf-app-header {
    padding: 22px;
  }

  .hf-app-header h1 {
    font-size: 42px;
  }

  .hf-fashi-welcome {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .hf-fashi-welcome img {
    height: 94px;
    width: 72px;
  }

  .hf-global-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hf-global-actions .hf-icon-action:last-child {
    grid-column: 1 / -1;
  }

  .hf-chat-fab {
    height: 76px;
    width: 76px;
  }
}

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

@keyframes hfSpark {
  0%, 100% {
    opacity: .45;
    transform: scale(.75) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.25) rotate(45deg);
  }
}

@keyframes hfAmbientMove {
  from {
    transform: translate3d(0, 0, 0) rotate(-12deg);
  }
  to {
    transform: translate3d(-36px, 28px, 0) rotate(8deg);
  }
}

@keyframes hfScanGlow {
  0%, 42% {
    left: -120%;
  }
  70%, 100% {
    left: 150%;
  }
}

@keyframes hfSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hfFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.cai-hero {
  align-items: center;
  background: linear-gradient(135deg, #191714 0%, #332d26 100%);
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 0 18px;
  padding: 24px;
}

.cai-hero h2 {
  color: inherit;
  font-size: 32px;
  line-height: 1.1;
  margin: 4px 0 8px;
}

.cai-hero p {
  margin: 0;
  max-width: 660px;
}

.cai-kicker {
  color: #d9ccff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cai-hero-actions,
.cai-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cai-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(260px, 340px);
}

.cai-panel,
.cai-main {
  background: var(--cai-card);
  border: 1px solid var(--cai-line);
  border-radius: 8px;
  padding: 18px;
}

.cai-panel h3 {
  font-size: 18px;
  margin: 0 0 12px;
}

.cai-form,
.cai-chat-form {
  display: grid;
  gap: 10px;
}

.cai-form input,
.cai-form textarea,
.cai-chat-form textarea,
.cai-toolbar input,
.cai-toolbar select,
.cai-selection input {
  background: #fff;
  border: 1px solid var(--cai-line);
  border-radius: 8px;
  color: var(--cai-ink);
  font: inherit;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.cai-file {
  background: #f8f3ec;
  border: 1px dashed #cfc4b8;
  border-radius: 8px;
  color: var(--cai-muted);
  cursor: pointer;
  display: grid;
  font-size: 13px;
  gap: 8px;
  line-height: 1.35;
  padding: 12px;
}

.cai-file input {
  background: transparent;
  border: 0;
  min-height: 0;
  padding: 0;
}

.cai-form textarea,
.cai-chat-form textarea {
  line-height: 1.45;
  resize: vertical;
}

.cai-btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--cai-line);
  border-radius: 8px;
  color: var(--cai-ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  line-height: 1.2;
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.cai-btn:hover {
  border-color: #c8bdaf;
  transform: translateY(-1px);
}

.cai-btn-primary {
  background: var(--cai-accent);
  border-color: var(--cai-accent);
  color: #fff;
}

.cai-btn-primary:hover {
  background: var(--cai-accent-dark);
  border-color: var(--cai-accent-dark);
}

.cai-btn-small {
  font-size: 13px;
  min-height: 36px;
  padding: 8px 10px;
}

.cai-toolbar {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 190px;
  margin-bottom: 14px;
}

.cai-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.cai-stats article {
  background: #191714;
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 6px;
  min-height: 84px;
  padding: 14px;
}

.cai-stats strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cai-stats span {
  color: #d8d0c6;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cai-selection {
  align-items: center;
  background: #f8f3ec;
  border: 1px solid var(--cai-line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) auto;
  margin-bottom: 14px;
  padding: 14px;
}

.cai-selection strong {
  display: block;
  line-height: 1.2;
}

.cai-selection p {
  color: var(--cai-muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 4px 0 0;
}

.cai-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.cai-card {
  background: #fff;
  border: 1px solid var(--cai-line);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.cai-card.is-selected {
  border-color: var(--cai-accent);
  box-shadow: 0 0 0 3px rgba(77, 45, 255, .12);
}

.cai-card-media {
  aspect-ratio: 4 / 3;
  background: #eee8df;
  overflow: hidden;
}

.cai-check {
  align-items: center;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--cai-line);
  border-radius: 999px;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  left: 10px;
  padding: 7px 9px;
  position: absolute;
  top: 10px;
  z-index: 2;
}

.cai-card-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cai-card-placeholder {
  align-items: center;
  color: var(--cai-muted);
  display: flex;
  font-size: 42px;
  font-weight: 800;
  height: 100%;
  justify-content: center;
}

.cai-card-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.cai-card h4 {
  font-size: 17px;
  line-height: 1.25;
  margin: 0;
}

.cai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cai-tags span {
  background: #f4efe7;
  border-radius: 999px;
  color: #473f36;
  font-size: 12px;
  line-height: 1.2;
  padding: 6px 8px;
}

.cai-muted {
  color: var(--cai-muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.cai-url {
  display: grid;
  gap: 4px;
  margin: 0;
}

.cai-url span {
  color: var(--cai-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.cai-url a {
  color: var(--cai-accent);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.cai-nfc-box {
  border-top: 1px solid var(--cai-line);
  margin-top: 18px;
  padding-top: 18px;
}

.cai-chat {
  min-height: 520px;
}

.cai-chat-log {
  background: #f8f3ec;
  border: 1px solid var(--cai-line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
}

.cai-chat-log p {
  background: #fff;
  border: 1px solid #ece4da;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  line-height: 1.4;
  margin: 0;
  padding: 10px;
}

.cai-chat-log strong {
  font-size: 12px;
  text-transform: uppercase;
}

.cai-empty {
  background: #fff;
  border: 1px dashed #cfc4b8;
  border-radius: 8px;
  color: var(--cai-muted);
  line-height: 1.45;
  padding: 18px;
}

.cai-section {
  border-top: 1px solid var(--cai-line);
  margin-top: 18px;
  padding-top: 18px;
}

.cai-section h3 {
  font-size: 18px;
  margin: 0 0 12px;
}

.cai-outfits,
.cai-logs {
  display: grid;
  gap: 10px;
}

.cai-outfit,
.cai-log {
  background: #fff;
  border: 1px solid var(--cai-line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.cai-outfit h4,
.cai-log strong {
  font-size: 15px;
  line-height: 1.25;
  margin: 0;
}

.cai-log span {
  color: var(--cai-muted);
  font-size: 12px;
}

.cai-log p {
  color: var(--cai-muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}

@media (max-width: 1100px) {
  .hf-auth,
  .hf-portal,
  .hf-grid-main,
  .hf-global-header,
  .hf-identity-strip,
  .hf-dashboard-grid,
  .hf-action-grid,
  .hf-activity-grid {
    grid-template-columns: 1fr;
  }

  .hf-sidebar {
    min-height: 0;
  }

  .hf-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hf-nav button {
    text-align: center;
  }

  .hf-workspace {
    padding-left: 0;
  }

  .hf-global-header {
    position: relative;
    top: auto;
  }

  .hf-runway-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hf-style-orbit {
    justify-self: center;
    max-width: 230px;
    width: 100%;
  }

  .cai-layout {
    grid-template-columns: 1fr;
  }

  .cai-chat {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .hf-auth,
  .hf-portal {
    border-radius: 0;
    margin-left: -12px;
    margin-right: -12px;
    padding: 10px;
  }

  .hf-auth-hero {
    min-height: 420px;
    padding: 24px;
  }

  .hf-auth-card,
  .hf-topbar,
  .hf-global-header,
  .hf-app-header,
  .hf-profile-card,
  .hf-runway-card,
  .hf-panel {
    border-radius: 14px;
  }

  .hf-nav,
  .hf-form-row,
  .hf-topbar,
  .hf-global-header,
  .hf-app-header,
  .hf-user-chip,
  .hf-app-footer {
    grid-template-columns: 1fr;
  }

  .hf-nav {
    display: grid;
  }

  .hf-topbar,
  .hf-global-header,
  .hf-app-header,
  .hf-app-footer {
    align-items: stretch;
    display: grid;
  }

  .hf-command-search {
    border-radius: 16px;
    display: grid;
    justify-items: start;
  }

  .hf-command-search strong {
    width: 100%;
  }

  .hf-global-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hf-icon-action {
    text-align: center;
  }

  .hf-profile-card-top {
    align-items: flex-start;
  }

  .hf-runway-card {
    min-height: 0;
  }

  .hf-user-chip {
    border-radius: 14px;
    display: flex;
    max-width: none;
  }

  .hf-floating-chat {
    bottom: 14px;
    right: 14px;
  }

  .hf-chat-fab {
    height: 58px;
    width: 58px;
  }

  .hf-chat-dock {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    bottom: -14px;
    max-height: 82vh;
    position: fixed;
    right: 0;
    transform: translateY(24px);
    transform-origin: bottom center;
    width: 100vw;
  }

  .hf-floating-chat.is-open .hf-chat-dock {
    transform: translateY(0);
  }

  .hf-floating-chat.is-open .hf-chat-fab {
    opacity: 0;
    pointer-events: none;
  }

  .hf-chat-dock .cai-chat-log {
    max-height: 44vh;
  }

  .hf-topbar-actions,
  .hf-form-actions {
    display: grid;
  }

  .cai-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .cai-hero h2 {
    font-size: 26px;
  }

  .cai-toolbar {
    grid-template-columns: 1fr;
  }

  .cai-stats,
  .cai-selection {
    grid-template-columns: 1fr;
  }

  .cai-grid {
    grid-template-columns: 1fr;
  }
}

/* HeyFashi 0.9 final mobile and contrast lock */
@media (max-width: 1100px) {
  .hf-global-header,
  .hf-app-header,
  .hf-identity-strip,
  .hf-runway-card {
    grid-template-columns: 1fr;
  }

  .hf-app-header .hf-user-chip,
  .hf-app-header .hf-topbar-actions {
    display: none;
  }

  .hf-style-orbit {
    justify-self: start;
    max-width: 190px;
  }
}

@media (max-width: 720px) {
  .hf-portal {
    gap: 12px;
    padding: 10px;
  }

  .hf-sidebar,
  .hf-global-header,
  .hf-app-header,
  .hf-panel,
  .hf-profile-card,
  .hf-runway-card {
    border-radius: 24px;
  }

  .hf-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hf-nav button {
    padding: 12px;
    text-align: left;
  }

  .hf-command-search {
    border-radius: 22px;
  }

  .hf-app-header {
    padding: 22px;
  }

  .hf-app-header h1 {
    font-size: 42px;
  }

  .hf-fashi-welcome {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .hf-fashi-welcome img {
    height: 94px;
    width: 72px;
  }

  .hf-global-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hf-global-actions .hf-icon-action:last-child {
    grid-column: 1 / -1;
  }

  .hf-chat-fab {
    height: 76px;
    width: 76px;
  }

  .hf-chat-dock {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
  }
}

/* HeyFashi 0.9.1 responsive portal header and mobile app navigation */
@media (max-width: 1100px) {
  .hf-portal {
    display: flex;
    flex-direction: column;
  }

  .hf-workspace {
    order: 2;
  }

  .hf-sidebar {
    order: 1;
  }
}

@media (max-width: 860px) {
  .hf-portal {
    background:
      radial-gradient(circle at 15% 0%, rgba(141, 202, 194, .28), transparent 30%),
      linear-gradient(180deg, #fffdf8 0%, #eef8f6 100%);
    gap: 10px;
    min-height: 100vh;
    padding: 10px;
  }

  .hf-global-header {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
  }

  .hf-global-brand {
    min-width: 0;
  }

  .hf-global-brand > div > img {
    max-width: 124px;
  }

  .hf-global-brand > div > span,
  .hf-live-chip {
    display: none;
  }

  .hf-brand-mark {
    border-radius: 14px;
    height: 40px;
    width: 40px;
  }

  .hf-command-search {
    grid-column: 1 / -1;
    min-height: 48px;
    padding: 8px 10px 8px 14px;
  }

  .hf-command-search span {
    font-size: 13px;
  }

  .hf-command-search strong {
    font-size: 11px;
    padding: 8px 10px;
    width: auto;
  }

  .hf-global-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
  }

  .hf-global-actions .hf-icon-action {
    min-height: 38px;
    padding: 9px 10px;
  }

  .hf-global-actions .hf-icon-action:nth-child(2) {
    display: none;
  }

  .hf-sidebar {
    background: rgba(255, 253, 248, .78);
    border-radius: 26px;
    box-shadow: 0 18px 60px rgba(36, 52, 59, .14);
    min-height: 0;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 80;
  }

  .hf-sidebar .hf-logo {
    display: none;
  }

  .hf-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .hf-nav::-webkit-scrollbar {
    height: 0;
  }

  .hf-nav button {
    align-items: center;
    background: rgba(238, 248, 246, .64);
    border: 1px solid rgba(141, 202, 194, .18);
    border-radius: 18px;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    justify-content: center;
    min-height: 42px;
    min-width: 92px;
    padding: 10px 12px;
    scroll-snap-align: start;
    text-align: center;
    white-space: nowrap;
  }

  .hf-nav button.is-active {
    background: var(--hf-charcoal);
    box-shadow: none;
    color: #fff;
  }

  .hf-sidebar-card {
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    margin: 0;
    padding: 6px 2px 0;
  }

  .hf-sidebar-card span {
    display: none;
  }

  .hf-sidebar-card p {
    font-size: 12px;
    line-height: 1.25;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hf-sidebar-card .cai-btn {
    border-radius: 14px;
    font-size: 12px;
    min-height: 38px;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .hf-app-header {
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  .hf-global-actions .hf-icon-action:first-child {
    display: none;
  }

  .hf-command-search {
    display: flex;
  }

  .hf-sidebar-card {
    grid-template-columns: 1fr 1fr;
  }

  .hf-sidebar-card p {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .hf-sidebar-card .cai-btn {
    width: 100%;
  }

  .hf-nav button {
    min-width: 86px;
  }
}

/* HeyFashi 1.0 calm horizontal SaaS layout */
.hf-portal {
  background:
    radial-gradient(circle at 12% 0%, rgba(141, 202, 194, .22), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(237, 248, 246, .88), transparent 34%),
    linear-gradient(180deg, #fffdf9 0%, #f8f4ed 56%, #eef8f6 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 auto;
  max-width: 1480px;
  min-height: 100vh;
  padding: 18px;
}

.hf-portal::before,
.hf-portal::after {
  opacity: .35;
}

.hf-sidebar {
  align-items: center;
  background: rgba(255, 253, 249, .86);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(36, 52, 59, .08);
  border-radius: 28px;
  box-shadow: 0 18px 55px rgba(36, 52, 59, .08);
  color: var(--hf-charcoal);
  display: grid;
  gap: 18px;
  grid-template-columns: 190px minmax(0, 1fr) minmax(260px, 360px);
  min-height: 0;
  order: 1;
  padding: 14px;
  position: sticky;
  top: 10px;
  z-index: 90;
}

.hf-logo {
  gap: 6px;
  padding: 0 4px;
}

.hf-logo img {
  max-width: 148px;
}

.hf-logo span {
  font-size: 10px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.hf-nav {
  align-items: center;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px;
  -webkit-overflow-scrolling: touch;
}

.hf-nav::-webkit-scrollbar {
  height: 0;
}

.hf-nav button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #52656b;
  flex: 0 0 auto;
  font-size: 14px;
  min-height: 44px;
  padding: 10px 15px;
  text-align: center;
  white-space: nowrap;
}

.hf-nav button:hover,
.hf-nav button.is-active {
  background: #eef8f6;
  border-color: rgba(141, 202, 194, .24);
  box-shadow: none;
  color: #24343b;
}

.hf-nav button.is-active {
  font-weight: 850;
}

.hf-sidebar-card {
  align-items: center;
  background: #f7fbfa;
  border: 1px solid rgba(141, 202, 194, .18);
  border-radius: 22px;
  box-shadow: none;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
  padding: 10px;
}

.hf-sidebar-card span {
  color: #5c7773;
  font-size: 10px;
}

.hf-sidebar-card p {
  color: #52656b;
  font-size: 12px;
  grid-column: 1 / -1;
  line-height: 1.25;
  margin: 0;
}

.hf-sidebar-card .cai-btn {
  border-radius: 15px;
  font-size: 12px;
  min-height: 38px;
  padding: 8px 10px;
}

.hf-workspace {
  order: 2;
  padding: 0;
}

.hf-global-header {
  display: none;
}

.hf-app-header {
  background:
    radial-gradient(circle at 86% 18%, rgba(141, 202, 194, .2), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 249, .94), rgba(247, 251, 250, .88));
  border: 1px solid rgba(36, 52, 59, .08);
  border-radius: 32px;
  box-shadow: 0 22px 62px rgba(36, 52, 59, .08);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  min-height: 0;
  padding: clamp(24px, 4vw, 44px);
}

.hf-app-header h1 {
  color: #24343b;
  font-size: clamp(38px, 5vw, 66px);
  letter-spacing: -.055em;
}

.hf-app-header p {
  color: #52656b;
  font-size: 17px;
  line-height: 1.5;
}

.hf-build-badge {
  background: #24343b;
  color: #f8fffd;
}

.hf-app-header::before {
  background: linear-gradient(90deg, #24343b, #8dcac2);
  height: 4px;
}

.hf-fashi-welcome {
  background: #fffdf9;
  border: 1px solid rgba(141, 202, 194, .18);
  box-shadow: 0 16px 44px rgba(36, 52, 59, .07);
  grid-template-columns: 58px minmax(0, 1fr);
}

.hf-fashi-welcome img {
  height: 58px;
  object-fit: contain;
  width: 58px;
}

.hf-identity-strip {
  grid-template-columns: minmax(280px, .38fr) minmax(0, .62fr);
}

.hf-profile-card,
.hf-runway-card,
.hf-panel {
  background: rgba(255, 253, 249, .92);
  border: 1px solid rgba(36, 52, 59, .08);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(36, 52, 59, .06);
}

.hf-profile-card {
  color: #24343b;
}

.hf-profile-card::after {
  display: none;
}

.hf-profile-avatar {
  background: #eef8f6;
  border: 1px solid rgba(141, 202, 194, .18);
  border-radius: 20px;
  height: 60px;
  width: 60px;
}

.hf-profile-avatar img {
  object-fit: cover;
}

.hf-profile-card h2,
.hf-runway-card h2,
.hf-panel-heading h2 {
  color: #24343b;
}

.hf-profile-card p,
.hf-profile-focus,
.hf-runway-card p,
.hf-panel-heading p {
  color: #52656b;
}

.hf-style-tags span,
.hf-profile-card .hf-style-tags span,
.hf-ai-mesh span {
  background: #f7fbfa;
  border: 1px solid rgba(141, 202, 194, .18);
  color: #426d69;
}

.hf-runway-card {
  grid-template-columns: minmax(0, 1fr);
}

.hf-runway-card h2 {
  font-size: clamp(30px, 4vw, 52px);
  max-width: 760px;
}

.hf-closet-orbit,
.hf-style-orbit {
  display: none;
}

.hf-dashboard-panel {
  display: none;
}

.hf-dashboard-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, .55fr);
}

.hf-panel-heading {
  align-items: start;
}

.hf-panel-heading span {
  color: #5caea4;
}

.cai-stats article {
  background: #fffdf9 !important;
  border: 1px solid rgba(141, 202, 194, .18) !important;
  box-shadow: none !important;
  color: #24343b !important;
}

.cai-stats article strong {
  color: #24343b !important;
}

.cai-stats article span {
  color: #52656b !important;
}

.hf-action-card,
.hf-action-card:nth-child(2),
.hf-action-card:nth-child(3) {
  background: #fffdf9;
  border: 1px solid rgba(141, 202, 194, .18);
  box-shadow: none;
  color: #24343b;
}

.hf-action-card strong {
  color: #24343b;
}

.hf-action-card span {
  color: #52656b;
}

.hf-floating-chat {
  bottom: 22px;
  right: 22px;
}

.hf-chat-fab {
  background: transparent;
  border: 0;
  border-radius: 999px;
  height: 92px;
  width: 92px;
}

.hf-chat-fab img {
  filter: drop-shadow(0 18px 32px rgba(36, 52, 59, .2));
  object-fit: contain;
}

.hf-chat-dock {
  background: rgba(255, 253, 249, .96);
  border: 1px solid rgba(36, 52, 59, .1);
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(36, 52, 59, .18);
  gap: 12px;
  padding: 14px;
}

.hf-chat-dock header {
  background:
    radial-gradient(circle at 90% 8%, rgba(141, 202, 194, .24), transparent 32%),
    linear-gradient(135deg, #24343b, #426d69);
  border-radius: 24px;
}

.hf-chat-suggestions button,
.hf-prompt-row button {
  background: #f7fbfa;
  border-color: rgba(141, 202, 194, .2);
  color: #426d69;
}

.cai-chat-log p {
  background: #f7fbfa;
  border: 1px solid rgba(141, 202, 194, .16);
  color: #24343b;
}

.cai-chat-log strong {
  color: #426d69;
}

.cai-empty {
  background: #fffdf9;
  border: 1px dashed rgba(36, 52, 59, .16);
  color: #52656b;
}

@media (max-width: 980px) {
  .hf-sidebar {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .hf-sidebar-card {
    grid-column: 1 / -1;
  }

  .hf-app-header,
  .hf-identity-strip,
  .hf-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hf-portal {
    padding: 10px;
  }

  .hf-sidebar {
    border-radius: 24px;
    gap: 10px;
    grid-template-columns: 1fr;
    padding: 10px;
    top: 0;
  }

  .hf-logo {
    display: flex;
    justify-content: center;
  }

  .hf-logo img {
    max-width: 128px;
  }

  .hf-logo span {
    display: none;
  }

  .hf-nav {
    justify-content: flex-start;
  }

  .hf-nav button {
    font-size: 13px;
    min-height: 40px;
    padding: 9px 12px;
  }

  .hf-sidebar-card {
    grid-template-columns: 1fr 1fr;
  }

  .hf-sidebar-card p,
  .hf-sidebar-card span {
    display: none;
  }

  .hf-app-header {
    border-radius: 26px;
    padding: 22px;
  }

  .hf-app-header h1 {
    font-size: 40px;
  }

  .hf-fashi-welcome {
    display: none;
  }

  .hf-chat-fab {
    height: 78px;
    width: 78px;
  }
}

/* HeyFashi 1.0.1 desktop left rail + mobile adaptive nav */
@media (min-width: 861px) {
  .hf-portal {
    display: grid;
    gap: 18px;
    grid-template-columns: 268px minmax(0, 1fr);
    max-width: none;
    padding: 18px;
  }

  .hf-sidebar {
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 18px;
    grid-column: 1;
    height: calc(100vh - 36px);
    min-height: 680px;
    overflow: auto;
    padding: 22px 18px;
    position: sticky;
    top: 18px;
  }

  .hf-workspace {
    grid-column: 2;
    min-width: 0;
  }

  .hf-logo {
    display: grid;
    justify-content: start;
    padding: 4px 8px 18px;
  }

  .hf-logo img {
    max-width: 168px;
  }

  .hf-logo span {
    display: block;
  }

  .hf-nav {
    align-items: stretch;
    display: grid;
    gap: 8px;
    overflow: visible;
  }

  .hf-nav button {
    border-radius: 18px;
    justify-content: flex-start;
    min-height: 48px;
    padding: 13px 15px;
    text-align: left;
    width: 100%;
  }

  .hf-nav button.is-active {
    background: #eef8f6;
    box-shadow: inset 4px 0 0 var(--hf-mint);
    color: #24343b;
  }

  .hf-sidebar-card {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    margin-top: auto;
    padding: 16px;
  }

  .hf-sidebar-card span,
  .hf-sidebar-card p {
    display: block;
  }

  .hf-sidebar-card .cai-btn {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .hf-portal {
    display: flex;
    flex-direction: column;
  }

  .hf-sidebar {
    order: 1;
  }

  .hf-workspace {
    order: 2;
  }
}

.hf-floating-chat {
  bottom: 24px;
  right: 24px;
}

.hf-chat-fab {
  align-items: center;
  background: rgba(255, 253, 249, .9);
  border: 1px solid rgba(141, 202, 194, .3);
  border-radius: 999px;
  box-shadow: 0 20px 58px rgba(36, 52, 59, .18);
  display: flex;
  height: 86px;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  width: 86px;
}

.hf-chat-fab img {
  border-radius: 999px;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.hf-chat-avatar {
  background: rgba(255, 253, 249, .92);
  border: 1px solid rgba(141, 202, 194, .28);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(36, 52, 59, .14);
  height: 64px;
  object-fit: cover;
  object-position: center top;
  overflow: hidden;
  width: 64px;
}

@media (max-width: 680px) {
  .hf-chat-fab {
    height: 74px;
    width: 74px;
  }

  .hf-floating-chat {
    bottom: 16px;
    right: 16px;
  }
}

/* HeyFashi 1.0.2 fixed desktop rail and smaller Fashi launcher */
@media (min-width: 861px) {
  .hf-portal {
    display: block;
    min-height: 100vh;
    padding: 18px 18px 18px 304px;
    position: relative;
  }

  .hf-sidebar {
    bottom: 18px;
    height: auto;
    left: 18px;
    min-height: 0;
    overflow: hidden;
    position: fixed;
    top: 18px;
    width: 268px;
    z-index: 120;
  }

  body.admin-bar .hf-sidebar {
    top: 50px;
  }

  .hf-workspace {
    margin: 0;
    min-width: 0;
    width: 100%;
  }

  .hf-sidebar:hover {
    overflow: auto;
  }
}

.hf-chat-fab {
  height: 68px;
  width: 68px;
}

.hf-chat-fab img {
  border-radius: 999px;
  object-fit: cover;
  object-position: center top;
}

.hf-chat-fab::before,
.hf-chat-fab::after,
.hf-chat-fab-spark {
  height: 5px;
  width: 5px;
}

@media (max-width: 680px) {
  .hf-chat-fab {
    height: 62px;
    width: 62px;
  }
}

/* HeyFashi 1.1.0 mobile-first luxury app polish */
.cai-app {
  --hf-paper: #fffaf2;
  --hf-silk: #f6efe5;
  --hf-champagne: #e9d9bd;
  --hf-mint: #91c9bf;
  --hf-mint-soft: #dcefeb;
  --hf-espresso: #25211c;
  --hf-charcoal: #243238;
  --hf-muted: #736b62;
  --cai-ink: var(--hf-espresso);
  --cai-muted: var(--hf-muted);
  --cai-line: rgba(37, 33, 28, .1);
  --cai-accent: var(--hf-mint);
  --cai-accent-dark: #5b9f94;
}

.hf-portal {
  background:
    radial-gradient(circle at 18% 5%, rgba(233, 217, 189, .54), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(145, 201, 191, .28), transparent 24%),
    linear-gradient(145deg, #fffaf2 0%, #f7efe2 48%, #eef7f4 100%);
  border: 0;
  border-radius: 0;
  min-height: 100svh;
}

.hf-sidebar,
.hf-global-header,
.hf-app-header,
.hf-panel,
.hf-profile-card,
.hf-runway-card,
.hf-chat-dock,
.cai-card,
.cai-stats article,
.cai-outfit,
.cai-log,
.cai-selection {
  background: rgba(255, 250, 242, .84);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 18px 55px rgba(37, 33, 28, .08);
}

.hf-sidebar {
  border-radius: 30px;
  color: var(--hf-espresso);
}

.hf-logo {
  padding-bottom: 18px;
}

.hf-nav button {
  color: rgba(37, 33, 28, .7);
  min-height: 48px;
}

.hf-nav button:hover,
.hf-nav button.is-active {
  background: #fff;
  color: var(--hf-espresso);
}

.hf-nav button.is-active {
  box-shadow: inset 4px 0 0 var(--hf-mint), 0 12px 30px rgba(37, 33, 28, .08);
}

.hf-sidebar-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(220, 239, 235, .48));
  border-color: rgba(145, 201, 191, .22);
}

.hf-global-header {
  border-radius: 28px;
  grid-template-columns: minmax(170px, auto) auto minmax(220px, 1fr) auto;
}

.hf-command-search,
.cai-btn-primary {
  background: linear-gradient(135deg, #25211c, #314248 54%, #91c9bf);
  border-color: rgba(233, 217, 189, .48);
  color: #fff;
}

.hf-command-search {
  min-height: 52px;
}

.hf-app-header {
  background:
    radial-gradient(circle at 88% 10%, rgba(145, 201, 191, .28), transparent 28%),
    linear-gradient(135deg, rgba(255, 250, 242, .92), rgba(246, 239, 229, .78));
  border-radius: 34px;
  grid-template-columns: 1fr;
  min-height: 0;
  padding: clamp(20px, 5vw, 44px);
}

.hf-app-header h1 {
  background: none;
  color: var(--hf-espresso);
  font-size: clamp(32px, 8vw, 58px);
  font-weight: 820;
  letter-spacing: -.055em;
  line-height: .98;
}

.hf-app-header p {
  color: var(--hf-muted);
  font-size: clamp(14px, 3.5vw, 17px);
}

.hf-fashi-welcome {
  display: none;
}

.hf-build-badge {
  background: rgba(37, 33, 28, .08);
  border-color: rgba(37, 33, 28, .08);
  color: rgba(37, 33, 28, .62);
}

.hf-identity-strip,
.hf-dashboard-grid,
.hf-runway-card,
.hf-action-grid {
  grid-template-columns: 1fr;
}

.hf-profile-card {
  color: var(--hf-espresso);
  gap: 16px;
}

.hf-profile-card::after {
  display: none;
}

.hf-profile-avatar {
  align-items: center;
  background: linear-gradient(135deg, #fff, var(--hf-mint-soft));
  border: 1px solid rgba(145, 201, 191, .28);
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(37, 33, 28, .1);
  display: flex;
  height: 74px;
  justify-content: center;
  overflow: hidden;
  width: 74px;
}

.hf-profile-avatar span {
  color: var(--hf-espresso);
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -.04em;
}

.hf-profile-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hf-user-avatar img {
  border-radius: 999px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hf-user-avatar span {
  display: grid;
  height: 100%;
  place-items: center;
  width: 100%;
}

.hf-profile-card h2,
.hf-runway-card h2,
.hf-panel-heading h2 {
  color: var(--hf-espresso);
}

.hf-profile-card p,
.hf-profile-focus,
.hf-runway-card p,
.hf-panel-heading p,
.hf-action-card span,
.cai-muted {
  color: var(--hf-muted);
}

.hf-style-tags span,
.hf-profile-card .hf-style-tags span,
.cai-tags span,
.hf-ai-mesh span {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(37, 33, 28, .08);
  color: #5f665f;
}

.hf-action-card {
  background: #fff;
  border-color: rgba(37, 33, 28, .08);
  color: var(--hf-espresso);
  min-height: 96px;
}

.hf-action-card:nth-child(2),
.hf-action-card:nth-child(3) {
  background: #fff;
}

.hf-action-card strong {
  color: var(--hf-espresso);
}

.hf-form-premium {
  grid-template-columns: 1fr;
}

.hf-form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cai-form input,
.cai-form textarea,
.cai-form select,
.cai-toolbar input,
.cai-toolbar select,
.cai-chat-form textarea {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(37, 33, 28, .11);
  border-radius: 18px;
  min-height: 50px;
}

.cai-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #736b62 50%),
    linear-gradient(135deg, #736b62 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 22px,
    calc(100% - 12px) 22px;
  background-repeat: no-repeat;
  background-size: 6px 6px;
  padding-right: 38px;
}

.hf-profile-photo-field {
  align-items: center;
  background: rgba(255, 255, 255, .7);
  border: 1px dashed rgba(37, 33, 28, .16);
  border-radius: 20px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
}

.hf-profile-photo-field span {
  color: var(--hf-espresso);
  font-size: 13px;
  font-weight: 850;
}

.hf-floating-chat {
  bottom: max(18px, env(safe-area-inset-bottom));
  right: max(16px, env(safe-area-inset-right));
}

.hf-chat-fab {
  animation: hfFashiPulse 3.8s ease-in-out infinite;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 18px 48px rgba(37, 33, 28, .18);
  height: 64px;
  overflow: visible;
  width: 64px;
}

.hf-chat-fab img {
  background: #fff;
  border-radius: 999px;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  overflow: hidden;
  width: 100%;
}

.hf-chat-fab::before,
.hf-chat-fab::after,
.hf-chat-fab-spark {
  background: var(--hf-champagne);
  box-shadow: 0 0 16px rgba(233, 217, 189, .9);
}

.hf-fashi-bubble-note {
  animation: hfNoteIn 6.5s ease-in-out infinite;
  background: rgba(255, 250, 242, .96);
  border: 1px solid rgba(233, 217, 189, .52);
  border-radius: 18px 18px 6px 18px;
  bottom: 76px;
  box-shadow: 0 18px 44px rgba(37, 33, 28, .13);
  color: var(--hf-espresso);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.3;
  max-width: min(260px, calc(100vw - 116px));
  padding: 11px 13px;
  position: absolute;
  right: 4px;
}

.hf-floating-chat.is-open .hf-fashi-bubble-note {
  display: none;
}

.hf-chat-dock {
  border-radius: 30px;
  bottom: 82px;
  max-height: min(760px, calc(100svh - 112px));
  width: min(520px, calc(100vw - 28px));
}

.hf-chat-dock header {
  background:
    radial-gradient(circle at 86% 18%, rgba(233, 217, 189, .24), transparent 30%),
    linear-gradient(135deg, #25211c, #34464a);
  border-radius: 24px;
  grid-template-columns: 64px minmax(0, 1fr) 38px;
}

.hf-chat-avatar {
  background: #fff;
  border-radius: 999px;
  height: 64px;
  object-fit: cover;
  object-position: center top;
  width: 64px;
}

.cai-chat-log {
  max-height: min(460px, 52svh);
}

.cai-chat-log p {
  background: #fff;
  border: 1px solid rgba(37, 33, 28, .08);
}

.hf-chat-composer {
  grid-template-columns: 1fr auto;
}

.hf-chat-composer textarea {
  min-height: 78px;
}

@media (min-width: 861px) {
  .hf-portal {
    display: block;
    padding: 22px 22px 22px 318px;
  }

  .hf-sidebar {
    bottom: 22px;
    left: 22px;
    overflow: hidden;
    position: fixed;
    top: 22px;
    width: 274px;
    z-index: 120;
  }

  body.admin-bar .hf-sidebar {
    top: 54px;
  }

  .hf-workspace {
    gap: 18px;
  }

  .hf-identity-strip {
    grid-template-columns: minmax(260px, .38fr) minmax(0, .62fr);
  }

  .hf-dashboard-grid {
    grid-template-columns: minmax(0, .9fr) minmax(300px, .55fr);
  }

  .hf-runway-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .hf-portal {
    display: grid;
    gap: 12px;
    padding: 10px 10px 96px;
  }

  .hf-sidebar {
    border-radius: 24px;
    min-height: 0;
    padding: 12px;
    position: sticky;
    top: 8px;
    z-index: 90;
  }

  .hf-sidebar .hf-logo {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 0 2px 10px;
  }

  .hf-sidebar .hf-logo img {
    max-width: 124px;
  }

  .hf-sidebar .hf-logo span {
    display: none;
  }

  .hf-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .hf-nav::-webkit-scrollbar {
    display: none;
  }

  .hf-nav button {
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: 13px;
    min-height: 40px;
    padding: 10px 14px;
    white-space: nowrap;
  }

  .hf-nav button.is-active {
    box-shadow: 0 10px 24px rgba(37, 33, 28, .08);
  }

  .hf-sidebar-card {
    display: none;
  }

  .hf-global-header {
    display: none;
  }

  .hf-app-header {
    border-radius: 28px;
    padding: 24px 20px;
  }

  .hf-app-header h1 {
    font-size: clamp(34px, 12vw, 46px);
  }

  .hf-panel,
  .hf-profile-card,
  .hf-runway-card {
    border-radius: 26px;
    padding: 17px;
  }

  .hf-panel-heading {
    display: grid;
    gap: 8px;
  }

  .hf-form-row,
  .cai-toolbar,
  .hf-chat-composer {
    grid-template-columns: 1fr;
  }

  .cai-grid {
    grid-template-columns: 1fr;
  }

  .hf-floating-chat {
    bottom: max(14px, env(safe-area-inset-bottom));
    right: 14px;
  }

  .hf-chat-fab {
    height: 58px;
    width: 58px;
  }

  .hf-fashi-bubble-note {
    bottom: 68px;
    font-size: 12px;
    max-width: calc(100vw - 102px);
  }

  .hf-chat-dock {
    border-radius: 28px 28px 0 0;
    bottom: calc(-1 * max(14px, env(safe-area-inset-bottom)));
    max-height: 86svh;
    padding: 12px;
    position: fixed;
    right: 0;
    transform: translateY(24px);
    width: 100vw;
  }

  .hf-floating-chat.is-open .hf-chat-dock {
    transform: translateY(0);
  }

  .hf-floating-chat.is-open .hf-chat-fab {
    display: none;
  }

  .cai-chat-log {
    max-height: 48svh;
  }
}

@keyframes hfFashiPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.025);
  }
}

@keyframes hfNoteIn {
  0%, 100% {
    opacity: .92;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

/* HeyFashi 1.1.1 navigation, NFC and cleaner mobile shell */
.cai-app {
  --hf-paper: #f8fbf9;
  --hf-silk: #eef5f2;
  --hf-champagne: #eadfcf;
  --hf-mint: #83c5b9;
  --hf-espresso: #1f2524;
  --hf-charcoal: #263636;
  --hf-muted: #63706d;
  --cai-ink: var(--hf-espresso);
  --cai-muted: var(--hf-muted);
  --cai-line: rgba(31, 37, 36, .1);
}

.hf-portal {
  background:
    radial-gradient(circle at 12% 4%, rgba(131, 197, 185, .22), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(234, 223, 207, .26), transparent 22%),
    linear-gradient(145deg, #fbfdfb 0%, #f3f8f6 52%, #edf5f2 100%);
}

.hf-mobile-menu-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(31, 37, 36, .1);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(31, 37, 36, .08);
  cursor: pointer;
  display: none;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.hf-mobile-menu-toggle span {
  background: var(--hf-espresso);
  border-radius: 999px;
  display: block;
  height: 2px;
  position: absolute;
  transition: transform .2s ease, opacity .2s ease;
  width: 17px;
}

.hf-mobile-menu-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.hf-mobile-menu-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.is-menu-open .hf-mobile-menu-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.is-menu-open .hf-mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.is-menu-open .hf-mobile-menu-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.hf-app-header {
  display: none !important;
}

.hf-workspace {
  padding-top: 0;
}

.hf-view.is-active {
  gap: 16px;
}

.hf-identity-strip {
  margin-top: 0;
}

.hf-profile-card,
.hf-runway-card,
.hf-panel {
  background: rgba(255, 255, 255, .82);
}

.hf-runway-card {
  background:
    radial-gradient(circle at 92% 8%, rgba(131, 197, 185, .2), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(240, 247, 244, .82));
}

.hf-profile-card {
  background:
    radial-gradient(circle at 92% 8%, rgba(234, 223, 207, .22), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(242, 248, 246, .84));
}

.hf-fashi-bubble-note {
  border-radius: 18px 18px 18px 6px;
  bottom: 10px;
  max-width: min(280px, calc(100vw - 112px));
  right: 76px;
}

.hf-chat-dock {
  box-shadow: 0 30px 90px rgba(31, 37, 36, .18);
}

.hf-chat-dock header {
  background:
    radial-gradient(circle at 88% 18%, rgba(131, 197, 185, .32), transparent 30%),
    linear-gradient(135deg, #202827, #2f4441);
}

@media (max-width: 860px) {
  .hf-portal {
    padding: 10px 10px 94px;
  }

  .hf-sidebar {
    background: rgba(255, 255, 255, .92);
    border-radius: 22px;
    padding: 10px 12px;
  }

  .hf-sidebar .hf-logo {
    padding: 0;
  }

  .hf-sidebar .hf-logo img {
    max-width: 138px;
  }

  .hf-mobile-menu-toggle {
    display: flex;
    position: relative;
  }

  .hf-nav {
    display: grid;
    gap: 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    transform: translateY(-6px);
    transition: max-height .24s ease, opacity .2s ease, padding .2s ease, transform .2s ease;
  }

  .is-menu-open .hf-nav {
    max-height: 340px;
    opacity: 1;
    padding-top: 12px;
    transform: translateY(0);
  }

  .hf-nav button {
    background: #f7faf8;
    border-radius: 16px;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
  }

  .hf-nav button.is-active {
    background: #fff;
    box-shadow: inset 4px 0 0 var(--hf-mint), 0 10px 24px rgba(31, 37, 36, .06);
  }

  .hf-view.is-active {
    gap: 12px;
  }

  .hf-identity-strip {
    gap: 12px;
  }

  .hf-fashi-bubble-note {
    bottom: 8px;
    right: 68px;
  }
}
