/* Light frosted glass for the signed-in app. Numbers stay in General Sans. */

body.frost {
  color-scheme: light;
  --bg: #F6F3EE;
  --s1: rgba(255, 255, 255, 0.66);
  --s2: #ffffff;
  --s3: rgba(255, 255, 255, 0.92);
  --bd: rgba(14, 16, 20, 0.08);
  --bd2: rgba(14, 16, 20, 0.14);
  --t1: #0E1014;
  --t2: #5B6270;
  --t3: #6A7180;
  --sig: #FF6A3D;
  --sig-hover: #ff7a4d;
  --sig-soft: rgba(255, 106, 61, 0.12);
  --on-sig: #ffffff;
  --pos: #12A36B;
  --pos-soft: rgba(18, 163, 107, 0.12);
  --warn: #C48A09;
  --warn-soft: rgba(232, 163, 23, 0.16);
  --neg: #D64545;
  --neg-soft: rgba(229, 72, 77, 0.1);
  --info: #1F77E8;
  --info-soft: rgba(31, 119, 232, 0.1);
  --e1: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  --e2: 0 16px 40px -24px rgba(40, 20, 10, 0.22);
  --font-sans: "General Sans", "Noto Sans Devanagari", "Noto Sans Tamil", "Noto Sans Bengali", "Noto Sans Telugu", system-ui, sans-serif;
  --font-mono: "General Sans", system-ui, sans-serif;
  --s-bg: #F6F3EE;
  --s-panel: rgba(255, 255, 255, 0.62);
  --s-panel-solid: rgba(255, 255, 255, 0.88);
  --s-panel-2: #ffffff;
  --s-line: rgba(14, 16, 20, 0.08);
  --s-line-2: rgba(14, 16, 20, 0.14);
  --s-text: #0E1014;
  --s-muted: #5B6270;
  --s-soft: #6A7180;
  --s-accent: #FF6A3D;
  --s-accent-ink: #ffffff;
  --s-good: #12A36B;
  --s-mid: #C48A09;
  --s-low: #D64545;
  background: #F6F3EE;
  color: #0E1014;
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body.frost .num,
body.frost .mono,
body.frost .td-page .mono {
  font-family: "General Sans", system-ui !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: -0.01em;
}

body.frost .mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #F6F3EE url("/v6/img/mesh.png") center / cover no-repeat;
  pointer-events: none;
  transform: translateZ(0);
}
body.frost .mesh i { display: none; }

