:root {
  color-scheme: light;
  font-family: Inter,"Segoe UI",Arial,sans-serif;
  color: #1a2b42;
  background: #f3f5fa;
  font-size: 16px;
  font-synthesis: none;
  --ink: #192b43;
  --muted: #596b82;
  --border: #dbe2ed;
  --blue: #254fbb;
  --navy: #182c47;
  --pale: #eff4ff;
  --green: #16775b;
  --amber: #986019;
  --surface: #fff;
  --avatar-bg: #e7edff;
  --avatar-fg: #344d8e;
}

.top-tools, .profile-switch, .profile-identity, .profile-pick {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-tools { flex-shrink: 0; }
.profile-switch {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--border);
  padding: 2px 0 2px 12px;
  font-size: .88rem;
  font-weight: 600;
}
.profile-switch > .icon { width: 14px; height: 14px; color: var(--muted); }
.profile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 24ch; }
.avatar {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--avatar-bg);
  color: var(--avatar-fg);
  font-weight: 650;
  font-size: .8rem;
  line-height: 1;
}
.profile-identity { margin-bottom: 17px; gap: 13px; }
.profile-identity .avatar { width: 46px; height: 46px; font-size: 1.05rem; border-radius: 13px; }
.profile-identity .hint { margin-top: 2px; }
.profile-intro .breadcrumb { margin-bottom: 8px; }
.profile-layout { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); gap: 18px; align-items: start; }
.profile-layout > *, .profile-layout .stack { min-width: 0; }
.profile-layout h2, .profile-pick span { overflow-wrap: anywhere; }
.credential-label { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.credential-label label { font-size: .86rem; font-weight: 580; }
.credential-form input { width: 100%; }
.credential-form .actions { margin-top: 12px; }
.credential-form .error:empty { display: none; }
.credential-form .error { margin-bottom: 0; }
.credential-details { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--border); }
.profile-catalog { margin-bottom: 18px; min-width: 0; scroll-margin-top: 76px; }
.catalog-title, .catalog-title > div:last-child, .catalog-tools, .catalog-footer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.catalog-title, .catalog-tools, .catalog-footer { justify-content: space-between; }
.catalog-title .hint, .catalog-tools .head-meta { white-space: nowrap; }
.catalog-tools { margin: 14px 0 10px; }
.catalog-tools label { flex: 1; max-width: 420px; min-width: 150px; }
.catalog-tools input { width: 100%; }
.tariff-unit { font-size: .78rem; color: var(--muted); margin: 10px 0 6px; }
.catalog-scroll { max-height: 306px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.personal-catalog { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: .88rem; }
.personal-catalog th, .personal-catalog td { padding: 9px 13px; text-align: left; vertical-align: middle; }
.personal-catalog th { position: sticky; z-index: 1; top: 0; color: var(--muted); background: var(--surface); box-shadow: inset 0 -1px var(--border); font-size: .78rem; }
.personal-catalog th:not(:first-child) { width: 15%; text-align: right; }
.personal-catalog td { border-bottom: 1px solid var(--border); }
.personal-catalog tr:last-child td { border-bottom: 0; }
.personal-catalog .unit-price, .personal-catalog .missing-price { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.personal-catalog .missing-price, #no-matching-models { color: var(--muted); font-size: .8rem; }
.personal-model, .personal-catalog th label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.personal-model span { min-width: 0; overflow-wrap: anywhere; }
.personal-model strong { font-weight: 580; }
.personal-model small { display: block; color: var(--muted); font-size: .75rem; }
.tariff-tiers { margin: 4px 0 0 26px; color: var(--muted); font-size: .75rem; }
.tariff-tiers summary { font-size: inherit; }
.catalog-footer { align-items: end; margin: 12px 0 5px; }
.catalog-footer .field { flex: 1; max-width: 470px; min-width: 180px; margin: 0; }
.catalog-error:empty { display: none; }
@media(max-width:690px) {
  .profile-catalog { margin-bottom: 12px; }
  .catalog-title > div:last-child { gap: 6px; }
  .catalog-title > div:last-child small { display: none; }
  .personal-catalog th, .personal-catalog td { padding: 8px 6px; }
  .personal-catalog th:not(:first-child) { width: 20%; }
  .personal-model, .personal-catalog th label { gap: 5px; }
  .personal-catalog { font-size: .81rem; }
  .catalog-footer { align-items: stretch; }
}
#provider-note a { color: var(--blue); }
.profile-list { display: grid; gap: 7px; margin: 12px 0 14px; }
.profile-pick {
  text-align: left;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: .94rem;
}
.profile-pick:hover, .profile-switch:hover { color: var(--blue); }
.profile-pick > :last-child { margin-left: auto; color: var(--muted); }
.profile-pick > .icon { width: 16px; }
.themes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; border: 0; margin: 12px 0 0; padding: 0; min-width: 0; }
.theme-choice { cursor: pointer; position: relative; min-width: 0; }
.sr-only, .theme-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.theme-tile {
  display: grid;
  gap: 7px;
  height: 100%;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: .82rem;
  font-weight: 570;
}
.theme-choice input:checked + .theme-tile { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); color: var(--blue); }
.theme-choice input:focus-visible + .theme-tile { outline: 3px solid #83a8fb; outline-offset: 3px; }
.theme-sample {
  display: grid;
  grid-template-columns: 19% 1fr;
  grid-template-rows: 8px 1fr;
  gap: 4px;
  padding: 5px;
  height: 44px;
  background: #ecf0f8;
  border: 1px solid #d0d9e6;
  border-radius: 4px;
}
.theme-sample i { grid-row: span 2; border-radius: 2px; background: #7c8ea8; }
.theme-sample b { background: white; border-radius: 2px; }
.sample-dark { background: #111a27; border-color: #344458; }
.sample-dark i { background: #4c6484; }
.sample-dark b { background: #2c405a; }
.sample-system { background: linear-gradient(100deg,#ecf0f8 50%,#111a27 50%); }
.sample-system b { background: linear-gradient(100deg,white 40%,#2c405a 40%); }
.empty-projects { padding: 48px 20px; text-align: center; }
.empty-projects .description { max-width: 430px; margin: 8px auto 16px; }
.empty-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; background: var(--pale); color: var(--blue); border-radius: 13px; margin-bottom: 12px; }
.signed-out .shell { display: block; }
.signed-out #side, .signed-out #top { display: none; }
.signed-out #main { display: grid; place-items: center; min-height: 100vh; padding: 18px; }
.login-card { width: min(100%,440px); }
.login-card .brandmark { margin-bottom: 18px; }
.login-card h1 { font-size: 1.75rem; }
.ghost.icon-button { padding: 6px; width: 35px; min-height: 35px; }
.icon-button span:empty { display: none; }
@media(max-width:1100px) {
  .top-tools { gap: 7px; }
  .profile-name { max-width: 12ch; }
}
@media(max-width:850px) {
  .profile-name { display: none; }
}
@media(max-width:690px) {
  .profile-layout { grid-template-columns: 1fr; gap: 12px; }
  .profile-layout > .stack { grid-row: 1; }
  .profile-switch { padding-left: 6px; gap: 3px; }
  .profile-switch > .icon { display: none; }
  .top-tools { gap: 5px; }
  #top .mobile-menu span { display: none; }
  #top .project-switch { max-width: min(43vw,190px); }
}

.director {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}
.director-info, .director-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.director-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--pale);
  color: var(--blue);
}
.director-score { margin-left: 8px; color: var(--muted); font-size: .82rem; }
.director-notice { width: 100%; font-size: .86rem; color: #805328; }
.choice-note { border-left: 3px solid #7292d2; background: #f3f6fd; padding: 11px 13px; margin: 11px 0; border-radius: 5px; font-size: .87rem; }
.choice-note p { line-height: 1.5; margin: 6px 0; }
.choice-note small { display: block; margin-top: 4px; }
.model-profile { margin: 6px 0 0 26px; }
@media (max-width: 690px) {
  .director { padding: 12px; }
  .director-score { display: block; margin: 2px 0 0; }
  .director-actions { width: 100%; }
  .director-actions select { max-width: 100%; }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,input,select,textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: .5;
  cursor: default;
}

button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline: 3px solid #80a8fe;
  outline-offset: 3px;
}

button {
  color: inherit;
}

button,select {
  touch-action: manipulation;
}

a {
  color: var(--blue);
}

h1,h2,h3,h4,p {
  margin: 0;
}

h1 {
  font-size: clamp(1.8rem,2.4vw,2.6rem);
  line-height: 1.12;
  letter-spacing: -.054em;
  font-weight: 680;
}

h2 {
  font-size: 1.16rem;
  letter-spacing: -.031em;
  line-height: 1.3;
}

h3 {
  font-size: 1rem;
  letter-spacing: -.018em;
}

h4 {
  font-size: .92rem;
}

small,.small {
  font-size: .81rem;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.mono,code,time {
  font-family: "Cascadia Code",Consolas,monospace;
  font-size: .79rem;
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: none;
}

.shell {
  display: grid;
  grid-template-columns: 218px minmax(0,1fr);
  min-height: 100vh;
}

#side {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--navy);
  color: #d5deee;
  display: flex;
  flex-direction: column;
  padding: 26px 15px 17px;
  z-index: 4;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 31px;
  font-size: 1.08rem;
  letter-spacing: -.035em;
  font-weight: 650;
  color: white;
}

.brandmark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #d6e5ff;
  color: #214677;
}

.brandmark .icon {
  width: 23px;
  height: 23px;
}

.groupname {
  color: #91a7c1;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .035em;
  padding: 0 13px;
  margin: 14px 0 7px;
}

.nav {
  width: 100%;
  border: 0;
  background: transparent;
  color: #cad7e9;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 8px;
  text-align: left;
  font-size: .91rem;
  font-weight: 480;
  line-height: 1.35;
}

.nav:hover {
  background: #223a56;
}

.nav.active {
  background: #304b6a;
  color: white;
  font-weight: 620;
}

.nav.active .icon {
  color: #b3cfff;
}

.aside-footer {
  margin-top: auto;
  border-top: 1px solid #344860;
  padding: 16px 10px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: .86rem;
}

.aside-footer small {
  color: #a9bcd2;
  font-size: .74rem;
  display: block;
  margin-top: 3px;
}

.connection {
  width: 9px;
  height: 9px;
  background: #8dc8af;
  border-radius: 50%;
}

.desk {
  min-width: 0;
}

#top {
  height: 63px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px,3.2vw,50px);
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.top-left,.row,.rowwrap,.btn,.ghost,.linkbutton,.badge,.status,.fieldtitle,.mark,.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rowwrap {
  flex-wrap: wrap;
}

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

.top-left {
  color: var(--muted);
  min-width: 0;
  font-size: .88rem;
}

.top-left strong {
  color: var(--ink);
}

.top-left .divider {
  color: #aeb9c8;
}

.top-left .icon {
  width: 16px;
  height: 16px;
}

.project-switch {
  max-width: min(43vw,320px);
  font-weight: 590;
  border: 0;
  background: transparent;
  padding: 5px 22px 5px 2px;
}

.mobile-menu {
  display: none!important;
}

main {
  max-width: 1630px;
  margin: auto;
  padding: 28px clamp(16px,3.2vw,50px) 45px;
}

.breadcrumb {
  font-size: .78rem;
  letter-spacing: .015em;
  color: var(--muted);
  margin-bottom: 10px;
  gap: 9px;
}

.breadcrumb b {
  width: 3px;
  height: 3px;
  background: #98a9bc;
  border-radius: 50%;
}

.intro {
  margin-bottom: 20px;
}

.intro .sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: .9rem;
}

.intro .between {
  align-items: center;
}

.btn,.ghost,.linkbutton {
  justify-content: center;
  border-radius: 7px;
  font-size: .87rem;
  font-weight: 600;
  min-height: 36px;
  line-height: 1.2;
  white-space: normal;
  padding: 8px 12px;
}

.btn {
  color: white;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.btn:hover:enabled {
  background: #1b41a0;
}

.ghost {
  background: white;
  border: 1px solid #ccd6e4;
}

.ghost:hover:enabled {
  background: #f4f7fc;
  border-color: #a6b8d2;
}

.linkbutton {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 4px 0;
  min-height: 28px;
}

.linkbutton:hover:enabled {
  text-decoration: underline;
}

.btn .icon,.ghost .icon,.linkbutton .icon {
  width: 16px;
  height: 16px;
}

.badge,.status {
  font-size: .75rem;
  line-height: 1.3;
  color: #526580;
  background: #eef2f7;
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
  font-weight: 560;
  gap: 6px;
}

.badge.live,.status.done {
  background: #e8f5ef;
  color: #247157;
}

.status:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.status.ready,.status.running {
  color: #315db9;
  background: #eaf0fc;
}

.status.failed,.status.changes,.status.question,.status.waiting {
  color: #83531e;
  background: #fcf1df;
}

.card,.metrics {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  overflow: hidden;
  margin: 0 0 18px;
}

.metric {
  padding: 17px 21px;
  text-align: left;
  border: 0;
  background: transparent;
}

.metric+.metric {
  border-left: 1px solid var(--border);
}

.metric:last-child {
  background: #edf2fc;
}

.metric:hover {
  background: #f5f8fe;
}

.metric .mlabel {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 540;
}

.metric .icon {
  width: 16px;
  height: 16px;
}

.metric strong {
  display: block;
  font-size: clamp(1.4rem,1.9vw,2.02rem);
  font-weight: 620;
  letter-spacing: -.045em;
  line-height: 1.15;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
}

.metric small {
  font-size: .76rem;
}

.cardhead {
  padding: 18px 21px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.heading .icon {
  color: #526e98;
}

.head-meta {
  font-size: .81rem;
  color: var(--muted);
}

.map-scroll {
  overflow: auto;
  padding: 7px 21px 0;
}

.graph {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: clamp(17px,2.35vw,48px);
  padding: 13px 0 18px;
}

.wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.wires path {
  fill: none;
  stroke: #bbc9dc;
  stroke-width: 1.6;
}

.wires path.to-selected {
  stroke: #6d95de;
}

.lane {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  min-width: 135px;
  flex: 1;
}

.mapnode {
  display: block;
  width: 100%;
  min-height: 68px;
  border: 1px solid #d6deeb;
  background: #f7f9fc;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
}

.mapnode:hover {
  border-color: #879fc4;
  background: #f2f6fc;
}

.mapnode.chosen {
  border: 1.5px solid #3866ce;
  box-shadow: 0 0 0 2px #e1eaff;
  background: #edf3ff;
}

.mapnode .nodetop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 5px;
}

.mapnode .nodetop .icon {
  width: 15px;
  height: 15px;
  color: #526d98;
}

.mapnode .nodetop .icon.good {
  color: #298466;
}

.mapnode .nodetop .icon.active-dot {
  color: #426ecc;
}

.node-title {
  display: block;
  line-height: 1.25;
  font-weight: 650;
  font-size: .88rem;
  overflow-wrap: anywhere;
}

.node-model {
  display: block;
  color: var(--muted);
  font-size: .77rem;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.graphfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 21px;
  border-top: 1px solid #e7ebf2;
  color: var(--muted);
  font-size: .83rem;
}

.graphfoot b {
  color: var(--ink);
  font-weight: 600;
}

.graphfoot .icon {
  width: 16px;
  height: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(337px,.88fr);
  gap: 16px;
  margin: 17px 0;
  align-items: start;
}

.listbody {
  padding: 7px 13px 11px;
}

.taskrow {
  border: 0;
  background: transparent;
  width: 100%;
  display: grid;
  grid-template-columns: 33px minmax(0,1fr) auto;
  gap: 11px;
  align-items: center;
  text-align: left;
  border-radius: 7px;
  padding: 10px 8px;
  min-height: 54px;
}

.taskrow+.taskrow {
  border-top: 1px solid #edf0f5;
}

.taskrow:hover {
  background: #f5f7fb;
}

.taskrow.chosen {
  background: #eef3ff;
}

.roleicon,.appicon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  background: #edf1f7;
  color: #4b6387;
}

.taskrow.chosen .roleicon {
  color: #2b58ae;
  background: #dce8ff;
}

.taskrow .title {
  font-size: .9rem;
  font-weight: 600;
  display: block;
  overflow-wrap: anywhere;
}

.taskrow small {
  margin-top: 3px;
  display: block;
}

.cardpad {
  padding: 19px 21px;
}

.detailhead {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.detailhead small {
  display: block;
  margin-bottom: 5px;
}

.description {
  margin: 9px 0 14px;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.field {
  display: grid;
  gap: 6px;
  margin: 11px 0;
  font-size: .86rem;
  font-weight: 580;
}

.field small {
  font-weight: 400;
  line-height: 1.45;
}

.fieldtitle .icon {
  width: 15px;
  height: 15px;
  color: #536d91;
}

select,input,textarea {
  color: var(--ink);
  border: 1px solid #c9d5e5;
  background: white;
  border-radius: 6px;
  padding: 9px 10px;
  max-width: 100%;
  font-size: .9rem;
  min-width: 0;
}

select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23576c85' stroke-width='1.6'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}

.field select,.field input:not([type=checkbox]),.field textarea {
  width: 100%;
}

input[type=checkbox] {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  line-height: 1.45;
  font-weight: 480;
  overflow-wrap: anywhere;
}

.check input {
  flex: none;
}

.checks {
  display: grid;
  gap: 6px;
}

.fieldbox {
  padding: 9px 11px;
  border: 1px solid #d7dfeb;
  background: #fafbfd;
  border-radius: 7px;
}

.actions,.footactions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 13px;
}

.footactions {
  justify-content: flex-end;
}

.card+.widecard,.widecard+.widecard {
  margin-top: 16px;
}

.flow-section {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.evrow {
  display: grid;
  grid-template-columns: 63px minmax(0,1fr) auto;
  gap: 11px;
  padding: 10px 0;
  align-items: baseline;
  border-bottom: 1px solid #e9edf4;
  font-size: .87rem;
}

.evrow:last-child {
  border-bottom: 0;
}

.evrow time {
  color: var(--muted);
}

.evrow .evdetail {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: .81rem;
  margin-top: 3px;
}

.eventbody {
  padding: 5px 21px 11px;
}

.widecard {
  margin-bottom: 16px;
}

.stack {
  display: grid;
  gap: 13px;
}

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

.configgrid>.card {
  min-width: 0;
}

.configrow,.app-entry,.history-item {
  padding: 14px 0;
  border-bottom: 1px solid #e5eaf2;
}

.configrow:last-child,.app-entry:last-child,.history-item:last-child {
  border: 0;
}

.app-entry .row {
  align-items: flex-start;
}

.appicon {
  width: 36px;
  height: 36px;
}

.configrow .check {
  font-weight: 570;
}

.models-list {
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.rate-inputs {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0 0 26px;
}

.rate-inputs input {
  width: 95px;
  padding: 5px;
}

.rate-inputs small {
  font-size: .74rem;
}

.model-key {
  word-break: break-word;
}

.pillcode {
  color: #45648f;
  background: #eef2f8;
  border-radius: 4px;
  padding: 2px 5px;
}

.empty {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.6;
  padding: 16px 0;
}

.hint {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}

.note {
  border-radius: 7px;
  background: #f0f4fb;
  padding: 10px 13px;
  font-size: .85rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.notewarn {
  background: #fff3df;
  color: #754e18;
}

.error {
  color: #903e2a;
}

.hidden,[hidden] {
  display: none!important;
}

pre,.response {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.5;
  font: inherit;
  font-size: .9rem;
}

.response {
  background: #f6f8fc;
  border: 1px solid #e1e7f1;
  border-radius: 7px;
  padding: 12px;
  margin: 8px 0;
  max-height: 340px;
  overflow: auto;
}

details {
  font-size: .87rem;
}

summary {
  cursor: pointer;
  color: #355787;
  padding: 5px 0;
  font-weight: 580;
}

dialog {
  padding: 0;
  width: min(530px,calc(100% - 28px));
  max-height: 89vh;
  border: 1px solid #b7c6db;
  border-radius: 13px;
  color: var(--ink);
  box-shadow: 0 24px 75px #172c4655;
}

dialog::backdrop {
  background: #182c4657;
}

dialog form {
  padding: 22px;
}

dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.close {
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
  padding: 5px;
}

.close .icon {
  width: 20px;
  height: 20px;
}

.chatlog {
  display: grid;
  gap: 14px;
  margin: 15px 0;
}

.chatmsg {
  padding: 13px 15px;
  border-radius: 9px;
  background: #f1f5fb;
  max-width: 86%;
}

.chatmsg.user {
  justify-self: end;
  background: #edf2ff;
}

.chatmsg .response {
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 0;
}

.costwrap {
  overflow: auto;
}

.costtable {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
}

.costtable td,.costtable th {
  border-bottom: 1px solid #e3e8ef;
  padding: 10px 6px;
  text-align: left;
  white-space: nowrap;
}

.costtable th {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 570;
}

.costtable .number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.projectline {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 11px;
  background: white;
  text-align: left;
}

.projectline.selected {
  background: var(--pale);
  border-color: #9bb5ed;
}

#notice {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(680px,calc(100% - 24px));
  z-index: 10;
  font-size: .9rem;
  color: white;
  background: #203852;
  border-radius: 9px;
  box-shadow: 0 6px 24px #1d365735;
  padding: 11px 17px;
  display: none;
}

#notice.visible {
  display: block;
}

.nowrap {
  white-space: nowrap;
}

.overline {
  font-size: .75rem;
  letter-spacing: .045em;
  color: var(--muted);
  font-weight: 550;
}

.sectiongap {
  margin-top: 17px;
}

textarea {
  resize: vertical;
}

#main p+.hint {
  margin-top: 6px;
}

@media(min-width:1500px) {
  .shell {
    grid-template-columns: 236px minmax(0,1fr);
  }
  .split {
    grid-template-columns: minmax(0,1.16fr) minmax(380px,.84fr);
  }
  .mapnode {
    padding: 12px 16px;
  }
  .graph {
    gap: 46px;
  }
}

@media(max-width:1100px) {
  .shell {
    grid-template-columns: 178px minmax(0,1fr);
  }
  #side {
    padding-inline: 9px;
  }
  .brand {
    font-size: 1rem;
  }
  .split {
    grid-template-columns: minmax(0,1fr) minmax(295px,.92fr);
  }
  .map-scroll {
    padding-inline: 15px;
  }
  .lane {
    min-width: 115px;
  }
  .taskrow {
    gap: 6px;
  }
  .cardhead,.cardpad {
    padding-left: 15px;
    padding-right: 15px;
  }
  main {
    padding: 22px 20px;
  }
  .metric {
    padding: 14px;
  }
  .graph {
    gap: 17px;
  }
  .rate-inputs {
    flex-wrap: wrap;
  }
  .taskrow .status {
    font-size: .7rem;
  }
}

@media(max-width:850px) {
  .shell {
    grid-template-columns: 64px minmax(0,1fr);
  }
  #side {
    align-items: center;
    padding: 17px 6px;
  }
  .brand {
    padding: 0 0 15px;
  }
  .brand span:last-child,.nav span,.groupname,.aside-footer div:last-child {
    display: none;
  }
  .nav {
    justify-content: center;
    height: 43px;
    padding: 0;
    margin: 2px 0;
  }
  .aside-footer {
    padding: 12px 6px;
  }
  .nav .icon {
    width: 19px;
    height: 19px;
  }
  .split {
    grid-template-columns: minmax(0,1fr) minmax(275px,.92fr);
  }
}

@media(max-width:690px) {
  .shell {
    display: block;
  }
  #side {
    display: none;
  }
  #side.open {
    display: flex;
    align-items: stretch;
    position: fixed;
    left: 0;
    top: 54px;
    bottom: 0;
    height: auto;
    width: 210px;
    padding: 12px;
    box-shadow: 10px 8px 28px #19304444;
  }
  #side.open .brand {
    display: none;
  }
  #side.open .nav {
    justify-content: flex-start;
    padding: 8px 13px;
  }
  #side.open .nav span,#side.open .groupname,#side.open .aside-footer div:last-child {
    display: block;
  }
  .mobile-menu {
    display: inline-flex!important;
  }
  .mobile-menu .icon {
    width: 19px;
    height: 19px;
  }
  .top-word,.divider {
    display: none;
  }
  #top {
    height: 54px;
    padding: 0 12px;
    position: sticky;
    top: 0;
    z-index: 3;
  }
  .top-left {
    gap: 2px;
  }
  .project-switch {
    max-width: 42vw;
  }
  .top-add span {
    display: none;
  }
  .top-add {
    min-width: 36px;
  }
  .split,.configgrid {
    grid-template-columns: 1fr;
  }
  .split {
    gap: 12px;
  }
  .metric {
    padding: 11px 9px;
  }
  .metric .mlabel {
    font-size: .73rem;
  }
  .metric .mlabel .icon {
    display: none;
  }
  .metric small {
    font-size: .72rem;
    line-height: 1.3;
    display: block;
  }
  .metric strong {
    font-size: 1.27rem;
  }
  .metrics {
    margin-bottom: 13px;
  }
  .intro {
    margin-bottom: 15px;
  }
  .cardhead {
    padding-top: 14px;
  }
  .graphfoot {
    padding: 9px 13px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .graphfoot .row {
    max-width: 100%;
  }
  .graph {
    flex-direction: column;
    gap: 14px;
    padding: 12px 1px;
  }
  .lane {
    flex-direction: row;
    min-width: 0;
    gap: 9px;
    justify-content: center;
  }
  .mapnode {
    flex: 1;
    min-width: 0;
    max-width: 60%;
    padding: 8px;
    min-height: 55px;
  }
  .mapnode .nodetop {
    display: none;
  }
  .map-scroll {
    padding: 3px 12px;
  }
  .graph .node-title {
    font-size: .84rem;
  }
  .graph .node-model {
    font-size: .75rem;
  }
  .status {
    font-size: .73rem;
  }
  .intro .between {
    align-items: flex-start;
  }
  .evrow {
    grid-template-columns: 48px minmax(0,1fr) auto;
    gap: 6px;
  }
  .eventbody {
    padding-inline: 12px;
  }
  main {
    padding: 18px 12px 40px;
  }
  .breadcrumb {
    margin-bottom: 7px;
  }
  .chatmsg {
    max-width: 94%;
  }
  .top-left>.icon {
    display: none;
  }
  .cardpad {
    padding: 15px;
  }
  .actions .btn,.actions .ghost {
    white-space: normal;
  }
}

@media(prefers-reduced-motion:no-preference) {
  button {
    transition: background-color .12s,border-color .12s;
  }
}

