:root {
  color-scheme: light;
  --bg: #fbf8f0;
  --bg-2: #f8f2ff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-purple: rgba(109, 63, 209, 0.10);
  --surface-orange: rgba(255, 122, 26, 0.12);
  --ink: #171319;
  --muted: rgba(23, 19, 25, 0.62);
  --muted-strong: rgba(23, 19, 25, 0.76);
  --line: rgba(61, 45, 75, 0.14);
  --purple: #6d3fd1;
  --purple-dark: #4e2ba5;
  --orange: #ff7a1a;
  --orange-dark: #a4470c;
  --green: #2f7a52;
  --blue: #316fd6;
  --danger: #c84b3a;
  --shadow: 0 24px 68px rgba(73, 46, 105, 0.12);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 10%, rgba(109, 63, 209, 0.18), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(255, 122, 26, 0.16), transparent 28%),
    linear-gradient(180deg, #fffaf4 0%, #fbf8f0 50%, #f5f0ea 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(61, 45, 75, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 45, 75, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

h1,
h2,
p {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  transform: translateY(-130%);
  border-radius: var(--radius);
  padding: 9px 12px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 760;
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1480px);
  height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}

.app-sidebar,
.app-main {
  min-height: 0;
}

.app-sidebar {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 50px rgba(73, 46, 105, 0.10);
  backdrop-filter: blur(20px);
}

.sidebar-top,
.sidebar-bottom {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.sidebar-icp {
  display: inline-flex;
  width: fit-content;
  color: rgba(23, 19, 25, 0.46);
  font-size: 11px;
  font-weight: 680;
  line-height: 1.2;
  transition: color 0.18s ease;
}

.sidebar-icp:hover {
  color: var(--purple-dark);
}

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

.app-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}

.app-header {
  min-width: 0;
  display: grid;
}

.header-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}

.brand,
.header-actions,
.language-switch,
.ghost-button,
.send-button,
.sidebar-actions {
  display: inline-flex;
  align-items: center;
}

.brand {
  min-height: 40px;
  gap: 10px;
  font-size: 17px;
  font-weight: 850;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: url("../assets/avatars/bird-logo.svg") center / contain no-repeat;
  box-shadow: 0 0 0 1px rgba(35, 47, 39, 0.08), 0 10px 22px rgba(35, 27, 20, 0.08);
}

.workspace-title {
  min-width: 0;
  text-align: left;
}

.workspace-title p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.workspace-title strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  justify-content: flex-end;
  gap: 8px;
}

.status-pill {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.language-switch {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.language-switch button {
  min-width: 34px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.language-switch .is-active {
  background: var(--purple);
  color: #fffaf4;
}

.ghost-button,
.send-button {
  min-height: 36px;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 13px;
  font-size: 13px;
  font-weight: 820;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-search,
.new-chat-button,
.insight-tool {
  min-width: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-search {
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  text-align: left;
}

.sidebar-search span {
  position: relative;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(23, 19, 25, 0.26);
  border-radius: 999px;
}

.sidebar-search span::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: rgba(23, 19, 25, 0.26);
  transform: rotate(45deg);
}

.sidebar-search strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-chat-button {
  min-height: 40px;
  border: 0;
  padding: 0 12px;
  background: var(--ink);
  color: #fffaf4;
  font-size: 14px;
  font-weight: 840;
  text-align: left;
}

.new-chat-button::before {
  content: "+";
  margin-right: 9px;
  font-size: 18px;
  line-height: 1;
}

.sidebar-search:hover,
.insight-tool:hover {
  border-color: rgba(109, 63, 209, 0.28);
  background: #fff;
}

.new-chat-button:hover {
  background: #251f2d;
  box-shadow: 0 12px 26px rgba(23, 19, 25, 0.14);
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.70);
  color: var(--ink);
}

.send-button {
  border: 0;
  background: var(--orange);
  color: #fffaf4;
  box-shadow: 0 12px 26px rgba(255, 122, 26, 0.22);
}

.ghost-button:hover {
  border-color: rgba(109, 63, 209, 0.32);
  background: #fff;
}

.send-button:hover {
  background: #ff6912;
  box-shadow: 0 14px 32px rgba(255, 122, 26, 0.28);
}

button:active,
a:active {
  transform: translateY(1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(109, 63, 209, 0.26);
  outline-offset: 2px;
}

.page-tabs {
  min-width: 0;
  display: grid;
  gap: 4px;
  overflow: hidden auto;
  padding: 0;
  scrollbar-width: none;
}

.page-tabs::-webkit-scrollbar {
  display: none;
}

.page-tabs button {
  --nav-accent: var(--purple);
  --nav-accent-soft: rgba(109, 63, 209, 0.14);
  min-height: 36px;
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 10px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 820;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.page-tabs button::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.72), transparent 26%),
    linear-gradient(145deg, color-mix(in srgb, var(--nav-accent) 82%, #fff), color-mix(in srgb, var(--nav-accent) 56%, var(--ink)));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--nav-accent) 28%, transparent),
    0 6px 13px color-mix(in srgb, var(--nav-accent) 16%, transparent);
  opacity: 0.92;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.page-tabs button::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.page-tabs button[data-page="chat"] {
  --nav-accent: #6d3fd1;
}

.page-tabs button[data-page="chat"]::before {
  border-radius: 6px 6px 6px 2px;
}

.page-tabs button[data-page="chat"]::after {
  width: 12px;
  height: 6px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 50%, #fff 0 2px, transparent 2.5px),
    radial-gradient(circle at 50% 50%, #fff 0 2px, transparent 2.5px),
    radial-gradient(circle at 78% 50%, #fff 0 2px, transparent 2.5px);
}

.page-tabs button[data-page="tasks"] {
  --nav-accent: #ff7a1a;
}

.page-tabs button[data-page="tasks"]::before {
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.92) 0 26%, transparent 27%),
    conic-gradient(from 18deg, #ff7a1a 0 72%, rgba(255, 122, 26, 0.28) 72% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 122, 26, 0.18),
    0 6px 13px rgba(255, 122, 26, 0.18);
}

.page-tabs button[data-page="tasks"]::after {
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--orange-dark);
  border-bottom: 2px solid var(--orange-dark);
  transform: translate(-50%, -58%) rotate(-45deg);
}

.page-tabs button[data-page="agents"] {
  --nav-accent: #6d3fd1;
}

.page-tabs button[data-page="agents"]::before {
  border-radius: 9px 9px 6px 6px;
  background:
    radial-gradient(circle at 35% 38%, #fff 0 2.6px, transparent 3px),
    radial-gradient(circle at 65% 38%, #fff 0 2.6px, transparent 3px),
    linear-gradient(135deg, #6d3fd1 0%, #8b5cf6 52%, #ff7a1a 100%);
}

.page-tabs button[data-page="agents"]::after {
  width: 9px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  transform: translate(-50%, 1px);
}

.page-tabs button[data-page="files"] {
  --nav-accent: #2f7a52;
}

.page-tabs button[data-page="files"]::before {
  border-radius: 5px 5px 6px 6px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--green) 58%, #fff) 0 44%, transparent 45%) 0 2px / 14px 5px no-repeat,
    linear-gradient(180deg, color-mix(in srgb, var(--green) 82%, #fff), var(--green));
}

.page-tabs button[data-page="files"]::after {
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.62);
}

.page-tabs button[data-page="apps"] {
  --nav-accent: #316fd6;
}

.page-tabs button[data-page="apps"]::before {
  background:
    radial-gradient(circle at 31% 31%, #fff 0 14%, transparent 15%),
    radial-gradient(circle at 70% 31%, #fff 0 14%, transparent 15%),
    radial-gradient(circle at 31% 70%, #fff 0 14%, transparent 15%),
    radial-gradient(circle at 70% 70%, #fff 0 14%, transparent 15%),
    linear-gradient(145deg, #316fd6, #2f7a52);
}

.page-tabs button[data-page="apps"]::after {
  display: none;
}

.page-tabs button[data-page="devices"] {
  --nav-accent: #278398;
}

.page-tabs button[data-page="devices"]::before {
  border-radius: 4px 4px 7px 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0 11%, transparent 12% 76%, rgba(255, 255, 255, 0.70) 77% 84%, transparent 85%),
    linear-gradient(145deg, #36a2bd, #316fd6);
}

.page-tabs button[data-page="devices"]::after {
  top: 55%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
}

.page-tabs button[data-page="outputs"] {
  --nav-accent: #c8567a;
}

.page-tabs button[data-page="outputs"]::before {
  border-radius: 4px;
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(255,255,255,0.66) 19% 30%, transparent 31%),
    linear-gradient(145deg, #c8567a, #ff7a1a);
}

.page-tabs button[data-page="outputs"]::after {
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 4px 0 rgba(255, 255, 255, 0.68),
    0 8px 0 rgba(255, 255, 255, 0.46);
}

.page-tabs button:hover,
.page-tabs button.is-active {
  background: color-mix(in srgb, var(--nav-accent) 12%, transparent);
  color: color-mix(in srgb, var(--nav-accent) 58%, var(--ink));
}

.page-tabs button:hover::before,
.page-tabs button.is-active::before {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--nav-accent) 28%, transparent),
    0 8px 16px color-mix(in srgb, var(--nav-accent) 24%, transparent);
}

.nav-section-title {
  margin: 8px 8px 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 820;
}

.insight-tool {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255, 122, 26, 0.18);
  padding: 8px 9px;
  background: rgba(255, 122, 26, 0.09);
  color: var(--orange-dark);
  text-align: left;
}

.insight-tool strong {
  font-size: 13px;
  font-weight: 850;
}

.insight-tool span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.sidebar-account {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-top-color: var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: transparent;
  color: var(--muted-strong);
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.sidebar-account:hover,
.sidebar-account.is-active {
  border-color: rgba(49, 111, 214, 0.18);
  background: linear-gradient(135deg, rgba(49, 111, 214, 0.08), rgba(109, 63, 209, 0.09));
  color: var(--purple-dark);
}

.sidebar-account:active {
  transform: translateY(1px);
}

.sidebar-account span {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.94) 0 12%, transparent 13%),
    radial-gradient(ellipse at 50% 82%, rgba(255, 255, 255, 0.76) 0 28%, transparent 29%),
    linear-gradient(145deg, #316fd6 0%, #6d3fd1 58%, #ff7a1a 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    0 8px 18px rgba(49, 111, 214, 0.18);
}

.sidebar-account span::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: var(--green);
}

.sidebar-account strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-actions {
  justify-content: space-between;
  gap: 8px;
}

.workspace-stage {
  min-height: 0;
  overflow: hidden;
}

.workspace-page {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  animation: pageIn 0.22s ease both;
}

.workspace-page.is-active {
  display: grid;
}

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

.chat-page {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 12px;
}

.chat-panel,
.live-rail,
.page-detail,
.page-intro,
.agents-market-head,
.agent-category-rail,
.task-overview,
.office-panel,
.active-task-panel,
.decision-panel,
.task-queue,
.task-card,
.tile-grid button,
.app-grid span,
.device-map article,
.output-board button,
.insight-card,
.knowledge-hero,
.library-feature-grid button,
.source-list,
.agent-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.chat-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
  padding: 18px;
  backdrop-filter: blur(18px);
}

.assistant-ring {
  position: absolute;
  right: -86px;
  top: -100px;
  width: 280px;
  height: 280px;
  border: 36px solid rgba(255, 122, 26, 0.18);
  border-left-color: rgba(109, 63, 209, 0.17);
  border-radius: 44% 56% 48% 52%;
  transform: rotate(30deg);
  pointer-events: none;
}

.assistant-ring span {
  position: absolute;
  inset: 42px;
  border: 1px solid rgba(109, 63, 209, 0.14);
  border-radius: inherit;
}

.chat-heading {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--purple);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 9px;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.05;
  font-weight: 840;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.16;
  font-weight: 830;
  letter-spacing: 0;
}

.chat-heading p:not(.eyebrow),
.page-intro p:not(.eyebrow),
.plan-card p,
.page-detail p,
.insight-card li {
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.55;
}

.chat-heading p:not(.eyebrow) {
  margin-bottom: 0;
  max-width: 62ch;
}

.chat-thread {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: grid;
  align-content: end;
  gap: 10px;
  overflow: hidden;
  padding: 0 2px;
}

.message {
  max-width: min(680px, 88%);
  display: grid;
  gap: 5px;
  border-radius: var(--radius);
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.76);
}

.message span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.message p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.5;
}

.assistant-message {
  border: 1px solid rgba(109, 63, 209, 0.18);
}

.system-message {
  border: 1px solid rgba(255, 122, 26, 0.20);
  background: rgba(255, 243, 230, 0.66);
}

.user-message {
  justify-self: end;
  border: 0;
  background: var(--purple);
  color: #fff;
}

.user-message span {
  color: rgba(255, 255, 255, 0.72);
}

.composer-suggestions button,
.agent-stack button,
.agent-board button {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.70);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.composer-suggestions button:hover,
.agent-stack button:hover,
.agent-card:hover,
.tile-grid button:hover,
.library-feature-grid button:hover,
.task-card:hover,
.output-board button:hover {
  border-color: rgba(109, 63, 209, 0.30);
  background: #fff;
}

.chat-composer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  border: 2px solid rgba(109, 63, 209, 0.34);
  border-radius: var(--radius);
  padding: 12px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(109, 63, 209, 0.55), rgba(255, 122, 26, 0.48)) border-box;
  box-shadow: 0 18px 42px rgba(109, 63, 209, 0.14), 0 10px 28px rgba(255, 122, 26, 0.09);
}

.chat-composer:focus-within {
  border-color: rgba(255, 122, 26, 0.62);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.12), 0 18px 48px rgba(109, 63, 209, 0.16);
}

.composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.composer-head label {
  color: var(--purple-dark);
  font-size: 14px;
  font-weight: 860;
}

.composer-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.composer-mode span,
.composer-mode button {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 820;
}

.composer-mode button {
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.composer-mode button:hover {
  transform: translateY(-1px);
}

.composer-mode button:active {
  transform: translateY(0) scale(0.98);
}

.composer-mode .companion-pill {
  background: rgba(255, 122, 26, 0.13);
  color: var(--orange-dark);
}

.composer-mode .assistant-settings-pill {
  background: linear-gradient(90deg, rgba(109, 63, 209, 0.12), rgba(255, 122, 26, 0.12));
  color: var(--purple-dark);
}

.composer-mode .library-pill {
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
}

.companion-pill i {
  width: 15px;
  height: 15px;
  border-radius: 7px 7px 5px 5px;
  background:
    radial-gradient(circle at 50% 12%, #ffd9b3 0 28%, transparent 29%),
    linear-gradient(180deg, transparent 0 36%, var(--orange) 37% 100%);
  box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.16);
}

.library-pill i {
  width: 15px;
  height: 15px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 44%, rgba(109, 63, 209, 0.92) 0 21%, transparent 22%),
    linear-gradient(180deg, rgba(109, 63, 209, 0.14), rgba(109, 63, 209, 0.24));
  box-shadow: 0 0 0 1px rgba(109, 63, 209, 0.16);
}

.assistant-settings-pill i {
  width: 15px;
  height: 15px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.92) 0 16%, transparent 17%),
    linear-gradient(135deg, var(--purple), var(--orange));
  box-shadow: 0 0 0 1px rgba(109, 63, 209, 0.14);
}

.chat-composer textarea {
  width: 100%;
  min-height: 74px;
  max-height: 132px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

.chat-composer textarea::placeholder {
  color: rgba(23, 19, 25, 0.44);
}

.composer-suggestions {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(61, 45, 75, 0.10);
  padding-top: 9px;
}

.composer-suggestions > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 830;
}

.suggestion-track {
  min-width: 0;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 1px 3px;
  scrollbar-width: none;
}

.suggestion-track::-webkit-scrollbar {
  display: none;
}

.composer-suggestions button {
  flex: 0 0 auto;
  max-width: min(260px, 72vw);
  min-height: 30px;
  padding: 0 10px;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
}

.mobile-companion-card {
  --companion-shift-x: 0px;
  --companion-shift-y: 0px;
  --companion-look-x: 0px;
  --companion-look-y: 0px;
  --companion-tilt: 0deg;
  display: none;
}

.mobile-companion-card.is-aware {
  border-color: rgba(109, 63, 209, 0.26);
  box-shadow: 0 14px 30px rgba(109, 63, 209, 0.12);
}

.mobile-companion-card .mini-companion {
  transform:
    translate(var(--companion-shift-x), var(--companion-shift-y))
    rotate(var(--companion-tilt));
  transition: transform 0.16s ease-out, box-shadow 0.18s ease;
}

.mobile-companion-card .mini-companion::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--orange);
  opacity: 0;
  transform: translateY(5px) scale(0.6);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.mobile-companion-card .mini-companion img {
  transform: translate(var(--companion-look-x), var(--companion-look-y));
  transition: transform 0.16s ease-out, filter 0.18s ease;
}

body[data-companion="KarmaBox"] .mini-companion,
body[data-companion="Kiri"] .mini-companion {
  background: #f1f0ee;
  box-shadow: inset 0 0 0 1px rgba(33, 27, 22, 0.08), 0 12px 24px rgba(33, 27, 22, 0.10);
}

body[data-companion="KarmaBox"] .mini-companion img,
body[data-companion="Kiri"] .mini-companion img {
  width: 36px;
  height: 36px;
  filter: none;
}

.mobile-companion-card.is-aware .mini-companion {
  box-shadow: 0 12px 24px rgba(109, 63, 209, 0.20), 0 0 0 5px rgba(255, 122, 26, 0.08);
}

.mobile-companion-card.is-aware .mini-companion::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mobile-companion-card.is-excited .mini-companion img {
  animation: companionPop 0.62s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.safety-note {
  min-width: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.safety-note::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.12);
}

.composer-status {
  grid-column: 1 / -1;
  margin: -1px 0 0;
  border-top: 1px solid rgba(61, 45, 75, 0.10);
  padding-top: 8px;
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.composer-status[hidden] {
  display: none;
}

.live-rail {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  padding: 12px;
  backdrop-filter: blur(18px);
}

.runtime-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 63, 209, 0.24) transparent;
}

.runtime-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.runtime-header .eyebrow {
  margin-bottom: 6px;
}

.runtime-header h2 {
  font-size: 18px;
  line-height: 1.14;
  text-wrap: balance;
}

.runtime-settings {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(61, 45, 75, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.runtime-settings:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 63, 209, 0.25);
  background: rgba(255, 255, 255, 0.92);
}

.runtime-settings:active {
  transform: translateY(0) scale(0.98);
}

.runtime-settings span,
.runtime-settings::before,
.runtime-settings::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(23, 19, 25, 0.60);
  transform: translateX(-50%);
}

