:root {
  color-scheme: light;
  --color-bg: #f4f7f5;
  --color-surface: #ffffff;
  --color-surface-soft: #f7faf8;
  --color-surface-muted: #eef3f0;
  --color-border: #d7e1db;
  --color-border-strong: #b9c9be;
  --color-text: #17231d;
  --color-text-soft: #4d5d54;
  --color-text-muted: #6d7c73;
  --color-accent: #176b45;
  --color-accent-dark: #0d4e32;
  --color-accent-soft: #e2f1e8;
  --color-accent-pale: #f0f8f3;
  --color-success: #176b45;
  --color-success-soft: #e1f2e8;
  --color-warning: #965b00;
  --color-warning-soft: #fff3d8;
  --color-danger: #a42f2f;
  --color-danger-soft: #fbe7e7;
  --color-info: #315d87;
  --color-info-soft: #e8f0f8;
  --shadow-sm: 0 1px 2px rgba(23, 35, 29, 0.06);
  --shadow-md: 0 5px 18px rgba(23, 35, 29, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --header-height: 68px;
  --page-padding: clamp(14px, 2vw, 30px);
  --section-gap: clamp(18px, 2.4vw, 32px);
  --control-height: 40px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--color-bg);
  font-size: 16px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  max-width: 100%;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

a {
  color: var(--color-accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-accent);
}

:focus-visible {
  outline: 3px solid rgba(23, 107, 69, 0.42);
  outline-offset: 2px;
}

::selection {
  background: #bfe3cd;
  color: #10271b;
}

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

h1,
h2,
h3,
h4 {
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(24px, 2.8vw, 38px);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(19px, 2vw, 28px);
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(16px, 1.7vw, 21px);
}

h4 {
  margin-bottom: 6px;
  font-size: 15px;
}

p {
  margin-bottom: 10px;
}

small,
.text-small {
  font-size: 12px;
}

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

.text-soft {
  color: var(--color-text-soft);
}

.text-success {
  color: var(--color-success);
}

.text-warning {
  color: var(--color-warning);
}

.text-danger {
  color: var(--color-danger);
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.font-mono,
.number,
.amount,
.metric-value {
  font-variant-numeric: tabular-nums;
}

.font-mono {
  font-family: var(--font-mono);
}

.app-header,
.site-header,
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  width: 100%;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.header-inner,
.site-header__inner,
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-width: 0;
  padding: 10px var(--page-padding);
}

.brand,
.logo,
.app-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 7px;
  color: var(--color-text);
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-accent,
.logo-accent {
  color: var(--color-accent);
}

.brand-subtitle,
.logo-subtitle {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.main-nav,
.header-nav,
.nav {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.main-nav a,
.header-nav a,
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  color: var(--color-text-soft);
  font-size: 13px;
  font-weight: 610;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.header-nav a:hover,
.nav a:hover,
.main-nav a[aria-current="page"],
.header-nav a[aria-current="page"],
.nav a.active,
.nav a[aria-current="page"] {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

.header-date,
.current-date {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--color-text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.page,
.page-shell,
main {
  width: 100%;
  min-width: 0;
  padding: var(--page-padding);
}

.page-header,
.screen-header,
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  margin-bottom: var(--section-gap);
}

.page-header__text,
.screen-header__text {
  min-width: 0;
}

.page-header p,
.screen-header p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--color-text-soft);
}

.page-actions,
.actions,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.section,
.panel,
.block,
.content-block {
  min-width: 0;
  margin-bottom: var(--section-gap);
}

.panel,
.block,
.content-block,
.table-card,
.form-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.panel,
.block,
.content-block,
.form-card {
  padding: clamp(14px, 2vw, 22px);
}

.panel-title,
.block-title,
.section-title,
.table-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 14px;
}

.panel-title h2,
.panel-title h3,
.block-title h2,
.block-title h3,
.section-title h2,
.section-title h3,
.table-card__title h2,
.table-card__title h3 {
  margin-bottom: 0;
}

.panel-title p,
.block-title p,
.section-title p {
  margin: 3px 0 0;
  color: var(--color-text-muted);
  font-size: 13px;
}

.dashboard,
.dashboard-layout,
.dashboard-grid,
.control-room,
.decision-board,
.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
  width: 100%;
  min-width: 0;
}

