:root {
  color-scheme: dark;
  --bg: #0c0f13;
  --bg-deep: #0a0d11;
  --surface: #11161b;
  --surface-raised: #151b21;
  --surface-soft: #1a2026;
  --line: #28313a;
  --line-soft: #202830;
  --text: #f1eee9;
  --text-secondary: #b3bcc4;
  --text-muted: #77828c;
  --stone: #d3c9b8;
  --copper: #b9623f;
  --amber: #e0782a;
  --emerald: #4fb98b;
  --red: #d87968;
  --font-sans: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 78% -15%, rgba(185, 98, 63, 0.09), transparent 35rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #e49a74;
  outline-offset: 3px;
}

::selection {
  background: rgba(185, 98, 63, 0.45);
  color: #fff;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border: 1px solid var(--copper);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  min-height: 600px;
  flex-direction: column;
  padding: 24px 15px 20px;
  border-right: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(10, 13, 17, 0.98), rgba(10, 13, 17, 0.94));
  z-index: 5;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  margin: 0 0 27px 3px;
  color: var(--text);
  text-decoration: none;
}

.brand-symbol {
  display: inline-grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(185, 98, 63, 0.4);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(185, 98, 63, 0.2), rgba(185, 98, 63, 0.04));
  color: #d18463;
}

.brand-symbol svg {
  width: 29px;
  height: 29px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.105em;
  line-height: 1.08;
}

.brand-name span:last-child {
  color: var(--stone);
}

.brand-product {
  align-self: flex-start;
  margin: 2px 0 0 1px;
  color: #d9906f;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.workspace-card {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(24, 31, 37, 0.95), rgba(18, 23, 28, 0.95));
}

.workspace-avatar,
.topbar-avatar,
.activity-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  font-weight: 700;
}

.workspace-avatar {
  width: 37px;
  height: 37px;
  border: 1px solid rgba(224, 120, 42, 0.32);
  border-radius: 10px;
  background: rgba(224, 120, 42, 0.14);
  color: #f0ab70;
  font-family: var(--font-mono);
  font-size: 11px;
}

.workspace-details {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.eyebrow {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.115em;
  line-height: 1.4;
}

.workspace-details strong {
  overflow: hidden;
  color: #e7e2db;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-caption {
  color: var(--text-muted);
  font-size: 10px;
}

.workspace-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.nav-label {
  margin: 28px 10px 9px;
  color: #66717c;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.primary-nav {
  display: grid;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #98a2ab;
  font-size: 12px;
  font-weight: 550;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.nav-link > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.nav-link[aria-current="page"] {
  border-color: rgba(185, 98, 63, 0.25);
  background: linear-gradient(90deg, rgba(185, 98, 63, 0.18), rgba(185, 98, 63, 0.06));
  color: #f0dfd6;
}

.nav-link[aria-current="page"]::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -1px;
  width: 2px;
  border-radius: 2px;
  background: var(--copper);
  content: "";
}

.nav-link[aria-current="page"] > svg {
  color: #d78b69;
}

.nav-count,
.nav-alert,
.nav-soon {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
}

.nav-count {
  color: #78838d;
}

.nav-alert {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid rgba(224, 120, 42, 0.34);
  border-radius: 6px;
  background: rgba(224, 120, 42, 0.13);
  color: #edaa74;
}

.nav-link-disabled {
  color: #58636d;
  cursor: not-allowed;
}

.nav-link-disabled > svg {
  color: #59636d;
}

.nav-soon {
  color: #66717c;
  font-size: 8px;
  text-transform: uppercase;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 10px 0;
}

.preview-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bcc5c9;
  font-size: 11px;
  font-weight: 600;
}

.preview-mode > span,
.connection-status > span,
.positive-dot,
.attention-footnote-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.preview-mode > span {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(224, 120, 42, 0.11);
}

.sidebar-footer p {
  margin: 7px 0 15px 15px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.55;
}

.sidebar-footer-rule {
  height: 1px;
  margin-bottom: 11px;
  background: var(--line-soft);
}

.sidebar-version {
  color: #65717b;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.sidebar-version span {
  color: var(--copper);
}

.main-shell {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 42px;
  border-bottom: 1px solid rgba(40, 49, 58, 0.78);
  background: rgba(12, 15, 19, 0.88);
  backdrop-filter: blur(18px);
}

.breadcrumbs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #d7d1c8;
  font-size: 11px;
}

.breadcrumb-workspace {
  overflow: hidden;
  color: #89939b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb-divider {
  color: #59636c;
}

.topbar-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
}

.topbar-app-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #c8b9aa;
  font-size: 9px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-app-link:hover {
  border-color: rgba(185, 98, 63, 0.48);
  background: rgba(185, 98, 63, 0.08);
  color: #ead7cb;
}

