:root {
  --ink: #111827;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #dfe5ee;
  --line-strong: #cbd5e1;
  --canvas: #f6f8fb;
  --panel: #ffffff;
  --blue: #155eef;
  --blue-dark: #0b47c5;
  --blue-soft: #eaf2ff;
  --green: #079455;
  --green-soft: #e8f8f0;
  --amber: #b54708;
  --amber-soft: #fff4e5;
  --red: #d92d20;
  --red-soft: #fff0ee;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--canvas); }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

button, .quick-actions a {
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
button:hover { background: var(--blue-dark); }
button:disabled { cursor: not-allowed; opacity: .5; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(21, 94, 239, .25);
  outline-offset: 2px;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #102a60, #0756c8);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  font: 800 24px/1 Georgia, serif;
}

/* Authentication */
.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 20px;
  background: radial-gradient(circle at 50% -10%, #fff 0, #f6f8fb 44rem);
}
.sign-in {
  width: min(100%, 460px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(15, 23, 42, .08);
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.auth-brand strong { display: block; font-size: 20px; letter-spacing: -.02em; }
.auth-brand span span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.section-kicker { margin: 0 0 6px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sign-in h1 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.auth-copy { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.sign-in form { display: grid; gap: 15px; margin-top: 24px; }
.sign-in label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.sign-in input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}
.sign-in form button { padding: 12px 18px; }
.secondary-button { width: 100%; margin-top: 12px; padding: 11px 18px; border: 1px solid var(--line-strong); color: #344054; background: #fff; }
.secondary-button:hover { color: var(--blue); background: var(--blue-soft); border-color: #b9d0ff; }
.danger-button { background: #b42318; }
.danger-button:hover { background: #912018; }
.retirement-panel { margin-top: 18px; padding: 22px; display: grid; gap: 14px; }
.retirement-panel p, .retirement-result { color: var(--muted); }
.retirement-result ul { margin: 8px 0 0; padding-left: 20px; }
.form-help { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.message { margin: 14px 0 0; color: var(--red); font-size: 13px; }

/* Product shell */
.developer-shell { display: grid; min-height: 100vh; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #fff;
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 96px; padding: 20px 23px; text-decoration: none; }
.brand strong { display: block; font-size: 18px; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
#primaryNavigation { flex: 1; overflow-y: auto; padding: 5px 12px 16px; }
.nav-group { padding: 10px 0; border-bottom: 1px solid #edf0f5; }
.nav-group:last-child { border: 0; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  margin: 2px 0;
  padding: 9px 12px;
  border-radius: 8px;
  color: #263143;
  text-decoration: none;
  font-size: 14px;
  font-weight: 590;
}
.nav-link svg { width: 19px; height: 19px; color: #344054; }
.nav-link:hover { background: #f5f8fc; }
.nav-link[aria-current="page"] { color: #064bc8; background: var(--blue-soft); font-weight: 750; }
.nav-link[aria-current="page"]::before { position: absolute; top: 7px; bottom: 7px; left: -12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); content: ""; }
.nav-link[aria-current="page"] svg { color: var(--blue); }
.account-control { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 72px; padding: 13px 17px; border-top: 1px solid var(--line); }
.account-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: #0c52b8; font-size: 12px; font-weight: 800; }
.account-name { overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.icon-button, .mobile-menu { display: grid; width: 36px; height: 36px; padding: 0; place-items: center; color: #475467; background: transparent; }
.icon-button:hover, .mobile-menu:hover { color: var(--blue); background: var(--blue-soft); }
.icon-button svg { width: 17px; height: 17px; }

.workspace { min-width: 0; }
.project-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 251, .94);
  backdrop-filter: blur(10px);
}
.header-title { display: flex; align-items: center; gap: 12px; }
.header-title h1 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.header-title p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.mobile-menu { display: none; }
.project-selector select {
  min-width: 270px;
  padding: 11px 36px 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 650;
}
.workspace-content { width: min(100%, 1540px); margin: 0 auto; padding: 24px 28px 40px; }
.page { min-width: 0; }

/* Shared content */
.panel { border: 1px solid var(--line); border-radius: 11px; background: var(--panel); box-shadow: 0 1px 2px rgba(15, 23, 42, .025); }
.panel h3 { margin: 0; font-size: 14px; letter-spacing: -.01em; }
.panel-heading { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.environment-badge { display: inline-flex; padding: 4px 9px; border-radius: 999px; color: #0755cf; background: var(--blue-soft); font-size: 11px; font-weight: 750; }
.source-note { color: var(--muted); font-size: 11px; }
.text-link, .detail-back a { color: var(--blue); font-size: 12px; font-weight: 700; text-decoration: none; }
.text-link:hover, .detail-back a:hover { text-decoration: underline; }
.property-list { margin: 0; padding: 13px 16px 16px; }
.property-list div { display: grid; grid-template-columns: minmax(100px, .75fr) minmax(0, 1.4fr); gap: 16px; padding: 7px 0; }
.property-list dt { color: var(--muted); font-size: 12px; }
.property-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 600; }
code { padding: 2px 4px; border-radius: 4px; color: #27364d; background: #f3f5f8; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }
.status-pill, .status-label, .overall-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 750; }
.status-pill { padding: 6px 10px; border-radius: 999px; color: #344054; background: #eef2f6; }
.status-pill.positive { color: #067647; background: var(--green-soft); }
.status-pill.warning { color: var(--amber); background: var(--amber-soft); }
.status-pill.danger { color: var(--red); background: var(--red-soft); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.positive .status-dot, .overall-status .status-dot { background: #12b76a; }
.warning .status-dot { background: #f79009; }
.danger .status-dot { background: #f04438; }
.empty-copy { color: var(--muted); font-size: 13px; line-height: 1.55; }

/* Overview */
.overview-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; min-height: 220px; margin-bottom: 18px; padding: 30px 34px; border: 1px solid #264567; border-radius: 17px; color: #fff; background: radial-gradient(circle at 90% 8%, rgba(31, 172, 130, .22), transparent 32%), linear-gradient(118deg, #10253d, #193b66 74%, #1b4b59); box-shadow: 0 18px 38px rgba(16, 37, 61, .1); }
.overview-welcome-copy { max-width: 750px; }
.overview-welcome .section-kicker { color: #84e1b6; }
.overview-welcome h2 { max-width: 690px; margin: 0; font-size: clamp(27px, 2.9vw, 40px); line-height: 1.12; letter-spacing: -.045em; }
.overview-welcome-copy > p:not(.section-kicker) { margin: 11px 0 0; color: #cbd9e9; font-size: 13px; line-height: 1.5; }
.overview-welcome-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.overview-welcome .primary-link { color: #102a44; background: #fff; }
.overview-welcome .primary-link:hover { background: #e4f3ec; }
.overview-welcome .secondary-link { border-color: #67839d; color: #fff; background: rgba(255,255,255,.07); }
.overview-welcome .secondary-link:hover { background: rgba(255,255,255,.15); }
.overview-welcome-state { display: grid; flex: 0 0 auto; justify-items: end; gap: 8px; max-width: 225px; }
.overview-welcome-state small { color: #cbd9e9; font-size: 11px; line-height: 1.4; text-align: right; }
.fabric-page { max-width: 1280px; }
.fabric-hero { display: flex; align-items: center; gap: 18px; padding: 19px 22px; border: 1px solid #d8e5e3; border-radius: 16px; background: linear-gradient(112deg, #f3faf7 0%, #fff 57%, #f6f9ff 100%); }
.fabric-hero-icon { display: grid; flex: 0 0 auto; width: 56px; height: 56px; place-items: center; border: 1px solid #bce6d0; border-radius: 15px; color: #087443; background: #e6f8ee; }
.fabric-hero-icon svg { width: 34px; height: 34px; stroke-width: 1.7; }
.fabric-hero-copy { flex: 1; min-width: 0; }
.fabric-hero-copy .section-kicker { color: #087443; }
.fabric-hero h2 { margin: 0; font-size: clamp(27px, 2.5vw, 36px); line-height: 1.05; letter-spacing: -.045em; }
.fabric-hero p:not(.section-kicker) { margin: 6px 0 0; color: #516173; font-size: 13px; }
.fabric-hero-actions { display: flex; align-items: center; gap: 10px; }
.fabric-hero-actions .secondary-button { width: auto; margin: 0; padding: 8px 12px; font-size: 12px; }
.fabric-refresh-meta { min-width: 0; color: #53657c; font-size: 11px; }
.fabric-status-detail { min-height: 32px; margin: 9px 2px 3px; color: #516173; font-size: 12px; line-height: 1.5; }
.fabric-tabs { display: flex; gap: 3px; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.fabric-tabs a { padding: 12px 17px; border-bottom: 2px solid transparent; color: #53657c; font-size: 13px; font-weight: 700; text-decoration: none; }
.fabric-tabs a:hover { color: var(--blue); }
.fabric-tabs a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--blue); }
.fabric-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fabric-stat { display: grid; min-height: 110px; align-content: center; gap: 5px; padding: 17px 19px; }
.fabric-stat-label { color: #53657c; font-size: 12px; font-weight: 700; }
.fabric-stat strong { font-size: 28px; letter-spacing: -.045em; line-height: 1.1; }
.fabric-stat small { color: var(--muted); font-size: 11px; }
.fabric-feature-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 12px; margin-top: 12px; }
.fabric-feature-grid > .panel { min-height: 212px; overflow: hidden; }
.fabric-capacity-content { padding: 22px; }
.fabric-capacity-number { display: block; font-size: 31px; letter-spacing: -.045em; }
.fabric-capacity-content p { margin: 3px 0 18px; color: var(--muted); font-size: 12px; }
.fabric-capacity-meta { padding: 12px 14px; border-radius: 9px; color: #305b48; background: #effaf3; font-size: 12px; font-weight: 700; }
.fabric-health-row { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 50px; padding: 10px 17px; border-bottom: 1px solid #eef2f5; font-size: 12px; }
.fabric-health-row:last-child { border-bottom: 0; }
.fabric-health-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fabric-health-row > span:last-child { max-width: 230px; color: var(--muted); text-align: right; }
.fabric-health-indicator { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800; }
.fabric-health-indicator.positive { color: #067647; background: #d7f5e3; }
.fabric-health-indicator.warning { color: #a15c00; background: #fff0cc; }
.fabric-list-row { display: flex; min-height: 59px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 17px; border-bottom: 1px solid #eef2f5; }
.fabric-list-row:last-child { border-bottom: 0; }
.fabric-list-row strong, .fabric-list-row small { display: block; }
.fabric-list-row strong { font-size: 12px; }
.fabric-list-row small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.fabric-get-started { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 12px; padding: 22px; background: linear-gradient(105deg, #f2f7ff, #fff); }
.fabric-get-started h3 { font-size: 17px; }
.fabric-get-started p:not(.section-kicker) { max-width: 680px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.fabric-start-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.primary-link, .secondary-link { display: inline-flex; align-items: center; justify-content: center; padding: 9px 13px; border-radius: 8px; font-size: 12px; font-weight: 750; text-decoration: none; }
.primary-link { color: #fff; background: var(--blue); }
.primary-link:hover { background: var(--blue-dark); }
.secondary-link { border: 1px solid var(--line-strong); color: #294364; background: #fff; }
.secondary-link:hover { border-color: #a9c8f9; background: #f5f9ff; }
.fabric-section-heading { margin-bottom: 17px; }
.fabric-section-heading h3 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.fabric-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
#fabricComputeList, #fabricModelsList { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fabric-detail-card { display: grid; gap: 16px; padding: 20px; }
.fabric-detail-head { display: flex; align-items: center; gap: 12px; }
.fabric-detail-title { flex: 1; overflow: hidden; font-size: 16px; font-weight: 750; text-overflow: ellipsis; }
.fabric-compute-glyph, .fabric-model-glyph { display: grid; flex: 0 0 auto; width: 40px; height: 40px; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 22px; }
.fabric-model-glyph { color: #087443; background: #e6f8ee; }
.fabric-detail-card > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.fabric-detail-card > a { justify-self: start; }
.fabric-detail-meta { color: #53657c; font-size: 11px; }
.fabric-specs { display: grid; gap: 9px; }
.fabric-specs > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #eef2f5; padding-bottom: 8px; font-size: 12px; }
.fabric-specs span { color: var(--muted); }
.fabric-specs strong { max-width: 70%; text-align: right; overflow-wrap: anywhere; }
.fabric-activity-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 13px; min-height: 54px; padding: 10px 17px; border-bottom: 1px solid #eef2f5; font-size: 12px; }
.fabric-activity-row:last-child { border-bottom: 0; }
.fabric-activity-row > span:nth-of-type(2), .fabric-activity-row time { color: var(--muted); }
.fabric-activity-dot { width: 8px; height: 8px; border-radius: 50%; background: #f2ac31; }
.fabric-activity-dot.positive { background: #10a36b; }
#fabricActivityList { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.fabric-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 31px 22px; color: var(--muted); text-align: center; }
.fabric-empty svg { width: 29px; height: 29px; color: #98abc0; }
.fabric-empty h3 { color: var(--ink); }
.fabric-empty p { max-width: 430px; margin: 0; font-size: 12px; line-height: 1.5; }
.fabric-inventory-message { color: var(--muted); font-size: 12px; margin: 0 0 14px; }
.add-computer-dialog { max-width: 610px; width: calc(100% - 32px); }
.add-computer-body { display: grid; gap: 15px; padding: 20px 24px 25px; }
.add-computer-body p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.add-computer-platform { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.add-computer-platform.muted { opacity: .7; }
.add-computer-platform span { color: var(--muted); font-size: 12px; text-align: right; }
.add-computer-body > .primary-link { justify-self: start; }
.add-computer-download { display: grid; gap: 10px; }
.add-computer-download > .primary-link { justify-self: start; }
.add-computer-advanced { border-top: 1px solid var(--line); padding-top: 12px; }
.add-computer-advanced summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.add-computer-advanced[open] { display: grid; gap: 10px; }
.fabric-installer-digest { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.add-computer-command { display: grid; gap: 10px; border-radius: 12px; background: #f2f6fc; padding: 15px; }
.add-computer-command code { overflow-wrap: anywhere; user-select: all; font-size: 12px; }
.add-computer-command button { justify-self: start; }
.computer-approval-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--canvas); }
.computer-approval-card { width: min(100%, 550px); padding: 32px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 55px #19315115; }
.computer-approval-card h1 { margin: 16px 0 10px; font-size: 27px; letter-spacing: -.035em; }
.computer-approval-card > p:not(.section-kicker), .computer-approval-note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.computer-approval-card #status { padding: 12px 14px; background: #eff6ff; border-radius: 10px; color: #1c4b7c; }
.computer-approval-details { margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; }
.computer-approval-details div { display: flex; justify-content: space-between; gap: 15px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.computer-approval-details div:last-child { border-bottom: 0; }
.computer-approval-details dt { color: var(--muted); }
.computer-approval-details dd { margin: 0; font-weight: 700; text-align: right; }
.computer-approval-advanced { margin: 18px 0; font-size: 12px; }
.computer-approval-advanced code { display: block; margin: 10px 0; overflow-wrap: anywhere; }
.computer-approval-confirm { display: flex; align-items: start; gap: 10px; font-size: 13px; }
.computer-approval-actions { display: flex; gap: 10px; margin: 18px 0; }

.overview-top-grid { display: grid; grid-template-columns: minmax(340px, .72fr) minmax(560px, 1.28fr); gap: 12px; }
.project-information, .project-status { min-height: 302px; }
.overall-status { color: var(--green); }
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.status-card { min-height: 88px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.status-card:hover { border-color: #c7d7f5; box-shadow: 0 4px 14px rgba(21,94,239,.06); }
.status-card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; font-weight: 750; }
.status-card-title svg { width: 18px; height: 18px; color: var(--blue); }
.status-card .status-label { font-size: 11px; }
.status-card p { margin: 5px 0 0; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.overview-middle-grid { display: grid; grid-template-columns: minmax(380px, 1.2fr) minmax(300px, .85fr) minmax(220px, .55fr); gap: 12px; margin-top: 12px; }
.node-summary-panel, .activity-panel, .usage-panel { min-height: 290px; }
.node-summary { padding: 20px; }
.node-primary { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.node-icon { display: grid; width: 62px; height: 74px; place-items: center; border: 1px solid #cbd5e1; border-radius: 8px; color: #e8effa; background: linear-gradient(145deg, #26354c, #0f172a); }
.node-icon svg { width: 34px; height: 34px; }
.node-title { display: flex; flex: 1; gap: 14px; }
.node-title h4 { margin: 2px 0 7px; font-size: 19px; }
.node-title p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.node-meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.node-meta { padding: 10px; border-radius: 8px; background: #f7f9fc; }
.node-meta span { display: block; color: var(--muted); font-size: 10px; }
.node-meta strong { display: block; margin-top: 4px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.activity-list { margin: 0; padding: 11px 16px 16px; list-style: none; }
.activity-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eef1f5; }
.activity-list li:last-child { border: 0; }
.activity-marker { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); }
.activity-marker svg { width: 14px; height: 14px; }
.activity-list strong { display: block; font-size: 11px; }
.activity-list span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.unavailable-metric { padding: 28px 20px; text-align: center; }
.unavailable-metric svg { width: 30px; height: 30px; margin: 0 auto 13px; color: var(--muted-2); }
.unavailable-metric strong { display: block; font-size: 13px; }
.unavailable-metric p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.quick-actions-panel { margin-top: 12px; padding: 13px 16px 16px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 11px; }
.quick-actions a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--line-strong); color: #27364d; background: #fff; font-size: 12px; text-decoration: none; }
.quick-actions a:hover { color: var(--blue); border-color: #a8c4f8; background: var(--blue-soft); }
.quick-actions svg { width: 17px; height: 17px; }

/* Pages and collections */
.page-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 4px 0 20px; }
.page-intro h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.page-intro p:not(.section-kicker) { max-width: 720px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.models-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 25px 0 11px; }
.models-section-heading h3 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.project-model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project-model-card { display: grid; align-content: start; gap: 13px; padding: 21px; }
.project-model-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-model-card h4 { margin: 0; font-size: 20px; overflow-wrap: anywhere; letter-spacing: -.025em; }
.project-model-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.project-model-card a { justify-self: start; }
.model-platform { color: #315374; font-size: 11px; font-weight: 750; }
.model-platform.fabric { color: #087443; }
.collection-card { min-height: 190px; padding: 18px; text-decoration: none; }
.collection-card:hover { border-color: #b7ccf2; box-shadow: 0 8px 25px rgba(21,94,239,.07); }
.collection-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.collection-card-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 9px; color: var(--blue); background: var(--blue-soft); }
.collection-card-icon svg { width: 21px; height: 21px; }
.collection-card h3 { margin: 17px 0 5px; font-size: 17px; }
.collection-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.collection-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 16px 0 0; }
.collection-card dt { color: var(--muted); font-size: 10px; }
.collection-card dd { margin: 3px 0 0; overflow: hidden; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.collection-card > button { margin-top: 16px; padding: 8px 11px; }
.model-install-operation { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.model-install-operation strong { color: var(--ink); }
.model-install-operation progress { width: 100%; height: 9px; accent-color: var(--blue); }
.model-install-operation button { justify-self: start; padding: 7px 10px; }
.model-install-operation .operation-error { color: var(--red); }
.model-section + .model-section { margin-top: 28px; }
.model-owned-card { min-height: 250px; }
.model-owned-card h3 { margin-top: 16px; font-size: 22px; }
.model-owned-card > p { font-size: 13px; }
.model-owned-card .model-owned-meta { margin-top: 16px; color: #475467; font-size: 12px; }
.model-owned-actions { display: flex; min-height: 35px; align-items: center; gap: 10px; margin-top: 16px; }
.model-owned-actions button { padding: 8px 12px; }
.model-in-use { display: inline-flex; align-items: center; gap: 7px; color: #087443; font-size: 12px; font-weight: 750; }
.model-in-use::before { width: 8px; height: 8px; border-radius: 50%; background: var(--green); content: ""; }
.model-technical-details { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.model-technical-details summary { color: #475467; cursor: pointer; font-weight: 700; }
.model-technical-details dl { margin-top: 12px; }
.model-page-message, .model-dialog-message { min-height: 18px; margin: 12px 2px 0; color: #475467; font-size: 12px; }
.model-dialog { width: min(760px, calc(100vw - 32px)); max-height: min(88vh, 860px); overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); background: #fff; box-shadow: 0 34px 90px rgba(15,23,42,.24); }
.model-dialog::backdrop { background: rgba(16, 24, 40, .58); backdrop-filter: blur(3px); }
.model-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 28px 30px 21px; border-bottom: 1px solid var(--line); }
.model-dialog-header h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.model-dialog-header p:not(.section-kicker) { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.model-dialog-close { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--line); color: #475467; background: #fff; font-size: 24px; font-weight: 400; line-height: 1; }
.model-dialog-close:hover { color: var(--ink); background: var(--canvas); }
.model-dialog-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 20px 30px; border-bottom: 1px solid var(--line); }
.model-dialog-toolbar label { display: grid; gap: 6px; min-width: 220px; color: #475467; font-size: 11px; font-weight: 750; }
.model-dialog-toolbar select { max-width: 280px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: #fff; }
.model-dialog-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 9px; background: #edf2f8; }
.model-dialog-tabs button { padding: 8px 11px; color: #475467; background: transparent; font-size: 11px; }
.model-dialog-tabs button[aria-pressed="true"] { color: var(--blue-dark); background: #fff; box-shadow: 0 1px 4px rgba(15,23,42,.1); }
.model-dialog-body { display: grid; max-height: 48vh; overflow-y: auto; gap: 12px; padding: 24px 30px 12px; }
.model-choice-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.model-choice-card h3 { margin: 11px 0 4px; font-size: 17px; }
.model-choice-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.model-choice-card .model-choice-detail { margin-top: 8px; color: #475467; }
.model-choice-card > button { margin-top: 13px; padding: 9px 12px; }
.model-choice-badge { padding: 5px 8px; border-radius: 99px; color: #344054; background: var(--canvas); font-size: 10px; font-weight: 750; }
.model-catalog-empty { padding: 42px 20px 52px; text-align: center; }
.model-catalog-empty > svg { width: 38px; height: 38px; margin: 0 auto 14px; color: var(--blue); }
.model-catalog-empty h3 { margin: 0; font-size: 18px; }
.model-catalog-empty p { max-width: 470px; margin: 9px auto 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.model-catalog-empty .model-storage-facts { color: #344054; font-weight: 700; }
.model-dialog-message { padding: 0 30px 18px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.section-heading h3 { margin: 0; font-size: 18px; }
.section-heading p:not(.section-kicker) { max-width: 760px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.future-note { margin-top: 12px; padding: 20px; }
.future-note p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.detail-back { margin: 1px 0 18px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-section { min-height: 230px; }
.detail-section h3 { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.detail-section .property-list div { grid-template-columns: .75fr 1.25fr; }
.recommendation { padding: 16px; }
.recommendation strong { display: block; font-size: 13px; }
.recommendation p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.empty-state { padding: 64px 30px; text-align: center; }
.empty-state > svg { width: 42px; height: 42px; margin: 0 auto 18px; color: var(--blue); }
.empty-state h3 { font-size: 18px; }
.empty-state p { max-width: 600px; margin: 9px auto 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.empty-state .status-pill { margin-top: 18px; }
.api-panel { padding-bottom: 18px; }
.api-panel > h3 { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.callout { margin: 2px 16px 0; padding: 13px 14px; border-left: 3px solid var(--blue); border-radius: 6px; background: var(--blue-soft); }
.callout strong { font-size: 12px; }
.callout p { margin: 4px 0 0; color: #475467; font-size: 11px; line-height: 1.5; }
.api-panel > p, .api-panel > label, .api-panel > input, .api-panel > button,
.api-panel > h4, .api-panel > .message, .api-panel > #apiKeyList { margin-left: 16px; margin-right: 16px; }
.api-panel > input { display: block; width: min(440px, calc(100% - 32px)); margin-top: 6px; padding: 10px; }
.api-panel > button { margin-top: 10px; }
.api-panel > h4 { margin-top: 20px; }
.one-time-secret { overflow-wrap: anywhere; user-select: all; }
.api-example { margin: 6px 16px 18px; padding: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; color: #e7f1ff; background: #172a42; font: 11px/1.6 "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.credential-reveal { display: grid; gap: 10px; margin-top: 14px; }
.credential-reveal > code { display: block; padding: 10px; border: 1px solid #b9d0ff; }
.credential-reveal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.credential-reveal-actions button { width: auto; margin: 0; padding: 8px 12px; }
.api-key-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.api-key-row small { color: var(--muted); }
.api-key-row button { width: auto; margin: 0 0 0 auto; }
.api-key-section-label { margin: 4px 0 10px; color: var(--ink); font-size: 12px; font-weight: 700; }
.api-key-note { margin: 11px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.api-key-history { margin-top: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.api-key-history summary { color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 700; }

/* Chat */
.chat-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 14px; height: max(480px, calc(100vh - 250px)); max-height: 840px; }
.conversation-rail { overflow-y: auto; padding: 12px; }
.new-conversation { width: 100%; padding: 10px 12px; background: var(--blue); }
.conversation-list { display: grid; gap: 4px; margin-top: 12px; }
.conversation-group { margin: 14px 8px 5px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.conversation-item { width: 100%; padding: 10px; border: 0; border-radius: 7px; color: var(--ink); background: transparent; text-align: left; }
.conversation-item:hover, .conversation-item[aria-current="true"] { background: var(--blue-soft); color: #064bc8; }
.conversation-item strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.chat-panel { display: flex; min-width: 0; min-height: 0; overflow: hidden; flex-direction: column; }
.chat-header { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chat-header h3 { font-size: 15px; }
.chat-header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.chat-management { display: flex; gap: 6px; }
.chat-management button { padding: 7px 9px; font-size: 10px; }
.chat-management .danger-text { border: 1px solid #f4c7c3; color: #b42318; background: #fff; }
.chat-route-label { display: block; padding: 12px 14px 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
#chatRouteSelector { display: block; width: calc(100% - 28px); margin: 0 14px 10px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.playground-model-context { margin: 0 14px 12px; padding: 10px 11px; border-radius: 8px; color: #305b48; background: #eef8f2; font-size: 11px; line-height: 1.45; }
.message-thread { display: flex; min-height: 0; overflow-y: auto; flex: 1; flex-direction: column; gap: 14px; padding: 22px; }
.chat-empty { margin: auto; max-width: 430px; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.chat-empty-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 13px; place-items: center; border: 1px solid #c9dcf9; border-radius: 13px; color: var(--blue); background: #f0f6ff; }
.chat-empty h4 { margin: 0; color: #25364f; font-size: 17px; letter-spacing: -.025em; }
.chat-empty p { margin: 8px 0 0; line-height: 1.65; }
.chat-message { max-width: min(78%, 720px); padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.55; }
.chat-message.user { align-self: flex-end; border-color: #cfe0ff; background: var(--blue-soft); }
.chat-message.assistant { align-self: flex-start; background: #fff; }
.chat-message.pending, .chat-message.failed { color: var(--muted); font-style: italic; }
.chat-message.failed { border-color: #f4c7c3; background: #fff7f6; }
.playground-execution-state { margin: 0 22px 12px; padding: 11px 13px; border: 1px solid #bed3f6; border-radius: 9px; color: #255084; background: #f0f6ff; font-size: 12px; line-height: 1.5; }
.composer { border-top: 1px solid var(--line); background: #fff; }
.prompt-box { position: relative; display: block; margin: 0 22px; padding: 14px 16px 28px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fbfcfe; }
textarea { width: 100%; min-height: 70px; max-height: 180px; resize: vertical; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; line-height: 1.55; }
.count { position: absolute; right: 14px; bottom: 9px; color: var(--muted); font-size: 10px; }
.actions { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 22px; }
.actions .message { margin: 0; }
.actions button { padding: 11px 17px; }
.privacy-note { margin: 12px 2px 0; color: var(--muted); font-size: 10px; }

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

@media (max-width: 1180px) {
  .overview-welcome { align-items: flex-start; flex-direction: column; }
  .overview-welcome-state { justify-items: start; max-width: none; }
  .overview-welcome-state small { text-align: left; }
  .project-model-grid { grid-template-columns: 1fr; }
  .fabric-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-top-grid { grid-template-columns: 1fr; }
  .project-information, .project-status { min-height: 0; }
  .overview-middle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-panel { grid-column: 1 / -1; min-height: 0; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .fabric-feature-grid { grid-template-columns: 1fr; }
  .developer-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; transform: translateX(-102%); width: 260px; transition: transform .2s ease; box-shadow: 16px 0 50px rgba(15,23,42,.15); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; z-index: 25; inset: 0; display: block !important; background: rgba(15,23,42,.35); }
  .sidebar-scrim[hidden] { display: none !important; }
  .mobile-menu { display: grid; }
  .project-header { min-height: 80px; padding: 14px 20px; }
  .project-selector select { min-width: 210px; }
  .workspace-content { padding: 20px; }
  .chat-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-middle-grid { grid-template-columns: 1fr; }
  .usage-panel { grid-column: auto; }
}

@media (max-width: 620px) {
  .overview-welcome { padding: 24px 19px; }
  .overview-welcome-actions { width: 100%; }
  .fabric-hero { align-items: flex-start; flex-wrap: wrap; padding: 18px; }
  .fabric-hero-actions { width: 100%; justify-content: space-between; }
  .fabric-tabs { overflow-x: auto; }
  .fabric-tabs a { flex: 0 0 auto; padding: 11px 13px; }
  .fabric-stat-grid, #fabricComputeList, #fabricModelsList { grid-template-columns: 1fr; }
  .fabric-get-started { align-items: flex-start; flex-direction: column; }
  .fabric-start-actions { flex-wrap: wrap; }
  .fabric-health-row { grid-template-columns: 25px minmax(0, 1fr); }
  .fabric-health-row > span:last-child { grid-column: 2; max-width: none; text-align: left; }
  .fabric-activity-row { grid-template-columns: 10px minmax(0, 1fr) auto; }
  .fabric-activity-row time { grid-column: 2 / -1; }
  .sign-in { padding: 25px 20px; }
  .project-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .project-selector, .project-selector select { width: 100%; }
  .header-title h1 { font-size: 23px; }
  .workspace-content { padding: 16px 12px 30px; }
  .status-grid, .overview-middle-grid, .collection-grid, .detail-grid { grid-template-columns: 1fr; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .project-status .panel-heading { flex-direction: row; align-items: center; }
  .status-card { min-height: 78px; }
  .node-primary { flex-direction: column; }
  .node-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .property-list div { grid-template-columns: 1fr; gap: 3px; }
  .page-intro { align-items: flex-start; flex-direction: column; }
  .page-intro h2 { font-size: 24px; }
  .chat-layout { grid-template-columns: 1fr; height: auto; max-height: none; }
  .conversation-rail { max-height: 220px; overflow-y: auto; }
  .message-thread { min-height: 320px; }
  .chat-message { max-width: 92%; }
  .prompt-box { margin: 0 14px; }
  .actions { padding: 11px 14px; }
  .quick-actions { display: grid; grid-template-columns: 1fr; }
  .quick-actions a { justify-content: flex-start; }
  .model-dialog-header { padding: 22px 19px; }
  .model-dialog-toolbar { align-items: stretch; flex-direction: column; padding: 16px 19px; }
  .model-dialog-toolbar label, .model-dialog-toolbar select { width: 100%; max-width: none; }
  .model-dialog-tabs button { flex: 1; }
  .model-dialog-body { padding: 18px 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