.dashboard,
.dashboard-layout,
.dashboard-grid,
.control-room {
  min-height: calc(100vh - var(--header-height) - (2 * var(--page-padding)));
}

.dashboard-column,
.board-column,
.column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  max-height: calc(100vh - var(--header-height) - (2 * var(--page-padding)));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.dashboard-column__header,
.board-column__header,
.column-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 10px;
  padding: 8px 2px;
  background: var(--color-bg);
}

.column-heading,
.dashboard-column h2,
.board-column h2 {
  min-width: 0;
  margin: 0;
  color: var(--color-text);
  font-size: clamp(16px, 1.45vw, 21px);
}

.column-heading small,
.column-header small {
  display: block;
  margin-top: 2px;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 500;
}

.column-counter,
.count,
.counter {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-soft);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cards-list,
.card-list,
.column-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.idea-card,
.decision-card,
.card {
  position: relative;
  min-width: 0;
  padding: clamp(10px, 1.3vw, 16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.idea-card:hover,
.decision-card:hover,
.card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.card--approved,
.idea-card.approved,
.decision-card.approved {
  border-left: 3px solid var(--color-success);
}

.card--rework,
.idea-card.rework,
.decision-card.rework {
  border-left: 3px solid var(--color-warning);
}

.card--rejected,
.idea-card.rejected,
.decision-card.rejected,
.card--cancelled,
.idea-card.cancelled {
  opacity: 0.72;
  border-left: 3px solid var(--color-text-muted);
}

.card__top,
.idea-card__top,
.decision-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  margin-bottom: 8px;
}

.card-title,
.idea-card h3,
.decision-card h3,
.card h3 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(14px, 1.45vw, 17px);
  font-weight: 730;
  line-height: 1.25;
}

.card-body,
.idea-card__body,
.decision-card__body {
  min-width: 0;
  color: var(--color-text-soft);
  font-size: clamp(12.5px, 1.25vw, 15px);
}

.card-body p,
.idea-card__body p,
.decision-card__body p {
  margin-bottom: 8px;
}

.card-section,
.card-block,
.situation,
.solution {
  margin-top: 9px;
  padding: 8px 9px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft);
}

.card-section__label,
.card-label,
.situation-label,
.solution-label {
  display: block;
  margin-bottom: 3px;
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.solution {
  background: var(--color-accent-pale);
}

.solution-label {
  color: var(--color-accent-dark);
}

.card-footer,
.idea-card__footer,
.decision-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 12px;
}

.card-actions,
.decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.card-actions .button,
.card-actions button,
.decision-actions .button,
.decision-actions button {
  flex: 1 1 auto;
  min-width: 0;
}

.completed-list,
.cancelled-list,
.archived-list,
.collapsed-cards {
  margin-top: auto;
  padding-top: 14px;
}

.completed-list details,
.cancelled-list details,
.archived-list details,
.collapsed-cards details {
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
}

.completed-list summary,
.cancelled-list summary,
.archived-list summary,
.collapsed-cards summary {
  cursor: pointer;
  color: var(--color-text-soft);
  font-size: 12px;
  font-weight: 650;
}

.badge,
.chip,
.status,
.status-chip,
.priority,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.status--new,
.status.new,
.status-chip.new,
.badge-new {
  border-color: #bfd3c5;
  background: #edf5ef;
  color: #28583d;
}

.status--approved,
.status.approved,
.status-chip.approved,
.badge-approved,
.status--done,
.status.done,
.status-chip.done,
.badge-done {
  border-color: #acd5bb;
  background: var(--color-success-soft);
  color: #115b39;
}

.status--rework,
.status.rework,
.status-chip.rework,
.badge-rework {
  border-color: #e5c486;
  background: var(--color-warning-soft);
  color: #744600;
}

.status--rejected,
.status.rejected,
.status-chip.rejected,
.badge-rejected,
.status--cancelled,
.status.cancelled,
.status-chip.cancelled,
.badge-cancelled {
  border-color: #d6caca;
  background: #f1eded;
  color: #6c4444;
}

.status--running,
.status.running,
.status-chip.running,
.badge-running {
  border-color: #b9cee3;
  background: var(--color-info-soft);
  color: #294f73;
}