.topbar-app-link svg {
  width: 13px;
  height: 13px;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(224, 120, 42, 0.22);
  border-radius: 7px;
  background: rgba(224, 120, 42, 0.08);
  color: #e9a36d;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.connection-status > span {
  width: 6px;
  height: 6px;
  background: var(--amber);
}

.topbar-avatar {
  width: 32px;
  height: 32px;
  border: 1px solid #3b454e;
  border-radius: 50%;
  background: linear-gradient(135deg, #39444a, #222a30);
  color: #d5d0c7;
  font-family: var(--font-mono);
  font-size: 10px;
}

.topbar-user {
  display: grid;
  gap: 0;
  line-height: 1.35;
}

.topbar-user strong {
  color: #e5e0d8;
  font-size: 10px;
  font-weight: 600;
}

.topbar-user span {
  color: var(--text-muted);
  font-size: 9px;
}

.main-content {
  width: min(100%, 1510px);
  margin: 0 auto;
  padding: 34px 42px 26px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  scroll-margin-top: 88px;
}

.page-heading .eyebrow {
  margin-bottom: 8px;
  color: #b47a61;
}

.page-heading .eyebrow span {
  padding: 0 3px;
  color: #56616b;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  color: #f2eee9;
  font-size: clamp(26px, 2.6vw, 33px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.page-subtitle {
  margin-bottom: 0;
  color: #98a2ab;
  font-size: 12px;
}

.heading-action {
  display: grid;
  justify-items: end;
  gap: 5px;
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}

.button svg {
  width: 15px;
  height: 15px;
}

.button-primary {
  border-color: rgba(185, 98, 63, 0.45);
  background: linear-gradient(135deg, rgba(185, 98, 63, 0.28), rgba(185, 98, 63, 0.18));
  color: #e8c6b4;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.76;
}

.button-tag {
  margin-left: 2px;
  padding: 3px 5px;
  border-radius: 4px;
  background: rgba(10, 13, 17, 0.32);
  color: #bf907a;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
}

.preview-banner {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  padding: 9px 13px;
  border: 1px solid rgba(224, 120, 42, 0.23);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(224, 120, 42, 0.1), rgba(224, 120, 42, 0.035));
}

.preview-banner-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: rgba(224, 120, 42, 0.13);
  color: #e9a36d;
}

.preview-banner-icon svg {
  width: 16px;
  height: 16px;
}

.preview-banner p {
  flex: 1;
  margin: 0;
  color: #b6aaa0;
  font-size: 10px;
}

.preview-banner p strong {
  color: #e7b28c;
  font-weight: 650;
}

.preview-banner-label,
.panel-kicker {
  color: #9d775f;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.085em;
  white-space: nowrap;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.metric-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 16px 17px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(21, 27, 33, 0.98), rgba(16, 21, 26, 0.98));
}

.metric-card::after {
  position: absolute;
  top: -31px;
  right: -25px;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: var(--metric-glow);
  content: "";
  filter: blur(27px);
  opacity: 0.46;
  pointer-events: none;
}

.metric-accent-copper {
  --metric-glow: rgba(185, 98, 63, 0.23);
  --metric-color: #cb8060;
}

.metric-accent-emerald {
  --metric-glow: rgba(79, 185, 139, 0.18);
  --metric-color: #69c59b;
}

.metric-accent-amber {
  --metric-glow: rgba(224, 120, 42, 0.2);
  --metric-color: #e8a066;
}

.metric-accent-red {
  --metric-glow: rgba(216, 121, 104, 0.17);
  --metric-color: #dd897a;
}

.metric-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.metric-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.metric-icon svg {
  width: 17px;
  height: 17px;
}

.metric-icon-copper {
  border-color: rgba(185, 98, 63, 0.35);
  background: rgba(185, 98, 63, 0.12);
  color: #cc8667;
}

.metric-icon-emerald {
  border-color: rgba(79, 185, 139, 0.3);
  background: rgba(79, 185, 139, 0.1);
  color: #6bc99d;
}

.metric-icon-amber {
  border-color: rgba(224, 120, 42, 0.32);
  background: rgba(224, 120, 42, 0.1);
  color: #e8a066;
}

.metric-icon-red {
  border-color: rgba(216, 121, 104, 0.3);
  background: rgba(216, 121, 104, 0.1);
  color: #df8d7c;
}

.metric-context {
  color: #74808a;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.metric-value {
  position: relative;
  z-index: 1;
  margin: 13px 0 1px;
  color: #f1eee9;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.metric-unit {
  margin-left: 2px;
  color: #b8c1c6;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.metric-label {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #c8c5be;
  font-size: 11px;
  font-weight: 600;
}

.metric-footnote {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 9px 0 0;
  color: #7f8a93;
  font-size: 9px;
}

