@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;650;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap");
:root {
  /* Design tokens. Per-organization branding overrides --accent and the
     --sidebar-* values at runtime; everything else derives from them. */
  --ink: #282b25;
  --muted: #616359;
  --subtle: #737569;
  --faint: #949789;
  --line: #deded3;
  --line-strong: #b2b5a7;
  --bg: #f6f6ef;
  --panel: #fffef9;
  --field: #fff;
  --surface-2: #f6f7ef;
  --surface-3: #ebede3;
  --surface-hover: #f8f8f2;
  --surface-tint: #eaede1;
  --backdrop: #20231d66;

  --accent: #d95630;
  --accent-ink: #fff;
  --accent-strong: color-mix(in oklab, var(--accent) 84%, black);
  --accent-stronger: color-mix(in oklab, var(--accent) 76%, black);
  --accent-text: color-mix(in oklab, var(--accent) 78%, black);
  --accent-soft: color-mix(in oklab, var(--accent) 14%, var(--panel));
  --accent-on-dark: color-mix(in oklab, var(--accent) 72%, white);

  --sidebar-bg: #232620;
  --sidebar-mix: white;
  --sidebar-ink: #ccd0c4;
  --sidebar-ink-strong: #f6f7ef;
  --sidebar-ink-muted: #a3a89a;
  --sidebar-raised: color-mix(in oklab, var(--sidebar-bg) 93%, var(--sidebar-mix));
  --sidebar-active: color-mix(in oklab, var(--sidebar-bg) 90%, var(--sidebar-mix));
  --sidebar-border: color-mix(in oklab, var(--sidebar-bg) 84%, var(--sidebar-mix));

  --hero-bg: #2d352b;
  --hero-border: #424b3d;
  --hero-ink: #fbfcf5;
  --hero-ink-soft: #ccd3c5;
  --hero-ink-muted: #b7c8aa;
  --hero-line: #70866868;

  --avatar-bg: #e9c7a3;
  --avatar-ink: #503e2c;
  --danger: #aa442c;
  --tone-green: #4a6c4e;
  --tone-green-soft: #e7f0e4;
  --tone-green-dot: #79926a;
  --tone-violet: #6a588c;
  --tone-violet-soft: #ede8f7;
  --tier-1: #b37350;
  --tier-2: #a5914e;
  --tier-3: #839c95;
  --tier-4: #9987a7;

  --radius-sm: 5px;
  --radius-md: 7px;
  --radius-lg: 12px;
  --radius-round: 50%;

  --mono: "IBM Plex Mono", monospace;
  --sans: "DM Sans", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font: 14px var(--sans);
  color: var(--ink);
  background: var(--bg);
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
#shell {
  display: flex;
  min-height: 100vh;
}
aside {
  background: var(--sidebar-bg);
  color: var(--sidebar-ink);
  width: 222px;
  flex: none;
  display: flex;
  flex-direction: column;
  padding: 28px 15px 16px;
  position: sticky;
  top: 0;
  height: 100dvh;
}
main {
  min-width: 0;
  flex: 1;
}
#top {
  height: 66px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: var(--panel);
}
.brand,
.row,
.nav,
.org,
.btn,
.top-actions,
.head,
.secthead,
.sectiontitle,
.filter,
.acct,
.pill,
.profile,
.signalMeta,
.toolbar,
.crumb {
  display: flex;
  align-items: center;
}
.brand {
  font-weight: 700;
  letter-spacing: -1.3px;
  font-size: 27px;
  color: var(--sidebar-ink-strong);
  gap: 10px;
  margin: 0 10px 36px;
}
.brand img {
  flex: none;
  display: block;
}
.org,
.profile {
  gap: 10px;
  width: 100%;
  text-align: left;
}
.org {
  padding: 11px;
  background: var(--sidebar-raised);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius-md);
  margin-bottom: 25px;
}
.org strong,
.profile strong {
  font-size: 13px;
  color: var(--sidebar-ink-strong);
  display: block;
}
.org small,
.profile small {
  font-size: 11px;
  color: var(--sidebar-ink-muted);
}
.org .ic:last-child {
  margin-left: auto;
}
.orgmark,
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  font-weight: 650;
  border-radius: var(--radius-md);
  background: var(--sidebar-border);
  color: var(--sidebar-ink-strong);
}
.navLabel,
.micro,
.tag,
.tableHead,
.metadata {
  font: 500 10px var(--mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.navLabel {
  color: var(--sidebar-ink-muted);
  margin: 17px 12px 8px;
}
.nav {
  gap: 12px;
  text-align: left;
  width: 100%;
  color: var(--sidebar-ink);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
}
.nav:hover,
.nav.active {
  background: var(--sidebar-active);
  color: var(--sidebar-ink-strong);
}
.nav.active .ic {
  color: var(--accent-on-dark);
}
.nav.active {
  box-shadow: inset 3px 0 var(--accent-on-dark);
}
.ic {
  width: 17px;
  height: 17px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile {
  margin-top: auto;
  padding: 18px 4px 0;
  border-top: 1px solid var(--sidebar-border);
}
.avatar {
  background: var(--avatar-bg);
  color: var(--avatar-ink);
  border-radius: var(--radius-round);
  font-size: 12px;
}
.crumb,
.top-actions {
  gap: 12px;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
}
.crumb strong {
  font-weight: 550;
  color: var(--ink);
}
.crumb .ic {
  width: 14px;
}
.top-actions {
  gap: 15px;
}
.searchBtn,
.mobileBtn,
.iconBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.searchBtn {
  color: var(--muted);
  font-size: 12px;
}
.searchBtn kbd {
  font: 10px var(--mono);
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.mobileBtn {
  display: none;
}
#content {
  max-width: 1580px;
  margin: auto;
  padding: 29px 34px 48px;
}
.head,
.secthead {
  justify-content: space-between;
  gap: 16px;
}
.head {
  margin-bottom: 24px;
}
.micro {
  color: var(--subtle);
}
.headerMicro {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.4px;
}
.headerMicro:before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: var(--radius-round);
}
h1 {
  font-size: clamp(32px, 3.1vw, 46px);
  font-weight: 550;
  letter-spacing: -2px;
  line-height: 1.07;
  margin: 8px 0 6px;
}
p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.head p {
  font-size: 14px;
}
.btn {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-md);
  gap: 8px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.btn:hover,
.card:hover {
  border-color: var(--line-strong);
}
.btn.primary {
  background: var(--accent-strong);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn.primary:hover {
  background: var(--accent-stronger);
}
.btn .ic {
  width: 15px;
  height: 15px;
}
.stats,
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.stat,
.card,
.panel,
.listitem {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.stat {
  padding: 17px 19px 14px;
  min-width: 0;
  overflow: hidden;
}
.statTop {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}
.statTop .ic {
  width: 16px;
  height: 16px;
}
.statBody {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 10px 0 4px;
}
.statBody strong {
  font: 500 39px/1 var(--sans);
  letter-spacing: -2px;
}
.stat small {
  font-size: 11px;
  color: var(--muted);
}
.spark {
  width: 44%;
  height: 36px;
  max-width: 130px;
}
.secthead {
  margin: 26px 0 12px;
}
.sectiontitle {
  gap: 8px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.7px;
  font-weight: 600;
  margin: 0;
}
h3 {
  font-size: 16px;
  letter-spacing: -0.4px;
  line-height: 1.32;
  margin: 10px 0 6px;
}
.textbtn {
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.textbtn .ic {
  width: 14px;
  height: 14px;
}
.card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 16px;
  min-width: 0;
  position: relative;
}
.cardTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  padding: 4px 7px;
  font-size: 9px;
  letter-spacing: 0.6px;
}
.tag .ic {
  width: 12px;
  height: 12px;
}
.c0 {
  color: var(--accent-text);
  background: var(--accent-soft);
}
.c1 {
  color: var(--tone-violet);
  background: var(--tone-violet-soft);
}
.c2 {
  color: var(--tone-green);
  background: var(--tone-green-soft);
}
.card time,
.metadata {
  font: 10px var(--mono);
  color: var(--muted);
}
.card p {
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.signalMeta {
  gap: 7px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 11px;
  color: var(--muted);
}
.signalMeta .arrow {
  margin-left: auto;
}
.mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  background: var(--surface-3);
  font-size: 15px;
  font-weight: bold;
  flex: none;
}
.mark.small {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  font-size: 11px;
}
.panel {
  overflow: auto;
}
.toolbar {
  justify-content: space-between;
  padding: 12px 15px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.filter {
  gap: 8px;
  flex-wrap: wrap;
}
.filter button {
  border: 1px solid transparent;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
}
.filter button.selected {
  border-color: var(--line);
  background: var(--surface-3);
  color: var(--ink);
}
.field,
.toolbar input,
select,
textarea {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
}
.toolbar input {
  min-width: 0;
  width: min(200px, 40%);
  font-size: 12px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}
.table th {
  font: 500 9px var(--mono);
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 1px;
  background: var(--surface-2);
  padding: 10px 15px;
}
.table td {
  font-size: 12px;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
}
.table tr[data-click] {
  cursor: pointer;
}
.table tr[data-click]:hover {
  background: var(--surface-hover);
}
.acct {
  gap: 9px;
}
.acct strong,
.acct small {
  display: block;
}
.acct small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.pill {
  display: inline-flex;
  gap: 5px;
  background: var(--tone-green-soft);
  color: var(--tone-green);
  border-radius: var(--radius-sm);
  padding: 3px 7px;
  font: 500 11px var(--mono);
}
.pill:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: var(--radius-round);
  background: var(--tone-green-dot);
}
.table .arrow,
.arrow {
  color: var(--faint);
}
.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}
.list {
  display: grid;
  gap: 9px;
}
.listitem {
  padding: 15px 18px;
  text-align: left;
  width: 100%;
}
.listitem h3 {
  margin: 0 0 5px;
}
.listitem p {
  font-size: 13px;
}
.subsection {
  margin: 22px 0 10px;
}
.menu {
  display: grid;
  gap: 8px;
}
.menu .btn {
  justify-content: flex-start;
}
dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--ink);
  width: min(515px, 94vw);
  max-height: 88vh;
  padding: 0;
}
dialog::backdrop {
  background: var(--backdrop);
}
#modal {
  padding: 23px;
}
.modalHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.modalHead h2 {
  font-size: 23px;
}
.iconBtn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
}
.iconBtn:hover {
  background: var(--surface-3);
}
form {
  display: grid;
  gap: 12px;
}
form label {
  display: grid;
  gap: 5px;
  font-weight: 550;
  font-size: 12px;
}
form input:not([type="file"]),
form textarea,
form select {
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--field);
}
form textarea {
  min-height: 78px;
  resize: vertical;
}
form .primary {
  justify-content: center;
}
form p,
.details p {
  font-size: 13px;
}
.details p {
  margin: 8px 0;
}
.details a {
  color: var(--accent-text);
}
.error {
  font-size: 13px;
  color: var(--danger);
}
.note {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0;
}
.menu .btn small {
  margin-left: auto;
}
.sr {
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--panel);
  display: none;
  z-index: 8;
  font-size: 13px;
}
.head .row {
  gap: 8px;
}
.appDate {
  font: 11px var(--mono);
  color: var(--muted);
}
.sourceBadge {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 4px 7px;
  border-radius: var(--radius-sm);
  font: 10px var(--mono);
  color: var(--subtle);
}
@media (min-width: 1500px) {
  #content {
    padding-top: 40px;
  }
  .stat,
  .card {
    padding: 22px;
  }
  .secthead {
    margin-top: 32px;
  }
}
@media (max-width: 1100px) {
  aside {
    width: 190px;
    padding-left: 10px;
    padding-right: 10px;
  }
  #content {
    padding: 23px 20px;
  }
  #top {
    padding: 0 20px;
  }
  .table th,
  .table td {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 850px) {
  aside {
    width: 176px;
  }
  .stats,
  .cards {
    gap: 8px;
  }
  .card,
  .stat {
    padding: 13px;
  }
  .head {
    align-items: flex-start;
  }
  .card time {
    display: none;
  }
  .table {
    min-width: 620px;
  }
  .brand {
    font-size: 23px;
    margin-left: 6px;
  }
}
@media (max-width: 680px) {
  aside {
    position: fixed;
    z-index: 5;
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 223px;
  }
  body.menuopen aside {
    transform: translateX(0);
  }
  .mobileBtn {
    display: flex;
  }
  .crumb {
    gap: 7px;
  }
  .appDate {
    display: none;
  }
  #content {
    padding: 20px 15px;
  }
  #top {
    height: 54px;
    padding: 0 15px;
  }
  .head {
    align-items: flex-start;
  }
  .head p {
    font-size: 12px;
  }
  .head .row {
    flex-direction: column;
  }
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .statTop {
    font-size: 10px;
    gap: 4px;
  }
  .statTop .ic {
    width: 12px;
  }
  .statBody strong {
    font-size: 27px;
  }
  .stat small {
    font-size: 9px;
  }
  .spark {
    display: none;
  }
  .stat {
    padding: 10px;
  }
  .cards {
    display: flex;
    overflow: auto;
    padding-bottom: 3px;
    scroll-snap-type: x mandatory;
  }
  .card {
    min-width: 245px;
    scroll-snap-align: start;
  }
  .searchBtn span,
  .searchBtn kbd {
    display: none;
  }
  .head .btn {
    padding: 7px;
    font-size: 11px;
  }
  .brand {
    font-size: 27px;
  }
  .secthead {
    margin-top: 21px;
  }
}
.productPicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  font-size: 12px;
  color: var(--muted);
}
.mapping:not(:empty) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mapping > p,
.mapping > h3 {
  grid-column: 1/-1;
  margin: 0;
}
.mapping select {
  max-width: 100%;
}
.navScroll {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--sidebar-border) transparent;
  margin-bottom: 12px;
}
.navScroll .nav {
  padding-top: 7px;
  padding-bottom: 7px;
}
.navScroll .navLabel {
  margin-top: 14px;
}
.brand,
.org,
.profile {
  flex-shrink: 0;
}
aside .brand {
  margin-bottom: 20px;
}
aside .org {
  margin-bottom: 6px;
}
.welcome {
  min-height: 216px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--hero-bg);
  color: var(--hero-ink);
  border: 1px solid var(--hero-border);
  border-radius: var(--radius-lg);
  padding: 28px 34px;
  overflow: hidden;
  position: relative;
}
.welcome > div:first-child {
  z-index: 1;
  max-width: 480px;
}
.welcome .micro {
  color: var(--hero-ink-muted);
}
.welcome h2 {
  font-size: clamp(24px, 3vw, 35px);
  font-weight: 550;
  margin: 10px 0;
  letter-spacing: -1.3px;
}
.welcome p {
  color: var(--hero-ink-soft);
  max-width: 410px;
  margin-bottom: 18px;
}
.radarArt {
  position: absolute;
  right: 4%;
  top: 50%;
  width: 230px;
  height: 230px;
  transform: translateY(-50%) rotate(-22deg);
  border-radius: var(--radius-round);
  border: 1px solid var(--hero-line);
  background: repeating-radial-gradient(
    circle at center,
    transparent 0 26px,
    var(--hero-line) 27px,
    transparent 28px
  );
  opacity: 0.85;
}
.radarArt:after,
.radarArt:before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid var(--hero-line);
}
.radarArt:before {
  transform: rotate(90deg);
}
.radarArt b {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-round);
  background: var(--accent-on-dark);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent-on-dark) 18%, transparent);
}
.radarArt b:nth-of-type(1) {
  left: 38%;
  top: 35%;
}
.radarArt b:nth-of-type(2) {
  left: 75%;
  top: 44%;
}
.radarArt b:nth-of-type(3) {
  left: 45%;
  top: 73%;
}
.setupcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.setupcard,
.nextTask,
.tierMetric {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 18px;
}
.setupcard p,
.nextTask p {
  font-size: 13px;
}
.setupIcon {
  display: inline-grid;
  place-items: center;
  background: var(--surface-tint);
  color: var(--tone-green);
  border-radius: var(--radius-md);
  width: 31px;
  height: 31px;
}
.tierMetrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.tierMetric {
  text-align: left;
  display: grid;
  gap: 9px;
}
.tierMetric div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}
.tierMetric i {
  height: 8px;
  width: 8px;
  border-radius: var(--radius-round);
  background: var(--tier-1);
}
.tierMetric.tone1 i {
  background: var(--tier-2);
}
.tierMetric.tone2 i {
  background: var(--tier-3);
}
.tierMetric.tone3 i {
  background: var(--tier-4);
}
.tierMetric strong {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -1.5px;
  font-weight: 550;
}
.tierMetric small {
  font-size: 11px;
  color: var(--muted);
}
.tierMetric.total {
  background: var(--surface-tint);
}
.targetFilters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.targetFilters label {
  display: grid;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
  flex: 1;
  min-width: 64px;
}
.targetFilters select,
.targetFilters input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-sm);
  font-size: 12px;
  padding: 7px 6px;
}
.targetFilters .targetSearch {
  min-width: 120px;
}
.nextTask,
.scoreLine {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.nextTask {
  margin-bottom: 18px;
  background: var(--surface-tint);
}
.nextTask h3 {
  margin: 0 0 4px;
}
.targetActions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.scoreLine {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.scoreLine div {
  flex: 1;
}
.scoreLine small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.scoreLine .btn {
  font-size: 11px;
  padding: 5px 7px;
}
@media (max-width: 920px) {
  .radarArt {
    right: -110px;
    opacity: 0.5;
  }
  .welcome > div:first-child {
    max-width: 79%;
  }
}
@media (max-width: 680px) {
  .setupcards {
    grid-template-columns: 1fr;
  }
  .welcome {
    padding: 22px;
    min-height: 200px;
  }
  .welcome > div:first-child {
    max-width: 90%;
  }
  .tierMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tierMetric {
    padding: 14px;
  }
  .targetFilters label {
    min-width: 90px;
  }
}

#shell[hidden], #entry[hidden] { display: none; }
#entry {
  width: min(100%, 480px);
  margin: clamp(40px, 14vh, 140px) auto;
  padding: 0 24px;
}
#entry > img { display: block; }
#entry h1 { margin: 20px 0 12px; line-height: 1.12; }
#entry p { margin: 0; line-height: 1.55; }
.entryButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.entryButtons .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  text-decoration: none;
}
#entryError:not(:empty) { margin-top: 16px; }
@media (max-width: 420px) {
  .entryButtons { flex-direction: column; }
}
.guidedResult { padding: 16px 0; border-top: 1px solid var(--line); }
.guidedResult h3 { margin: 6px 0; }
.guidedResult .targetActions { margin: 12px 0; }

.accessNote { color: var(--muted); margin: 0 0 14px; }
button:disabled { cursor: default; opacity: .65; }
#modal { overflow-wrap: anywhere; }
#modal fieldset { min-width: 0; }
#modal input, #modal textarea, #modal select { max-width: 100%; }
.loadError {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid color-mix(in oklab, var(--danger) 35%, var(--line));
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--danger) 6%, var(--panel));
}
.loadError .error {
  margin: 0;
  flex: 1;
}
.memberList {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.memberRow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
}
.memberRow > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  display: grid;
}
.memberRow strong,
.memberRow small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.memberRow small {
  color: var(--muted);
  font-size: 12px;
}
.memberRow .avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  font-size: 12px;
  font-weight: 650;
}
.memberRow select {
  width: auto;
}
.menu h3 {
  margin: 14px 0 6px;
  font-size: 13px;
}
.techDetails {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.techDetails code {
  font-family: var(--mono);
  word-break: break-all;
}
.warn {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 13px;
}
.signIn {
  display: grid;
  gap: 12px;
  max-width: 360px;
}
.signIn input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--field);
  font: inherit;
}