.status--failed,
.status.failed,
.status-chip.failed,
.badge-failed,
.status--overdue,
.status.overdue,
.status-chip.overdue {
  border-color: #e3b4b4;
  background: var(--color-danger-soft);
  color: #8e2929;
}

.priority-1,
.priority.high {
  color: #8e2929;
}

.priority-2,
.priority.medium {
  color: #855000;
}

.priority-3,
.priority.low {
  color: var(--color-text-muted);
}

.button,
button,
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: 8px 13px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 690;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  border-color: #8eaa98;
  background: var(--color-surface-muted);
}

.button:active,
button:active,
input[type="submit"]:active,
input[type="button"]:active {
  transform: translateY(1px);
}

.button--primary,
.button.primary,
button.primary,
button[data-action="approve"],
.approve-button {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #ffffff;
}

.button--primary:hover,
.button.primary:hover,
button.primary:hover,
button[data-action="approve"]:hover,
.approve-button:hover {
  border-color: var(--color-accent-dark);
  background: var(--color-accent-dark);
  color: #ffffff;
}

.button--secondary,
.button.secondary,
button.secondary {
  background: var(--color-surface-muted);
  color: var(--color-text-soft);
}

.button--success,
.button.success,
button.success,
.done-button {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

.button--danger,
.button.danger,
button.danger,
.reject-button,
.cancel-button {
  border-color: #d3b1b1;
  background: #ffffff;
  color: var(--color-danger);
}

.button--danger:hover,
.button.danger:hover,
button.danger:hover,
.reject-button:hover,
.cancel-button:hover {
  border-color: var(--color-danger);
  background: var(--color-danger-soft);
}

.button--warning,
.button.warning,
button.warning,
.rework-button {
  border-color: #e3c27e;
  background: var(--color-warning-soft);
  color: #744600;
}

.button--warning:hover,
.button.warning:hover,
button.warning:hover,
.rework-button:hover {
  border-color: var(--color-warning);
  background: #ffe9b5;
}

.button--ghost,
.button.ghost,
button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--color-accent-dark);
}

.button--small,
.button.small,
button.small,
.small-button {
  min-height: 31px;
  padding: 6px 9px;
  font-size: 12px;
}

.button--large,
.button.large,
button.large {
  min-height: 46px;
  padding: 10px 18px;
  font-size: 14px;
}

.add-card-button,
.add-button {
  min-height: 30px;
  padding: 5px 9px;
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  font-size: 12px;
}

.expand-button {
  width: 100%;
  margin-top: 8px;
}

form {
  min-width: 0;
}

.form-grid,
.form-row,
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  min-width: 0;
}

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

.form-grid--four,
.form-row--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field,
.form-field,
label.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
}

.field--full,
.form-field--full,
.field.full,
.form-field.full {
  grid-column: 1 / -1;
}

label,
.field-label,
.form-label {
  color: var(--color-text-soft);
  font-size: 12px;
  font-weight: 680;
}

input,
select,
textarea {
  width: 100%;
  min-height: var(--control-height);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.35;
}

input,
select {
  padding: 8px 10px;
}

textarea {
  min-height: 88px;
  padding: 9px 10px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #87958d;
  opacity: 1;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #8eaa98;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-accent);
  outline: 3px solid rgba(23, 107, 69, 0.16);
}