.runtime-settings::before {
  top: 10px;
}

.runtime-settings span {
  top: 15px;
}

.runtime-settings::after {
  top: 20px;
}

.runtime-env {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  border: 1px solid rgba(109, 63, 209, 0.12);
  border-radius: var(--radius);
  padding: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 122, 26, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.58);
}

.runtime-line {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 7px;
  row-gap: 2px;
  border-radius: 7px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.42);
  overflow: hidden;
}

.runtime-line strong {
  min-width: 0;
  color: rgba(23, 19, 25, 0.82);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.2;
  white-space: nowrap;
}

.runtime-line em {
  grid-column: 2;
  min-width: 0;
  justify-self: start;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
  line-height: 1.2;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-line b,
.runtime-line i {
  font-style: normal;
  font-weight: 840;
  font-variant-numeric: tabular-nums;
}

.runtime-line b {
  color: #1d9c61;
}

.runtime-line i {
  margin-left: 4px;
  color: #e05248;
}

.runtime-icon {
  grid-row: 1 / 3;
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(109, 63, 209, 0.10);
  box-shadow: inset 0 0 0 1px rgba(109, 63, 209, 0.12);
}

.runtime-icon::before,
.runtime-icon::after {
  content: "";
  position: absolute;
}

.runtime-icon-change::before {
  inset: 7px;
  border: 2px solid var(--purple);
  border-radius: 5px;
}

.runtime-icon-change::after {
  left: 12px;
  top: 8px;
  width: 2px;
  height: 10px;
  border-radius: 999px;
  background: var(--purple);
  box-shadow: -4px 4px 0 -1px var(--purple), 4px -4px 0 -1px var(--purple);
}

.runtime-icon-local {
  background: rgba(47, 122, 82, 0.10);
  box-shadow: inset 0 0 0 1px rgba(47, 122, 82, 0.14);
}

.runtime-icon-local::before {
  left: 6px;
  top: 7px;
  width: 14px;
  height: 9px;
  border: 2px solid var(--green);
  border-radius: 3px;
}

.runtime-icon-local::after {
  left: 5px;
  top: 18px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
}

.runtime-icon-flow {
  background: rgba(49, 111, 214, 0.10);
  box-shadow: inset 0 0 0 1px rgba(49, 111, 214, 0.14);
}

.runtime-icon-flow::before {
  left: 7px;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 8px 0 0 var(--blue), 4px 9px 0 var(--blue);
}

.runtime-icon-flow::after {
  left: 10px;
  top: 9px;
  width: 9px;
  height: 11px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  border-radius: 0 0 0 6px;
  transform: rotate(-12deg);
}

.runtime-icon-approval {
  background: rgba(255, 122, 26, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 26, 0.16);
}

.runtime-icon-approval::before {
  left: 8px;
  top: 6px;
  width: 10px;
  height: 14px;
  border-radius: 6px 6px 4px 4px;
  border: 2px solid var(--orange);
}

.runtime-icon-approval::after {
  left: 11px;
  top: 13px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--orange);
}

.runtime-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 1px;
}

.runtime-section-head span,
.runtime-sources p {
  margin: 0;
  color: rgba(23, 19, 25, 0.52);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.runtime-section-head b {
  color: var(--purple-dark);
  font-size: 12px;
  line-height: 1;
  font-weight: 830;
}

.runtime-intake {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.runtime-intake button {
  min-width: 0;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  border: 1px solid rgba(61, 45, 75, 0.11);
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(255, 255, 255, 0.58);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.runtime-intake button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 122, 26, 0.28);
  background: rgba(255, 255, 255, 0.9);
}

.runtime-intake button:active {
  transform: translateY(0) scale(0.99);
}

.runtime-intake i {
  grid-row: 1 / 3;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 122, 26, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 26, 0.14);
}

.runtime-intake-local {
  background:
    linear-gradient(0deg, transparent 58%, rgba(255, 255, 255, 0.68) 58%),
    rgba(109, 63, 209, 0.12) !important;
}

.runtime-intake-cloud {
  background:
    radial-gradient(circle at 42% 48%, rgba(255, 255, 255, 0.86) 0 28%, transparent 29%),
    rgba(49, 111, 214, 0.12) !important;
}

.runtime-intake strong {
  min-width: 0;
  color: rgba(23, 19, 25, 0.83);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
  white-space: nowrap;
}

.runtime-intake span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subagent-list {
  min-height: 0;
  flex: 1 1 132px;
  display: grid;
  gap: 5px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 63, 209, 0.20) transparent;
}

.subagent-row {
  --agent-color: var(--purple);
  min-width: 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(61, 45, 75, 0.10);
  border-radius: var(--radius);
  padding: 6px 7px;
  background: rgba(255, 255, 255, 0.54);
}

.subagent-row strong {
  min-width: 0;
  color: rgba(23, 19, 25, 0.84);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 830;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subagent-row em {
  color: var(--agent-color);
  font-size: 11px;
  line-height: 1.2;
  font-style: normal;
  font-weight: 780;
  white-space: nowrap;
}

.subagent-mark {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 8px 8px 9px 9px;
  background: color-mix(in srgb, var(--agent-color) 14%, white);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--agent-color) 70%, transparent);
}

.subagent-mark::before,
.subagent-mark::after {
  content: "";
  position: absolute;
}

.subagent-mark::before {
  left: 5px;
  top: 7px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--agent-color);
  box-shadow: 7px 0 0 var(--agent-color);
}

.subagent-mark::after {
  left: 6px;
  bottom: -4px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--agent-color);
  border-right: 2px solid var(--agent-color);
  border-radius: 0 0 6px 6px;
  opacity: 0.78;
}

.subagent-row.is-active {
  border-color: color-mix(in srgb, var(--agent-color) 28%, transparent);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--agent-color) 10%, transparent), transparent 48%),
    rgba(255, 255, 255, 0.72);
}

.runtime-panel.is-running .subagent-row {
  animation: subagentBreathe 2.8s ease-in-out infinite;
}

.runtime-panel.is-running .subagent-row:nth-child(2) { animation-delay: 0.18s; }
.runtime-panel.is-running .subagent-row:nth-child(3) { animation-delay: 0.36s; }
.runtime-panel.is-running .subagent-row:nth-child(4) { animation-delay: 0.54s; }
.runtime-panel.is-running .subagent-row:nth-child(5) { animation-delay: 0.72s; }
.runtime-panel.is-running .subagent-row:nth-child(6) { animation-delay: 0.9s; }

.agent-purple { --agent-color: var(--purple); }
.agent-green { --agent-color: #1d9c61; }
.agent-blue { --agent-color: var(--blue); }
.agent-orange { --agent-color: var(--orange); }
.agent-red { --agent-color: var(--danger); }
.agent-teal { --agent-color: #13988c; }

.runtime-more {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid rgba(109, 63, 209, 0.17);
  border-radius: var(--radius);
  background: rgba(109, 63, 209, 0.08);
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 840;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.runtime-more:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 63, 209, 0.26);
  background: rgba(109, 63, 209, 0.12);
}

.runtime-more:active {
  transform: translateY(0) scale(0.99);
}

.runtime-sources {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(61, 45, 75, 0.10);
  padding-top: 8px;
}

.runtime-sources div {
  min-width: 0;
  display: flex;
  gap: 6px;
}

.runtime-sources span {
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 7px;
  padding: 6px 6px;
  background: rgba(255, 255, 255, 0.54);
}

.runtime-sources i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--purple);
}

.runtime-source-file {
  background: var(--green) !important;
}

.runtime-source-app {
  background: var(--orange) !important;
}

.runtime-sources strong {
  min-width: 0;
  color: rgba(23, 19, 25, 0.72);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-panel .plan-card {
  flex: 0 0 auto;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(61, 45, 75, 0.10);
  border-radius: var(--radius);
  padding: 8px;
  background:
    radial-gradient(circle at 92% 0%, rgba(109, 63, 209, 0.10), transparent 36%),
    rgba(255, 255, 255, 0.58);
}

.runtime-panel .plan-card .eyebrow {
  margin: 0;
}

.runtime-panel .plan-card h2 {
  font-size: 14px;
  line-height: 1.18;
}

.runtime-panel .plan-card p:not(.eyebrow) {
  color: var(--muted-strong);
  font-size: 11.5px;
  line-height: 1.36;
}

@keyframes subagentBreathe {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: none;
  }
  45% {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(73, 46, 105, 0.08);
  }
}

.rail-block {
  min-height: 0;
  display: grid;
  gap: 10px;
}

.companion-office {
  align-content: start;
}

.companion-office h2 {
  max-width: 15em;
}

.companion-card {
  position: relative;
  --companion-shift-x: 0px;
  --companion-shift-y: 0px;
  --companion-look-x: 0px;
  --companion-look-y: 0px;
  --companion-tilt: 0deg;
  --companion-shadow-x: 0px;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(109, 63, 209, 0.14);
  border-radius: var(--radius);
  padding: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 122, 26, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 247, 239, 0.86));
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.companion-card.is-aware {
  border-color: rgba(109, 63, 209, 0.28);
  background:
    radial-gradient(circle at 50% 6%, rgba(255, 122, 26, 0.20), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 247, 239, 0.92));
  box-shadow: 0 18px 44px rgba(109, 63, 209, 0.12);
}

.companion-card::before {
  content: "";
  position: absolute;
  inset: auto 24px 96px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 26, 0.10);
}

.companion-stage {
  position: relative;
  z-index: 1;
  min-height: 172px;
  display: grid;
  place-items: center;
}

.companion-stage::before,
.companion-stage::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.companion-stage::before {
  width: 148px;
  height: 148px;
  background:
    radial-gradient(circle at 42% 34%, rgba(255, 255, 255, 0.78), transparent 14%),
    radial-gradient(circle at 50% 54%, rgba(109, 63, 209, 0.18), transparent 56%),
    rgba(255, 122, 26, 0.08);
  opacity: 0.42;
  transform: translate(var(--companion-look-x), var(--companion-look-y)) scale(0.94);
}

.companion-stage::after {
  right: 22%;
  top: 22%;
  width: 10px;
  height: 10px;
  background: var(--orange);
  opacity: 0;
  box-shadow:
    -34px 18px 0 -3px rgba(109, 63, 209, 0.60),
    20px 44px 0 -4px rgba(255, 122, 26, 0.64);
  transform: translateY(8px) scale(0.72);
}

.companion-card.is-aware .companion-stage::before {
  opacity: 0.82;
  transform: translate(var(--companion-look-x), var(--companion-look-y)) scale(1);
}

.companion-card.is-aware .companion-stage::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.companion-shadow {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 118px;
  height: 18px;
  border-radius: 999px;
  background: rgba(61, 45, 75, 0.13);
  filter: blur(2px);
  transform: translateX(calc(-50% + var(--companion-shadow-x)));
  transition: opacity 0.18s ease, transform 0.18s ease, width 0.18s ease;
}

.companion-card.is-aware .companion-shadow {
  width: 104px;
  opacity: 0.82;
}

.companion-avatar,
.companion-avatar-visual {
  position: relative;
  z-index: 1;
  width: 104px;
  height: 126px;
  display: block;
  transform-origin: 50% 92%;
  will-change: transform;
  animation: companionFloat 3.8s ease-in-out infinite;
}

.companion-avatar-visual {
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
}

.companion-avatar-visual img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(73, 46, 105, 0.18));
  transform: translate(var(--companion-look-x), var(--companion-look-y));
  transition: filter 0.18s ease, transform 0.16s ease-out;
  will-change: transform;
}

.companion-card.is-aware .companion-avatar-visual img {
  filter: drop-shadow(0 24px 26px rgba(73, 46, 105, 0.22)) saturate(1.05);
}

.companion-card.is-excited .companion-avatar-visual img {
  animation: companionPop 0.62s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.avatar-face,
.avatar-body,
.avatar-ear,
.avatar-tail {
  position: absolute;
  display: block;
}

.avatar-body {
  left: 18px;
  right: 18px;
  bottom: 12px;
  height: 82px;
  border-radius: 32px 32px 26px 26px;
  background:
    radial-gradient(circle at 35% 34%, rgba(255, 255, 255, 0.28) 0 12%, transparent 13%),
    linear-gradient(155deg, var(--purple), #3570d6 82%);
  box-shadow: 0 22px 40px rgba(109, 63, 209, 0.22);
}

.avatar-face {
  left: 25px;
  top: 0;
  width: 54px;
  height: 54px;
  border-radius: 45% 55% 49% 51%;
  background: #ffd8ad;
  box-shadow: inset 0 -9px 0 rgba(93, 49, 22, 0.07);
}

.avatar-face::before,
.avatar-face::after {
  content: "";
  position: absolute;
  top: 23px;
  width: 7px;
  height: 9px;
  border-radius: 999px;
  background: rgba(23, 19, 25, 0.72);
  animation: companionBlink 4.4s infinite;
}

.avatar-face::before {
  left: 16px;
}

.avatar-face::after {
  right: 16px;
}

.avatar-ear {
  top: 7px;
  width: 22px;
  height: 28px;
  border-radius: 12px 12px 4px 12px;
  background: #ffd8ad;
}

.avatar-ear.left {
  left: 14px;
  transform: rotate(-28deg);
}

.avatar-ear.right {
  right: 14px;
  transform: rotate(28deg) scaleX(-1);
}

.avatar-body::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 16px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
}

.avatar-tail {
  right: 6px;
  bottom: 38px;
  width: 30px;
  height: 46px;
  border: 12px solid #3570d6;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 26px 0 0;
  transform: rotate(18deg);
}

.companion-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.companion-copy strong {
  font-size: 15px;
  font-weight: 860;
}

.companion-copy span {
  max-width: 100%;
  border: 1px solid rgba(109, 63, 209, 0.10);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(109, 63, 209, 0.07);
  color: rgba(78, 43, 165, 0.78);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.1;
  white-space: nowrap;
}

.companion-moods {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.companion-moods button {
  min-width: 0;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.70);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 820;
  cursor: pointer;
}

.companion-moods button:hover,
.companion-moods button.is-active {
  border-color: rgba(109, 63, 209, 0.28);
  background: rgba(109, 63, 209, 0.12);
  color: var(--purple-dark);
}

@keyframes companionFloat {
  0%, 100% {
    transform:
      translate(var(--companion-shift-x), var(--companion-shift-y))
      translateY(0)
      rotate(calc(var(--companion-tilt) - 1deg));
  }
  50% {
    transform:
      translate(var(--companion-shift-x), calc(var(--companion-shift-y) - 7px))
      rotate(calc(var(--companion-tilt) + 1.2deg));
  }
}

@keyframes companionBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  94%, 96% { transform: scaleY(0.12); }
}

@keyframes companionPop {
  0%, 100% {
    transform: translate(var(--companion-look-x), var(--companion-look-y)) rotate(0) scale(1);
  }
  34% {
    transform: translate(var(--companion-look-x), calc(var(--companion-look-y) - 8px)) rotate(-7deg) scale(1.08);
  }
  68% {
    transform: translate(var(--companion-look-x), calc(var(--companion-look-y) - 2px)) rotate(6deg) scale(1.03);
  }
}

.avatar-tools {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.avatar-tools > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.avatar-tools div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.avatar-tools button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 830;
  cursor: pointer;
}

.companion-name-editor {
  width: min(440px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
}

.companion-name-editor label {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.companion-name-editor input {
  min-width: 0;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.companion-name-editor button {
  min-height: 36px;
  border: 1px solid rgba(109, 63, 209, 0.18);
  border-radius: var(--radius);
  padding: 0 11px;
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 840;
  cursor: pointer;
}

body[data-companion="Mochi"] .avatar-body,
body[data-companion="Mochi"] .mini-companion {
  background:
    radial-gradient(circle at 35% 34%, rgba(255, 255, 255, 0.30) 0 12%, transparent 13%),
    linear-gradient(155deg, #ff8f3f, #ad5cff 86%);
}

body[data-companion="Dobi"] .avatar-body,
body[data-companion="Dobi"] .mini-companion {
  background:
    radial-gradient(circle at 35% 34%, rgba(255, 255, 255, 0.30) 0 12%, transparent 13%),
    linear-gradient(155deg, #8f5a2b, #f5b86b 86%);
}

body[data-companion="Cloud"] .avatar-body,
body[data-companion="Cloud"] .mini-companion {
  background:
    radial-gradient(circle at 35% 34%, rgba(255, 255, 255, 0.38) 0 12%, transparent 13%),
    linear-gradient(155deg, #9ad9ff, #8c72ff 86%);
}

body[data-companion="Me"] .avatar-body,
body[data-companion="Me"] .mini-companion,
body[data-companion="Pet"] .avatar-body,
body[data-companion="Pet"] .mini-companion,
body[data-companion="Muse"] .avatar-body,
body[data-companion="Muse"] .mini-companion {
  background:
    radial-gradient(circle at 36% 34%, rgba(255, 255, 255, 0.34) 0 12%, transparent 13%),
    linear-gradient(155deg, #6d3fd1, #ff7a1a 86%);
}

body[data-companion="Dock"] .avatar-body,
body[data-companion="Dock"] .mini-companion {
  background:
    radial-gradient(circle at 35% 34%, rgba(255, 255, 255, 0.26) 0 12%, transparent 13%),
    linear-gradient(155deg, #222832, #6d3fd1 86%);
}

body[data-companion="KarmaBox"] .avatar-body,
body[data-companion="KarmaBox"] .mini-companion,
body[data-companion="Kiri"] .avatar-body,
body[data-companion="Kiri"] .mini-companion {
  background: #f1f0ee;
  box-shadow: inset 0 0 0 1px rgba(33, 27, 22, 0.08), 0 12px 24px rgba(33, 27, 22, 0.10);
}

.agent-stack {
  min-height: 0;
  display: grid;
  gap: 7px;
}

.agent-stack button {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  align-items: center;
  padding: 9px;
}

.agent-stack strong {
  width: 44px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
  font-size: 12px;
}

.agent-stack span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.compact-status {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.compact-status div {
  display: grid;
  gap: 4px;
  border-radius: var(--radius);
  padding: 9px;
  background: rgba(109, 63, 209, 0.08);
}

.compact-status span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.compact-status strong {
  font-size: 23px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan-card {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.plan-card p {
  margin: 0;
}

.agents-page {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
}

.agent-section-tabs {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(109, 63, 209, 0.11);
  border-radius: var(--radius);
  padding: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(109, 63, 209, 0.10), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.56)),
    rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 42px rgba(73, 46, 105, 0.08);
}

.agent-section-tabs button {
  --tab-accent: var(--purple);
  min-width: 0;
  position: relative;
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid color-mix(in srgb, var(--tab-accent) 12%, transparent);
  border-radius: var(--radius);
  padding: 9px 12px 9px 14px;
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--tab-accent) 12%, transparent), transparent 40%),
    rgba(255, 255, 255, 0.44);
  color: var(--muted-strong);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.agent-section-tabs button:nth-child(2) {
  --tab-accent: var(--orange);
}

.agent-section-tabs button:nth-child(3) {
  --tab-accent: #2f7a52;
}

.agent-section-tabs button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: color-mix(in srgb, var(--tab-accent) 78%, #fff);
  opacity: 0.58;
}

.agent-section-tabs button:hover {
  border-color: color-mix(in srgb, var(--tab-accent) 24%, transparent);
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--tab-accent) 17%, transparent), transparent 42%),
    rgba(255, 255, 255, 0.66);
  transform: translateY(-1px);
}

.agent-section-tabs button.is-active {
  border-color: color-mix(in srgb, var(--tab-accent) 24%, transparent);
  background:
    radial-gradient(circle at 92% 4%, color-mix(in srgb, var(--tab-accent) 20%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.76));
  color: var(--ink);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--tab-accent) 13%, transparent);
}

.agent-section-tabs button.is-active::before {
  opacity: 1;
}

.agent-section-tabs strong {
  overflow: hidden;
  color: color-mix(in srgb, var(--tab-accent) 18%, var(--ink));
  font-size: 13.4px;
  font-weight: 860;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-section-tabs span {
  overflow: hidden;
  color: rgba(23, 19, 25, 0.55);
  font-size: 11.2px;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-section-panel {
  min-height: 0;
  overflow: hidden;
}

.agent-section-panel[hidden] {
  display: none !important;
}

.agent-section-panel.is-active {
  display: grid;
}

.industry-pack-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 10px;
  overflow: hidden;
}

.industry-pack-grid,
.squad-grid {
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 63, 209, 0.30) transparent;
}

.industry-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(278px, 1fr));
  align-content: start;
  gap: 10px;
  padding: 1px 3px 3px 1px;
}