.positive-dot {
  width: 6px;
  height: 6px;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(79, 185, 139, 0.3);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(300px, 0.88fr);
  align-items: start;
  gap: 15px;
  margin-top: 17px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(18, 23, 28, 0.98), rgba(15, 20, 24, 0.98));
}

.project-panel,
.attention-panel,
.activity-panel {
  padding: 17px 18px;
  scroll-margin-top: 88px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading .eyebrow {
  margin-bottom: 4px;
}

.panel-heading h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: #e9e5de;
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.heading-count {
  padding: 3px 6px;
  border: 1px solid #313b43;
  border-radius: 5px;
  color: #9ba5ac;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0;
}

.project-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.search-field,
.filter-field {
  display: flex;
  height: 34px;
  align-items: center;
  border: 1px solid #303a42;
  border-radius: 7px;
  background: #0e1317;
  color: #78838d;
}

.search-field {
  min-width: 150px;
  flex: 1;
  gap: 8px;
  padding: 0 9px;
}

.search-field svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e9e5de;
  font-size: 10px;
}

.search-field input::placeholder {
  color: #727d86;
}

.search-field:focus-within,
.filter-field:focus-within {
  border-color: #a55f43;
  box-shadow: 0 0 0 2px rgba(185, 98, 63, 0.13);
}

.search-field input:focus-visible,
.filter-field select:focus-visible {
  outline: none;
}

.filter-field {
  position: relative;
  flex: 0 0 128px;
  padding: 0 9px;
}

.filter-field select {
  width: 100%;
  height: 100%;
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #b8c0c5;
  font-size: 10px;
  cursor: pointer;
}

.filter-field select option {
  background: #151b21;
  color: var(--text);
}

.filter-field > svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  pointer-events: none;
}

.project-result-count {
  min-height: 15px;
  margin: 8px 0 3px;
  color: #78838d;
  font-family: var(--font-mono);
  font-size: 8px;
}

.project-list,
.attention-list,
.activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-item {
  border-top: 1px solid var(--line-soft);
}

.project-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) minmax(98px, 0.7fr) minmax(120px, 0.85fr) minmax(90px, 0.65fr);
  align-items: center;
  gap: 14px;
  min-height: 73px;
  padding: 11px 0;
}