.form-help,
.help-text {
  color: var(--color-text-muted);
  font-size: 11px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.inline-form,
.inline-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.inline-form .field,
.inline-fields .field {
  flex: 1 1 150px;
}

.rework-form,
.revision-form,
.note-form {
  display: none;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #e3c27e;
  border-radius: var(--radius-sm);
  background: #fffaf0;
}

.rework-form.is-open,
.revision-form.is-open,
.note-form.is-open,
.rework-form.open,
.revision-form.open,
.note-form.open,
[aria-expanded="true"] + .rework-form {
  display: block;
}

.kpi-grid,
.metrics-grid,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.metric,
.kpi-card,
.summary-card {
  min-width: 0;
  padding: clamp(13px, 1.8vw, 20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.metric-label,
.kpi-label,
.summary-label {
  margin-bottom: 7px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 630;
}

.metric-value,
.kpi-value,
.summary-value {
  color: var(--color-text);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.metric-note,
.kpi-note,
.summary-note {
  margin-top: 7px;
  color: var(--color-text-soft);
  font-size: 12px;
}

.north-star,
.northstar,
.north-star-card {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3.2vw, 38px);
  border: 1px solid #a9d1b8;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f5fbf7 0%, #e3f3e9 100%);
  box-shadow: var(--shadow-md);
}

.north-star::before,
.northstar::before {
  position: absolute;
  top: -50px;
  right: -45px;
  width: 170px;
  height: 170px;
  border: 24px solid rgba(23, 107, 69, 0.08);
  border-radius: 50%;
  content: "";
}

.north-star__eyebrow,
.northstar-eyebrow {
  position: relative;
  margin-bottom: 7px;
  color: var(--color-accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.north-star h2,
.northstar h2 {
  position: relative;
  max-width: 700px;
  margin-bottom: 18px;
}

.north-star__numbers,
.northstar-numbers {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px;
}

.north-star .current,
.northstar .current,
.north-star__current {
  color: var(--color-accent-dark);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.north-star .target,
.northstar .target,
.north-star__target {
  color: var(--color-text-soft);
  font-size: clamp(18px, 2.5vw, 27px);
  font-weight: 680;
}

.progress,
.progress-bar,
.meter {
  position: relative;
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: #cfe2d5;
}

.progress > span,
.progress-bar > span,
.meter > span,
.progress-fill,
.meter-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: var(--color-accent);
}

.north-star .progress,
.northstar .progress {
  position: relative;
  margin-top: 22px;
}

.north-star__deadline,
.northstar-deadline {
  position: relative;
  margin: 10px 0 0;
  color: var(--color-text-soft);
  font-size: 13px;
}

.city-grid,
.cities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.city-card,
.city-metric {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.city-card h3,
.city-metric h3 {
  margin-bottom: 8px;
  font-size: 14px;
}

.city-card__count,
.city-count {
  color: var(--color-accent-dark);
  font-size: 23px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.city-card__target,
.city-target {
  color: var(--color-text-muted);
  font-size: 12px;
}

.funnel,
.pipeline,
.stage-funnel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.funnel-step,
.pipeline-step,
.stage {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  text-align: center;
}

.funnel-step__number,
.pipeline-step__number,
.stage-count {
  display: block;
  color: var(--color-accent-dark);
  font-size: 24px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.funnel-step__label,
.pipeline-step__label,
.stage-label {
  display: block;
  color: var(--color-text-soft);
  font-size: 11px;
  line-height: 1.25;
}

.table-wrap,
.table-container,
.data-table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 13px;
}

caption {
  padding: 12px;
  color: var(--color-text-soft);
  font-size: 13px;
  font-weight: 680;
  text-align: left;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
}

th {
  background: var(--color-surface-muted);
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: var(--color-surface-soft);
}

td {
  color: var(--color-text);
}

td strong {
  font-weight: 710;
}

tr.overdue td,
.overdue-row td {
  background: #fff3f3;
  color: var(--color-danger);
}

tr.overdue td:first-child,
.overdue-row td:first-child {
  border-left: 3px solid var(--color-danger);
}

.table-actions,
td .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.table-actions .button,
td .actions .button,
td button {
  min-height: 29px;
  padding: 5px 8px;
  font-size: 11px;
}

.data-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-border);
}

.data-item,
.info-item {
  min-width: 0;
  padding: 11px 13px;
  background: var(--color-surface);
}

.data-item dt,
.info-item dt {
  margin-bottom: 3px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.data-item dd,
.info-item dd {
  margin: 0;
  color: var(--color-text);
  font-weight: 620;
  overflow-wrap: anywhere;
}

.filter-bar,
.filters,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.filter-bar .field,
.filters .field,
.toolbar .field {
  flex: 0 1 190px;
}

.gantt,
.gantt-shell,
.timeline-shell {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.gantt-scroll,
.timeline-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.gantt-inner,
.timeline-inner {
  min-width: 920px;
}

.gantt-header,
.timeline-header {
  display: grid;
  grid-template-columns: minmax(180px, 240px) repeat(12, minmax(58px, 1fr));
  border-bottom: 1px solid var(--color-border-strong);
  background: var(--color-surface-muted);
}

.gantt-header > div,
.timeline-header > div {
  min-width: 0;
  padding: 9px 6px;
  border-right: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.gantt-header > div:first-child,
.timeline-header > div:first-child {
  text-align: left;
}

.gantt-row,
.timeline-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) repeat(12, minmax(58px, 1fr));
  min-height: 56px;
  border-bottom: 1px solid var(--color-border);
}

.gantt-row:last-child,
.timeline-row:last-child {
  border-bottom: 0;
}

.gantt-project,
.timeline-project {
  min-width: 0;
  padding: 9px 10px;
  background: var(--color-surface);
}

.gantt-project strong,
.timeline-project strong {
  display: block;
  overflow: hidden;
  color: var(--color-text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-project small,
.timeline-project small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-week,
.timeline-week {
  position: relative;
  min-width: 0;
  border-right: 1px solid var(--color-border);
  background-image: linear-gradient(to right, transparent 49%, rgba(215, 225, 219, 0.55) 50%, transparent 51%);
}

.gantt-bar,
.timeline-bar,
.project-bar {
  position: absolute;
  z-index: 1;
  top: 50%;
  min-width: 14px;
  height: 26px;
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-overflow: ellipsis;
  transform: translateY(-50%);
  white-space: nowrap;
}

.stage-application,
.stage-заявка,
.stage-request {
  background: #657b70;
}

.stage-calculation,
.stage-расчёт {
  background: #507a67;
}

.stage-contract,
.stage-договор {
  background: #416f5a;
}

.stage-supply,
.stage-поставка {
  background: #46758c;
}

.stage-installation,
.stage-монтаж {
  background: #176b45;
}

.stage-commissioning,
.stage-пусконаладка {
  background: #6e5f91;
}

.stage-complete,
.stage-сдан {
  background: #2b8a5b;
}

.stage-service,
.stage-сервис {
  background: #8a6b32;
}

.legend,
.gantt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-soft);
  font-size: 11px;
}

.legend-item,
.gantt-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-swatch,
.gantt-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--color-accent);
}

.split-grid,
.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--section-gap);
  min-width: 0;
}

.three-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--section-gap);
}