.industry-pack-card,
.squad-card,
.workflow-card,
.agent-side-note,
.squad-toolbar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.industry-pack-card {
  --pack-accent: var(--purple);
  min-width: 0;
  min-height: 328px;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 10px;
  padding: 14px;
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--pack-accent) 16%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.70)),
    var(--surface);
  overflow: hidden;
}

.industry-pack-card.is-featured {
  border-color: rgba(109, 63, 209, 0.28);
  box-shadow: 0 20px 50px rgba(73, 46, 105, 0.14);
}

.pack-card-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.pack-card-head h2 {
  min-height: 0;
  display: block;
  font-size: 17px;
  line-height: 1.16;
  text-wrap: balance;
  white-space: normal;
}

.pack-card-head .eyebrow {
  margin-bottom: 3px;
  color: color-mix(in srgb, var(--pack-accent) 84%, var(--ink));
  font-size: 10px;
}

.pack-icon {
  position: relative;
  width: 44px;
  height: 44px;
  display: block;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.78), transparent 28%),
    linear-gradient(145deg, color-mix(in srgb, var(--pack-accent) 18%, #fff), rgba(255, 255, 255, 0.78));
  color: color-mix(in srgb, var(--pack-accent) 78%, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pack-accent) 22%, transparent);
}

.pack-icon::before,
.pack-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.pack-global::before {
  width: 23px;
  height: 23px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 46%, currentColor 47% 53%, transparent 54%),
    linear-gradient(transparent 46%, currentColor 47% 53%, transparent 54%);
  opacity: 0.92;
}

.pack-global::after {
  width: 19px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-22%, -48%) rotate(-42deg);
  opacity: 0.78;
}

.pack-clinic::before {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background:
    linear-gradient(currentColor 0 0) 50% 26% / 4px 15px no-repeat,
    linear-gradient(currentColor 0 0) 50% 26% / 15px 4px no-repeat;
  box-shadow: inset 0 0 0 2px currentColor;
}

.pack-clinic::after {
  width: 20px;
  height: 9px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 999px 999px;
  transform: translate(-50%, 13%);
  opacity: 0.78;
}

.pack-market::before {
  width: 25px;
  height: 18px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 0 3px;
}

.pack-market::after {
  width: 24px;
  height: 16px;
  background:
    linear-gradient(135deg, transparent 0 29%, currentColor 30% 38%, transparent 39% 100%),
    linear-gradient(155deg, transparent 0 47%, currentColor 48% 57%, transparent 58% 100%);
  transform: translate(-42%, -54%);
}

.pack-report::before {
  width: 18px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 5px;
  transform: translate(-58%, -52%);
}

.pack-report::after {
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 999px;
  box-shadow: 7px 7px 0 -5px currentColor;
  transform: translate(-8%, -2%);
}

.pack-store::before {
  width: 22px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 5px 5px 7px 7px;
  transform: translate(-50%, -38%);
}

.pack-store::after {
  width: 12px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translate(-50%, -105%);
}

.pack-code::before {
  width: 10px;
  height: 18px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-78%, -50%) rotate(45deg);
}

.pack-code::after {
  width: 10px;
  height: 18px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translate(-22%, -50%) rotate(45deg);
}

.pack-global { --pack-accent: var(--purple); }
.pack-clinic { --pack-accent: #c8567a; }
.pack-market { --pack-accent: #2f7a52; }
.pack-report { --pack-accent: #316fd6; }
.pack-store { --pack-accent: var(--orange); }
.pack-code { --pack-accent: #24202a; }

.industry-pack-card:has(.pack-global) { --pack-accent: var(--purple); }
.industry-pack-card:has(.pack-clinic) { --pack-accent: #c8567a; }
.industry-pack-card:has(.pack-market) { --pack-accent: #2f7a52; }
.industry-pack-card:has(.pack-report) { --pack-accent: #316fd6; }
.industry-pack-card:has(.pack-store) { --pack-accent: var(--orange); }
.industry-pack-card:has(.pack-code) { --pack-accent: #24202a; }

.pack-price {
  min-width: 56px;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 1px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pack-price strong {
  font-size: 22px;
  font-weight: 880;
  line-height: 1;
}

.pack-price em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.industry-pack-card p,
.squad-card p,
.workflow-card p,
.agent-side-note p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 12.5px;
  line-height: 1.45;
}

.pack-includes,
.squad-roles,
.squad-filter-pills,
.side-note-flow {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pack-includes span,
.squad-roles span,
.squad-filter-pills span,
.side-note-flow button,
.side-note-flow a {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  padding: 0 7px;
  background: rgba(23, 19, 25, 0.055);
  color: var(--muted-strong);
  font-size: 10.5px;
  font-weight: 780;
  white-space: nowrap;
}

.industry-pack-card dl,
.squad-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.industry-pack-card dl div,
.squad-card dl div {
  display: grid;
  gap: 2px;
  border-top: 1px solid rgba(61, 45, 75, 0.10);
  padding-top: 7px;
}

.industry-pack-card dt,
.squad-card dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.industry-pack-card dd,
.squad-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 670;
  line-height: 1.34;
}

.pack-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pack-actions > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
}

.pack-actions button,
.pack-actions a,
.squad-card > button,
.workflow-card > button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 0 11px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 840;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.pack-actions button:hover,
.pack-actions a:hover,
.squad-card > button:hover,
.workflow-card > button:hover {
  background: var(--purple-dark);
  box-shadow: 0 10px 24px rgba(73, 46, 105, 0.16);
  transform: translateY(-1px);
}

.agent-side-note {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 122, 26, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.76);
}

.agent-side-note .eyebrow {
  margin-bottom: 0;
  color: rgba(23, 19, 25, 0.58);
  font-size: 10.5px;
  font-weight: 780;
  letter-spacing: 0.045em;
}

.agent-side-note h2 {
  max-width: 22ch;
  margin: 0;
  color: rgba(23, 19, 25, 0.92);
  font-size: 15.5px;
  font-weight: 820;
  line-height: 1.24;
  text-wrap: balance;
}

.agent-side-note p:not(.eyebrow) {
  color: rgba(23, 19, 25, 0.66);
  font-size: 12.2px;
  font-weight: 560;
  line-height: 1.52;
}

.side-note-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 2px;
}

.side-note-flow button,
.side-note-flow a {
  justify-content: space-between;
  min-height: 31px;
  width: 100%;
  border: 1px solid rgba(61, 45, 75, 0.08);
  background: rgba(255, 255, 255, 0.62);
  font: inherit;
  color: rgba(23, 19, 25, 0.68);
  font-size: 12.2px;
  font-weight: 760;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.side-note-flow button:hover,
.side-note-flow a:hover,
.side-note-flow button.is-active {
  border-color: rgba(109, 63, 209, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: var(--purple-dark);
}

.side-note-flow button:active,
.side-note-flow a:active {
  transform: translateY(1px);
}

.side-note-flow button::after,
.side-note-flow a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.48;
}

.agent-add-status {
  border-top: 1px solid rgba(61, 45, 75, 0.10);
  padding-top: 10px;
  color: var(--purple-dark) !important;
  font-size: 12px !important;
  font-weight: 780;
}

.squad-toolbar .agent-add-status {
  flex-basis: 100%;
  margin: 0;
  padding-top: 8px;
}

.squad-market-layout {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

.squad-toolbar {
  min-width: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.72);
}

.squad-toolbar h2 {
  font-size: 19px;
}

.workflow-toolbar h2 {
  max-width: 48ch;
  font-size: 16.5px;
  line-height: 1.24;
}

.squad-filter-pills {
  justify-content: flex-end;
}

.squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(264px, 1fr));
  align-content: start;
  gap: 10px;
  padding: 1px 3px 3px 1px;
}

.workflow-grid {
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
}

.workflow-card {
  --workflow-accent: var(--purple);
  min-width: 0;
  min-height: 244px;
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 8px;
  padding: 13px;
  border-color: color-mix(in srgb, var(--workflow-accent) 17%, rgba(61, 45, 75, 0.12));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--workflow-accent) 28%, transparent), transparent 42%) 0 0 / 100% 3px no-repeat,
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--workflow-accent) 19%, transparent), transparent 36%),
    radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--workflow-accent) 8%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74)),
    var(--surface);
  overflow: hidden;
  box-shadow:
    0 12px 30px rgba(73, 46, 105, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.workflow-card.is-featured {
  border-color: rgba(109, 63, 209, 0.26);
  box-shadow: 0 18px 42px rgba(73, 46, 105, 0.13);
}

.workflow-card:hover {
  border-color: color-mix(in srgb, var(--workflow-accent) 28%, rgba(61, 45, 75, 0.12));
  box-shadow:
    0 18px 38px color-mix(in srgb, var(--workflow-accent) 14%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
  transform: translateY(-1px);
}

.workflow-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workflow-icon {
  position: relative;
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.88), transparent 28%),
    linear-gradient(145deg, color-mix(in srgb, var(--workflow-accent) 24%, #fff), rgba(255, 255, 255, 0.82));
  color: color-mix(in srgb, var(--workflow-accent) 80%, var(--ink));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--workflow-accent) 24%, transparent),
    0 10px 20px color-mix(in srgb, var(--workflow-accent) 13%, transparent);
}