.project-ident {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.project-monogram {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
}

.project-monogram-amber {
  border-color: rgba(224, 120, 42, 0.27);
  background: rgba(224, 120, 42, 0.1);
  color: #dfa273;
}

.project-monogram-copper {
  border-color: rgba(185, 98, 63, 0.28);
  background: rgba(185, 98, 63, 0.11);
  color: #d48a69;
}

.project-monogram-steel {
  border-color: rgba(179, 188, 196, 0.23);
  background: rgba(179, 188, 196, 0.08);
  color: #b9c1c6;
}

.project-monogram-emerald {
  border-color: rgba(79, 185, 139, 0.24);
  background: rgba(79, 185, 139, 0.09);
  color: #7bc49e;
}

.project-name-block {
  min-width: 0;
}

.project-name-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.project-name-line h3 {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  margin: 0;
  color: #dedbd5;
  font-size: 10px;
  font-weight: 630;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-open {
  display: inline-flex;
  min-height: 23px;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding: 0 5px;
  border: 1px solid rgba(185, 98, 63, 0.28);
  border-radius: 5px;
  background: rgba(185, 98, 63, 0.08);
  color: #d69a7c;
  font-size: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.project-open:hover {
  border-color: rgba(185, 98, 63, 0.48);
  background: rgba(185, 98, 63, 0.16);
  color: #ecc1aa;
}

.project-open svg {
  width: 12px;
  height: 12px;
}

.project-code {
  flex: 0 0 auto;
  color: #75818b;
  font-family: var(--font-mono);
  font-size: 8px;
}

.project-name-block p {
  overflow: hidden;
  margin: 3px 0 0;
  color: #808b94;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-name-block p span {
  padding: 0 2px;
  color: #56616b;
}

.project-status-cell,
.project-due-cell {
  display: grid;
  justify-items: start;
  gap: 5px;
}

.field-label {
  color: #74808a;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.075em;
}

.status-pill {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  gap: 5px;
  padding: 0 6px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill > span:first-child {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.status-good {
  border-color: rgba(79, 185, 139, 0.21);
  background: rgba(79, 185, 139, 0.08);
  color: #78c59e;
}

.status-good > span {
  background: var(--emerald);
}

.status-risk {
  border-color: rgba(224, 120, 42, 0.25);
  background: rgba(224, 120, 42, 0.1);
  color: #e3a06d;
}

.status-risk > span {
  background: var(--amber);
}

.status-review {
  border-color: rgba(211, 201, 184, 0.2);
  background: rgba(211, 201, 184, 0.07);
  color: #d4c6b2;
}

.status-review > span {
  background: #c4a782;
}

.project-progress-cell {
  min-width: 0;
}

.progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 7px;
  color: #c2c5c4;
  font-family: var(--font-mono);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 10px;
  background: #293139;
}

.progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ad6748, #d78b61);
}

.progress-track > .progress-62 { width: 62%; }
.progress-track > .progress-79 { width: 79%; }
.progress-track > .progress-88 { width: 88%; }
.progress-track > .progress-94 { width: 94%; }

.project-item:nth-child(2) .progress-track > span,
.project-item:nth-child(4) .progress-track > span {
  background: linear-gradient(90deg, #3d9572, #66c295);
}

.project-due-cell time {
  color: #b7bdc0;
  font-family: var(--font-mono);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.project-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 30px 10px;
  border-top: 1px solid var(--line-soft);
  color: #89949c;
  text-align: center;
}

.project-empty[hidden] {
  display: none;
}

.project-empty .empty-icon {
  color: #c17b5a;
  font-size: 22px;
}

.project-empty strong {
  color: #d9d5ce;
  font-size: 11px;
}

.project-empty > span:not(.empty-icon) {
  font-size: 9px;
}

.text-button {
  margin-top: 5px;
  padding: 3px 4px;
  border: 0;
  background: none;
  color: #dc9976;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.project-footnote,
.activity-footnote {
  margin: 11px 0 0;
  color: #727e87;
  font-size: 9px;
}

.attention-panel {
  position: relative;
}

.panel-icon-alert {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(224, 120, 42, 0.25);
  border-radius: 9px;
  background: rgba(224, 120, 42, 0.1);
  color: #e6a16b;
}

.panel-icon-alert svg {
  width: 17px;
  height: 17px;
}

.attention-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(216, 121, 104, 0.28);
  border-radius: 6px;
  background: rgba(216, 121, 104, 0.1);
  color: #df9282;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0;
}

.attention-subtitle {
  margin: 8px 0 13px;
  color: #818c94;
  font-size: 9px;
}

.attention-item {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
}

.attention-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid;
  border-radius: 8px;
}

.attention-icon svg {
  width: 16px;
  height: 16px;
}

.attention-icon-high {
  border-color: rgba(216, 121, 104, 0.25);
  background: rgba(216, 121, 104, 0.08);
  color: #df8d7c;
}

.attention-icon-medium {
  border-color: rgba(224, 120, 42, 0.25);
  background: rgba(224, 120, 42, 0.08);
  color: #dfa16f;
}

.attention-icon-low {
  border-color: rgba(179, 188, 196, 0.2);
  background: rgba(179, 188, 196, 0.06);
  color: #a9b3ba;
}

.attention-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.attention-copy strong {
  overflow: hidden;
  color: #d8d5cf;
  font-size: 9px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-copy > span {
  overflow: hidden;
  color: #8e99a1;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-copy .attention-meta {
  margin-top: 1px;
  color: #737f88;
  font-family: var(--font-mono);
  font-size: 7px;
}

.attention-meta span {
  padding: 0 2px;
  color: #58636c;
}

.severity {
  margin-top: 2px;
  padding: 3px 5px;
  border: 1px solid;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.severity-high {
  border-color: rgba(216, 121, 104, 0.22);
  background: rgba(216, 121, 104, 0.08);
  color: #dd9182;
}

.severity-medium {
  border-color: rgba(224, 120, 42, 0.23);
  background: rgba(224, 120, 42, 0.08);
  color: #dda06f;
}

.severity-low {
  border-color: rgba(179, 188, 196, 0.19);
  background: rgba(179, 188, 196, 0.05);
  color: #9da9b0;
}

.attention-footnote {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 6px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  color: #7f8a92;
  font-size: 8px;
  line-height: 1.5;
}

.attention-footnote-dot {
  width: 6px;
  height: 6px;
  margin-top: 4px;
  background: #87929a;
}

.activity-panel {
  margin-top: 15px;
}

.activity-heading {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-soft);
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.activity-item {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 82px;
  padding: 15px 14px 8px 0;
}

.activity-item + .activity-item {
  padding-left: 14px;
  border-left: 1px solid var(--line-soft);
}

.activity-avatar {
  width: 30px;
  height: 30px;
  border: 1px solid;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 8px;
}

.activity-avatar-copper {
  border-color: rgba(185, 98, 63, 0.3);
  background: rgba(185, 98, 63, 0.11);
  color: #d39173;
}

.activity-avatar-amber {
  border-color: rgba(224, 120, 42, 0.28);
  background: rgba(224, 120, 42, 0.1);
  color: #e1a171;
}

.activity-avatar-steel {
  border-color: rgba(179, 188, 196, 0.23);
  background: rgba(179, 188, 196, 0.08);
  color: #bdc4c8;
}

.activity-copy {
  min-width: 0;
}

.activity-copy p {
  margin: 0 0 6px;
  color: #a4adb3;
  font-size: 9px;
  line-height: 1.5;
}

.activity-copy strong {
  color: #d9d5ce;
  font-weight: 620;
}

.activity-copy a {
  color: #d99a78;
  text-decoration-color: rgba(217, 154, 120, 0.45);
  text-underline-offset: 2px;
}

.activity-copy a:hover {
  color: #f0b391;
}

.activity-copy time {
  color: #74808a;
  font-family: var(--font-mono);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.activity-copy time span {
  padding: 0 2px;
  color: #59646d;
}

.activity-type {
  display: none;
}

.activity-footnote {
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.plans-panel {
  margin-top: 15px;
  padding: 17px 18px;
  scroll-margin-top: 88px;
}

.plans-panel .panel-heading {
  padding: 0;
}

.plans-intro {
  margin: 8px 0 0;
  color: #929da5;
  font-size: 10px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 15px;
}

.plan-card {
  min-width: 0;
  padding: 14px 15px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(22, 29, 35, 0.9), rgba(16, 21, 26, 0.9));
}

.plan-card-pro {
  border-color: rgba(185, 98, 63, 0.35);
  background: linear-gradient(145deg, rgba(185, 98, 63, 0.105), rgba(18, 23, 28, 0.96));
}

.plan-tier {
  margin: 0 0 5px;
  color: #ad816b;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.plan-card h3 {
  margin: 0;
  color: #e5e2dc;
  font-size: 12px;
  font-weight: 650;
}

.plan-price {
  margin: 12px 0 3px;
  color: #f0ede7;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.plan-price span {
  color: #929da5;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
}

.plan-price-custom {
  font-size: 19px;
}

.plan-detail {
  margin: 0;
  color: #818d96;
  font-size: 9px;
}

.plans-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 13px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  color: #85919a;
  font-size: 8px;
  line-height: 1.5;
}

.plans-note > span {
  display: grid;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(211, 201, 184, 0.24);
  border-radius: 50%;
  color: var(--stone);
  font: 700 9px/1 Georgia, serif;
}

.team-panel {
  margin-top: 15px;
  padding: 17px 18px;
  scroll-margin-top: 88px;
}

.team-preview-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(224, 120, 42, 0.2);
  border-radius: 9px;
  background: rgba(224, 120, 42, 0.055);
  color: #b2bdc2;
  font-size: 9px;
  line-height: 1.6;
}

.team-preview-note > span {
  display: grid;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(211, 201, 184, 0.24);
  border-radius: 50%;
  color: var(--stone);
  font: 700 9px/1 Georgia, serif;
}

.team-preview-note p {
  min-width: 0;
  margin: 0;
}

.team-preview-note strong {
  color: #e7b28c;
  font-weight: 650;
}

.team-controls {
  margin-top: 12px;
}

.team-member-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-member {
  min-width: 0;
}

.team-member-card {
  height: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(22, 29, 35, 0.9), rgba(16, 21, 26, 0.9));
}

.team-member-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.team-member-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
}

.team-avatar-copper {
  border-color: rgba(185, 98, 63, 0.3);
  background: rgba(185, 98, 63, 0.11);
  color: #d39173;
}

.team-avatar-amber {
  border-color: rgba(224, 120, 42, 0.28);
  background: rgba(224, 120, 42, 0.1);
  color: #e1a171;
}

.team-avatar-steel {
  border-color: rgba(179, 188, 196, 0.23);
  background: rgba(179, 188, 196, 0.08);
  color: #bdc4c8;
}

.team-avatar-emerald {
  border-color: rgba(79, 185, 139, 0.24);
  background: rgba(79, 185, 139, 0.09);
  color: #7bc49e;
}

.team-member-identity {
  min-width: 0;
}

.team-member-identity h3 {
  overflow-wrap: anywhere;
  margin: 0;
  color: #e5e2dc;
  font-size: 11px;
  font-weight: 650;
}

.team-member-identity p {
  margin: 3px 0 0;
  color: #929da5;
  font-size: 9px;
}

.team-member-facts {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 11px;
  margin: 13px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
}

.team-member-facts > div {
  min-width: 0;
}

.team-member-facts dt {
  color: #78848d;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
}

.team-member-facts dd {
  overflow-wrap: anywhere;
  margin: 5px 0 0;
  color: #d6d4ce;
  font-size: 9px;
  font-weight: 550;
}

.team-state {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 6px;
  padding: 0 7px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.team-state > span {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.team-state-active {
  border-color: rgba(79, 185, 139, 0.25);
  background: rgba(79, 185, 139, 0.08);
  color: #8bcba8;
}

.team-state-active > span {
  background: #66c295;
}

.team-state-pending {
  border-color: rgba(224, 120, 42, 0.27);
  background: rgba(224, 120, 42, 0.09);
  color: #e0ad80;
}

.team-state-pending > span {
  background: #dfa273;
}

.team-empty {
  grid-column: 1 / -1;
}

.reports-panel {
  margin-top: 15px;
  padding: 17px 18px;
  scroll-margin-top: 88px;
}

.reports-panel .panel-heading {
  padding: 0;
}

.reports-actions {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.reports-actions .button {
  min-height: 34px;
  font-size: 9px;
}

.reports-actions .button svg {
  width: 14px;
  height: 14px;
}

.reports-intro {
  margin: 9px 0 0;
  color: #929da5;
  font-size: 10px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 15px;
}

.report-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-height: 112px;
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(22, 29, 35, 0.88), rgba(16, 21, 26, 0.94));
}

.report-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid;
  border-radius: 8px;
}

.report-icon svg {
  width: 17px;
  height: 17px;
}

.report-icon-copper {
  border-color: rgba(185, 98, 63, 0.32);
  background: rgba(185, 98, 63, 0.1);
  color: #cf8b6e;
}

.report-icon-amber {
  border-color: rgba(224, 120, 42, 0.28);
  background: rgba(224, 120, 42, 0.08);
  color: #dfa273;
}

.report-icon-steel {
  border-color: rgba(179, 188, 196, 0.22);
  background: rgba(179, 188, 196, 0.06);
  color: #bdc5ca;
}

.report-copy {
  min-width: 0;
}

.report-kicker {
  margin: 0 0 4px;
  color: #a6816b;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.4;
}

.report-copy h3 {
  margin: 0;
  color: #e4e1db;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
}

.report-copy > p:last-child {
  margin: 5px 0 0;
  color: #87939b;
  font-size: 8px;
  line-height: 1.5;
}

.report-format {
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #88949c;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.reports-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 13px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  color: #85919a;
  font-size: 8px;
  line-height: 1.5;
}

.reports-note > span {
  display: grid;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(211, 201, 184, 0.24);
  border-radius: 50%;
  color: var(--stone);
  font: 700 9px/1 Georgia, serif;
}

@media (max-width: 1000px) {
  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .reports-panel {
    padding: 14px;
  }

  .reports-panel .panel-heading {
    align-items: flex-start;
  }

  .report-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .report-card {
    min-height: 0;
    padding: 11px;
  }

  .reports-actions .button {
    max-width: 100%;
    gap: 5px;
    padding: 0 7px;
    font-size: 8px;
  }

  .reports-actions .button-tag {
    font-size: 6px;
  }
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 19px;
  color: #65717b;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.035em;
}

.page-footer > span:first-child span {
  color: var(--copper);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.project-dialog {
  width: min(560px, calc(100vw - 32px));
  max-width: 560px;
  max-height: min(740px, calc(100vh - 32px));
  overflow: auto;
  padding: 0;
  border: 1px solid #3a444c;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.project-dialog::backdrop {
  background: rgba(4, 7, 9, 0.76);
  backdrop-filter: blur(5px);
}

.project-dialog-panel {
  padding: 22px;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(185, 98, 63, 0.14), transparent 18rem),
    linear-gradient(150deg, #171d23, #101519 74%);
}

.dialog-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-topline .eyebrow {
  color: #bb8065;
}

.dialog-close {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #abb4b9;
  cursor: pointer;
}

.dialog-close:hover {
  border-color: #505a62;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.dialog-close svg {
  width: 16px;
  height: 16px;
}

.dialog-project-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 17px 0 19px;
}

.dialog-project-mark {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(185, 98, 63, 0.34);
  border-radius: 12px;
  background: rgba(185, 98, 63, 0.12);
  color: #d89978;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.dialog-project-heading h2 {
  margin: 0 0 3px;
  color: var(--text);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.dialog-project-heading .project-code {
  font-size: 9px;
}

.project-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.project-detail-cell {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(53, 63, 71, 0.85);
  border-radius: 9px;
  background: rgba(9, 13, 16, 0.36);
}

.project-detail-cell dt {
  margin-bottom: 6px;
  color: #78848d;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-detail-cell dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: #e0ddd7;
  font-size: 11px;
  font-weight: 550;
}

.project-detail-focus {
  grid-column: 1 / -1;
}

.project-detail-focus dd {
  color: #d4baa9;
  font-size: 10px;
  font-weight: 500;
}

.dialog-note {
  margin: 13px 0 0;
  padding: 10px 11px;
  border: 1px solid rgba(224, 120, 42, 0.19);
  border-radius: 8px;
  background: rgba(224, 120, 42, 0.06);
  color: #b6a293;
  font-size: 9px;
  line-height: 1.5;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.button-secondary {
  border-color: #3a454d;
  background: rgba(255, 255, 255, 0.035);
  color: #c3c8c8;
  cursor: pointer;
}

.button-secondary:hover {
  border-color: #536069;
  background: rgba(255, 255, 255, 0.07);
}

.dialog-actions .button-primary {
  min-height: 36px;
}

@media (max-width: 1220px) {
  .app-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .topbar {
    padding-right: 28px;
    padding-left: 28px;
  }

  .main-content {
    padding-right: 28px;
    padding-left: 28px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  }

  .project-row {
    grid-template-columns: minmax(155px, 1.5fr) minmax(88px, 0.7fr) minmax(100px, 0.8fr) minmax(80px, 0.65fr);
    gap: 10px;
  }

  .project-ident {
    gap: 8px;
  }
}

@media (max-width: 1000px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    z-index: 6;
    top: 0;
    display: grid;
    width: 100%;
    height: auto;
    min-height: 0;
    grid-template-columns: auto minmax(220px, 1fr);
    align-items: center;
    gap: 11px 22px;
    padding: 12px 24px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 13, 17, 0.96);
    backdrop-filter: blur(18px);
  }

  .brand {
    margin: 0;
  }

  .workspace-card {
    justify-self: end;
    width: min(100%, 290px);
    min-height: 51px;
    padding: 6px 9px;
  }

  .workspace-avatar {
    width: 31px;
    height: 31px;
  }

  .nav-label,
  .sidebar-footer {
    display: none;
  }

  .primary-nav {
    display: flex;
    grid-column: 1 / -1;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #3c454d transparent;
  }

  .nav-link {
    min-height: 36px;
    flex: 0 0 auto;
    gap: 8px;
    padding: 0 10px;
    font-size: 10px;
  }

  .nav-link > svg {
    width: 16px;
    height: 16px;
  }

  .nav-link[aria-current="page"]::before {
    top: auto;
    right: 10px;
    bottom: -1px;
    left: 10px;
    width: auto;
    height: 2px;
  }

  .topbar {
    min-height: 56px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .main-content {
    padding-top: 28px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-row {
    grid-template-columns: minmax(210px, 1.5fr) minmax(105px, 0.7fr) minmax(130px, 0.85fr) minmax(100px, 0.65fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 144px;
  }

  .sidebar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 10px 14px 8px;
  }

  .brand {
    gap: 7px;
  }

  .brand-symbol {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .brand-symbol svg {
    width: 25px;
    height: 25px;
  }

  .brand-name {
    font-size: 9px;
  }

  .brand-product {
    font-size: 8px;
  }

  .workspace-card {
    width: auto;
    min-width: 0;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
    padding: 4px 0 4px 8px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .workspace-avatar {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    font-size: 9px;
  }

  .workspace-details .eyebrow,
  .workspace-caption,
  .workspace-chevron {
    display: none;
  }

  .workspace-details strong {
    max-width: 145px;
    font-size: 9px;
  }

  .primary-nav {
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px 2px;
    gap: 3px;
  }

  .nav-link {
    min-height: 34px;
    gap: 6px;
    padding: 0 8px;
    font-size: 9px;
  }

  .nav-link > svg {
    width: 14px;
    height: 14px;
  }

  .nav-count,
  .nav-alert,
  .nav-soon {
    display: none;
  }

  .topbar {
    position: static;
    min-height: 45px;
    padding: 0 16px;
  }

  .breadcrumbs {
    gap: 7px;
    font-size: 9px;
  }

  .breadcrumb-workspace {
    max-width: 140px;
  }

  .topbar-meta {
    gap: 0;
  }

  .connection-status {
    gap: 5px;
    padding: 5px 7px;
    font-size: 8px;
  }

  .topbar-app-link {
    width: 30px;
    min-height: 30px;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    font-size: 0;
  }

  .topbar-app-link svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
  }

  .topbar-avatar,
  .topbar-user {
    display: none;
  }

  .main-content {
    padding: 24px 14px 22px;
  }

  .page-heading {
    display: grid;
    align-items: start;
    gap: 15px;
    margin-bottom: 17px;
  }

  .page-heading .eyebrow {
    margin-bottom: 6px;
  }

  h1 {
    font-size: 27px;
  }

  .page-subtitle {
    max-width: 36ch;
    font-size: 11px;
  }

  .heading-action {
    display: flex;
    align-items: center;
    justify-items: start;
    gap: 9px;
  }

  .button {
    min-height: 36px;
  }

  .preview-banner {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 13px;
    padding: 10px;
  }

  .preview-banner p {
    font-size: 9px;
    line-height: 1.55;
  }

  .preview-banner-label {
    display: none;
  }

  .metric-grid {
    gap: 9px;
  }

  .metric-card {
    padding: 13px 12px 12px;
    border-radius: 10px;
  }

  .metric-icon {
    width: 27px;
    height: 27px;
  }

  .metric-icon svg {
    width: 15px;
    height: 15px;
  }

  .metric-context {
    font-size: 7px;
  }

  .metric-value {
    margin-top: 12px;
    font-size: 26px;
  }

  .metric-unit {
    font-size: 15px;
  }

  .metric-label {
    min-height: 30px;
    font-size: 9px;
    line-height: 1.4;
  }

  .metric-footnote {
    min-height: 24px;
    align-items: flex-start;
    margin-top: 6px;
    font-size: 8px;
    line-height: 1.4;
  }

  .positive-dot {
    margin-top: 3px;
  }

  .dashboard-grid {
    gap: 12px;
    margin-top: 12px;
  }

  .project-panel,
  .attention-panel,
  .activity-panel {
    padding: 14px 12px;
    border-radius: 11px;
    scroll-margin-top: 142px;
  }

  .panel-heading {
    gap: 10px;
  }

  .panel-heading h2 {
    font-size: 14px;
  }

  .panel-kicker {
    font-size: 7px;
  }

  .project-controls {
    gap: 6px;
    margin-top: 13px;
  }

  .search-field {
    min-width: 0;
    gap: 6px;
    padding: 0 7px;
  }

  .search-field input {
    font-size: 9px;
  }

  .filter-field {
    flex-basis: 112px;
    padding: 0 7px;
  }

  .filter-field select {
    font-size: 9px;
  }

  .project-row {
    grid-template-columns: minmax(0, 1fr) minmax(88px, 0.7fr);
    gap: 10px 12px;
    min-height: 0;
    padding: 12px 0;
  }

  .project-ident {
    grid-column: 1 / -1;
    gap: 9px;
  }

  .project-monogram {
    width: 32px;
    height: 32px;
  }

  .project-name-line h3 {
    font-size: 10px;
  }

  .project-open {
    min-height: 22px;
    padding: 0 4px;
    font-size: 7px;
  }

  .project-name-block p {
    font-size: 8px;
  }

  .project-status-cell,
  .project-due-cell {
    gap: 4px;
  }

  .project-progress-cell {
    grid-column: 1;
  }

  .project-due-cell {
    grid-column: 2;
  }

  .project-status-cell {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    text-align: right;
  }

  .project-progress-cell {
    grid-row: 2;
  }

  .project-due-cell {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    justify-content: space-between;
    border-top: 1px dashed rgba(40, 49, 58, 0.7);
    padding-top: 7px;
  }

  .project-due-cell time {
    font-size: 8px;
  }

  .field-label {
    font-size: 7px;
  }

  .status-pill {
    min-height: 19px;
    font-size: 7px;
  }

  .project-progress-cell .progress-labels {
    margin-bottom: 5px;
  }

  .progress-track {
    height: 4px;
  }

  .project-footnote {
    font-size: 8px;
    line-height: 1.5;
  }

  .attention-item {
    grid-template-columns: 27px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px 0;
  }

  .attention-copy strong {
    font-size: 8px;
  }

  .severity {
    padding: 3px 4px;
    font-size: 6px;
  }

  .activity-panel {
    margin-top: 12px;
  }

  .activity-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .activity-item {
    min-height: 0;
    grid-template-columns: 29px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 12px 0;
  }

  .activity-item + .activity-item {
    padding-left: 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .activity-avatar {
    width: 28px;
    height: 28px;
  }

  .activity-copy p {
    margin-bottom: 4px;
    font-size: 8px;
  }

  .activity-copy time {
    font-size: 7px;
  }

  .activity-type {
    display: block;
    color: #727e87;
    font-family: var(--font-mono);
    font-size: 6px;
    letter-spacing: 0.03em;
  }

  .activity-footnote {
    font-size: 8px;
    line-height: 1.5;
  }

  .plans-panel {
    padding: 14px;
  }

  .team-panel {
    padding: 14px 12px;
    scroll-margin-top: 142px;
  }

  .team-preview-note {
    gap: 7px;
    padding: 9px;
    font-size: 8px;
  }

  .team-member-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .team-member-card {
    padding: 12px;
  }

  .plan-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .plan-card {
    padding: 12px;
  }

  .page-footer {
    flex-direction: column;
    gap: 4px;
    margin-top: 15px;
    font-size: 7px;
  }

  .project-dialog-panel {
    padding: 17px 14px;
  }

  .dialog-project-heading h2 {
    font-size: 17px;
  }

  .project-detail-cell {
    padding: 10px;
  }

  .dialog-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 370px) {
  .workspace-details strong {
    max-width: 112px;
  }

  .brand-product {
    display: none;
  }

  .breadcrumb-workspace {
    max-width: 100px;
  }

  .topbar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .metric-context {
    font-size: 6px;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 320px) {
  html,
  body {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
