/* ==========================================================================
   44.01 AI Hub
   Same 44.01 brand tokens as the Claude Workspace (copied from its app.css).
   ========================================================================== */

:root {
  --rock: #070808;
  --off-white: #f1f0f0;
  --canyon: #df7626;
  --serpentine: #6f663f;
  --earth: #0d1802;
  --olivine: #8b9c44;
  --shale: #57544a;
  --sand: #beb290;
  --calcite: #eadac7;

  /* Inter for everyday interface text (close to Claude.ai); Poppins, the 44.01 brand font, for headings and buttons */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand-font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", ui-serif, Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --side-w: 288px;
  --col-w: 772px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Dark theme (default) */
  --bg: #0a0b0b;
  --bg-glow-1: rgba(223, 118, 38, 0.1);
  --bg-glow-2: rgba(139, 156, 68, 0.06);
  --side: rgba(16, 17, 17, 0.82);
  --surface: #141616;
  --surface-2: #1b1d1d;
  --surface-3: #232626;
  --glass: rgba(26, 28, 28, 0.72);
  --border: rgba(241, 240, 240, 0.08);
  --border-strong: rgba(241, 240, 240, 0.14);
  --text: #f1f0f0;
  --text-2: #c2beb4;
  --text-3: #8a867c;
  --accent: #df7626;
  --accent-hover: #ea8640;
  --accent-text: #f0a066;
  --accent-soft: rgba(223, 118, 38, 0.14);
  --accent-ring: rgba(223, 118, 38, 0.38);
  --on-accent: #ffffff;
  --success: #a4b65a;
  --danger: #ef6b5b;
  --user-bubble: #222525;
  --code-bg: #0f1111;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.75), 0 8px 24px rgba(0, 0, 0, 0.35);
  --composer-shadow: 0 0 0 1px var(--border-strong), 0 18px 50px -18px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f4f0;
    --bg-glow-1: rgba(223, 118, 38, 0.09);
    --bg-glow-2: rgba(190, 178, 144, 0.22);
    --side: rgba(238, 234, 227, 0.86);
    --surface: #ffffff;
    --surface-2: #f3f0eb;
    --surface-3: #e9e5de;
    --glass: rgba(255, 255, 255, 0.78);
    --border: rgba(7, 8, 8, 0.08);
    --border-strong: rgba(7, 8, 8, 0.14);
    --text: #121313;
    --text-2: #4a4840;
    --text-3: #7b776c;
    --accent-text: #b4561a;
    --accent-soft: rgba(223, 118, 38, 0.12);
    --success: #6b7a2f;
    --danger: #c2412f;
    --user-bubble: #ebe5dc;
    --code-bg: #f7f5f1;
    --shadow-sm: 0 1px 2px rgba(7, 8, 8, 0.06);
    --shadow: 0 10px 30px -12px rgba(60, 45, 20, 0.18), 0 2px 6px rgba(7, 8, 8, 0.05);
    --shadow-lg: 0 30px 80px -24px rgba(60, 45, 20, 0.3), 0 8px 24px rgba(7, 8, 8, 0.08);
    --composer-shadow: 0 0 0 1px var(--border-strong), 0 16px 40px -18px rgba(60, 45, 20, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6f4f0;
  --bg-glow-1: rgba(223, 118, 38, 0.09);
  --bg-glow-2: rgba(190, 178, 144, 0.22);
  --side: rgba(238, 234, 227, 0.86);
  --surface: #ffffff;
  --surface-2: #f3f0eb;
  --surface-3: #e9e5de;
  --glass: rgba(255, 255, 255, 0.78);
  --border: rgba(7, 8, 8, 0.08);
  --border-strong: rgba(7, 8, 8, 0.14);
  --text: #121313;
  --text-2: #4a4840;
  --text-3: #7b776c;
  --accent-text: #b4561a;
  --accent-soft: rgba(223, 118, 38, 0.12);
  --success: #6b7a2f;
  --danger: #c2412f;
  --user-bubble: #ebe5dc;
  --code-bg: #f7f5f1;
  --shadow-sm: 0 1px 2px rgba(7, 8, 8, 0.06);
  --shadow: 0 10px 30px -12px rgba(60, 45, 20, 0.18), 0 2px 6px rgba(7, 8, 8, 0.05);
  --shadow-lg: 0 30px 80px -24px rgba(60, 45, 20, 0.3), 0 8px 24px rgba(7, 8, 8, 0.08);
  --composer-shadow: 0 0 0 1px var(--border-strong), 0 16px 40px -18px rgba(60, 45, 20, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1100px 600px at 85% -10%, var(--bg-glow-1), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, var(--bg-glow-2), transparent 60%);
  z-index: 0;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
  border-radius: 6px;
}
h1,
h2,
.btn,
.btn-microsoft,
.brand {
  font-family: var(--brand-font);
}
.sub,
.muted {
  color: var(--text-2);
}
.muted {
  font-size: 13px;
}
.error-text {
  color: var(--danger);
}
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover {
  background: var(--surface-2);
}
.btn.primary {
  background: linear-gradient(180deg, #e8843a, var(--accent));
  border-color: transparent;
  color: var(--on-accent);
  box-shadow: 0 6px 18px -6px rgba(223, 118, 38, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
}
.btn.ghost:hover {
  background: var(--surface-3);
}
.btn.sm {
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.link-btn {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: inherit;
}
.btn-microsoft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(320px, 100%);
  height: 48px;
  border-radius: 14px;
  font-weight: 500;
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}
.btn-microsoft svg {
  stroke: none;
}

/* ---------- Layout ---------- */
.bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-wordmark {
  height: 22px;
  width: auto;
  align-self: flex-start;
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}
.bar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.bar-name {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--canyon), var(--serpentine));
}
.main {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 8px 24px 48px;
}
.view {
  animation: fade-up 0.35s var(--ease);
}

/* ---------- Splash ---------- */
.splash {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}
.splash-mark {
  width: 56px;
  height: 56px;
}
.splash h1 {
  margin: 18px 0 0;
  font-size: 30px;
  font-weight: 500;
}
.splash .sub {
  margin: 0 0 24px;
}
.splash-status {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text-2);
  font-size: 14px;
  min-height: 46px;
}