.workflow-icon::before,
.workflow-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.workflow-icon-deck,
.workflow-icon-paper,
.workflow-icon-file { --workflow-accent: #6d3fd1; }

.workflow-icon-chart,
.workflow-icon-map,
.workflow-icon-store { --workflow-accent: #2f7a52; }

.workflow-icon-code,
.workflow-icon-doc,
.workflow-icon-vision { --workflow-accent: #316fd6; }

.workflow-icon-media,
.workflow-icon-edit,
.workflow-icon-write { --workflow-accent: #ff7a1a; }

.workflow-icon-translate,
.workflow-icon-image { --workflow-accent: #c8567a; }

.workflow-card:has(.workflow-icon-deck),
.workflow-card:has(.workflow-icon-paper),
.workflow-card:has(.workflow-icon-file) { --workflow-accent: #6d3fd1; }

.workflow-card:has(.workflow-icon-chart),
.workflow-card:has(.workflow-icon-map),
.workflow-card:has(.workflow-icon-store) { --workflow-accent: #2f7a52; }

.workflow-card:has(.workflow-icon-code),
.workflow-card:has(.workflow-icon-doc),
.workflow-card:has(.workflow-icon-vision) { --workflow-accent: #316fd6; }

.workflow-card:has(.workflow-icon-media),
.workflow-card:has(.workflow-icon-edit),
.workflow-card:has(.workflow-icon-write) { --workflow-accent: #ff7a1a; }

.workflow-card:has(.workflow-icon-translate),
.workflow-card:has(.workflow-icon-image) { --workflow-accent: #c8567a; }

.workflow-icon-deck::before {
  width: 20px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow: 0 7px 0 -5px currentColor;
}

.workflow-icon-deck::after {
  width: 10px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, 4px);
}

.workflow-icon-chart::before {
  width: 21px;
  height: 18px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 0 3px;
}

.workflow-icon-chart::after {
  width: 20px;
  height: 14px;
  background:
    linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px, currentColor 6px 9px, transparent 9px 12px, currentColor 12px 15px, transparent 15px);
  transform: translate(-35%, -35%) scaleY(0.9);
}

.workflow-icon-map::before {
  width: 21px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 9px;
  clip-path: polygon(0 0, 34% 12%, 66% 0, 100% 12%, 100% 100%, 66% 88%, 34% 100%, 0 88%);
}

.workflow-icon-code::before {
  width: 9px;
  height: 15px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-80%, -50%) rotate(45deg);
}

.workflow-icon-code::after {
  width: 9px;
  height: 15px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translate(-20%, -50%) rotate(45deg);
}

.workflow-icon-doc::before,
.workflow-icon-paper::before,
.workflow-icon-file::before {
  width: 16px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.workflow-icon-doc::after,
.workflow-icon-paper::after,
.workflow-icon-file::after {
  width: 9px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
  transform: translate(-50%, -16%);
}

.workflow-icon-store::before {
  width: 20px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 5px 5px 7px 7px;
  transform: translate(-50%, -35%);
}

.workflow-icon-store::after {
  width: 12px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translate(-50%, -108%);
}

.workflow-icon-media::before {
  width: 20px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.workflow-icon-media::after {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  transform: translate(-35%, -50%);
}

.workflow-icon-vision::before,
.workflow-icon-image::before {
  width: 22px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.workflow-icon-vision::after,
.workflow-icon-image::after {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.workflow-icon-edit::before,
.workflow-icon-write::before {
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(-35deg);
}

.workflow-icon-edit::after,
.workflow-icon-write::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(34%, 4%) rotate(10deg);
}

.workflow-icon-translate::before {
  width: 20px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.workflow-icon-translate::after {
  width: 15px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-28%, -18%) rotate(-12deg);
}

.workflow-category {
  color: color-mix(in srgb, var(--workflow-accent) 74%, var(--ink)) !important;
  font-size: 10.5px !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  letter-spacing: 0.01em;
}

.workflow-card h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-card > p:not(.workflow-category) {
  min-height: 50px;
  color: rgba(23, 19, 25, 0.66);
  font-size: 12.1px;
  line-height: 1.42;
}

.workflow-card .squad-roles {
  align-content: start;
}

.workflow-card .squad-roles span {
  border: 1px solid color-mix(in srgb, var(--workflow-accent) 10%, transparent);
  background: color-mix(in srgb, var(--workflow-accent) 10%, rgba(255, 255, 255, 0.62));
  color: color-mix(in srgb, var(--workflow-accent) 34%, rgba(23, 19, 25, 0.70));
  font-size: 10.2px;
}

.workflow-card > button {
  justify-self: stretch;
  margin-top: 2px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--workflow-accent) 74%, #171319), color-mix(in srgb, var(--workflow-accent) 46%, #171319));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--workflow-accent) 15%, transparent);
}

.workflow-card > button:hover {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--workflow-accent) 82%, #171319), color-mix(in srgb, var(--workflow-accent) 52%, #171319));
}

.squad-card {
  min-width: 0;
  min-height: 300px;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 10px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.70)),
    var(--surface);
}

.squad-card.is-featured {
  border-color: rgba(255, 122, 26, 0.28);
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 122, 26, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.72)),
    var(--surface);
}

.squad-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.squad-avatar-stack {
  display: flex;
  align-items: center;
  min-width: 0;
}

.squad-avatar-stack span {
  position: relative;
  width: 34px;
  height: 34px;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  background: #ede4ff;
  box-shadow: 0 8px 18px rgba(73, 46, 105, 0.10);
}

.squad-avatar-stack span + span {
  margin-left: -8px;
}

.squad-avatar-stack span::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 7px;
  width: 12px;
  height: 13px;
  border-radius: 45%;
  background: rgba(255, 216, 191, 0.95);
}

.squad-avatar-stack span::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 5px;
  width: 18px;
  height: 10px;
  border-radius: 8px 8px 5px 5px;
  background: color-mix(in srgb, var(--avatar-shirt, var(--purple)) 86%, white);
}

.squad-avatar-stack .avatar-main { background: #eadfff; --avatar-shirt: #6d3fd1; }
.squad-avatar-stack .avatar-data { background: #e0edff; --avatar-shirt: #234f96; }
.squad-avatar-stack .avatar-privacy { background: #e8e8ee; --avatar-shirt: #24202a; }
.squad-avatar-stack .avatar-browser { background: #ddeaff; --avatar-shirt: #316fd6; }
.squad-avatar-stack .avatar-app { background: #fff0dc; --avatar-shirt: #ff7a1a; }
.squad-avatar-stack .avatar-pm { background: #ece6db; --avatar-shirt: #5f5448; }
.squad-avatar-stack .avatar-search { background: #e3f5f8; --avatar-shirt: #278398; }
.squad-avatar-stack .avatar-content { background: #ffe2dc; --avatar-shirt: #d85c4a; }
.squad-avatar-stack .avatar-file { background: #dcf4e6; --avatar-shirt: #2f7a52; }

.squad-heat {
  min-width: 54px;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.squad-heat b {
  font-size: 20px;
  font-weight: 880;
}

.squad-heat em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 780;
}

.squad-card h2 {
  min-height: 20px;
  display: block;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.squad-card > button {
  justify-self: stretch;
}

.agent-section-panel[data-agent-section-panel="employees"].is-active {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.agent-detail-actions {
  grid-template-columns: 1fr;
  gap: 8px !important;
}

.agent-detail-actions button {
  min-height: 34px;
  justify-content: center;
  text-align: center;
}

.agent-command-panel > .agent-add-status {
  margin: 0;
}

.split-page {
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 12px;
}

.tasks-page {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.task-overview {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 8px 14px 2px;
  overflow: hidden;
}

.task-overview-copy {
  min-width: 0;
}

.task-overview-copy h1 {
  margin: 0 0 5px;
  font-size: clamp(18px, 1.45vw, 23px);
  font-weight: 840;
  line-height: 1.12;
  text-wrap: balance;
}

.task-overview-copy p:not(.eyebrow) {
  max-width: 66ch;
  margin: 0;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.48;
}

.task-dashboard {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(258px, 0.34fr);
  align-items: start;
  align-content: start;
  gap: 12px;
}

.task-workspace-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(126px, 0.26fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.task-project-strip {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.task-project-strip-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-project-strip-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 830;
  letter-spacing: 0.01em;
}

.task-project-strip-head button {
  min-height: 24px;
  border: 1px solid rgba(109, 63, 209, 0.16);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 830;
  cursor: pointer;
}

.project-switch {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-switch button {
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(109, 63, 209, 0.12);
  border-radius: var(--radius);
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.70);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.project-switch button:hover,
.project-switch button.is-active {
  border-color: rgba(109, 63, 209, 0.30);
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
}

.task-focus-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.task-focus-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.task-focus-copy h2 {
  margin: 0;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 850;
  line-height: 1.12;
  text-wrap: balance;
}

.task-focus-copy p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.5;
}

.task-chart-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(275px, 0.42fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(61, 45, 75, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
}

.task-progress-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-radius: var(--radius);
  padding: 12px;
  background: linear-gradient(135deg, rgba(109, 63, 209, 0.10), rgba(255, 122, 26, 0.08));
}

.task-progress-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
}

.task-progress-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.task-progress-copy em {
  color: var(--ink);
  font-size: 22px;
  font-style: normal;
  font-weight: 870;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.task-progress-copy p {
  max-width: 28ch;
  margin: 0;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.38;
}

.task-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: 8px;
}

.task-metrics button {
  min-width: 0;
  min-height: 96px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  border: 1px solid rgba(109, 63, 209, 0.12);
  border-radius: var(--radius);
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.70);
  text-align: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.task-metrics button:hover {
  border-color: rgba(109, 63, 209, 0.28);
  background: #fff;
}

.task-metrics strong {
  color: var(--ink);
  font-size: 31px;
  font-weight: 860;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.task-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.18;
  text-align: center;
  text-overflow: ellipsis;
  white-space: normal;
}

.office-panel,
.active-task-panel,
.task-side-panel,
.decision-panel,
.project-history-panel,
.task-queue {
  min-width: 0;
  min-height: 0;
}

.office-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
  padding: 12px;
}

.office-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.office-header span {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 830;
}

.office-header strong {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-scene {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1.55 / 1;
  background:
    linear-gradient(90deg, rgba(247, 247, 247, 0.82) 0 28%, transparent 28%),
    radial-gradient(circle at 55% 46%, rgba(109, 63, 209, 0.10), transparent 42%),
    linear-gradient(180deg, #fff 0%, #f5f3ef 100%);
  box-shadow: inset 0 0 0 1px rgba(61, 45, 75, 0.08);
}

.office-zone.pantry {
  position: absolute;
  left: 0;
  top: 0;
  width: 28%;
  height: 100%;
  background: linear-gradient(180deg, rgba(238, 238, 238, 0.82), rgba(255, 255, 255, 0.48));
  box-shadow: inset -1px 0 0 rgba(61, 45, 75, 0.06);
}

.office-zone.pantry span {
  position: absolute;
  left: 16%;
  top: 20%;
  width: 66%;
  height: 17%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 26px rgba(61, 45, 75, 0.08);
}

.office-zone.pantry i {
  position: absolute;
  top: 15%;
  width: 13px;
  height: 18px;
  border-radius: 6px 6px 9px 9px;
  background: #b8845c;
  box-shadow: inset 0 5px 0 rgba(255, 255, 255, 0.42);
}

.office-zone.pantry i:nth-child(2) { left: 18%; }
.office-zone.pantry i:nth-child(3) { left: 34%; animation-delay: 0.4s; }
.office-zone.pantry i:nth-child(4) { left: 50%; animation-delay: 0.8s; }

.office-desk {
  position: absolute;
  width: 118px;
  height: 86px;
  transform: translateZ(0);
}

.desk-main { left: 38%; top: 12%; }
.desk-browser { left: 65%; top: 13%; opacity: 0.92; }
.desk-file { left: 39%; top: 49%; }
.desk-app { left: 66%; top: 49%; opacity: 0.82; }
.desk-idle { left: 52%; top: 74%; opacity: 0.42; }

.desk-surface {
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  height: 30px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 22px rgba(61, 45, 75, 0.14);
}

.desk-surface::before,
.desk-surface::after {
  content: "";
  position: absolute;
  bottom: -26px;
  width: 4px;
  height: 28px;
  background: rgba(220, 220, 220, 0.92);
}

.desk-surface::before { left: 14px; }
.desk-surface::after { right: 14px; }

.monitor {
  position: absolute;
  left: 36px;
  top: 4px;
  width: 46px;
  height: 30px;
  border-radius: 3px 3px 2px 2px;
  background: #222;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92);
}

.monitor::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: -9px;
  width: 7px;
  height: 9px;
  background: rgba(220, 220, 220, 0.96);
}

.monitor.is-blue { background: #5a9cff; }
.monitor.is-green { background: #86b56a; }
.monitor.is-orange { background: #ff9b45; }

.agent-avatar {
  position: absolute;
  left: 46px;
  top: 41px;
  width: 28px;
  height: 34px;
  border-radius: 14px 14px 9px 9px;
  background: #121214;
  animation: officeAgentWork 2.4s ease-in-out infinite;
}

.agent-avatar::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -10px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #121214;
}

.agent-avatar::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 13px;
  height: 6px;
  border-radius: 999px;
  background: var(--orange);
}

.agent-file::after { background: #86b56a; }
.agent-browser::after { background: #5a9cff; }
.agent-app::after { background: #ffd261; }
.desk-browser .agent-avatar { animation-delay: 0.45s; }
.desk-file .agent-avatar { animation-delay: 0.8s; }
.desk-app .agent-avatar { animation-delay: 1.15s; }

.empty-chair {
  position: absolute;
  left: 45px;
  top: 50px;
  width: 30px;
  height: 24px;
  border-radius: 6px;
  background: rgba(220, 220, 220, 0.92);
}

.office-desk b {
  position: absolute;
  left: 50%;
  top: -15px;
  transform: translateX(-50%);
  color: var(--ink);
  font-size: 11px;
  font-weight: 780;
  white-space: nowrap;
}

.office-bubble {
  position: absolute;
  right: 9%;
  top: 36%;
  border-radius: 14px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
  box-shadow: 0 14px 30px rgba(61, 45, 75, 0.12);
  animation: officeBubbleFloat 3s ease-in-out infinite;
}

@keyframes officeAgentWork {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(1.5deg); }
}

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

.active-task-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 12px;
  overflow: hidden;
  padding: 16px;
}

.active-task-panel::before {
  display: none;
}

.task-chart {
  --progress: 68;
  position: relative;
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  border-radius: 999px;
  background:
    radial-gradient(circle, #fff 0 54%, transparent 55%),
    conic-gradient(var(--purple) calc(var(--progress) * 1%), rgba(61, 45, 75, 0.10) 0);
  box-shadow: inset 0 0 0 1px rgba(61, 45, 75, 0.08);
}

.task-chart strong {
  color: var(--ink);
  font-size: 30px;
  font-weight: 880;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.task-chart span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.active-task-topline,
.panel-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.active-task-topline span,
.panel-heading span {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 830;
}

.active-task-topline em {
  display: none;
}

.active-task-panel > h2 {
  display: none;
}

.task-progress {
  position: relative;
  z-index: 1;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 19, 25, 0.08);
}

.task-progress i {
  width: 68%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--orange));
}

.task-step-list {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.task-step-item {
  min-width: 0;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(61, 45, 75, 0.10);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.task-step-toggle {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 10px 11px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.task-step-item:hover {
  border-color: rgba(109, 63, 209, 0.22);
}

.task-step-toggle:hover {
  background: #fff;
}

.task-step-list b {
  width: fit-content;
  color: var(--muted);
  font-size: 11px;
  font-weight: 830;
}

.task-step-list span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 690;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-step-toggle i {
  justify-self: end;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(78, 43, 165, 0.72);
  border-bottom: 2px solid rgba(78, 43, 165, 0.72);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.task-step-toggle[aria-expanded="true"] i {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.task-step-toggle.is-done b {
  color: var(--green);
}

.task-step-toggle.is-active {
  border-color: rgba(255, 122, 26, 0.26);
  background: rgba(255, 122, 26, 0.08);
}

.task-step-toggle.is-active b {
  color: var(--orange-dark);
}

.task-step-detail {
  border-top: 1px solid rgba(61, 45, 75, 0.08);
  padding: 10px 12px 12px 94px;
  background: rgba(255, 255, 255, 0.54);
}

.task-step-detail p {
  margin: 0 0 10px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.48;
}

.task-step-detail dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.task-step-detail div {
  display: grid;
  gap: 3px;
}

.task-step-detail dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.task-step-detail dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

.task-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-side-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: 12px;
  overflow: hidden;
}

.decision-panel,
.project-history-panel,
.task-queue {
  display: grid;
  align-content: start;
  gap: 9px;
  overflow: hidden;
  padding: 12px;
}

.panel-heading strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 860;
  font-variant-numeric: tabular-nums;
}

.decision-item,
.decision-more,
.task-queue button {
  min-width: 0;
  border: 1px solid rgba(61, 45, 75, 0.10);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.decision-item:hover,
.decision-more:hover,
.task-queue button:hover {
  border-color: rgba(109, 63, 209, 0.24);
  background: #fff;
}

.decision-item {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.decision-item strong,
.task-queue strong {
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

.decision-item span,
.task-queue span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.38;
}

.decision-item em {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--orange-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 840;
}

.project-history-panel button {
  min-width: 0;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(61, 45, 75, 0.10);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.project-history-panel button:hover {
  border-color: rgba(109, 63, 209, 0.24);
  background: #fff;
}

.project-history-panel strong {
  font-size: 14px;
  font-weight: 850;
  line-height: 1.22;
}

.project-history-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.34;
}

.project-history-panel button:last-of-type {
  border-style: dashed;
}

.decision-more {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  padding: 8px 10px;
}

.decision-more[hidden] {
  display: none;
}

.decision-more span {
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 820;
}

.task-queue button {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 3px 9px;
  align-items: center;
  padding: 10px;
}

.task-queue i {
  grid-row: 1 / 3;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--purple);
  box-shadow: 0 0 0 4px rgba(109, 63, 209, 0.09);
}

.task-queue button:nth-of-type(2) i {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.10);
}

.task-queue button:nth-of-type(3) i {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 122, 82, 0.10);
}

.page-intro {
  min-height: 0;
  display: grid;
  align-content: center;
  padding: 20px;
  overflow: hidden;
}

.page-intro h1 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.04;
}

.page-intro p:not(.eyebrow) {
  margin-bottom: 0;
}

.agents-market-head {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(248px, 0.34fr);
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-color: rgba(109, 63, 209, 0.12);
  background:
    radial-gradient(circle at 10% 0%, rgba(109, 63, 209, 0.10), transparent 32%),
    radial-gradient(circle at 96% 26%, rgba(255, 122, 26, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.66));
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(73, 46, 105, 0.10);
}

.agents-market-head::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(109, 63, 209, 0.30), rgba(255, 122, 26, 0.22), transparent);
  opacity: 0.75;
}

.agents-market-head h1 {
  max-width: none;
  margin: 0 0 7px;
  font-size: clamp(21px, 1.55vw, 24px);
  font-weight: 850;
  line-height: 1.12;
  white-space: nowrap;
}

.agents-market-head p:not(.eyebrow) {
  max-width: 86ch;
  margin: 0;
  color: var(--muted-strong);
  font-size: 12.7px;
  font-weight: 590;
  line-height: 1.44;
  text-wrap: pretty;
  white-space: nowrap;
}

.agents-market-stats {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.agents-market-stats span {
  --stat-accent: var(--purple);
  min-width: 0;
  position: relative;
  display: grid;
  gap: 3px;
  border-radius: var(--radius);
  padding: 11px 11px 10px;
  background:
    radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--stat-accent) 16%, transparent), transparent 36%),
    rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--stat-accent) 14%, transparent),
    0 10px 24px rgba(73, 46, 105, 0.06);
}

.agents-market-stats span:nth-child(2) {
  --stat-accent: var(--orange);
}

.agents-market-stats span:nth-child(3) {
  --stat-accent: #2f7a52;
}

.agents-market-stats span::before {
  content: "";
  width: 18px;
  height: 3px;
  display: block;
  border-radius: 999px;
  background: color-mix(in srgb, var(--stat-accent) 74%, #fff);
  opacity: 0.86;
}

.agents-market-stats strong {
  color: color-mix(in srgb, var(--stat-accent) 34%, var(--ink));
  font-size: 20px;
  font-weight: 860;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.agents-market-stats em {
  overflow: hidden;
  color: rgba(23, 19, 25, 0.60);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-category-rail {
  min-width: 0;
  display: flex;
  gap: 7px;
  overflow: hidden;
  padding: 7px;
  box-shadow: 0 12px 34px rgba(73, 46, 105, 0.08);
}

.agent-category-rail button {
  min-height: 30px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 11px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.agent-category-rail button:hover,
.agent-category-rail button.is-active {
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
}

.agent-ecosystem {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 10px;
  overflow: hidden;
}

.agent-board {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(292px, 1fr));
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 1px 3px 3px 1px;
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 63, 209, 0.30) transparent;
}

.agent-card {
  --agent-heat: 72%;
  --avatar-bg: #e8ddff;
  --avatar-accent: var(--purple);
  --avatar-shirt: #6d3fd1;
  --avatar-prop: var(--orange);
  position: relative;
  min-width: 0;
  min-height: 204px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 10px 12px;
  overflow: hidden;
  padding: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68)),
    var(--surface);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.agent-card[hidden] {
  display: none;
}

.agent-card:hover {
  transform: translateY(-1px);
}

.agent-card.is-active {
  border-color: rgba(109, 63, 209, 0.44);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 242, 255, 0.82)),
    var(--surface);
  box-shadow: 0 0 0 3px rgba(109, 63, 209, 0.10), 0 18px 44px rgba(73, 46, 105, 0.12);
}

.agent-card-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}

.agent-card-copy strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
}

.agent-tags {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.agent-tags em,
.agent-card-foot em {
  width: fit-content;
  min-height: 21px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  padding: 0 7px;
  background: rgba(23, 19, 25, 0.055);
  color: var(--muted-strong);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 760;
}

.agent-card-desc {
  color: var(--muted-strong);
  font-size: 12.5px;
  font-weight: 610;
  line-height: 1.42;
}

.agent-card-foot {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.agent-card-foot b {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.agent-heatbar {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 19, 25, 0.075);
}

.agent-heatbar i {
  width: var(--agent-heat);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--orange));
}

.employee-avatar {
  position: relative;
  grid-row: 1 / span 2;
  width: 58px;
  height: 58px;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.86), transparent 18%),
    linear-gradient(135deg, var(--avatar-bg), rgba(255, 255, 255, 0.66));
  box-shadow: inset 0 0 0 1px rgba(61, 45, 75, 0.08), 0 10px 22px rgba(73, 46, 105, 0.10);
}

.employee-face {
  position: absolute;
  left: 18px;
  top: 10px;
  width: 24px;
  height: 25px;
  border-radius: 45% 45% 48% 48%;
  background: #ffd8bf;
  box-shadow: inset 0 -7px 0 rgba(229, 143, 105, 0.13);
}

.employee-face::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #26212d;
  box-shadow: 9px 0 0 #26212d;
}

.employee-face::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 17px;
  width: 7px;
  height: 3px;
  border-bottom: 2px solid rgba(38, 33, 45, 0.72);
  border-radius: 999px;
}

.employee-body {
  position: absolute;
  left: 13px;
  bottom: 7px;
  width: 34px;
  height: 20px;
  border-radius: 13px 13px 8px 8px;
  background: var(--avatar-shirt);
}

.employee-body::before {
  content: "";
  position: absolute;
  left: 12px;
  top: -4px;
  width: 10px;
  height: 6px;
  border-radius: 0 0 999px 999px;
  background: #ffd8bf;
}

.employee-prop {
  position: absolute;
  right: 7px;
  bottom: 8px;
  width: 17px;
  height: 17px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--avatar-prop) 72%, transparent);
}

.employee-prop::before,
.employee-prop::after {
  content: "";
  position: absolute;
}

.avatar-main { --avatar-bg: #e9defd; --avatar-accent: #6d3fd1; --avatar-shirt: #6d3fd1; --avatar-prop: #ff7a1a; }
.avatar-file { --avatar-bg: #dcf4e6; --avatar-accent: #2f7a52; --avatar-shirt: #2f7a52; --avatar-prop: #6d3fd1; }
.avatar-browser { --avatar-bg: #ddeaff; --avatar-accent: #316fd6; --avatar-shirt: #316fd6; --avatar-prop: #ff7a1a; }
.avatar-app { --avatar-bg: #fff0dc; --avatar-accent: #ff7a1a; --avatar-shirt: #ff7a1a; --avatar-prop: #6d3fd1; }
.avatar-device { --avatar-bg: #e9e4ff; --avatar-accent: #4e2ba5; --avatar-shirt: #4e2ba5; --avatar-prop: #2f7a52; }
.avatar-search { --avatar-bg: #e3f5f8; --avatar-accent: #278398; --avatar-shirt: #278398; --avatar-prop: #6d3fd1; }
.avatar-content { --avatar-bg: #ffe2dc; --avatar-accent: #d85c4a; --avatar-shirt: #d85c4a; --avatar-prop: #ff7a1a; }
.avatar-data { --avatar-bg: #e0edff; --avatar-accent: #316fd6; --avatar-shirt: #234f96; --avatar-prop: #2f7a52; }
.avatar-pm { --avatar-bg: #ece6db; --avatar-accent: #7d6a52; --avatar-shirt: #5f5448; --avatar-prop: #6d3fd1; }
.avatar-privacy { --avatar-bg: #e8e8ee; --avatar-accent: #24202a; --avatar-shirt: #24202a; --avatar-prop: #2f7a52; }

.avatar-main .employee-prop::before,
.avatar-app .employee-prop::before {
  inset: 4px;
  border-radius: 999px;
  border: 2px solid var(--avatar-prop);
}

.avatar-file .employee-prop::before {
  left: 3px;
  top: 5px;
  width: 11px;
  height: 8px;
  border: 2px solid var(--avatar-prop);
  border-top-width: 4px;
  border-radius: 3px;
}

.avatar-browser .employee-prop {
  border-radius: 999px;
}

.avatar-browser .employee-prop::before,
.avatar-search .employee-prop::before {
  left: 4px;
  top: 4px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--avatar-prop);
  border-radius: 999px;
}

.avatar-browser .employee-prop::after,
.avatar-search .employee-prop::after {
  right: 3px;
  bottom: 3px;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: var(--avatar-prop);
  transform: rotate(45deg);
}

.avatar-device .employee-prop::before {
  inset: 4px;
  border-radius: 3px;
  background: var(--avatar-prop);
  box-shadow: -4px 0 0 -2px var(--avatar-prop), 4px 0 0 -2px var(--avatar-prop);
}

.avatar-content .employee-prop::before {
  left: 7px;
  top: 2px;
  width: 3px;
  height: 13px;
  border-radius: 999px;
  background: var(--avatar-prop);
  transform: rotate(34deg);
}

.avatar-data .employee-prop::before {
  left: 4px;
  bottom: 3px;
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--avatar-prop);
  box-shadow: 5px -4px 0 var(--avatar-prop), 10px -1px 0 var(--avatar-prop);
}

.avatar-pm .employee-prop::before {
  left: 4px;
  top: 4px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--avatar-prop);
  border-top-width: 4px;
  border-radius: 3px;
}

.avatar-privacy .employee-prop::before {
  left: 5px;
  top: 3px;
  width: 8px;
  height: 10px;
  border-radius: 6px 6px 4px 4px;
  background: var(--avatar-prop);
}

.avatar-privacy .employee-prop::after {
  left: 7px;
  top: 1px;
  width: 5px;
  height: 6px;
  border: 2px solid var(--avatar-prop);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.agent-command-panel {
  align-content: stretch;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 122, 26, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.74);
}

.agent-command-panel h2 {
  font-size: 19px;
}

.agent-command-panel dl {
  min-height: 0;
  gap: 9px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 63, 209, 0.26) transparent;
}

.agent-command-panel div {
  border-top-color: rgba(61, 45, 75, 0.10);
}

.task-card strong,
.tile-grid strong,
.library-feature-grid strong,
.insight-card strong,
.output-board strong {
  font-size: 16px;
  line-height: 1.2;
}

.task-card p,
.tile-grid span,
.library-feature-grid span,
.device-map span,
.output-board span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.task-card span {
  width: fit-content;
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.page-detail {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.page-detail p {
  margin: 0;
}

.page-detail dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.page-detail div {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.page-detail dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 830;
  text-transform: uppercase;
}

.page-detail dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.task-board,
.tile-grid,
.device-map,
.output-board {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.knowledge-board {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
}

.knowledge-hero {
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  overflow: hidden;
}

.folder-illustration {
  position: relative;
  width: 106px;
  height: 82px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%),
    #a7a7a7;
  box-shadow: inset 0 0 0 1px rgba(23, 19, 25, 0.05);
}

.folder-illustration::before {
  content: "";
  position: absolute;
  left: 10px;
  top: -13px;
  width: 46px;
  height: 18px;
  border-radius: 8px 8px 0 0;
  background: #9c9c9c;
}

.folder-illustration::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 6px;
  transform: translate(-50%, -35%);
}

.folder-illustration span {
  position: absolute;
  left: 50%;
  top: 33px;
  width: 2px;
  height: 13px;
  background: rgba(255, 255, 255, 0.84);
  transform: translateX(-50%);
}

.library-state {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 830;
}

.knowledge-hero h2 {
  max-width: 13em;
}

.knowledge-hero p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.55;
}

.file-type-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.file-type-row span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(23, 19, 25, 0.06);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 780;
}

.knowledge-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.library-feature-grid {
  min-height: 0;
  display: grid;
  gap: 10px;
}

.library-feature-grid button {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.source-list {
  grid-column: 1 / -1;
  min-height: 0;
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
  padding: 13px;
}

.source-list strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.source-list span {
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  padding-left: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files-page {
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  overflow: hidden;
}

.files-command-panel,
.file-cluster-board,
.file-health-card,
.recent-file-list,
.file-bottom-rail {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.files-command-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr);
  gap: 14px;
  padding: 15px;
  background:
    radial-gradient(circle at 8% 0%, rgba(109, 63, 209, 0.12), transparent 32%),
    radial-gradient(circle at 92% 16%, rgba(255, 122, 26, 0.13), transparent 30%),
    rgba(255, 255, 255, 0.76);
  overflow: hidden;
}

.files-command-copy {
  min-width: 0;
}

.files-command-copy h1 {
  max-width: 15em;
  margin: 0 0 8px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: 0;
  text-wrap: balance;
}

.files-command-copy p:not(.eyebrow) {
  max-width: 58ch;
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.52;
}

.file-search-box {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  border: 1px solid rgba(109, 63, 209, 0.18);
  border-radius: var(--radius);
  padding: 6px 7px 6px 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

.file-search-box span {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(109, 63, 209, 0.52);
  border-radius: 999px;
}

.file-search-box span::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(109, 63, 209, 0.52);
  transform: rotate(45deg);
}

.file-search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
}

.file-search-box input::placeholder {
  color: rgba(23, 19, 25, 0.44);
}

.file-search-box button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  background: var(--ink);
  color: #fffaf4;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.file-search-box button:hover {
  background: #251f2d;
  box-shadow: 0 10px 20px rgba(23, 19, 25, 0.14);
}

.file-source-actions {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.file-source-actions button,
.file-cluster-card,
.recent-file-list button,
.file-bottom-rail a {
  min-width: 0;
  border: 1px solid rgba(61, 45, 75, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.file-source-actions button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 3px 9px;
  align-items: center;
  min-height: 64px;
  padding: 9px;
  text-align: left;
}

.file-source-actions button:hover,
.file-cluster-card:hover,
.recent-file-list button:hover,
.file-bottom-rail a:hover {
  border-color: rgba(109, 63, 209, 0.30);
  background: #fff;
  box-shadow: 0 12px 28px rgba(73, 46, 105, 0.10);
}

.file-source-actions i {
  position: relative;
  grid-row: span 2;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(109, 63, 209, 0.16), rgba(255, 122, 26, 0.14));
}

.file-source-actions i::before,
.file-source-actions i::after {
  content: "";
  position: absolute;
}

.source-device::before {
  left: 7px;
  top: 7px;
  width: 18px;
  height: 13px;
  border: 2px solid var(--purple);
  border-radius: 4px;
}

.source-device::after {
  left: 10px;
  bottom: 6px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--purple);
}

.source-phone::before {
  left: 10px;
  top: 5px;
  width: 12px;
  height: 21px;
  border: 2px solid var(--green);
  border-radius: 5px;
}

.source-phone::after {
  left: 15px;
  bottom: 7px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
}

.source-cloud::before {
  left: 6px;
  top: 13px;
  width: 20px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
}

.source-cloud::after {
  left: 10px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: -6px 5px 0 -2px var(--blue);
}

.file-source-actions strong,
.recent-file-list strong,
.file-bottom-rail strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-source-actions span,
.recent-file-list span,
.file-cluster-card small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.32;
  font-weight: 720;
  text-overflow: ellipsis;
}

.file-source-actions span {
  white-space: nowrap;
}

.files-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 10px;
  overflow: hidden;
}

.file-cluster-board,
.file-side-panel {
  min-height: 0;
  overflow: hidden;
}

.file-cluster-board {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
}

.file-cluster-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.file-cluster-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  gap: 4px 10px;
  min-height: 118px;
  padding: 13px;
  text-align: left;
  overflow: hidden;
}

.file-cluster-card.is-featured {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 122, 26, 0.13), transparent 36%),
    rgba(255, 255, 255, 0.78);
}