body.frost .studio { position: relative; z-index: 1; background: transparent; color: var(--s-text); }
body.frost .studio h1,
body.frost .studio h2,
body.frost .studio h3,
body.frost .studio .st-page-title { font-family: "General Sans", system-ui, sans-serif; }
body.frost .st-shell {
  background: transparent;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  height: 100vh;
}
body.frost .st-rail {
  overflow: hidden;
  border-right: 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: none;
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  padding: 20px 14px;
}
body.frost .st-rail-logo { text-decoration: none; color: var(--s-text); padding: 0 8px 8px; }
body.frost .s-logo-word { display: inline-flex; align-items: center; gap: 8px; font-family: "General Sans", system-ui, sans-serif; font-weight: 600; font-size: 19px; letter-spacing: -0.04em; color: #0A0B0D; }
body.frost .s-logo-word .briq-word { font-size: inherit; color: inherit; letter-spacing: inherit; }
body.frost .s-logo-word img { display: block; }
body.frost .st-nav { min-height: 0; overflow: auto; }
body.frost .st-nav-item {
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--s-muted);
}
body.frost .st-nav-item strong { font-weight: 500; font-size: 14.5px; }
body.frost .st-nav-item small { display: none; }
body.frost .st-nav-short { display: none; }
body.frost .st-nav-item .st-nav-icon,
body.frost .st-nav-item .ph-duotone {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: none;
  box-shadow: none;
  color: inherit;
  font-size: 18px;
}
body.frost .st-nav-item.active {
  background: #fff;
  color: var(--s-text);
  font-weight: 500;
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.25);
}
body.frost .st-nav-item.active .s-icon,
body.frost .st-nav-item.active .ph-duotone { color: var(--s-accent); }
body.frost .st-nav-item:hover { background: rgba(255, 255, 255, 0.45); color: var(--s-text); }
body.frost .st-brand-chip { display: none; }
body.frost .st-rail-account {
  margin-top: auto;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 16, 20, 0.06);
  font-size: 13px;
}
body.frost .st-rail-account strong { display: block; }
body.frost .st-rail-account small { color: var(--s-muted); }
body.frost .st-rail-foot { border-top: 0; padding-top: 8px; }
body.frost .st-main { background: transparent; }
body.frost .st-view:has(.td-page) { max-width: none; padding: 6px 6px 48px; }
body.frost .st-auth-card,
body.frost .st-auth-demo {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 16px 40px -24px rgba(40, 20, 10, 0.18);
  color: var(--s-text);
}
body.frost .s-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(14, 16, 20, 0.10);
  box-shadow: 0 1px 2px rgba(14, 16, 20, 0.04);
  color: var(--s-text);
}
body.frost .st-auth {
  background:
    radial-gradient(700px 420px at 8% 0%, rgba(255, 199, 168, 0.7), transparent 55%),
    radial-gradient(600px 400px at 90% 10%, rgba(231, 221, 251, 0.8), transparent 50%),
    #F6F3EE;
}
body.frost .st-center { background: transparent; color: var(--s-text); }
body.frost .s-btn {
  background: rgba(255, 255, 255, 0.7);
  color: var(--s-text);
  border-color: rgba(14, 16, 20, 0.08);
}
body.frost .s-btn:hover:not(:disabled) { background: #fff; }
body.frost .s-btn-primary,
body.frost .s-btn-signal {
  background: #0E1014;
  border-color: #0E1014;
  color: #fff !important;
}
body.frost .s-btn-primary:hover:not(:disabled),
body.frost .s-btn-signal:hover:not(:disabled) { background: var(--s-accent); border-color: var(--s-accent); }
body.frost .br-works .br-works-primary {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  background: #FF6A3D;
  border-color: #FF6A3D;
  color: #0E1014 !important;
}
body.frost .br-works .br-works-primary:hover:not(:disabled) {
  background: #FF6A3D;
  border-color: #FF6A3D;
  color: #0E1014 !important;
}
body.frost .br-works .br-works-primary[aria-busy="true"] {
  opacity: 1;
  background: #FFF1EB;
  border: 1.5px solid #FF6A3D;
  color: #0E1014 !important;
  cursor: progress;
}
body.frost .br-works .br-synced { color: #5B6270; }
body.frost input,
body.frost textarea,
body.frost select {
  background: #fff;
  color: #0E1014;
  border-color: rgba(14, 16, 20, 0.12);
}
/* Create fields: the studio input rule is more specific and paints rgba(0,0,0,.32). Match the frosted cards. */
body.frost .cr-brief input[type="text"],
body.frost .cr-brief select,
body.frost .cr-chat input[type="text"],
body.frost .cr-chat textarea,
body.frost .cr-approve input[type="text"],
body.frost .cr-approve input[type="url"],
body.frost .cr-approve textarea,
body.frost .cr-approve select {
  background: rgba(255, 255, 255, 0.55);
  color: #0E1014;
  border: 1px solid rgba(14, 16, 20, 0.10);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.frost .cr-brief input[type="text"]:focus,
body.frost .cr-brief select:focus,
body.frost .cr-chat input[type="text"]:focus,
body.frost .cr-chat textarea:focus,
body.frost .cr-approve input[type="text"]:focus,
body.frost .cr-approve input[type="url"]:focus,
body.frost .cr-approve textarea:focus,
body.frost .cr-approve select:focus {
  border-color: #FF6A3D;
  box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.25);
}
body.frost .cr-chat input[data-colours] {
  box-shadow: none;
  outline: none;
}
body.frost .cr-chat input[data-colours]:focus {
  border-color: #FF6A3D;
  box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.25);
  outline: none;
}
body.frost .cn-error,
body.frost .cn-chip-attention { color: #B42318; }
body.frost .cn-chip-connected { color: #047857; }
body.frost .cn-chip-syncing { color: #A15C07; }
body.frost .s-btn.cn-danger,
body.frost .cn-danger:hover:not(:disabled) { color: #B42318 !important; }
body.frost .cn-account.is-disabled { background: #fff; border-color: rgba(14, 16, 20, 0.08); }
body.frost .cn-account.is-disabled small { color: #5B6270; font-weight: 650; }
body.frost .cn-account.is-disabled input { opacity: 0.45; }
body.frost .cn-label { display: flex; gap: 8px; align-items: baseline; }
body.frost .s-btn.cn-tap { height: 44px; min-height: 44px; width: auto; justify-self: start; align-self: start; }
body.frost .s-btn:focus-visible,
body.frost .cn-account input:focus-visible { outline: 2px solid #FF6A3D; outline-offset: 2px; }
body.frost .cn-account,
body.frost .cn-file,
body.frost .ib-fact,
body.frost .ib-entity,
body.frost .ib-steps,
body.frost .ib-filter,
body.frost .pf-channel,
body.frost .rc-kpi,
body.frost .br-note,
body.frost .br-chip,
body.frost .co-att,
body.frost .co-threads {
  background: rgba(255, 255, 255, 0.72);
  color: var(--s-text);
}
body.frost .pf-ad-media,
body.frost .lib-thumb,
body.frost .rc-ad-media,
body.frost .rc-thumb,
body.frost .ib-entity-thumb,
body.frost .pf-fatigue-thumb {
  background: rgba(14, 16, 20, 0.04);
  color: var(--s-muted);
}
body.frost .st-boot { background: transparent; }

/* Today dashboard */
body.frost .td-page { display: grid; gap: 24px; }
body.frost .td-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 10px 6px 0; }
body.frost .td-head h1 { margin: 6px 0 0; font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.03em; font-weight: 600; line-height: 1.05; }
body.frost .td-head p { margin: 8px 0 0; color: var(--s-muted); font-size: 16px; }
body.frost .td-accent { color: var(--s-accent); }
body.frost .td-head-actions { display: flex; gap: 10px; align-items: center; }
body.frost .td-page .pill { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 99px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.7); color: var(--s-muted); font-size: 13px; white-space: nowrap; }
body.frost .td-page .dot { width: 7px; height: 7px; border-radius: 50%; background: #12A36B; }
body.frost .td-page .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; font-weight: 500; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; }
body.frost .td-page .btn.p { background: #0E1014; color: #fff; }
body.frost .td-page .btn.g { background: rgba(255,255,255,.75); color: #0E1014; border: 1px solid rgba(14,16,20,.08); }
body.frost .td-kpis, body.frost .td-grid { display: grid; gap: 24px; }
body.frost .td-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.frost .td-grid { grid-template-columns: 1.6fr 1fr; }
body.frost .td-page .glass { background: rgba(255,255,255,.94); border: 1px solid rgba(14,16,20,.10); border-radius: 20px; box-shadow: 0 1px 2px rgba(14,16,20,.04); padding: 24px; min-width: 0; }
body.frost .td-kpi-top, body.frost .td-card-top, body.frost .td-fest, body.frost .td-kill { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
body.frost .td-page .glass b.mono { display: block; margin-top: 8px; font-size: 32px; font-weight: 600; letter-spacing: -0.03em; }
body.frost .td-page .up { color: #12A36B; }
body.frost .td-page .dn { color: #E5484D; }
body.frost .td-page .mut { color: #5B6270; }
body.frost .td-chart { width: 100%; height: 260px; margin-top: 12px; }
body.frost .td-chart-card { grid-column: 1; grid-row: 1; }
body.frost #td-waiting { grid-column: 2; grid-row: 1; }
body.frost .td-grid > .glass:nth-child(3) { grid-column: 1; }
body.frost .td-swaps { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
body.frost .td-page .sw { flex: 1; aspect-ratio: 3/4; border-radius: 12px; background: rgba(14,16,20,.06) center/cover; }
body.frost .td-wait-copy { margin-top: 12px; font-size: 13.5px; line-height: 1.45; }
body.frost .td-dry { margin: 10px 0 0; font-size: 13px; }
body.frost .td-wait-actions { display: flex; gap: 8px; margin-top: 14px; }
body.frost .td-wait-actions .btn { flex: 1; }
body.frost .td-page .feed { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
body.frost .td-page .feed div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.7); font-size: 13.5px; }
body.frost .td-cap-line { font-size: 26px; margin-top: 14px; white-space: nowrap; }
body.frost .td-cap-line .mut { font-size: 13px; font-weight: 500; }
body.frost .td-page .cap { margin-top: 16px; height: 10px; border-radius: 99px; background: rgba(14,16,20,.08); overflow: hidden; }
body.frost .td-page .cap i { display: block; height: 100%; background: linear-gradient(90deg, #12A36B, #E8A317); border-radius: 99px; }
body.frost .td-kill { margin-top: 20px; }
body.frost .td-page button.kill { position: relative; width: 74px; height: 40px; border: 0; border-radius: 99px; background: rgba(14,16,20,.12); cursor: pointer; padding: 0; }
body.frost .td-page button.kill:after { content: ""; position: absolute; left: 4px; top: 4px; width: 32px; height: 32px; border-radius: 50%; background: #fff; }
body.frost .td-page button.kill.is-on { background: #12A36B; }
body.frost .td-page button.kill.is-on:after { left: 38px; }
body.frost .td-page button.kill:disabled { opacity: 0.45; cursor: not-allowed; }
body.frost .td-fest { padding: 9px 0; border-bottom: 1px solid rgba(14,16,20,.08); font-size: 13.5px; }
body.frost .td-fest-note { display: block; margin-top: 10px; }
body.frost .td-empty-copy { margin-top: 28px; line-height: 1.5; }
body.frost .td-more { margin-top: 8px; }
body.frost .td-more > summary { cursor: pointer; color: var(--s-muted); font-weight: 500; padding: 8px 6px 18px; }

@media (max-width: 1100px) {
  body.frost .td-kpis { grid-template-columns: 1fr 1fr; }
  body.frost .td-grid, body.frost .td-chart-card, body.frost #td-waiting, body.frost .td-grid > .glass { grid-column: auto; grid-row: auto; }
  body.frost .td-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  body.frost .st-shell { grid-template-columns: 1fr; gap: 12px; padding: 12px; height: auto; min-height: 100vh; }
  body.frost .st-rail { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; gap: 8px; }
  body.frost .st-rail-logo { display: inline-flex; flex: none; align-items: center; padding: 0 2px; }
  body.frost .st-nav { flex: 1 1 auto; width: auto; min-width: 0; }
  body.frost .st-rail-account, body.frost .st-rail-foot { display: none; }
  body.frost .st-nav { display: flex; gap: 4px; }
  body.frost .st-nav-item { flex: none; }
  body.frost .st-nav-item small, body.frost .st-nav-label { display: none; }
  body.frost .st-nav-short { display: inline; }
  body.frost .td-head { flex-direction: column; align-items: flex-start; }
  body.frost .td-head h1 { font-size: 30px; }
  body.frost .td-kpis { grid-template-columns: 1fr; }
  body.frost .st-main { overflow: visible; }
  body.frost .studio.st-shell { overflow: visible; }
  body.frost .st-auth { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  body.frost .st-rail { overflow: hidden; gap: 4px; padding-left: 10px; padding-right: 10px; }
  body.frost .st-rail-logo { display: inline-flex; }
  body.frost .st-rail-logo .briq-word { display: none; }
  body.frost .st-nav { width: auto; flex: 1; justify-content: space-between; gap: 0; overflow: hidden; }
  body.frost .st-nav-item { padding: 8px 4px; min-width: 0; }
  body.frost .st-nav-item > span:last-child { display: none; }
  body.frost .st-view { padding: 16px 14px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  body.frost .mesh i, body.frost .td-chart path.l, body.frost .st-boot-mark { animation: none !important; }
}
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  body.frost .st-rail,
  body.frost .s-card,
  body.frost .td-page .glass,
  body.frost .cr-brief input[type="text"],
  body.frost .cr-brief select,
  body.frost .cr-chat input[type="text"],
  body.frost .cr-chat textarea,
  body.frost .cr-approve input[type="text"],
  body.frost .cr-approve input[type="url"],
  body.frost .cr-approve textarea,
  body.frost .cr-approve select {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.92);
  }
}
