:root {
  --bg: #f5f7fa;
  --bg2: #ffffff;
  --card: rgba(255, 255, 255, 0.88);
  --card-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(15, 23, 42, 0.10);
  --text: #0f172a;
  --muted: #5f6b7f;
  --accent: #0f9ea8;
  --accent-2: #f97352;
  --warn: #d97706;
  --danger: #dc2626;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(15, 158, 168, 0.10), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(249, 115, 82, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fafc, #f5f7fa 34%, #eef2f7 100%);
  color: var(--text);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  padding: 28px;
}

.shell {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
}

.workspace {
  position: relative;
  display: grid;
  gap: 26px;
  isolation: isolate;
}

.workspace::before,
.workspace::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  filter: blur(0.2px) saturate(1.1);
}

.workspace::before {
  width: min(54vw, 780px);
  height: min(54vw, 780px);
  right: -16vw;
  bottom: -22vw;
  background:
    radial-gradient(ellipse at 58% 42%, rgba(255, 255, 255, 0.34), transparent 0 18%, transparent 19%),
    linear-gradient(145deg, rgba(15, 158, 168, 0.86), rgba(20, 184, 166, 0.62) 48%, rgba(83, 74, 183, 0.48));
  border-radius: 86% 8% 78% 12%;
  transform: rotate(-33deg);
  box-shadow: -28px 26px 80px rgba(15, 158, 168, 0.22);
}

.workspace::after {
  width: min(34vw, 500px);
  height: min(34vw, 500px);
  right: -11vw;
  top: 28vh;
  background:
    radial-gradient(ellipse at 55% 42%, rgba(255, 255, 255, 0.28), transparent 0 17%, transparent 18%),
    linear-gradient(150deg, rgba(249, 115, 82, 0.78), rgba(255, 183, 27, 0.64) 58%, rgba(15, 158, 168, 0.22));
  border-radius: 10% 82% 12% 76%;
  transform: rotate(24deg);
  box-shadow: -20px 24px 70px rgba(249, 115, 82, 0.18);
}

.page-panel {
  position: relative;
  z-index: 1;
}

.hours-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.tasks-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.hours-main {
  min-width: 0;
}