.cluster-icon {
  position: relative;
  grid-row: 1 / span 3;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--purple), #8b5cf6);
  box-shadow: 0 10px 22px rgba(109, 63, 209, 0.18);
}

.cluster-icon::before,
.cluster-icon::after {
  content: "";
  position: absolute;
}

.cluster-contract {
  background: linear-gradient(145deg, #6d3fd1, #316fd6);
}

.cluster-contract::before {
  left: 12px;
  top: 8px;
  width: 17px;
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.88);
}

.cluster-contract::after {
  left: 15px;
  top: 15px;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: #6d3fd1;
  box-shadow: 0 6px 0 rgba(109, 63, 209, 0.72);
}

.cluster-research {
  background: linear-gradient(145deg, #2f7a52, #36a2bd);
}

.cluster-research::before {
  left: 10px;
  top: 10px;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
}

.cluster-research::after {
  right: 10px;
  bottom: 11px;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  transform: rotate(45deg);
}

.cluster-download {
  background: linear-gradient(145deg, #ff7a1a, #c8567a);
}

.cluster-download::before {
  left: 19px;
  top: 8px;
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.cluster-download::after {
  left: 14px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-right: 4px solid rgba(255, 255, 255, 0.9);
  border-bottom: 4px solid rgba(255, 255, 255, 0.9);
  transform: rotate(45deg);
}

.cluster-media {
  background: linear-gradient(145deg, #316fd6, #6d3fd1 65%, #ff7a1a);
}

.cluster-media::before {
  left: 9px;
  top: 11px;
  width: 23px;
  height: 16px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.88);
}

.cluster-media::after {
  left: 18px;
  top: 15px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid #316fd6;
}

.cluster-documents {
  background: linear-gradient(145deg, #6d3fd1, #316fd6);
}

.cluster-documents::before {
  left: 12px;
  top: 8px;
  width: 17px;
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
}

.cluster-documents::after {
  left: 15px;
  top: 15px;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: #6d3fd1;
  box-shadow:
    0 6px 0 rgba(109, 63, 209, 0.72),
    0 12px 0 rgba(109, 63, 209, 0.42);
}

.cluster-images {
  background: linear-gradient(145deg, #2f7a52, #36a2bd);
}

.cluster-images::before {
  left: 9px;
  top: 10px;
  width: 24px;
  height: 19px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
}

.cluster-images::after {
  left: 14px;
  top: 19px;
  width: 17px;
  height: 10px;
  border-radius: 0 0 5px 5px;
  background:
    linear-gradient(135deg, transparent 43%, #2f7a52 44% 56%, transparent 57%),
    linear-gradient(45deg, transparent 44%, #36a2bd 45% 58%, transparent 59%);
}

.cluster-videos {
  background: linear-gradient(145deg, #ff7a1a, #c8567a);
}

.cluster-videos::before {
  left: 9px;
  top: 12px;
  width: 23px;
  height: 17px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
}

.cluster-videos::after {
  left: 18px;
  top: 16px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid #ff7a1a;
}

.cluster-audio {
  background: linear-gradient(145deg, #316fd6, #6d3fd1 64%, #ff7a1a);
}

.cluster-audio::before {
  left: 12px;
  top: 9px;
  width: 18px;
  height: 23px;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.cluster-audio::after {
  left: 20px;
  top: 7px;
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 21px 0 -1px rgba(255, 255, 255, 0.9);
}

.file-cluster-card strong {
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.18;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-cluster-card em {
  width: fit-content;
  min-height: 21px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.file-cluster-card small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.file-side-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.file-health-card,
.recent-file-list {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.file-health-card p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.48;
}

.file-index-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 19, 25, 0.07);
}

.file-index-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--orange));
  box-shadow: 0 0 18px rgba(255, 122, 26, 0.22);
}

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

.file-privacy-tags span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(47, 122, 82, 0.10);
  color: #2a6b49;
  font-size: 11px;
  font-weight: 820;
}

.recent-file-list {
  min-height: 0;
  align-content: start;
  overflow: hidden;
}

.recent-file-list button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 2px 9px;
  min-height: 50px;
  padding: 8px;
  text-align: left;
}

.recent-file-list i {
  position: relative;
  grid-row: span 2;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(109, 63, 209, 0.12);
}

.recent-file-list i::before,
.recent-file-list i::after {
  content: "";
  position: absolute;
}

.file-kind-sheet::before {
  inset: 7px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 31%, rgba(255,255,255,0.72) 32% 36%, transparent 37% 64%, rgba(255,255,255,0.72) 65% 69%, transparent 70%),
    linear-gradient(180deg, transparent 31%, rgba(255,255,255,0.72) 32% 36%, transparent 37% 64%, rgba(255,255,255,0.72) 65% 69%, transparent 70%),
    var(--green);
}

.file-kind-pdf::before,
.file-kind-image::before {
  left: 9px;
  top: 6px;
  width: 13px;
  height: 18px;
  border-radius: 4px;
  background: var(--danger);
}

.file-kind-pdf::after {
  left: 11px;
  bottom: 8px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.file-kind-image::before {
  background: var(--blue);
}

.file-kind-image::after {
  left: 12px;
  bottom: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  border-left: 2px solid rgba(255, 255, 255, 0.82);
  border-bottom: 2px solid rgba(255, 255, 255, 0.82);
  transform: rotate(-45deg);
}

.file-bottom-rail {
  display: grid;
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.file-bottom-rail > span {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 830;
  white-space: nowrap;
}

.file-bottom-rail a {
  min-height: 34px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
}

.file-bottom-rail img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.task-card,
.tile-grid button,
.device-map article,
.output-board button {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  text-align: left;
}

.task-card {
  cursor: pointer;
}

.task-card.risk {
  background: rgba(255, 243, 230, 0.78);
}

.task-card.done {
  background: rgba(242, 250, 246, 0.80);
}

.task-card em {
  margin-top: auto;
  color: var(--purple);
  font-size: 30px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
}

.tile-grid button,
.output-board button {
  cursor: pointer;
}

.outputs-page {
  position: relative;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

.outputs-head,
.outputs-library-panel,
.output-package-card,
.output-trace-card,
.output-export-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.outputs-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(109, 63, 209, 0.11), transparent 30%),
    radial-gradient(circle at 96% 12%, rgba(255, 122, 26, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.74);
}

.outputs-head h1 {
  max-width: 31ch;
  margin: 0 0 6px;
  color: var(--ink);
  font-size: clamp(20px, 1.55vw, 24px);
  font-weight: 850;
  line-height: 1.16;
  text-wrap: balance;
}

.outputs-head p:not(.eyebrow) {
  max-width: 72ch;
  margin: 0;
  color: var(--muted-strong);
  font-size: 12.8px;
  font-weight: 620;
  line-height: 1.45;
}

.outputs-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.outputs-head-actions button,
.output-item-actions button,
.output-format-grid button {
  min-height: 34px;
  border: 1px solid rgba(61, 45, 75, 0.12);
  border-radius: var(--radius);
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 840;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.outputs-head-actions button:first-child,
.output-item.is-ready .output-item-actions button:first-child {
  border-color: transparent;
  background: var(--ink);
  color: #fffaf4;
}

.outputs-head-actions button:hover,
.output-item-actions button:hover,
.output-format-grid button:hover {
  background: var(--purple-dark);
  color: #fffaf4;
  box-shadow: 0 12px 24px rgba(109, 63, 209, 0.14);
  transform: translateY(-1px);
}

.outputs-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(286px, 0.58fr);
  gap: 10px;
  overflow: hidden;
}

.outputs-library-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(109, 63, 209, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.74);
}

.outputs-toolbar {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  align-items: end;
  gap: 12px;
}

.outputs-toolbar h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.2;
}

.outputs-search {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.outputs-search span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 820;
}

.outputs-search input {
  min-width: 0;
  height: 36px;
  border: 1px solid rgba(61, 45, 75, 0.12);
  border-radius: var(--radius);
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 720;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.outputs-search input:focus-visible {
  border-color: rgba(109, 63, 209, 0.36);
  box-shadow: 0 0 0 4px rgba(109, 63, 209, 0.12);
}

.output-filter-row {
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px;
  border: 1px solid rgba(109, 63, 209, 0.10);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
  scrollbar-width: none;
}

.output-filter-row::-webkit-scrollbar {
  display: none;
}

.output-filter-row button {
  min-height: 30px;
  flex: 1 1 0;
  border: 0;
  border-radius: var(--radius);
  padding: 0 10px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
  cursor: pointer;
}

.output-filter-row button:hover,
.output-filter-row button.is-active {
  background: #fff;
  color: var(--purple-dark);
  box-shadow: 0 8px 18px rgba(73, 46, 105, 0.08);
}

.output-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 63, 209, 0.24) transparent;
}

.output-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 76px 176px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(61, 45, 75, 0.09);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.64);
}

.output-type-badge {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 880;
  font-variant-numeric: tabular-nums;
}

.output-item.is-ready .output-type-badge {
  background: linear-gradient(145deg, rgba(109, 63, 209, 0.92), rgba(52, 112, 214, 0.92));
  color: #fff;
}

.output-item.is-review .output-type-badge {
  background: rgba(255, 122, 26, 0.13);
  color: #a24d08;
}

.output-item.is-live .output-type-badge {
  background: rgba(47, 122, 82, 0.12);
  color: var(--green);
}

.output-item-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.output-item-copy strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.output-status-badge {
  min-height: 22px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-self: center;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(47, 122, 82, 0.11);
  color: #2a6b49;
  font-size: 10.8px;
  font-style: normal;
  font-weight: 830;
  white-space: nowrap;
}

.output-item.is-review .output-status-badge {
  background: rgba(255, 122, 26, 0.12);
  color: #a24d08;
}

.output-item.is-live .output-status-badge {
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
}

.output-item p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.35;
}

.output-item small {
  display: block;
  overflow: hidden;
  margin-top: 0;
  color: rgba(78, 43, 165, 0.72);
  font-size: 11.5px;
  font-weight: 760;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.output-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-items: end;
  gap: 8px;
}

.output-item-actions button {
  min-width: 82px;
  min-height: 31px;
  padding: 0 10px;
  font-size: 11.6px;
  white-space: nowrap;
}

.output-action-toast {
  position: absolute;
  right: 16px;
  bottom: 16px;
  max-width: min(420px, calc(100% - 32px));
  border: 1px solid rgba(109, 63, 209, 0.16);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--purple-dark);
  box-shadow: 0 18px 40px rgba(73, 46, 105, 0.14);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.35;
  backdrop-filter: blur(16px);
  z-index: 4;
}

.output-action-toast[hidden] {
  display: none;
}

.outputs-side-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1.05fr) auto auto;
  gap: 10px;
  overflow: hidden;
}

.output-package-card,
.output-trace-card,
.output-export-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 0%, rgba(255, 122, 26, 0.11), transparent 34%),
    rgba(255, 255, 255, 0.74);
}

.output-package-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.2;
}

.output-package-card p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 12.3px;
  font-weight: 620;
  line-height: 1.45;
}

.output-package-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 19, 25, 0.08);
}

.output-package-progress i {
  width: var(--output-progress);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--orange));
}

.output-package-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.output-package-card dl div {
  min-width: 0;
  display: grid;
  gap: 4px;
  border-radius: var(--radius);
  padding: 9px;
  background: rgba(255, 255, 255, 0.60);
}

