/* Newneo-inspired shell and surfaces. Deliberately no table/row/cell rules. */
.topbar {
  position: relative;
  z-index: 5;
}
.shell-breadcrumb,
.shell-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shell-breadcrumb strong {
  font-weight: 500;
  color: var(--muted);
}
.shell-tools {
  gap: 8px;
}
.shell-menu {
  border: 0;
  padding: 0;
  position: relative;
}
.shell-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  padding: 7px;
  color: var(--muted);
}
.shell-menu summary::-webkit-details-marker {
  display: none;
}
.shell-menu summary:hover,
.shell-menu[open] > summary {
  background: var(--tint);
  color: var(--primary);
}
.shell-menu svg,
.shell-dialog svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.shell-avatar {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eff4fb;
  color: var(--primary);
  border: 1px solid #dce7f6;
}
.profile-control > summary {
  padding: 3px 5px;
}
.profile-control > summary > svg {
  width: 12px;
}
.shell-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 260px;
  max-width: calc(100vw - 32px);
  padding: 7px;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 35px #0f172a18;
  z-index: 30;
}
.popover-heading {
  padding: 10px 11px 13px;
}
.popover-heading strong {
  font-size: 13px;
  font-weight: 600;
}
.popover-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.shell-popover a,
.shell-popover button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 11px;
  border: 0;
  border-radius: 7px;
  color: #475569;
  font-size: 12px;
  font-weight: 450;
  background: transparent;
}
.shell-popover a:hover,
.shell-popover button:hover {
  background: var(--tint);
  color: var(--primary);
  text-decoration: none;
}
.popover-divider {
  height: 1px;
  background: var(--line);
  margin: 5px 8px;
}
.sidebar {
  z-index: 6;
}
.sidebar nav a {
  font-weight: 450;
  transition: background 0.15s;
}
.sidebar nav a:not([aria-current]):hover {
  background: #172235;
  color: #fff;
  text-decoration: none;
}
.sidebar footer {
  padding: 12px 0 0;
}
.workspace-control > summary {
  justify-content: flex-start;
  color: #cbd5e1;
  padding: 8px;
  gap: 10px;
}
.workspace-control > summary:hover,
.workspace-control[open] > summary {
  background: #172235;
  color: white;
}
.workspace-avatar {
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #1d2c43;
  color: #c3d5ed;
  font-size: 13px;
  border: 1px solid #334155;
}
.workspace-name {
  flex: 1;
  min-width: 0;
}
.workspace-name strong {
  font-weight: 500;
  font-size: 12px;
}
.workspace-name small {
  font-size: 10px;
  margin-top: 0;
}
.workspace-control .shell-popover {
  top: auto;
  bottom: calc(100% + 10px);
  left: 0;
  right: auto;
  width: 260px;
}
.workspace-control .shell-popover p {
  color: var(--muted);
}
.heading h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.9px;
  line-height: 1.25;
  margin: 6px 0 9px;
}
.heading .eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #7b8ba2;
  font-weight: 600;
}
.heading #subtitle {
  font-size: 13px;
  line-height: 1.6;
}
.panel:not(.market-panel),
.metrics article {
  box-shadow: 0 2px 5px #0f172a03;
  border-color: #e2e8f0;
}
.panel-head h2,
.product-card h2,
.empty h2 {
  font-weight: 550;
  letter-spacing: -0.3px;
}
.panel-head {
  background: linear-gradient(110deg, #fff, #fbfcfe);
}
.panel-head p {
  font-size: 12px;
  line-height: 1.6;
}
.metrics article {
  border-radius: 10px;
  background: white;
}
.metrics article > span {
  font-size: 11px;
  font-weight: 500;
}
.metrics article > strong {
  font-weight: 550;
  letter-spacing: -0.6px;
}
.empty.panel {
  position: relative;
  text-align: left;
  padding: 26px 28px 26px 76px;
  background: #fff;
}
.empty.panel:before {
  content: "↗";
  position: absolute;
  left: 24px;
  top: 26px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--primary);
  background: var(--tint);
  font-size: 18px;
}
.empty.panel p {
  font-size: 13px;
}
.product-card {
  border-radius: 12px;
}
.page-footer {
  color: #94a3b8;
}
.shell-dialog {
  width: 440px;
  max-width: calc(100vw - 32px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 80px #0f172a2e;
}
.shell-dialog::backdrop {
  background: #0b122055;
  backdrop-filter: blur(3px);
}
.shell-dialog-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  font-size: 22px;
  padding: 2px 10px;
  color: var(--muted);
}
.shell-feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--tint);
  color: var(--primary);
  border-radius: 12px;
  margin-bottom: 20px;
}
.shell-dialog h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.shell-dialog p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 10px 0 20px;
}
.shell-dialog .primary {
  margin-top: 8px;
  width: 100%;
}
.help-steps {
  border-block: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: 14px;
}
.help-steps strong {
  font-size: 12px;
  font-weight: 600;
}
.help-steps p {
  font-size: 12px;
  margin: 4px 0 12px;
}
.access-note {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
  background: var(--canvas);
  margin: 18px 0;
}
@media (max-width: 650px) {
  .topbar {
    padding: 0 16px;
    gap: 8px;
  }
  .shell-breadcrumb {
    font-size: 11px;
    gap: 7px;
  }
  .shell-tools {
    gap: 2px;
  }
  .heading h1 {
    font-size: 24px;
  }
  .heading #subtitle {
    font-size: 12px;
  }
  .empty.panel {
    padding: 22px 20px 22px 66px;
  }
  .empty.panel:before {
    left: 18px;
    top: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar nav a {
    transition: none;
  }
}
/* Simple, service-scoped approval flow; list presentation is unchanged. */
.service-fix-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.fix-dialog {
  width: 560px;
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 80px #0f172a2e;
}
.fix-dialog::backdrop {
  background: #0b122055;
  backdrop-filter: blur(3px);
}
.fix-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.fix-kicker {
  color: var(--primary);
  font-size: 11px;
  font-weight: 500;
}
.fix-heading h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin-top: 5px;
  font-weight: 600;
}
.fix-heading p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.fix-heading button {
  border: 0;
  padding: 0 8px;
  font-size: 24px;
  color: var(--muted);
}
.fix-body {
  padding: 18px 24px;
}
.fix-body h3,
.fix-problem strong {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 5px;
}
.fix-body p {
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
  color: #475569;
}
.fix-body section {
  margin-top: 18px;
}
.fix-problem {
  background: var(--tint);
  padding: 12px 14px;
  border-radius: 9px;
}
.fix-skills {
  margin-top: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.fix-skills summary {
  font-size: 12px;
  color: var(--primary);
}
.fix-skills p {
  margin-top: 10px;
}
.fix-skills ol {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}
.fix-body .fix-demo-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 16px;
}
.fix-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}
.fix-result {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 20px 0;
}
.fix-result strong {
  display: block;
  font-size: 26px;
  font-weight: 600;
}
@media (max-width: 480px) {
  .fix-heading,
  .fix-body,
  .fix-footer {
    padding: 16px;
  }
  .fix-footer {
    flex-wrap: wrap;
  }
  .service-fix-actions {
    gap: 8px;
  }
}
.row-fix-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 90px;
}
.row-fix-button {
  padding: 2px 9px;
  font-size: 11px;
  line-height: 1.5;
  border-radius: 5px;
  background: #15803d;
  border-color: #15803d;
  color: #fff;
}
.row-fix-button:hover {
  background: #166534;
  border-color: #166534;
}
.row-fix-progress {
  width: 62px;
  font-size: 11px;
  color: #15803d;
  text-align: center;
  line-height: 1.2;
}
.row-fix-progress progress {
  display: block;
  width: 62px;
  height: 5px;
  margin-top: 3px;
  accent-color: #15803d;
}
.board-table .board-action-cell,
.board-table th:last-child {
  position: sticky;
  right: 0;
  background: var(--surface);
  box-shadow: -1px 0 var(--line);
}
.service-home .board-table thead th:last-child {
  z-index: 2;
}
.fix-run-note {
  font-size: 12px;
  color: var(--warning);
  align-self: center;
}

.board-table .board-action-cell,
.board-table th:last-child {
  text-align: center;
}
.row-fix-progress progress {
  appearance: none;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #dcfce7;
}
.row-fix-progress progress::-webkit-progress-bar {
  background: #dcfce7;
}
.row-fix-progress progress::-webkit-progress-value {
  background: #15803d;
}
.row-fix-progress progress::-moz-progress-bar {
  background: #15803d;
}