.hours-layout.sidebar-open {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.hours-sidebar {
  position: sticky;
  top: 18px;
}

.tasks-sidebar {
  position: sticky;
  top: 18px;
}

.page-sidebar[hidden] {
  display: none !important;
}

.topbar {
  position: relative;
  z-index: 10000;
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.topbar-row {
  display: grid;
  grid-template-columns: auto auto;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.topbar-menu {
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  display: block;
  width: auto;
  height: 75px;
  max-width: min(430px, 58vw);
}

.brand-name {
  display: none;
}

.menu {
  position: relative;
  z-index: 10001;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.menu-dropdown {
  position: relative;
  z-index: 10002;
}

.menu-tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.menu-tab.active {
  background: linear-gradient(135deg, rgba(15, 158, 168, 0.14), rgba(249, 115, 82, 0.12));
  color: var(--text);
  border-color: rgba(15, 158, 168, 0.30);
}

.menu-tab-sc {
  border-color: rgba(249, 115, 82, 0.24);
  color: #c2410c;
}

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10020;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.command-dropdown {
  z-index: 10030;
}

.hamburger-overlay,
.menu-overlay,
.mobile-menu,
.mobile-nav {
  position: fixed;
  z-index: 10040;
}

.command-toggle {
  min-width: 112px;
}

.command-menu {
  width: 40vw;
  min-width: 400px;
  max-width: calc(100vw - 40px);
  display: grid;
  gap: 12px;
  padding: 12px;
}

.command-menu[hidden] {
  display: none;
}

.command-menu-compact {
  width: auto;
  min-width: 220px;
}

.command-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.command-grid {
  display: grid;
  align-items: stretch;
}

.command-grid-one {
  grid-template-columns: minmax(0, 1fr);
}

.command-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.command-grid-labeled {
  grid-template-columns: 112px repeat(2, minmax(0, 1fr));
}

.command-grid-danger {
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
}

.command-row-danger {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.command-label {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-row button {
  width: 100%;
  min-height: 42px;
  white-space: nowrap;
}

.account-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.account-chip {
  display: grid;
  gap: 2px;
  text-align: right;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.account-name {
  font-weight: 800;
}

.account-role {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.panel {
  background: linear-gradient(180deg, var(--card), rgba(255, 255, 255, 0.72));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(15, 158, 168, 0.10);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.panel {
  padding: 18px;
  margin-top: 18px;
}

.controls-panel {
  margin-bottom: 40px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.page-panel {
  display: none;
}

.page-panel.active {
  display: block;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 14px;
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: 20px;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
}

.page-new-btn {
  white-space: nowrap;
}

.controls {
  display: grid;
  grid-template-columns: 1.5fr 0.6fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span {
  color: var(--muted);
  font-size: 13px;
}

.field input[type="file"],
.field select,
.field input[type="search"],
.field input[type="number"],
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="date"],
.field input[type="url"],
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.field input[type="file"]:hover,
.field select:hover,
.field input[type="search"]:hover,
.field input[type="number"]:hover,
.field input[type="text"]:hover,
.field input[type="email"]:hover,
.field input[type="password"]:hover,
.field input[type="url"]:hover,
.field textarea:hover {
  border-color: rgba(15, 158, 168, 0.28);
  background: #fff;
}

.field input[type="file"]:focus,
.field select:focus,
.field input[type="search"]:focus,
.field input[type="number"]:focus,
.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field input[type="password"]:focus,
.field input[type="url"]:focus,
.field textarea:focus,
.field input[type="file"]:focus-visible,
.field select:focus-visible,
.field input[type="search"]:focus-visible,
.field input[type="number"]:focus-visible,
.field input[type="text"]:focus-visible,
.field input[type="email"]:focus-visible,
.field input[type="password"]:focus-visible,
.field input[type="url"]:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: rgba(15, 158, 168, 0.64);
  box-shadow: 0 0 0 4px rgba(15, 158, 168, 0.12);
  background: #fff;
}

.field input[type="date"] {
  position: relative;
  min-height: 48px;
  padding-right: 46px;
  color-scheme: light;
  letter-spacing: 0.01em;
}

.field input[type="date"]:hover {
  border-color: rgba(15, 158, 168, 0.28);
  background: #fff;
}

.field input[type="date"]:focus,
.field input[type="date"]:focus-visible {
  outline: none;
  border-color: rgba(15, 158, 168, 0.64);
  box-shadow: 0 0 0 4px rgba(15, 158, 168, 0.12);
  background: #fff;
}

.field input[type="date"]::-webkit-calendar-picker-indicator {
  width: 22px;
  height: 22px;
  margin-right: -32px;
  padding: 9px;
  border-radius: 12px;
  background-color: rgba(15, 158, 168, 0.10);
  cursor: pointer;
  opacity: 0.85;
}

.field input[type="date"]::-webkit-calendar-picker-indicator:hover {
  background-color: rgba(15, 158, 168, 0.18);
  opacity: 1;
}

.field input[type="date"]::-webkit-datetime-edit {
  color: var(--text);
}

.field input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.field input[type="date"]::-webkit-datetime-edit-text {
  color: var(--muted);
  padding: 0 2px;
}

.field textarea {
  resize: vertical;
  min-height: 88px;
}

.editor-form,
.login-form {
  display: grid;
  gap: 12px;
}

.editor-grid {
  display: grid;
  gap: 12px;
}

.editor-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.editor-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.hour-item {
  padding: 0;
  overflow: hidden;
}

.hour-details {
  display: block;
}

.hour-details > summary {
  list-style: none;
}

.hour-details > summary::-webkit-details-marker {
  display: none;
}

.hour-summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 110px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.hour-desc {
  min-width: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hour-hours {
  justify-self: end;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 700;
}

.hour-approved {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  user-select: none;
}

.hour-approved input {
  width: 18px;
  height: 18px;
}

.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;
}

.hour-body {
  padding: 14px 16px 16px;
}

.week-accordion {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  padding: 10px 14px;
}

.week-accordion > summary {
  cursor: pointer;
  font-weight: 800;
}

.day-stack {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.day-block h4 {
  margin: 0 0 12px;
  font-size: 16px;
}

.meta-row,
.task-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

form[data-resource="fixes"].task-item,
form[data-resource="tests"].task-item {
  padding: 0;
  overflow: hidden;
}

.task-accordion {
  display: block;
}

.task-accordion > summary {
  list-style: none;
}

.task-accordion > summary::-webkit-details-marker {
  display: none;
}

.task-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.task-summary-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.task-summary-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.task-summary-name {
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.task-summary-copy {
  display: block;
  max-width: min(860px, 100%);
  overflow: hidden;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.62;
  margin-top: 2px;
  white-space: pre-line;
}

.task-summary-progress {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 160px;
}

.task-summary-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  min-width: 0;
}

.progress-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(15, 158, 168, 0.10);
  padding: 5px 10px;
  border-radius: 999px;
}

.progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.08);
}

.progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.field .star-rating {
  margin-top: 4px;
}

.star-rating--control {
  flex-wrap: wrap;
}

.star-rating--control .star-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  color: rgba(15, 23, 42, 0.18);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.star-rating--control .star-button.active {
  color: var(--accent);
}

.star-rating--control .star-button:hover {
  transform: translateY(-1px);
}

.star-rating--control input[type="hidden"] {
  display: none;
}

.task-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}

.priority-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 158, 168, 0.10);
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
}

.running-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 82, 0.14);
  color: #c2410c;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.approval-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 158, 168, 0.18);
  background: rgba(15, 158, 168, 0.08);
  color: #0f7f86;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.approval-pill input {
  width: 18px;
  height: 18px;
}

.approval-pill input:disabled {
  opacity: 0.55;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.subpanel {
  margin-top: 0;
}

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

.login-body {
  padding: 28px;
}

.login-shell {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.login-logo {
  display: block;
  width: min(360px, 100%);
  height: auto;
  margin: 0 auto 18px;
}

.login-card h1 {
  margin: 0;
  font-size: 32px;
}

.login-copy,
.login-note {
  color: var(--muted);
}

.login-copy {
  margin: 8px 0 18px;
}

.password-field {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.password-field input {
  flex: 1;
}

.password-toggle {
  width: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.login-submit {
  margin-top: 4px;
  width: 100%;
}

.login-error {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.login-note {
  margin-top: 14px;
  font-size: 13px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

button.primary {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}

button.primary:hover {
  background: #0d8f98;
}

button.danger {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

button.ghost {
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
}

.progress-wrap {
  margin-top: 16px;
}

.controls + .progress-wrap {
  margin-top: 22px;
}

.status-row {
  display: flex;
  margin-top: 16px;
}

.progress-bar {
  height: 12px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar > div {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 160ms ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.log {
  margin: 14px 0 0;
  min-height: 92px;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 14px;
  color: var(--text);
}

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

.summary-card {
  padding: 16px;
  background: linear-gradient(180deg, var(--card), rgba(255, 255, 255, 0.72));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.summary-card .label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-card .value {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 800;
}

.summary-card .detail {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.chip.safe {
  background: rgba(15, 158, 168, 0.10);
  color: #0f7f86;
}

.chip.stable {
  background: rgba(15, 23, 42, 0.05);
  color: #334155;
}

.chip.specific {
  background: rgba(249, 115, 82, 0.10);
  color: #c2410c;
}

.coverage-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.coverage-list {
  display: grid;
  gap: 10px;
}

.coverage-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

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

.coverage-label {
  font-weight: 700;
}

.coverage-sub {
  color: var(--muted);
  font-size: 12px;
}

.coverage-meter {
  height: 10px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.coverage-meter > div {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.table-wrap {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: rgba(248, 250, 252, 0.98);
  z-index: 1;
  color: var(--text);
}

td.num, th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

tbody tr:hover {
  background: rgba(15, 23, 42, 0.03);
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.tag.parsed {
  background: rgba(15, 158, 168, 0.10);
  color: #0f7f86;
}

.tag.warning {
  background: rgba(217, 119, 6, 0.12);
  color: #a16207;
}

.tag.error {
  background: rgba(220, 38, 38, 0.10);
  color: #b91c1c;
}

.tag.skipped {
  background: rgba(100, 116, 139, 0.10);
  color: #475569;
}

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

.small {
  font-size: 13px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.validation-box {
  display: grid;
  gap: 12px;
}

.dashboard-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
}

.placeholder-card {
  width: min(720px, 100%);
  padding: 26px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.placeholder-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.placeholder-card h3 {
  margin: 0;
  font-size: 24px;
}

.placeholder-card p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 60ch;
}

.report {
  min-height: 160px;
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 14px;
}

.sc-test-output {
  min-height: 360px;
  max-height: 68vh;
  margin-top: 14px;
}

.samcart-dashboard {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.connection-settings {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.connection-settings > summary {
  cursor: pointer;
  padding: 13px 14px;
  font-weight: 850;
}

.connection-settings-form {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 220px auto;
  gap: 12px;
  align-items: end;
  padding: 0 14px 14px;
}

.connection-settings-form .actions {
  align-self: end;
}

.connection-settings-meta {
  grid-column: 1 / -1;
  font-size: 13px;
}

.connection-status {
  margin-top: 10px;
}

.connection-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.connection-store-status {
  margin-top: 12px;
}

.ai-insight-panel {
  position: relative;
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid rgba(15, 158, 168, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 158, 168, 0.08), rgba(255, 255, 255, 0.86));
}

.ai-insight-close {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  border-color: rgba(15, 158, 168, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.ai-insight-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-right: 72px;
}

.ai-insight-head h3 {
  margin: 2px 0 0;
}

.ai-insight-body {
  color: var(--text);
  line-height: 1.55;
}

.ai-insight-body p {
  margin: 0 0 10px;
}

.ai-insight-body p:last-child {
  margin-bottom: 0;
}

.ai-insight-loading,
.ai-insight-error {
  color: var(--muted);
  font-weight: 800;
}

.ai-insight-error {
  color: var(--danger);
}

.import-progress {
  display: grid;
  gap: 10px;
  width: min(100%, 620px);
  padding: 13px 14px;
  border: 1px solid rgba(0, 180, 166, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(0, 180, 166, 0.12), rgba(255, 255, 255, 0.86)),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(0, 180, 166, 0.10);
}

.import-progress-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.import-progress-head strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.import-progress-head span {
  color: var(--aqua-strong);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.import-progress-track {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(12, 38, 49, 0.08);
}

.import-progress-track > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aqua), var(--brand-green));
  transition: width 220ms ease;
}

.import-progress.is-indeterminate .import-progress-track > span {
  min-width: 32%;
  animation: importProgressPulse 1.1s ease-in-out infinite alternate;
}

.import-progress-detail {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.scx-section {
  margin: 28px 0;
}

.scx-section-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.scx-insight-grid + .scx-insight-grid {
  margin-top: 18px;
}

@keyframes importProgressPulse {
  from {
    transform: translateX(-14%);
    opacity: 0.7;
  }
  to {
    transform: translateX(18%);
    opacity: 1;
  }
}

.connection-store-card {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.connection-store-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connection-store-main {
  margin-top: 4px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.connection-store-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.connection-filter-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.connection-filter-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.connection-filter-head h3 {
  margin: 0;
  font-size: 20px;
}

.connection-filter-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.connection-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 14px;
}

.connection-filter-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.connection-filter-group > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 850;
}

.connection-filter-group > summary span {
  color: var(--accent);
  font-size: 12px;
}

.connection-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding: 0 12px 12px;
}

.connection-checkbox {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
}

.connection-checkbox:hover {
  background: rgba(15, 158, 168, 0.08);
}

.connection-checkbox input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.connection-checkbox span {
  overflow-wrap: anywhere;
}

.sc-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.sc-metric,
.sc-endpoint,
.sc-resource {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.sc-metric {
  padding: 14px;
  border-radius: 12px;
}

.sc-metric .label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.sc-metric .value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 850;
}

.sc-metric .detail {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.sc-endpoint-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.sc-endpoint {
  padding: 12px;
  border-radius: 10px;
}

.sc-endpoint.ok {
  border-color: rgba(15, 158, 168, 0.22);
}

.sc-endpoint.bad {
  border-color: rgba(220, 38, 38, 0.24);
}

.sc-endpoint-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.sc-endpoint-message {
  margin-top: 8px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.35;
}

.sc-resource-stack {
  display: grid;
  gap: 18px;
}

.sc-resource {
  border-radius: 12px;
  overflow: hidden;
}

.sc-resource-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.sc-resource-head h3 {
  margin: 0;
}

.sc-resource-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.sc-table-wrap {
  border: 0;
  border-radius: 0;
  max-height: 560px;
}

.sc-table {
  min-width: 1100px;
}

.sc-table td,
.sc-table th {
  max-width: 280px;
}

.sc-table th.wide-text-field,
.sc-table td.wide-text-field,
.scx-table th.wide-text-field,
.scx-table td.wide-text-field {
  min-width: 420px;
  max-width: 520px;
}

.sc-table td {
  overflow-wrap: anywhere;
}

.sortable-header {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-align: left;
}

.sortable-header:hover,
.sortable-header.active {
  color: var(--accent);
}

.sort-arrow {
  color: var(--accent-2);
  font-size: 12px;
  line-height: 1;
}

.sc-table code {
  display: inline-block;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}

.cell-disclosure {
  max-width: 420px;
}

.cell-disclosure > summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-disclosure > summary::marker {
  color: var(--accent-2);
}

.cell-disclosure pre {
  max-width: min(620px, 72vw);
  max-height: 240px;
  margin: 8px 0 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  white-space: pre-wrap;
}

.sc-response-panel {
  padding: 16px;
}

.sc-response-message {
  margin-bottom: 12px;
  color: var(--danger);
  font-weight: 800;
}

.sc-response-table-wrap {
  border-radius: 10px;
  max-height: 360px;
}

.sc-response-table {
  min-width: 0;
}

.sc-response-table th:first-child,
.sc-response-table td:first-child {
  width: 190px;
}

.sc-response-raw {
  margin: 0;
  padding: 16px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--muted);
}

.sc-chip-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.connection-tag-text {
  color: var(--accent);
  font-weight: 750;
}

.sc-empty {
  padding: 18px;
  color: var(--muted);
}

.scx-dashboard {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.scx-filter-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.scx-section-title {
  margin: 0;
  font-size: 20px;
}

.scx-filter-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.scx-filter-head {
  margin-top: 20px;
}

.scx-checkbox-filter-grid {
  align-items: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scx-group-heading {
  padding: 0 2px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scx-kpis {
  margin-top: 0;
}

.scx-kpis.has-active-filters {
  padding: 14px;
  border: 2px solid rgba(15, 158, 168, 0.72);
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(15, 158, 168, 0.14), 0 0 26px rgba(15, 158, 168, 0.30);
  background: rgba(15, 158, 168, 0.035);
}

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

.scx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  min-height: 220px;
}

.scx-card.is-full-width {
  grid-column: 1 / -1;
}

.scx-card.is-resizing {
  user-select: none;
}

.scx-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.scx-card-head h3 {
  margin: 0;
}

.scx-card-head span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scx-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.scx-expand-btn {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 158, 168, 0.24);
  background: rgba(15, 158, 168, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.scx-card-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.scx-resize-handle {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 34px;
  height: 18px;
  cursor: ns-resize;
}

.scx-resize-handle::before {
  content: "";
  display: block;
  width: 28px;
  height: 10px;
  margin-left: auto;
  border-bottom: 2px solid rgba(15, 158, 168, 0.52);
  border-top: 2px solid rgba(15, 158, 168, 0.22);
}

.scx-bars {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.scx-bar-row {
  display: grid;
  grid-template-columns: minmax(92px, 140px) minmax(100px, 1fr) minmax(82px, auto);
  align-items: center;
  gap: 10px;
}

.scx-bar-label,
.scx-bar-value {
  color: var(--muted);
  font-size: 12px;
}

.scx-bar-value {
  text-align: right;
}

.scx-bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 158, 168, 0.11);
  overflow: hidden;
}

.scx-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.scx-table-wrap {
  border: 0;
  border-radius: 0;
  max-height: none;
}

.scx-table {
  min-width: 980px;
}

.scx-table td:first-child,
.scx-table th:first-child {
  min-width: 320px;
}

.raw-json-panel {
  margin-top: 18px;
}

.raw-json-panel > summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .topbar,
  .controls,
  .coverage-section,
  .summary-grid,
  .sc-summary-grid,
  .sc-endpoint-strip,
  .connection-settings-form,
  .connection-store-card,
  .connection-filter-grid,
  .scx-filter-panel,
  .scx-insight-grid,
  .hours-layout,
  .tasks-layout {
    grid-template-columns: 1fr;
  }

  .menu {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  body {
    padding: 16px;
  }

  .hours-sidebar {
    position: static;
  }

  .tasks-sidebar {
    position: static;
  }

  .hours-layout.sidebar-open {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topbar {
    gap: 14px;
  }

  .brand-logo {
    height: 60px;
    max-width: min(300px, 64vw);
  }

  .account-bar {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .account-chip {
    text-align: left;
  }

  .task-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-summary-progress,
  .task-summary-right {
    min-width: 0;
    justify-items: start;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .hour-summary {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .hour-hours {
    grid-column: 2;
    justify-self: start;
  }

  .scx-bar-row {
    grid-template-columns: 1fr;
  }

  .scx-bar-value {
    text-align: left;
  }
}