.output-package-card dt {
  color: var(--muted);
  font-size: 10.8px;
  font-weight: 820;
}

.output-package-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 820;
}

.output-trace-list {
  display: grid;
  gap: 7px;
}

.output-trace-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(255, 255, 255, 0.60);
}

.output-trace-list span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
  font-size: 10.5px;
  font-weight: 850;
}

.output-trace-list strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 830;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.output-trace-list em {
  color: var(--muted-strong);
  font-size: 10.8px;
  font-style: normal;
  font-weight: 760;
  white-space: nowrap;
}

.output-format-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.output-format-grid button {
  min-height: 32px;
  padding: 0 6px;
  font-size: 11.5px;
}

.account-page {
  min-height: 0;
  display: none;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

.account-page.is-active {
  display: grid;
}

.account-head,
.account-card,
.account-metrics article,
.account-quick-grid button,
.profile-card,
.plan-tile,
.entitlement-list article,
.usage-meter,
.redeem-card,
.balance-card,
.order-list article,
.invoice-card,
.security-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.account-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background:
    radial-gradient(circle at 8% 0%, rgba(109, 63, 209, 0.11), transparent 30%),
    radial-gradient(circle at 94% 18%, rgba(255, 122, 26, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.74);
}

.account-head h1 {
  margin: 0 0 6px;
  font-size: clamp(21px, 1.65vw, 25px);
  line-height: 1.12;
  font-weight: 850;
  white-space: nowrap;
}

.account-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted-strong);
  font-size: 12.8px;
  font-weight: 620;
  line-height: 1.42;
}

.account-badge {
  min-width: 0;
  display: grid;
  gap: 4px;
  border-radius: var(--radius);
  padding: 12px;
  background:
    radial-gradient(circle at 82% 0%, rgba(109, 63, 209, 0.18), transparent 36%),
    rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(109, 63, 209, 0.12);
}

.account-badge span,
.account-badge em,
.account-metrics span,
.account-metrics em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 780;
}

.account-badge strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  font-weight: 880;
}

.account-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.account-metrics article {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 13px;
  background:
    radial-gradient(circle at 90% 0%, rgba(109, 63, 209, 0.10), transparent 32%),
    rgba(255, 255, 255, 0.70);
}

.account-metrics article:nth-child(3) {
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 122, 26, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.70);
}

.account-metrics article:nth-child(4) {
  background:
    radial-gradient(circle at 90% 0%, rgba(47, 122, 82, 0.11), transparent 32%),
    rgba(255, 255, 255, 0.70);
}

.account-metrics strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  font-weight: 880;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.account-tabs {
  min-width: 0;
  display: flex;
  gap: 7px;
  overflow: hidden;
  border: 1px solid rgba(109, 63, 209, 0.11);
  border-radius: var(--radius);
  padding: 7px;
  background: rgba(255, 255, 255, 0.62);
}

.account-tabs button {
  min-width: 0;
  min-height: 34px;
  flex: 1 1 0;
  border: 0;
  border-radius: var(--radius);
  padding: 0 10px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.account-tabs button:hover,
.account-tabs button.is-active {
  background: #fff;
  color: var(--purple-dark);
  box-shadow: 0 8px 20px rgba(73, 46, 105, 0.08);
}

.account-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 10px;
  overflow: hidden;
}

.account-panel[hidden] {
  display: none !important;
}

.account-card {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 122, 26, 0.10), transparent 32%),
    rgba(255, 255, 255, 0.72);
}

.account-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.22;
}

.account-card p:not(.eyebrow) {
  max-width: 68ch;
  margin: 0;
  color: var(--muted-strong);
  font-size: 12.8px;
  line-height: 1.45;
}

.account-quick-grid,
.plan-grid,
.usage-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}

.account-quick-grid button,
.plan-tile,
.usage-meter,
.redeem-card,
.balance-card,
.invoice-card {
  min-width: 0;
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  text-align: left;
}

.account-quick-grid button {
  border-color: rgba(109, 63, 209, 0.12);
  background:
    radial-gradient(circle at 92% 0%, rgba(109, 63, 209, 0.10), transparent 34%),
    rgba(255, 255, 255, 0.70);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.account-quick-grid button:hover {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
}

.account-quick-grid strong,
.plan-tile strong,
.entitlement-list strong,
.redeem-card strong,
.balance-card strong,
.invoice-card strong,
.security-list strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
}

.account-quick-grid span,
.plan-tile p,
.entitlement-list span,
.usage-meter p,
.redeem-card p,
.balance-card p,
.invoice-card p,
.security-list span {
  margin: 0;
  color: var(--muted);
  font-size: 12.2px;
  font-weight: 650;
  line-height: 1.42;
}

.plan-grid,
.usage-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-tile {
  min-height: 150px;
  background:
    radial-gradient(circle at 90% 0%, rgba(109, 63, 209, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.70);
}

.plan-tile.is-current {
  border-color: rgba(109, 63, 209, 0.28);
  box-shadow: 0 18px 38px rgba(73, 46, 105, 0.12);
}

.plan-tile > span,
.entitlement-list em,
.security-list em,
.order-list em {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
  font-size: 10.8px;
  font-style: normal;
  font-weight: 830;
}

.plan-tile strong {
  font-size: 24px;
  font-weight: 880;
}

.entitlement-list,
.order-list,
.security-list {
  min-height: 0;
  display: grid;
  gap: 10px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 63, 209, 0.26) transparent;
}

.entitlement-list article,
.security-list article,
.order-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.72);
}

.order-list article {
  grid-template-columns: minmax(130px, 0.55fr) minmax(0, 1fr) auto auto;
}

.order-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.order-list b,
.balance-card b,
.usage-meter strong {
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
  font-weight: 880;
  font-variant-numeric: tabular-nums;
}

.usage-meter {
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 122, 26, 0.13), transparent 34%),
    rgba(255, 255, 255, 0.72);
}

.usage-meter > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.usage-meter div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 19, 25, 0.08);
}

.usage-meter i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--purple));
}

.redeem-card div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.redeem-card input {
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(61, 45, 75, 0.12);
  border-radius: var(--radius);
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.72);
}

.redeem-card button,
.invoice-card button {
  min-height: 34px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 11px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 840;
  cursor: pointer;
}

.invoice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.security-card > span {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 10px;
  background: rgba(47, 122, 82, 0.12);
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.profile-hero-card > span {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 10px;
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.account-page:has(.profile-panel.is-active) {
  grid-template-rows: auto minmax(0, 1fr);
}

.account-page:has(.profile-panel.is-active) .account-head {
  display: none;
}

.account-page:has(.profile-panel.is-active) .account-head h1 {
  margin-bottom: 4px;
  font-size: clamp(20px, 1.45vw, 23px);
}

.account-page:has(.profile-panel.is-active) .account-head p:not(.eyebrow) {
  font-size: 12.3px;
}

.account-page:has(.profile-panel.is-active) .account-badge {
  display: none;
}

.account-page:has(.profile-panel.is-active) .account-metrics {
  display: none;
}

.profile-panel {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  align-items: stretch;
  gap: 12px;
}

.profile-identity-panel,
.profile-settings-panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0% 0%, rgba(109, 63, 209, 0.10), transparent 32%),
    rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.profile-identity-panel {
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 18px;
  padding: 20px;
  overflow: auto;
}

.profile-settings-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 122, 26, 0.10), transparent 28%),
    rgba(255, 255, 255, 0.74);
}

.profile-section-head {
  min-width: 0;
}

.profile-section-head h2 {
  max-width: 24ch;
  margin: 0 0 7px;
  color: var(--ink);
  font-size: clamp(18px, 1.35vw, 21px);
  font-weight: 850;
  line-height: 1.18;
  text-wrap: balance;
}

.profile-section-head p:not(.eyebrow) {
  max-width: 56ch;
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.55;
}

.profile-section-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-section-head-row h2 {
  max-width: none;
  font-size: clamp(17px, 1.2vw, 19px);
}

.profile-section-head-row > span {
  min-height: 28px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 10px;
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 830;
  white-space: nowrap;
}

.profile-avatar-editor {
  min-width: 0;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(109, 63, 209, 0.12);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.profile-avatar-large {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(145deg, var(--purple), var(--blue));
  color: #fff;
  box-shadow: 0 18px 34px rgba(73, 46, 105, 0.18);
}

.profile-avatar-large span {
  font-size: 26px;
  font-weight: 880;
}

.profile-avatar-editor strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 860;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-avatar-editor > div:last-child > span {
  display: block;
  margin-top: 5px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

.profile-form-grid {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.profile-input-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.profile-input-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.profile-input-field input {
  min-width: 0;
  height: 38px;
  border: 1px solid rgba(61, 45, 75, 0.12);
  border-radius: var(--radius);
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 13px;
  font-weight: 740;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-input-field input:focus-visible {
  border-color: rgba(109, 63, 209, 0.36);
  box-shadow: 0 0 0 4px rgba(109, 63, 209, 0.12);
}

.profile-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-action-row button,
.profile-setting-action button {
  min-height: 34px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--ink);
  color: #fffaf4;
  font-size: 12px;
  font-weight: 840;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.profile-action-row button:nth-child(n+2),
.profile-setting-action button {
  border: 1px solid rgba(61, 45, 75, 0.12);
  background: rgba(255, 255, 255, 0.76);
  color: var(--purple-dark);
}

.profile-action-row button:hover,
.profile-setting-action button:hover {
  background: var(--purple-dark);
  color: #fffaf4;
  box-shadow: 0 12px 24px rgba(109, 63, 209, 0.14);
  transform: translateY(-1px);
}

.profile-setting-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 63, 209, 0.24) transparent;
}

.profile-setting-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(92px, auto);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(61, 45, 75, 0.09);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, 0.62);
}

.profile-setting-index {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 860;
  font-variant-numeric: tabular-nums;
}

.profile-setting-copy {
  min-width: 0;
}

.profile-setting-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-setting-copy p {
  margin: 4px 0 0;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.36;
}

.profile-setting-copy small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: rgba(78, 43, 165, 0.72);
  font-size: 11.5px;
  font-weight: 760;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-setting-action {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.profile-setting-action em {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(47, 122, 82, 0.11);
  color: #2a6b49;
  font-size: 10.8px;
  font-style: normal;
  font-weight: 840;
  white-space: nowrap;
}

.profile-setting-row.is-danger {
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 75, 58, 0.07), transparent 34%),
    rgba(255, 255, 255, 0.62);
}

.profile-setting-row.is-danger .profile-setting-index {
  background: rgba(200, 75, 58, 0.11);
  color: var(--danger);
}

.profile-setting-row.is-danger .profile-setting-action em,
.profile-setting-row.is-danger .profile-setting-action button {
  color: var(--danger);
}

.profile-settings-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 63, 209, 0.26) transparent;
}

.profile-card {
  min-width: 0;
  min-height: 194px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 14px;
  background:
    radial-gradient(circle at 92% 0%, rgba(109, 63, 209, 0.09), transparent 34%),
    rgba(255, 255, 255, 0.72);
}

.profile-identity-card {
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
}

.profile-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(145deg, var(--purple), var(--blue));
  color: #fff;
  box-shadow: 0 14px 28px rgba(73, 46, 105, 0.16);
}

.profile-avatar span {
  font-size: 18px;
  font-weight: 880;
}

.profile-card-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.profile-card em {
  width: fit-content;
  min-height: 21px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
  font-size: 10.8px;
  font-style: normal;
  font-weight: 850;
}

.danger-zone-card em {
  background: rgba(200, 75, 58, 0.12);
  color: var(--danger);
}

.profile-card strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 860;
}

.profile-card p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 640;
  line-height: 1.42;
}

.profile-card label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.profile-card label span,
.profile-field-row span {
  color: var(--muted);
  font-size: 10.8px;
  font-weight: 800;
}

.profile-card input {
  min-width: 0;
  height: 32px;
  border: 1px solid rgba(61, 45, 75, 0.12);
  border-radius: var(--radius);
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  outline: none;
}

.profile-card input:focus-visible {
  border-color: rgba(109, 63, 209, 0.36);
  outline: 3px solid rgba(109, 63, 209, 0.18);
  outline-offset: 1px;
}

.profile-field-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(54px, 0.42fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(61, 45, 75, 0.09);
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.profile-field-row b {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-field-row i {
  width: fit-content;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(47, 122, 82, 0.11);
  color: #2a6b49;
  font-size: 10px;
  font-style: normal;
  font-weight: 830;
  white-space: nowrap;
}

.profile-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

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

.profile-card-actions button {
  min-height: 31px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 10px;
  background: var(--ink);
  color: #fffaf4;
  font-size: 11.8px;
  font-weight: 840;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.profile-card-actions button:nth-child(n+2) {
  border: 1px solid rgba(61, 45, 75, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--purple-dark);
}

.danger-zone-card .profile-card-actions button:nth-child(2) {
  color: var(--danger);
}

.profile-card-actions button:hover {
  background: var(--purple-dark);
  color: #fffaf4;
  box-shadow: 0 12px 24px rgba(109, 63, 209, 0.16);
  transform: translateY(-1px);
}

.app-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.app-grid span {
  min-height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-strong);
  font-weight: 830;
}

.apps-page {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.apps-command-panel,
.apps-workspace {
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 10px;
}

.apps-command-panel {
  grid-template-columns: minmax(0, 1fr) 354px;
}

.apps-command-copy,
.apps-command-card,
.app-catalog-panel,
.app-category-card,
.app-safety-card,
.app-activity-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.apps-command-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 17px 18px;
  background:
    radial-gradient(circle at 4% 0%, rgba(109, 63, 209, 0.12), transparent 32%),
    radial-gradient(circle at 96% 20%, rgba(255, 122, 26, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.74);
}

.apps-command-copy h1 {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(21px, 1.8vw, 28px);
  line-height: 1.12;
  font-weight: 860;
  letter-spacing: 0;
  text-wrap: balance;
}

.apps-command-copy p:not(.eyebrow) {
  max-width: 76ch;
  margin: 0;
  color: var(--muted-strong);
  font-size: 12.8px;
  font-weight: 620;
  line-height: 1.48;
}

.apps-command-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  background:
    radial-gradient(circle at 92% 0%, rgba(109, 63, 209, 0.10), transparent 30%),
    rgba(255, 255, 255, 0.72);
}

.app-starter-list,
.app-category-grid,
.permission-flow,
.app-activity-list {
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 8px;
}

.app-starter-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-starter-list button,
.app-activity-list button {
  min-width: 0;
  border: 1px solid rgba(61, 45, 75, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.app-starter-list button {
  min-height: 52px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 8px;
}

.app-starter-list button:hover,
.app-activity-list button:hover {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(73, 46, 105, 0.10);
  transform: translateY(-1px);
}

.app-starter-list img,
.app-activity-list img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.app-starter-list img {
  width: 26px;
  height: 26px;
}

.app-starter-list span,
.app-activity-list span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.app-starter-list strong,
.app-activity-list strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12.2px;
  line-height: 1.18;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-starter-list em,
.app-activity-list em {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.8px;
  font-style: normal;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apps-workspace {
  grid-template-columns: minmax(0, 1fr) 314px;
}

.app-catalog-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
  padding: 13px;
  background:
    radial-gradient(circle at 100% 2%, rgba(255, 122, 26, 0.10), transparent 30%),
    rgba(255, 255, 255, 0.70);
}

.app-category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: auto;
  padding: 1px 2px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 63, 209, 0.26) transparent;
}

.app-category-card {
  position: relative;
  min-width: 0;
  min-height: 168px;
  display: grid;
  grid-template-rows: 38px 28px minmax(32px, 1fr) 30px;
  align-content: start;
  gap: 8px;
  overflow: hidden;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 250, 244, 0.64)),
    var(--surface);
  box-shadow: 0 16px 36px rgba(73, 46, 105, 0.09);
}

.app-category-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -42px auto;
  width: 124px;
  height: 124px;
  border-radius: 42px;
  background: rgba(109, 63, 209, 0.06);
  transform: rotate(18deg);
  pointer-events: none;
}

.app-category-card.is-connected {
  border-color: rgba(47, 122, 82, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 122, 82, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.76);
}

.app-category-head {
  position: relative;
  z-index: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.app-category-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.app-category-head strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.18;
  font-weight: 860;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-category-head em {
  width: fit-content;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
  font-size: 10.8px;
  font-style: normal;
  font-weight: 820;
}

.app-category-card.is-connected .app-category-head em {
  background: rgba(47, 122, 82, 0.12);
  color: #2a6b49;
}

.app-category-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(73, 46, 105, 0.14);
}

.app-category-icon::before,
.app-category-icon::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.88);
}