/* ---------- Dos & Don'ts ---------- */
.panel {
  padding: 28px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.pol-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-text);
}
.policy h2 {
  font-size: 26px;
  font-weight: 500;
  margin: 6px 0;
}
.pol-head .sub {
  margin: 0 0 12px;
}
.pol-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.pol-col {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 10px;
  color: #fff;
  margin-bottom: 8px;
}
.pol-col.do {
  background: var(--olivine);
}
.pol-col.dont {
  background: var(--accent);
}
.pol-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pol-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.pol-list li > span:last-child {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.45;
}
.pol-list li strong {
  font-size: 13.5px;
}
.pol-list li > span:last-child > span {
  color: var(--text-2);
}
.pol-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
}
.pol-mark svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.6;
}
.pol-mark.do {
  background: var(--olivine);
}
.pol-mark.dont {
  background: var(--accent);
}
.pol-notes {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.pol-notes-title {
  font-weight: 600;
  margin-bottom: 8px;
}
.pol-notes ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.pol-notes li {
  display: flex;
  flex-direction: column;
}
.pol-notes li span {
  color: var(--text-2);
}
.pol-ask {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--rock);
  color: var(--off-white);
}
.pol-ask-title {
  font-weight: 600;
  margin-bottom: 8px;
}
.pol-ask ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  font-size: 13px;
}
.pol-ask ol span {
  display: block;
  color: var(--sand);
}
.pol-contact {
  font-size: 12.5px;
  color: var(--text-3);
  margin: 12px 0 0;
}
.pol-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.pol-actions .check-row,
.pol-actions .muted {
  margin-right: auto;
}
.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 13.5px;
}
.check-row input {
  margin-top: 4px;
  accent-color: var(--accent);
}

/* ---------- Choose a workspace ---------- */
.home-head {
  text-align: center;
  margin: 40px 0 32px;
}
.home-head h1 {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.home-head .sub {
  margin: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  background: var(--glass);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.card.busy {
  opacity: 0.7;
  pointer-events: none;
}
.card h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 14px 0 0;
}
.card-models {
  font-size: 13px;
  color: var(--text-3);
}
.card p {
  margin: 10px 0 14px;
  color: var(--text-2);
  font-size: 14px;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.card-logo img {
  width: 24px;
  height: 24px;
}
.tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.chips {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips li {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
}
.card-go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-family: var(--brand-font);
  font-weight: 500;
  font-size: 14px;
}
/* Each workspace keeps its own look: warm 44.01 Canyon for Claude, neutral for OpenAI */
.ws-claude {
  background: radial-gradient(500px 240px at 100% 0%, rgba(223, 118, 38, 0.16), transparent 70%), var(--glass);
}
.ws-claude:hover {
  border-color: var(--accent-ring);
}
.ws-claude .card-logo {
  background: var(--accent-soft);
}
.ws-claude .card-go {
  background: linear-gradient(180deg, #e8843a, var(--accent));
  color: #fff;
}
.ws-openai .card-logo {
  background: var(--surface-3);
}
.ws-openai:hover {
  border-color: var(--text-3);
}
.ws-openai .card-go {
  background: var(--text);
  color: var(--bg);
}
.card.last {
  border-color: var(--accent-ring);
}
.home-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- Toasts ---------- */
.toasts {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  max-width: min(520px, calc(100vw - 32px));
}
.toast.error {
  background: var(--danger);
  color: #fff;
}

@media (max-width: 760px) {
  .bar {
    padding: 14px 16px;
  }
  .main {
    padding: 0 16px 40px;
  }
  .bar-name {
    display: none;
  }
  .panel {
    padding: 18px;
  }
  .pol-grid,
  .pol-notes ul,
  .pol-ask ol,
  .cards {
    grid-template-columns: 1fr;
  }
  .home-head {
    margin: 20px 0 24px;
  }
  .home-head h1 {
    font-size: 28px;
  }
}