.strategy-grid,
.initiatives-grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.strategy-card,
.initiative-card,
.market-driver,
.competitor-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.strategy-card h3,
.initiative-card h3,
.market-driver h3,
.competitor-card h3 {
  margin-bottom: 7px;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.strategy-card p,
.initiative-card p,
.market-driver p,
.competitor-card p {
  margin-bottom: 0;
  color: var(--color-text-soft);
  font-size: 13px;
}

.competitors-table td:first-child {
  font-weight: 700;
}

.comms-list,
.messages-list,
.inventory-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comm-item,
.message-item,
.inventory-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.comm-item.needs-reply,
.message-item.needs-reply {
  border-left: 3px solid var(--color-warning);
  background: #fffdf8;
}

.comm-item__top,
.message-item__top,
.inventory-item__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-bottom: 5px;
}

.comm-channel,
.message-channel {
  color: var(--color-accent-dark);
  font-size: 11px;
  font-weight: 760;
}

.comm-contact,
.message-contact {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.draft-reply,
.reply-draft {
  margin-top: 9px;
  padding: 9px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  color: var(--color-text-soft);
  font-size: 12px;
}

.alert,
.notice,
.notification,
.flash {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-soft);
}

.alert--success,
.notice.success,
.notification.success,
.flash.success {
  border-color: #acd5bb;
  background: var(--color-success-soft);
  color: #115b39;
}

.alert--warning,
.notice.warning,
.notification.warning,
.flash.warning {
  border-color: #e4c781;
  background: var(--color-warning-soft);
  color: #744600;
}

.alert--error,
.alert--danger,
.notice.error,
.notification.error,
.flash.error {
  border-color: #e3b4b4;
  background: var(--color-danger-soft);
  color: #8e2929;
}

.alert--info,
.notice.info,
.notification.info,
.flash.info {
  border-color: #b9cee3;
  background: var(--color-info-soft);
  color: #294f73;
}

.error,
.form-error,
.field-error {
  color: var(--color-danger);
  font-size: 12px;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"],
.input-error {
  border-color: var(--color-danger);
}

.empty,
.empty-state,
.no-data {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 25px 15px;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  color: var(--color-text-muted);
  text-align: center;
}

.empty strong,
.empty-state strong,
.no-data strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-text-soft);
}