.app-category-work {
  background: linear-gradient(145deg, #6d3fd1, #316fd6);
}

.app-category-work::before {
  left: 10px;
  top: 9px;
  width: 18px;
  height: 21px;
  border-radius: 5px;
}

.app-category-work::after {
  left: 14px;
  top: 15px;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  box-shadow:
    0 6px 0 rgba(255, 255, 255, 0.78),
    0 12px 0 rgba(255, 255, 255, 0.54);
}

.app-category-meeting {
  background: linear-gradient(145deg, #ff7a1a, #c8567a);
}

.app-category-meeting::before {
  left: 9px;
  top: 12px;
  width: 23px;
  height: 17px;
  border-radius: 6px;
}

.app-category-meeting::after {
  right: 8px;
  top: 14px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  transform: rotate(25deg);
}

.app-category-dev {
  background: linear-gradient(145deg, #171319, #6d3fd1);
}

.app-category-dev::before {
  left: 12px;
  top: 13px;
  width: 9px;
  height: 9px;
  border-left: 3px solid rgba(255, 255, 255, 0.88);
  border-bottom: 3px solid rgba(255, 255, 255, 0.88);
  background: transparent;
  transform: rotate(45deg);
}

.app-category-dev::after {
  right: 10px;
  top: 13px;
  width: 9px;
  height: 9px;
  border-right: 3px solid rgba(255, 255, 255, 0.88);
  border-top: 3px solid rgba(255, 255, 255, 0.88);
  background: transparent;
  transform: rotate(45deg);
}

.app-category-sales {
  background: linear-gradient(145deg, #2f7a52, #36a2bd);
}

.app-category-sales::before {
  left: 10px;
  top: 12px;
  width: 22px;
  height: 18px;
  border-radius: 6px;
}

.app-category-sales::after {
  left: 14px;
  top: 17px;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  box-shadow: 0 6px 0 rgba(255, 255, 255, 0.66);
}

.app-logo-row {
  position: relative;
  z-index: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-logo-row img {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(61, 45, 75, 0.08);
  border-radius: 9px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.86);
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(73, 46, 105, 0.07);
}

.app-category-card p {
  position: relative;
  z-index: 1;
  grid-row: 3;
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 640;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.app-category-card button {
  position: relative;
  z-index: 1;
  grid-row: 4;
  width: fit-content;
  min-height: 30px;
  align-self: end;
  border: 0;
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--ink);
  color: #fffaf4;
  font-size: 12px;
  font-weight: 840;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.app-category-card button:hover {
  background: var(--purple-dark);
  box-shadow: 0 12px 24px rgba(109, 63, 209, 0.18);
  transform: translateY(-1px);
}

.apps-side-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.app-safety-card,
.app-activity-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.permission-flow {
  gap: 7px;
}

.permission-flow article {
  min-width: 0;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  border: 1px solid rgba(61, 45, 75, 0.09);
  border-radius: var(--radius);
  padding: 9px;
  background: rgba(255, 255, 255, 0.64);
}

.permission-flow article:nth-child(2) {
  background: rgba(255, 247, 238, 0.72);
}

.permission-flow article:nth-child(3) {
  background: rgba(255, 244, 241, 0.72);
}

.permission-flow b {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(47, 122, 82, 0.12);
  color: #2a6b49;
  font-size: 10.8px;
  font-weight: 850;
  white-space: nowrap;
}

.permission-flow article:nth-child(2) b {
  background: rgba(255, 122, 26, 0.14);
  color: var(--orange-dark);
}

.permission-flow article:nth-child(3) b {
  background: rgba(200, 75, 58, 0.12);
  color: var(--danger);
}

.permission-flow span {
  min-width: 0;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.42;
}

.app-activity-card {
  min-height: 0;
  overflow: hidden;
}

.app-activity-list {
  align-content: start;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 63, 209, 0.24) transparent;
}

.app-activity-list button {
  min-height: 56px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px;
}

.devices-page {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.devices-command-panel,
.devices-workspace {
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 10px;
}

.devices-command-panel {
  grid-template-columns: minmax(0, 1fr) 326px;
}

.devices-command-copy,
.primary-device-card,
.trusted-device-panel,
.privacy-route-panel,
.device-health-card,
.device-action-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.devices-command-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px 18px;
  background:
    radial-gradient(circle at 8% 0%, rgba(49, 111, 214, 0.12), transparent 30%),
    radial-gradient(circle at 94% 18%, rgba(255, 122, 26, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.74);
}

.devices-command-copy h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(21px, 1.75vw, 27px);
  line-height: 1.12;
  font-weight: 860;
  letter-spacing: 0;
  text-wrap: balance;
}

.devices-command-copy p:not(.eyebrow) {
  max-width: 78ch;
  margin: 0;
  color: var(--muted-strong);
  font-size: 12.8px;
  font-weight: 620;
  line-height: 1.48;
}

.device-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.device-trust-strip article {
  min-width: 0;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(61, 45, 75, 0.09);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.62);
}

.device-trust-strip strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  font-weight: 880;
  font-variant-numeric: tabular-nums;
}

.device-trust-strip span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-device-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  background:
    radial-gradient(circle at 90% 0%, rgba(109, 63, 209, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.72);
}

.primary-device-body {
  min-width: 0;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.device-visual {
  position: relative;
  display: block;
  width: 70px;
  height: 58px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.92), transparent 24%),
    linear-gradient(145deg, #6d3fd1, #316fd6);
  box-shadow: 0 16px 30px rgba(73, 46, 105, 0.18);
}

.device-visual::before,
.device-visual::after,
.device-visual i::before,
.device-visual i::after {
  content: "";
  position: absolute;
}

.device-visual-desktop::before {
  left: 14px;
  top: 13px;
  width: 42px;
  height: 27px;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 7px;
}

.device-visual-desktop::after {
  left: 29px;
  bottom: 11px;
  width: 13px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 5px 0 rgba(255, 255, 255, 0.72);
}

.primary-device-body strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.1;
  font-weight: 870;
}

.primary-device-body p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 12.2px;
  font-weight: 640;
  line-height: 1.42;
}

.device-load-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 19, 25, 0.08);
}

.device-load-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--orange));
  box-shadow: 0 0 18px rgba(49, 111, 214, 0.18);
}

.primary-device-actions,
.device-action-list {
  display: grid;
  gap: 8px;
}

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

.primary-device-actions button,
.device-action-list button {
  min-width: 0;
  min-height: 32px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 11px;
  background: var(--ink);
  color: #fffaf4;
  font-size: 12px;
  font-weight: 840;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.primary-device-actions button:nth-child(2),
.device-action-list button:nth-child(n+2) {
  border: 1px solid rgba(61, 45, 75, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--purple-dark);
}

.primary-device-actions button:hover,
.device-action-list button:hover {
  background: var(--purple-dark);
  color: #fffaf4;
  box-shadow: 0 12px 24px rgba(109, 63, 209, 0.16);
  transform: translateY(-1px);
}

.devices-workspace {
  grid-template-columns: 306px minmax(0, 1fr) 292px;
}

.trusted-device-panel,
.privacy-route-panel,
.device-health-card,
.device-action-card {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 13px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.trusted-device-list,
.privacy-route-stack,
.device-health-list,
.device-action-list {
  min-height: 0;
  display: grid;
  gap: 8px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 63, 209, 0.24) transparent;
}

.device-row {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(61, 45, 75, 0.10);
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(255, 255, 255, 0.64);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.device-row:hover {
  border-color: rgba(109, 63, 209, 0.24);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(73, 46, 105, 0.10);
  transform: translateY(-1px);
}

.device-row-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(109, 63, 209, 0.11);
}

.device-row-icon::before,
.device-row-icon::after {
  content: "";
  position: absolute;
}

.device-row-desktop {
  background: linear-gradient(145deg, #6d3fd1, #316fd6);
}

.device-row-desktop::before {
  left: 9px;
  top: 10px;
  width: 20px;
  height: 14px;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 5px;
}

.device-row-desktop::after {
  left: 15px;
  bottom: 8px;
  width: 9px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.65);
}

.device-row-phone {
  background: linear-gradient(145deg, #316fd6, #36a2bd);
}

.device-row-phone::before {
  left: 13px;
  top: 7px;
  width: 14px;
  height: 25px;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 7px;
}

.device-row-phone::after {
  left: 18px;
  bottom: 8px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.device-row-dock {
  background: linear-gradient(145deg, #ff7a1a, #c8567a);
}

.device-row-dock::before {
  left: 9px;
  top: 13px;
  width: 20px;
  height: 14px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.86);
}

.device-row-dock::after {
  left: 13px;
  top: 17px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #ff7a1a;
  box-shadow: 7px 0 0 #c8567a;
}

.device-row-gpu {
  background: linear-gradient(145deg, #171319, #6d3fd1);
}

.device-row-gpu::before {
  inset: 10px;
  border: 3px solid rgba(255, 255, 255, 0.84);
  border-radius: 6px;
}

.device-row-gpu::after {
  left: 16px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.84);
}

.device-row span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.device-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.18;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-row em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11.3px;
  font-style: normal;
  font-weight: 690;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-row b {
  width: fit-content;
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
  font-size: 10.6px;
  font-weight: 850;
  white-space: nowrap;
}

.device-row.is-online b {
  background: rgba(47, 122, 82, 0.12);
  color: #2a6b49;
}

.device-row.is-waiting b {
  background: rgba(255, 122, 26, 0.14);
  color: var(--orange-dark);
}

.privacy-route-panel {
  background:
    radial-gradient(circle at 96% 0%, rgba(49, 111, 214, 0.10), transparent 30%),
    rgba(255, 255, 255, 0.72);
}

.privacy-route-stack {
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.privacy-route-stack article {
  min-width: 0;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(61, 45, 75, 0.10);
  border-radius: var(--radius);
  padding: 11px;
  background: rgba(255, 255, 255, 0.64);
}

.privacy-route-stack article.is-local {
  border-color: rgba(47, 122, 82, 0.20);
  background:
    radial-gradient(circle at 96% 0%, rgba(47, 122, 82, 0.10), transparent 32%),
    rgba(255, 255, 255, 0.72);
}

.privacy-route-stack b {
  width: fit-content;
  min-height: 21px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
  font-size: 10.8px;
  font-weight: 850;
}

.privacy-route-stack .is-local b {
  background: rgba(47, 122, 82, 0.12);
  color: #2a6b49;
}

.privacy-route-stack strong {
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.24;
  font-weight: 860;
}

.privacy-route-stack span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 640;
  line-height: 1.42;
}

.devices-side-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
}

.device-health-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 8px;
  border: 1px solid rgba(61, 45, 75, 0.09);
  border-radius: var(--radius);
  padding: 9px;
  background: rgba(255, 255, 255, 0.64);
}

.device-health-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.device-health-list span {
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 11.5px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-health-list b {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.device-health-list i {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 19, 25, 0.08);
}

.device-health-list i::before {
  content: "";
  width: var(--health);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--orange));
}

.device-action-card {
  min-height: 138px;
}

.device-action-list button {
  width: 100%;
  text-align: left;
}

.insight-card {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 20px;
}

.insight-card ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.insight-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 122, 26, 0.18), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(109, 63, 209, 0.20), transparent 34%),
    rgba(23, 19, 25, 0.38);
  backdrop-filter: blur(18px);
  animation: modalLayerIn 0.18s ease both;
}

.modal-layer[hidden],
.assistant-modal[hidden] {
  display: none;
}

.assistant-modal {
  width: min(880px, calc(100vw - 28px));
  max-height: min(720px, calc(100dvh - 28px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 244, 0.92)),
    var(--surface-solid);
  box-shadow: 0 34px 90px rgba(31, 21, 47, 0.28);
  animation: modalPanelIn 0.22s ease both;
}

.upload-modal {
  width: min(760px, calc(100vw - 28px));
}

.file-modal,
.app-modal {
  width: min(820px, calc(100vw - 28px));
}

.modal-header,
.modal-footer {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.modal-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 3px 0 7px;
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.08;
  text-wrap: balance;
}

.modal-header span {
  display: block;
  max-width: 58ch;
  color: var(--muted);
  font-size: 13px;
  font-weight: 660;
  line-height: 1.5;
}

.modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(23, 19, 25, 0.64);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.modal-close:hover {
  border-color: rgba(109, 63, 209, 0.26);
  background: #fff;
  color: var(--ink);
}

.avatar-choice-grid,
.action-library-grid,
.action-policy-grid,
.upload-source-grid,
.file-modal-body,
.file-detail-body,
.app-connector-grid,
.brief-detail-grid {
  min-height: 0;
  overflow: auto;
  padding: 16px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 63, 209, 0.32) transparent;
}

.avatar-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.assistant-guide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.assistant-guide article {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  border: 1px solid rgba(109, 63, 209, 0.12);
  border-radius: var(--radius);
  padding: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 122, 26, 0.10), transparent 34%),
    rgba(255, 255, 255, 0.58);
}

.assistant-guide b {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(109, 63, 209, 0.12);
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 880;
  font-variant-numeric: tabular-nums;
}

.assistant-guide div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.assistant-guide strong {
  color: rgba(23, 19, 25, 0.84);
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1.25;
}

.assistant-guide span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.38;
}

.photo-guide article {
  border-color: rgba(255, 122, 26, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(109, 63, 209, 0.10), transparent 34%),
    rgba(255, 250, 244, 0.66);
}

.photo-guide b {
  background: rgba(255, 122, 26, 0.13);
  color: var(--orange-dark);
}

.photo-generation-panel {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 122, 26, 0.20);
  border-radius: var(--radius);
  padding: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 122, 26, 0.14), transparent 32%),
    linear-gradient(90deg, rgba(109, 63, 209, 0.08), rgba(255, 122, 26, 0.08)),
    rgba(255, 255, 255, 0.62);
}

.photo-generation-panel div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.photo-generation-panel p {
  margin: 0;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.photo-generation-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 860;
  line-height: 1.18;
}

.photo-generation-panel span {
  max-width: 68ch;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.42;
}

.photo-generation-panel .ghost-button {
  flex: 0 0 auto;
}

.avatar-choice,
.action-choice,
.action-policy-grid article,
.brief-detail-grid article,
.upload-source,
.file-picker-option,
.app-connector {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.avatar-choice:hover,
.action-choice:hover,
.upload-source:hover,
.file-picker-option:hover,
.phone-import-option:hover,
.file-detail-row:hover,
.app-connector:hover {
  border-color: rgba(109, 63, 209, 0.28);
  background: #fff;
  box-shadow: 0 14px 30px rgba(73, 46, 105, 0.10);
}

.avatar-choice.is-selected,
.action-choice.is-selected,
.upload-source.is-selected,
.phone-import-option.is-selected {
  border-color: rgba(109, 63, 209, 0.42);
  background: rgba(109, 63, 209, 0.10);
  box-shadow: inset 0 0 0 1px rgba(109, 63, 209, 0.10);
}

.ip-avatar-choice.is-selected {
  border-color: rgba(255, 122, 26, 0.44);
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 122, 26, 0.14), transparent 38%),
    rgba(255, 250, 244, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 26, 0.12), 0 16px 34px rgba(255, 122, 26, 0.10);
}

.avatar-choice {
  min-height: 138px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 7px;
  padding: 12px 10px;
  text-align: center;
}

.avatar-choice strong {
  font-size: 13px;
  font-weight: 860;
}

.avatar-choice em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.25;
}

.avatar-swatch {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 122, 26, 0.16), transparent 36%),
    rgba(109, 63, 209, 0.08);
  box-shadow: inset 0 0 0 1px rgba(109, 63, 209, 0.08), 0 16px 28px rgba(109, 63, 209, 0.12);
}

.avatar-illustration img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px rgba(61, 45, 75, 0.14));
  animation: avatarMiniIdle 3.4s ease-in-out infinite;
}

.ip-avatar-choice .avatar-swatch {
  background: #f1f0ee;
  box-shadow: inset 0 0 0 1px rgba(33, 27, 22, 0.08), 0 16px 28px rgba(33, 27, 22, 0.10);
}

.ip-avatar-choice .avatar-illustration img {
  width: 64px;
  height: 64px;
}

@keyframes avatarMiniIdle {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-4px) rotate(1deg); }
}

.modal-footer {
  grid-template-columns: auto auto;
  justify-content: end;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}

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

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

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

.action-policy-grid article,
.brief-detail-grid article {
  min-height: 130px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  cursor: default;
}

.action-policy-grid i,
.brief-detail-grid i,
.action-choice i {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--orange-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 840;
}

.action-policy-grid strong,
.brief-detail-grid strong {
  font-size: 14px;
  font-weight: 860;
  line-height: 1.25;
}

.action-policy-grid span,
.brief-detail-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 660;
  line-height: 1.45;
}

.action-choice {
  min-height: 128px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px;
}

.action-choice strong {
  font-size: 14px;
  font-weight: 860;
}

.action-choice span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 660;
  line-height: 1.42;
}

.action-choice.is-recommended {
  border-color: rgba(255, 122, 26, 0.46);
  background: rgba(255, 122, 26, 0.08);
}

.upload-source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.upload-source {
  min-height: 104px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 7px;
  padding: 12px;
}

.upload-source img,
.source-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.source-logo {
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(109, 63, 209, 0.18), rgba(255, 122, 26, 0.18)),
    #fff;
}

.source-local::before {
  content: "";
  width: 17px;
  height: 13px;
  border: 2px solid rgba(78, 43, 165, 0.76);
  border-top-width: 5px;
  border-radius: 4px;
}

.upload-source strong {
  font-size: 13px;
  font-weight: 860;
}

.upload-source span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.file-modal-body {
  display: grid;
  gap: 14px;
}

.file-source-brief {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.file-source-brief article {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid rgba(109, 63, 209, 0.12);
  border-radius: var(--radius);
  padding: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 122, 26, 0.10), transparent 44%),
    rgba(255, 255, 255, 0.66);
}

.file-source-brief strong {
  font-size: 13px;
  font-weight: 860;
}

.file-source-brief span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.42;
}

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

.file-picker-option {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 13px;
}

.file-picker-option i {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(109, 63, 209, 0.18), rgba(255, 122, 26, 0.16)),
    #fff;
  box-shadow: inset 0 0 0 1px rgba(109, 63, 209, 0.08);
}

.file-picker-option i::before {
  content: "";
  width: 17px;
  height: 13px;
  display: block;
  margin: 9px auto;
  border: 2px solid rgba(78, 43, 165, 0.78);
  border-top-width: 5px;
  border-radius: 4px;
}

.file-picker-option strong,
.app-connector strong {
  font-size: 13px;
  font-weight: 860;
}

.file-picker-option span,
.phone-import-option span,
.app-connector span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.32;
}

.phone-pair-panel {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(109, 63, 209, 0.14);
  border-radius: var(--radius);
  padding: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(49, 111, 214, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(248, 242, 255, 0.68));
}

.phone-qr {
  position: relative;
  width: 64px;
  height: 64px;
  border: 8px solid #fff;
  border-radius: 10px;
  background:
    linear-gradient(90deg, var(--purple) 8px, transparent 8px 16px, var(--purple) 16px 24px, transparent 24px),
    linear-gradient(var(--ink) 8px, transparent 8px 16px, var(--ink) 16px 24px, transparent 24px);
  background-color: rgba(109, 63, 209, 0.10);
  background-size: 24px 24px;
  box-shadow: 0 14px 28px rgba(73, 46, 105, 0.12);
}

.phone-qr::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 0 0 0 5px var(--orange);
}

.phone-pair-panel strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 870;
}

.phone-pair-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 680;
  line-height: 1.45;
}

.phone-pair-panel button,
.file-detail-search button {
  min-height: 36px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 13px;
  background: var(--ink);
  color: #fffaf4;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.phone-pair-panel button:hover,
.file-detail-search button:hover {
  background: #251f2d;
  box-shadow: 0 12px 24px rgba(23, 19, 25, 0.14);
}

.phone-import-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.phone-import-option {
  min-width: 0;
  min-height: 128px;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid rgba(61, 45, 75, 0.12);
  border-radius: var(--radius);
  padding: 13px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.phone-import-option i {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(109, 63, 209, 0.16), rgba(255, 122, 26, 0.14)),
    #fff;
  box-shadow: inset 0 0 0 1px rgba(109, 63, 209, 0.08);
}

.phone-import-option i::before,
.phone-import-option i::after {
  content: "";
  position: absolute;
}

.phone-import-photos::before {
  left: 7px;
  top: 9px;
  width: 18px;
  height: 14px;
  border-radius: 4px;
  background: var(--green);
}

.phone-import-photos::after {
  left: 12px;
  top: 14px;
  width: 11px;
  height: 8px;
  background:
    linear-gradient(135deg, transparent 45%, #fff 46% 58%, transparent 59%);
}

.phone-import-videos::before {
  left: 7px;
  top: 10px;
  width: 19px;
  height: 13px;
  border-radius: 4px;
  background: var(--orange);
}

.phone-import-videos::after {
  left: 15px;
  top: 13px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid #fff;
}

.phone-import-audio::before {
  left: 13px;
  top: 7px;
  width: 7px;
  height: 17px;
  border-radius: 999px;
  background: var(--blue);
}

.phone-import-audio::after {
  left: 9px;
  top: 15px;
  width: 15px;
  height: 11px;
  border: 2px solid var(--blue);
  border-top: 0;
  border-radius: 0 0 999px 999px;
}

.phone-import-files::before {
  left: 9px;
  top: 7px;
  width: 15px;
  height: 20px;
  border-radius: 4px;
  background: var(--purple);
}

.phone-import-files::after {
  right: 8px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 0 4px 0 4px;
  background: rgba(255, 255, 255, 0.8);
}

.phone-import-option strong {
  font-size: 13px;
  font-weight: 860;
}

.file-detail-body {
  display: grid;
  gap: 12px;
}

.file-detail-search {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(109, 63, 209, 0.16);
  border-radius: var(--radius);
  padding: 7px;
  background: rgba(255, 255, 255, 0.78);
}

.file-detail-search input {
  min-width: 0;
  height: 38px;
  border: 0;
  outline: 0;
  border-radius: 7px;
  padding: 0 11px;
  background: rgba(248, 242, 255, 0.62);
  color: var(--ink);
  font-size: 13px;
  font-weight: 740;
}

.file-detail-search input::placeholder {
  color: rgba(23, 19, 25, 0.42);
}

.file-detail-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.file-detail-stats span {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(109, 63, 209, 0.10);
  color: var(--purple-dark);
  font-weight: 850;
  white-space: nowrap;
}

.file-detail-stats em {
  min-width: 0;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-detail-list {
  min-height: 0;
  display: grid;
  gap: 8px;
}

.file-detail-row,
.file-detail-empty {
  min-width: 0;
  border: 1px solid rgba(61, 45, 75, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
}

.file-detail-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 9px 11px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.file-detail-row i {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--orange-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 860;
  white-space: nowrap;
}

.file-detail-row span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.file-detail-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 860;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-detail-row em {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-detail-row b {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.file-detail-empty {
  display: grid;
  gap: 5px;
  padding: 16px;
  text-align: center;
}

.file-detail-empty strong {
  font-size: 14px;
  font-weight: 860;
}

.file-detail-empty span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.source-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.source-divider::before,
.source-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

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

.app-connector {
  min-height: 128px;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 7px;
  padding: 13px;
}

.app-connector img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.app-connector em {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--orange-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.modal-note {
  min-width: 0;
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.link-import-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 0 18px 18px;
}

.link-import-row input {
  min-width: 0;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-size: 13px;
  outline: none;
}

.link-import-row input:focus-visible {
  border-color: rgba(109, 63, 209, 0.36);
  outline: 3px solid rgba(109, 63, 209, 0.20);
  outline-offset: 1px;
}

.link-import-row button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 14px;
  background: var(--ink);
  color: #fffaf4;
  font-size: 13px;
  font-weight: 840;
  cursor: pointer;
}

@keyframes modalLayerIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPanelIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1240px) {
  .task-chart-wrap {
    grid-template-columns: 1fr;
  }

  .task-progress-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .task-chart {
    width: 92px;
    height: 92px;
  }

  .task-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .chat-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .live-rail {
    display: none;
  }

  .agents-page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .industry-pack-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .agent-side-note {
    display: none;
  }

  .agent-ecosystem {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-detail {
    display: none;
  }

  .files-command-panel,
  .files-workspace,
  .apps-command-panel,
  .apps-workspace,
  .devices-command-panel,
  .devices-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .file-source-actions {
    grid-column: auto;
  }

  .file-side-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
  }

  .apps-side-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
  }

  .devices-side-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
  }

  .outputs-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .outputs-side-panel {
    display: none;
  }

  .account-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-badge {
    display: none;
  }

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

  .account-quick-grid,
  .profile-settings-grid,
  .plan-grid,
  .usage-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-panel {
    grid-template-columns: 1fr;
    align-content: start;
    overflow: auto;
  }

  .profile-identity-panel,
  .profile-settings-panel {
    overflow: visible;
  }

  .profile-setting-list {
    overflow: visible;
  }
}

@media (max-width: 860px) {
  .app-shell {
    padding: 12px;
    gap: 9px;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .app-sidebar {
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 9px;
    border-radius: 14px;
    padding: 8px;
  }

  .sidebar-top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }

  .brand {
    min-height: 38px;
  }

  .brand span:last-child {
    display: none;
  }

  .sidebar-search {
    display: none;
  }

  .sidebar-bottom {
    display: grid;
    justify-items: center;
    gap: 8px;
  }

  .sidebar-bottom .insight-tool,
  .sidebar-bottom .sidebar-actions {
    display: none;
  }

  .sidebar-account {
    width: 44px;
    min-height: 40px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
    border-top-color: transparent;
    padding: 0;
    overflow: hidden;
  }

  .sidebar-account span {
    width: 28px;
    height: 28px;
  }

  .sidebar-account strong {
    display: none;
  }

  .new-chat-button {
    width: 44px;
    min-height: 40px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
    text-align: center;
  }

  .new-chat-button::before {
    margin-right: 0;
    font-size: 20px;
  }

  .page-tabs {
    width: 100%;
    grid-auto-flow: row;
    overflow: hidden auto;
  }

  .nav-section-title {
    display: none;
  }

  .page-tabs button {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 34px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .page-tabs button::before {
    display: block;
  }

  .page-tabs button::after {
    left: 50%;
  }

  .app-main {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .header-row {
    grid-template-columns: 1fr;
  }

  .header-actions {
    display: none;
  }

  .chat-panel {
    padding: 13px;
  }

  h1 {
    font-size: clamp(25px, 6.8vw, 34px);
  }

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

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

  .safety-note {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .composer-actions .send-button {
    grid-column: 1 / -1;
  }

  .mobile-companion-card {
    position: relative;
    z-index: 1;
    min-width: 0;
    align-self: start;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(109, 63, 209, 0.14);
    border-radius: var(--radius);
    padding: 10px;
    background: rgba(255, 255, 255, 0.74);
  }

  .mini-companion {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(109, 63, 209, 0.10);
    box-shadow: 0 10px 20px rgba(109, 63, 209, 0.16);
  }

  .mini-companion img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  .mobile-companion-card strong {
    display: block;
    font-size: 13px;
    font-weight: 850;
  }

  .mobile-companion-card p {
    margin: 2px 0 0;
    overflow: hidden;
    color: rgba(78, 43, 165, 0.74);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-companion-actions {
    display: inline-grid;
    grid-template-columns: repeat(3, 36px);
    gap: 5px;
  }

  .mobile-companion-card button {
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 4px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--purple-dark);
    font-size: 10.5px;
    font-weight: 840;
    cursor: pointer;
  }

  .agents-page,
  .split-page,
  .tasks-page,
  .files-page,
  .apps-page,
  .devices-page,
  .outputs-page,
  .account-page {
    grid-template-columns: 1fr;
  }

  .outputs-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
    padding: 12px 13px;
  }

  .outputs-head h1 {
    max-width: none;
    font-size: clamp(20px, 4.6vw, 24px);
  }

  .outputs-head p:not(.eyebrow) {
    display: none;
  }

  .outputs-head-actions {
    justify-content: stretch;
  }

  .outputs-head-actions button {
    flex: 1 1 0;
  }

  .outputs-library-panel {
    gap: 8px;
    padding: 12px;
  }

  .outputs-toolbar {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }

  .output-filter-row button {
    flex: 0 0 auto;
  }

  .output-item {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 8px 10px;
    padding: 10px;
  }

  .output-type-badge {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    font-size: 11px;
  }

  .output-status-badge {
    grid-column: 2;
    justify-self: start;
  }

  .output-item-actions {
    grid-column: 2;
    display: flex;
    justify-content: flex-start;
    justify-items: start;
    gap: 7px;
  }

  .output-item:nth-of-type(n+4) {
    display: none;
  }

  .files-command-panel {
    gap: 10px;
    padding: 12px;
  }

  .apps-command-panel {
    gap: 10px;
  }

  .devices-command-panel {
    gap: 10px;
  }

  .apps-command-copy,
  .apps-command-card,
  .app-catalog-panel,
  .app-safety-card,
  .app-activity-card,
  .devices-command-copy,
  .primary-device-card,
  .trusted-device-panel,
  .privacy-route-panel,
  .device-health-card,
  .device-action-card {
    padding: 12px;
  }

  .apps-command-copy h1 {
    max-width: none;
    font-size: clamp(20px, 4.6vw, 24px);
  }

  .apps-command-copy p:not(.eyebrow) {
    display: none;
  }

  .app-starter-list,
  .app-category-grid,
  .apps-side-panel {
    grid-template-columns: 1fr;
  }

  .app-category-card {
    min-height: 172px;
  }

  .permission-flow article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .app-activity-card {
    display: none;
  }

  .devices-command-copy h1 {
    max-width: none;
    font-size: clamp(20px, 4.6vw, 24px);
  }

  .devices-command-copy p:not(.eyebrow) {
    display: none;
  }

  .device-trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .devices-side-panel {
    grid-template-columns: 1fr;
  }

  .primary-device-body {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .device-visual {
    width: 58px;
    height: 50px;
  }

  .trusted-device-list {
    gap: 7px;
  }

  .device-row {
    min-height: 58px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .device-row-icon {
    width: 34px;
    height: 34px;
  }

  .privacy-route-stack {
    grid-template-rows: none;
  }

  .devices-side-panel {
    gap: 10px;
  }

  .files-command-copy h1 {
    max-width: none;
    font-size: clamp(20px, 4.6vw, 24px);
  }

  .files-command-copy p:not(.eyebrow) {
    display: none;
  }

  .file-source-actions,
  .file-cluster-grid,
  .file-side-panel {
    grid-template-columns: 1fr;
  }

  .file-source-actions button {
    min-height: 48px;
  }

  .file-cluster-card {
    min-height: 98px;
  }

  .file-bottom-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .file-bottom-rail > span {
    display: none;
  }

  .account-head h1 {
    white-space: normal;
  }

  .account-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .account-tabs::-webkit-scrollbar {
    display: none;
  }

  .account-tabs button {
    min-width: max-content;
    flex: 0 0 auto;
  }

  .account-card,
  .invoice-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-metrics,
  .account-quick-grid,
  .profile-settings-grid,
  .plan-grid,
  .usage-layout {
    grid-template-columns: 1fr;
  }

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

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

  .profile-panel {
    gap: 10px;
  }

  .profile-identity-panel,
  .profile-settings-panel {
    padding: 14px;
  }

  .profile-section-head-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .profile-section-head h2 {
    max-width: none;
    font-size: 18px;
  }

  .profile-avatar-editor {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 11px;
    padding: 11px;
  }

  .profile-avatar-large {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .profile-avatar-large span {
    font-size: 22px;
  }

  .profile-setting-row {
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    gap: 9px 10px;
    padding: 11px;
  }

  .profile-setting-index {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .profile-setting-action {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    justify-items: start;
    gap: 7px;
  }

  .entitlement-list article,
  .security-list article,
  .order-list article {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .agent-section-tabs {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 6px;
  }

  .agent-section-tabs button {
    min-height: 38px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .agent-section-tabs span {
    font-size: 10.5px;
    text-align: right;
  }

  .industry-pack-grid,
  .squad-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .industry-pack-card,
  .squad-card,
  .workflow-card {
    min-height: 310px;
    padding: 12px;
  }

  .workflow-card {
    min-height: 238px;
  }

  .squad-toolbar {
    align-items: start;
    flex-direction: column;
    padding: 12px 13px;
  }

  .squad-filter-pills {
    justify-content: flex-start;
  }

  .tasks-page {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
  }

  .page-intro {
    display: none;
  }

  .task-overview {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 8px 13px 4px;
  }

  .task-overview-copy h1 {
    font-size: clamp(17px, 4.4vw, 20px);
  }

  .task-overview-copy p:not(.eyebrow) {
    display: none;
  }

  .project-switch button {
    min-height: 32px;
    padding: 0 7px;
    font-size: 11px;
  }

  .task-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .task-metrics button {
    min-height: 58px;
    align-content: center;
    padding: 8px;
  }

  .task-metrics strong {
    font-size: 21px;
  }

  .task-metrics span {
    font-size: 10.5px;
  }

  .task-dashboard {
    grid-template-columns: 1fr;
    grid-template-rows: auto 168px;
    gap: 10px;
  }

  .office-panel {
    padding: 10px;
  }

  .office-header strong {
    display: none;
  }

  .office-scene {
    aspect-ratio: auto;
    height: 68px;
  }

  .office-zone.pantry {
    width: 24%;
  }

  .office-desk {
    width: 92px;
    height: 72px;
    transform: scale(0.72);
    transform-origin: center;
  }

  .desk-main { left: 34%; top: 4%; }
  .desk-browser { left: 62%; top: 5%; }
  .desk-file { left: 34%; top: 42%; }
  .desk-app { left: 62%; top: 42%; }
  .desk-idle { display: none; }

  .office-bubble {
    right: 5%;
    top: 42%;
    max-width: 130px;
    padding: 6px 8px;
    font-size: 10.5px;
  }

  .active-task-panel {
    gap: 8px;
    padding: 12px;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .task-workspace-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .task-project-strip-head {
    align-items: flex-start;
  }

  .task-focus-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .task-focus-copy h2 {
    font-size: 20px;
  }

  .task-focus-copy p {
    display: none;
  }

  .task-chart-wrap {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }

  .task-progress-card {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }

  .task-chart {
    width: 74px;
    height: 74px;
  }

  .task-chart strong {
    font-size: 21px;
  }

  .task-chart span {
    font-size: 10px;
  }

  .task-progress-copy em {
    font-size: 18px;
  }

  .task-step-list {
    gap: 6px;
  }

  .task-step-toggle {
    grid-template-columns: 56px minmax(0, 1fr) 18px;
    padding: 7px 8px;
  }

  .task-step-list span {
    font-size: 11.5px;
  }

  .task-step-detail {
    padding: 9px 9px 10px 72px;
  }

  .task-step-detail p {
    font-size: 12px;
  }

  .task-step-detail dl {
    grid-template-columns: 1fr;
  }

  .task-side-panel {
    grid-template-columns: 1fr;
    grid-template-rows: 82px 76px;
    gap: 10px;
  }

  .task-queue {
    display: none;
  }

  .decision-panel,
  .project-history-panel,
  .task-queue {
    gap: 6px;
    padding: 9px;
  }

  .decision-item {
    gap: 3px;
    padding: 8px 9px;
  }

  .decision-item span,
  .decision-item em,
  .decision-more,
  .project-history-panel button span {
    display: none;
  }

  .decision-item strong,
  .project-history-panel strong {
    font-size: 13px;
  }

  .project-history-panel button {
    padding: 8px 9px;
  }

  .decision-item:nth-of-type(n+2),
  .task-queue button:nth-of-type(n+3) {
    display: none;
  }

  .project-history-panel button:nth-of-type(n+2) {
    display: none;
  }

  .brief-detail-grid {
    grid-template-columns: 1fr;
  }

  .agent-board,
  .tile-grid,
  .knowledge-board,
  .library-feature-grid,
  .file-cluster-grid,
  .device-map,
  .output-board,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .agents-market-head {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 13px;
  }

  .agents-market-head h1 {
    max-width: none;
    font-size: clamp(18px, 4.5vw, 23px);
    white-space: normal;
  }

  .agents-market-head p:not(.eyebrow) {
    display: none;
    white-space: normal;
  }

  .agents-market-stats {
    min-width: 0;
  }

  .agent-category-rail {
    overflow-x: auto;
    padding: 6px;
  }

  .agent-category-rail button {
    min-height: 28px;
    padding: 0 9px;
    font-size: 11px;
  }

  .agent-card {
    min-height: 188px;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 11px;
  }

  .employee-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .agent-card-copy strong {
    font-size: 14px;
  }

  .agent-tags em {
    min-height: 19px;
    padding: 0 6px;
    font-size: 10px;
  }

  .agent-card-desc {
    font-size: 12px;
  }

  .knowledge-board {
    grid-template-rows: minmax(0, 1fr);
  }

  .source-list {
    display: none;
  }

  .file-bottom-rail,
  .recent-file-list button:nth-of-type(n+3) {
    display: none;
  }

  .tile-grid button:nth-child(n+3),
  .library-feature-grid button:nth-child(n+3),
  .app-grid span:nth-child(n+7),
  .device-map article:nth-child(n+3),
  .output-board button:nth-child(n+3) {
    display: none;
  }

  .modal-layer {
    padding: 10px;
    align-items: end;
  }

  .assistant-modal,
  .upload-modal,
  .file-modal,
  .app-modal {
    width: 100%;
    max-height: min(82dvh, 720px);
    border-radius: 16px 16px 10px 10px;
  }

  .modal-header {
    padding: 15px;
  }

  .modal-header h2 {
    font-size: 22px;
  }

  .avatar-choice-grid,
  .action-library-grid,
  .upload-source-grid,
  .file-modal-body,
  .file-detail-body,
  .app-connector-grid {
    padding: 14px 15px;
  }

  .avatar-choice-grid,
  .action-policy-grid,
  .upload-source-grid,
  .phone-import-grid,
  .file-picker-grid,
  .app-connector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .file-source-brief,
  .phone-pair-panel {
    grid-template-columns: 1fr;
  }

  .phone-pair-panel {
    justify-items: start;
  }

  .file-detail-search {
    grid-template-columns: 1fr;
  }

  .file-detail-search button {
    width: 100%;
  }

  .file-detail-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .file-detail-row b {
    grid-column: 2;
  }

  .action-library-grid {
    grid-template-columns: 1fr;
  }

  .action-policy-grid {
    grid-template-columns: 1fr;
  }

  .assistant-guide {
    grid-template-columns: 1fr;
  }

  .photo-generation-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .avatar-choice {
    min-height: 124px;
  }

  .action-choice {
    min-height: 102px;
  }

  .file-picker-option,
  .app-connector {
    min-height: 110px;
  }

  .modal-footer,
  .link-import-row {
    grid-template-columns: 1fr;
    padding: 14px 15px;
  }

  .companion-name-editor {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 760px) and (min-width: 861px) {
  .chat-heading p:not(.eyebrow) {
    display: none;
  }

  h1 {
    font-size: clamp(26px, 2.6vw, 34px);
  }

  .composer-suggestions button {
    min-height: 28px;
  }

  .companion-stage {
    min-height: 142px;
  }
}