.loading,
.loading-state {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 25px;
  color: var(--color-text-muted);
  text-align: center;
}

.loading::before,
.loading-state::before {
  width: 23px;
  height: 23px;
  margin-bottom: 10px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
  content: "";
}

.skeleton,
.skeleton-line,
.loading-placeholder {
  display: block;
  min-height: 13px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e8efea 25%, #f5f8f6 50%, #e8efea 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-line + .skeleton-line {
  margin-top: 8px;
}

.revision-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.revision-item {
  display: grid;
  grid-template-columns: 150px minmax(120px, 0.7fr) minmax(220px, 2fr) 110px;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.revision-item__cell {
  min-width: 0;
  overflow-wrap: anywhere;
}

.revision-item__label {
  display: block;
  margin-bottom: 3px;
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.revision-item__value {
  color: var(--color-text-soft);
  font-size: 13px;
}

pre,
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

pre {
  max-width: 100%;
  overflow: auto;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #17231d;
  color: #e7f2eb;
}

details {
  min-width: 0;
}

summary {
  color: var(--color-accent-dark);
  font-weight: 650;
}

hr {
  height: 1px;
  margin: 20px 0;
  border: 0;
  background: var(--color-border);
}

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

.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (min-width: 1400px) {
  .dashboard-column,
  .board-column,
  .column {
    min-height: 0;
  }

  .cards-list,
  .card-list,
  .column-cards {
    gap: 12px;
  }
}

@media (max-width: 1199px) {
  .kpi-grid,
  .metrics-grid,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-grid,
  .initiatives-grid,
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funnel,
  .pipeline,
  .stage-funnel {
    grid-template-columns: repeat(5, minmax(115px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 899px) {
  .dashboard,
  .dashboard-layout,
  .dashboard-grid,
  .control-room,
  .columns {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    min-height: calc(100vh - var(--header-height) - (2 * var(--page-padding)));
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .dashboard-column,
  .board-column,
  .column {
    flex: 0 0 min(86vw, 430px);
    width: min(86vw, 430px);
    max-height: calc(100vh - var(--header-height) - (2 * var(--page-padding)));
    scroll-snap-align: start;
  }

  .dashboard-column:first-child,
  .board-column:first-child,
  .column:first-child {
    margin-left: 1px;
  }

  .dashboard-column:last-child,
  .board-column:last-child,
  .column:last-child {
    margin-right: 1px;
  }

  .city-grid,
  .cities-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    overflow-x: auto;
  }

  .split-grid,
  .two-columns,
  .three-columns {
    grid-template-columns: 1fr;
  }

  .revision-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .app-header,
  .site-header,
  .topbar {
    min-height: auto;
  }

  .header-inner,
  .site-header__inner,
  .topbar-inner {
    flex-wrap: wrap;
    gap: 6px 10px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .brand,
  .logo,
  .app-brand {
    width: auto;
    font-size: 16px;
  }

  .header-date,
  .current-date {
    margin-left: auto;
    font-size: 11px;
  }

  .main-nav,
  .header-nav,
  .nav {
    order: 3;
    flex-basis: 100%;
    margin: 1px -4px -2px;
    padding: 2px 4px;
  }

  .main-nav a,
  .header-nav a,
  .nav a {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .page-header,
  .screen-header,
  .section-header {
    flex-direction: column;
    gap: 10px;
  }

  .page-actions,
  .actions,
  .toolbar-actions {
    width: 100%;
  }

  .page-actions .button,
  .actions .button,
  .toolbar-actions .button {
    flex: 1 1 auto;
  }

  .form-grid,
  .form-row,
  .fields,
  .form-grid--three,
  .form-row--three,
  .form-grid--four,
  .form-row--four {
    grid-template-columns: 1fr;
  }

  .field--full,
  .form-field--full,
  .field.full,
  .form-field.full {
    grid-column: auto;
  }

  .kpi-grid,
  .metrics-grid,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .metric,
  .kpi-card,
  .summary-card {
    padding: 11px;
  }

  .metric-value,
  .kpi-value,
  .summary-value {
    font-size: clamp(20px, 8vw, 29px);
  }

  .strategy-grid,
  .initiatives-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .revision-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .data-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap.mobile-cards,
  .table-container.mobile-cards,
  .data-table-wrap.mobile-cards,
  .responsive-table,
  .stack-table {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .responsive-table table,
  .stack-table table,
  table.mobile-table {
    min-width: 0;
    border: 0;
  }

  .responsive-table thead,
  .stack-table thead,
  table.mobile-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .responsive-table tbody,
  .stack-table tbody,
  table.mobile-table tbody {
    display: grid;
    gap: 9px;
  }

  .responsive-table tr,
  .stack-table tr,
  table.mobile-table tr {
    display: grid;
    gap: 7px;
    padding: 11px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
  }

  .responsive-table td,
  .stack-table td,
  table.mobile-table td {
    display: grid;
    grid-template-columns: minmax(90px, 38%) minmax(0, 1fr);
    gap: 8px;
    padding: 0;
    border: 0;
  }

  .responsive-table td::before,
  .stack-table td::before,
  table.mobile-table td::before {
    color: var(--color-text-muted);
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
  }

  .responsive-table td:not([data-label])::before,
  .stack-table td:not([data-label])::before,
  table.mobile-table td:not([data-label])::before {
    content: "";
  }

  .responsive-table td[colspan],
  .stack-table td[colspan],
  table.mobile-table td[colspan] {
    display: block;
  }

  .responsive-table td .table-actions,
  .stack-table td .table-actions,
  table.mobile-table td .table-actions,
  .responsive-table td .actions,
  .stack-table td .actions,
  table.mobile-table td .actions {
    justify-content: flex-start;
  }

  .responsive-table tr.overdue,
  .stack-table tr.overdue,
  table.mobile-table tr.overdue {
    border-color: #e3b4b4;
    border-left: 3px solid var(--color-danger);
  }
}

@media (max-width: 480px) {
  :root {
    --page-padding: 11px;
  }

  body {
    font-size: 13px;
  }

  .dashboard-column,
  .board-column,
  .column {
    flex-basis: calc(100vw - 22px);
    width: calc(100vw - 22px);
  }

  .card-actions,
  .decision-actions {
    gap: 5px;
  }

  .card-actions .button,
  .card-actions button,
  .decision-actions .button,
  .decision-actions button {
    min-height: 31px;
    padding: 6px 7px;
    font-size: 12px;
  }

  .kpi-grid,
  .metrics-grid,
  .summary-grid {
    gap: 7px;
  }

  .metric-label,
  .kpi-label,
  .summary-label {
    font-size: 11px;
  }

  .north-star,
  .northstar,
  .north-star-card {
    padding: 18px 15px;
  }

  .north-star .current,
  .northstar .current,
  .north-star__current {
    font-size: 46px;
  }

  .city-grid,
  .cities-grid {
    grid-template-columns: repeat(2, minmax(125px, 1fr));
  }

  .inline-form,
  .inline-fields {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-form .field,
  .inline-fields .field {
    flex-basis: auto;
    width: 100%;
  }

  .inline-form .button,
  .inline-fields .button {
    width: 100%;
  }

  .filter-bar,
  .filters,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar .field,
  .filters .field,
  .toolbar .field {
    flex-basis: auto;
    width: 100%;
  }

  .filter-bar .button,
  .filters .button,
  .toolbar .button {
    width: 100%;
  }

  .panel,
  .block,
  .content-block,
  .form-card {
    padding: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .button:active,
  button:active,
  input[type="submit"]:active,
  input[type="button"]:active {
    transform: none;
  }
}
@media (max-width: 375px) {
  .gantt { max-width: 100%; }
}

/* === Gantt (plan.html) — AC build 2026-08-23 === */
.gantt-wrap {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.gantt-head,
.gantt-row {
  display: grid;
  grid-template-columns: clamp(140px, 18vw, 240px) repeat(12, minmax(0, 1fr)) 120px;
  min-width: 900px;
}

.gantt-head {
  border-bottom: 1px solid var(--color-border-strong);
  background: var(--color-surface-muted);
}

.gantt-head > div {
  min-width: 0;
  padding: 9px 6px;
  border-right: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.gantt-head > div:first-child {
  text-align: left;
}

.gantt-weeks {
  display: contents;
}

.gantt-week {
  min-width: 0;
  border-right: 1px solid var(--color-border);
  background-image: linear-gradient(to right, transparent 49%, rgba(215, 225, 219, .55) 50%, transparent 51%);
}

.gantt-body {
  min-width: 900px;
}

.gantt-row {
  min-height: 56px;
  border-bottom: 1px solid var(--color-border);
}

.gantt-row:last-child {
  border-bottom: 0;
}

.gantt-project {
  min-width: 0;
  padding: 9px 10px;
  background: var(--color-surface);
}

.gantt-project strong,
.gantt-project span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-project strong {
  color: var(--color-text);
  font-size: 12px;
}

.gantt-project span {
  margin-top: 3px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.gantt-track {
  position: relative;
  grid-column: 2 / span 12;
  min-width: 0;
  border-right: 1px solid var(--color-border);
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(8.333% - 1px),
    var(--color-border) calc(8.333% - 1px),
    var(--color-border) 8.333%
  );
}

.gantt-crew {
  min-width: 0;
  padding: 9px 8px;
  overflow: hidden;
  color: var(--color-text-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-bar {
  position: absolute;
  z-index: 1;
  top: 50%;
  min-width: 14px;
  height: 26px;
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-overflow: ellipsis;
  transform: translateY(-50%);
  white-space: nowrap;
  box-sizing: border-box;
}

.gantt-bar.stage-заявка { background: #7b8794; }
.gantt-bar.stage-расчёт { background: #62afd2; }
.gantt-bar.stage-договор { background: #3678c5; }
.gantt-bar.stage-поставка { background: #895bb2; }
.gantt-bar.stage-монтаж { background: #e48635; }
.gantt-bar.stage-пусконаладка {
  background: #d5a51d;
  color: #17231d;
}
.gantt-bar.stage-сдан { background: var(--color-success, #176b45); }
.gantt-bar.stage-сервис { background: #20a6a0; }

@media (max-width: 700px) {
  .gantt-head > div,
  .gantt-project,
  .gantt-crew {
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* skip-links: hidden until keyboard focus */
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 8px; top: 8px; z-index: 1000; background: var(--color-surface); color: var(--color-text); padding: 6px 10px; border-radius: 6px; box-shadow: var(--shadow-sm); }
.feedback-widget,
.feedback-widget-root {
  margin-top: 1.25rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-sans);
  color: var(--color-text);
}
.feedback-widget-text {
  display: block;
  width: 100%;
  min-height: 6.5rem;
  margin: 0.5rem 0 0.75rem;
  padding: 0.5rem 0.625rem;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.4;
  resize: vertical;
}
.feedback-widget-element {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.feedback-widget-element:hover {
  background: var(--color-accent-dark);
}
.feedback-widget-status {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}
.feedback-widget-status--error {
  color: var(--color-danger);
}
.feedback-widget-status--success {
  color: var(--color-success);
}
.feedback-widget-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}
.feedback-widget-list > * {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--color-border);
}
.feedback-widget-list > *:last-child {
  border-bottom: 0;
}
.feedback-widget-list .feedback-widget-status,
.feedback-widget-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Remote feedback layout: keep controls inside the widget at narrow and wide widths. */
.feedback-widget,
.feedback-widget-root,
.feedback-widget form,
.feedback-widget-root form {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}
.feedback-widget *,
.feedback-widget-root * {
  box-sizing: border-box;
  min-width: 0;
}
.feedback-widget form,
.feedback-widget-root form {
  width: 100%;
}
.feedback-widget input,
.feedback-widget textarea,
.feedback-widget select,
.feedback-widget-root input,
.feedback-widget-root textarea,
.feedback-widget-root select {
  max-width: 100%;
  min-width: 0;
}
.feedback-widget input[type="text"],
.feedback-widget input[type="email"],
.feedback-widget textarea,
.feedback-widget-root input[type="text"],
.feedback-widget-root input[type="email"],
.feedback-widget-root textarea {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
}
.feedback-widget-status,
.feedback-widget-meta,
.feedback-widget-list,
.feedback-widget-list > *,
.feedback-widget-root .feedback-widget-status,
.feedback-widget-root .feedback-widget-meta {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.feedback-widget input[type="checkbox"],
.feedback-widget-root input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  max-width: 18px;
  margin: 0 .35rem 0 0;
  flex: 0 0 18px;
}
