:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #090b0f;
  color: #f4f6f8;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 75% 15%, rgba(101, 255, 180, .12), transparent 30rem),
    linear-gradient(145deg, #0d1118 0%, #080a0e 70%);
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: .02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 28px;
  border-radius: 8px;
  background: #64f5ad;
  color: #07110b;
  font-size: 13px;
  font-weight: 850;
}

.hero { padding: 15vh 0 10vh; }
.eyebrow {
  margin: 0 0 20px;
  color: #64f5ad;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 690;
}

.lead {
  max-width: 650px;
  margin: 32px 0 26px;
  color: #aab2bd;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #26313a;
  border-radius: 999px;
  color: #cbd2d9;
  background: rgba(255, 255, 255, .025);
  font-size: 14px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.login-button { min-height: 46px; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64f5ad;
  box-shadow: 0 0 14px rgba(100, 245, 173, .9);
}

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

.cards article {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  padding: 22px;
  border: 1px solid #1d242d;
  border-radius: 18px;
  background: rgba(255, 255, 255, .025);
}

.cards strong { font-size: 19px; }
.cards span { color: #858e99; font-size: 14px; }

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1120px); padding-top: 22px; }
  .hero { padding: 13vh 0 8vh; }
  .cards { grid-template-columns: 1fr; }
}

.app-body { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid #1c232c;
  background: rgba(9, 11, 15, .88);
  backdrop-filter: blur(18px);
}
.topbar .brand { color: inherit; text-decoration: none; }
.topnav { display: flex; gap: 6px; }
.topnav a, .topnav span {
  padding: 9px 14px;
  border-radius: 10px;
  color: #8f98a4;
  text-decoration: none;
  font-size: 14px;
}
.topnav .active { color: #fff; background: #161c24; }
.nav-disabled { opacity: .5; }
.user-menu { display: flex; justify-content: flex-end; align-items: center; gap: 16px; color: #aab2bd; font-size: 14px; }
.user-menu form { margin: 0; }
.user-action { color: #8f98a4; font-size: 12px; text-decoration: none; }
.user-action:hover { color: #64f5ad; }
.link-button { padding: 0; border: 0; color: #64f5ad; background: transparent; cursor: pointer; }
.app-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 80px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.page-head.compact { margin-bottom: 24px; }
.page-title { margin: 0; font-size: clamp(36px, 5vw, 58px); letter-spacing: -.045em; line-height: 1; }
.page-subtitle { margin: 12px 0 0; color: #89929e; font-size: 16px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border: 1px solid transparent;
  border-radius: 12px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button.primary { background: #64f5ad; color: #07110b; }
.button.secondary { border-color: #2b343e; color: #dfe4e8; background: #141920; }
.button.full { width: 100%; }
.panel { border: 1px solid #1e252e; border-radius: 20px; background: rgba(18, 23, 30, .82); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card {
  display: block; min-height: 290px; padding: 22px; border: 1px solid #202832;
  border-radius: 20px; color: inherit; background: #11161d; text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}
.project-card:hover { transform: translateY(-3px); border-color: #3b4a58; }
.project-card-top, .project-meta, .progress-row, .section-head, .object-kicker { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.project-number { color: #79838f; font: 700 12px/1 ui-monospace, monospace; letter-spacing: .06em; }
.status-badge, .stage-status { padding: 6px 9px; border-radius: 999px; background: #202832; color: #aeb7c1; font-size: 11px; font-weight: 750; }
.status-active, .stage-in_progress { background: rgba(100,245,173,.12); color: #75f8b8; }
.status-paused, .stage-blocked { background: rgba(255,178,83,.12); color: #ffbd6c; }
.status-completed, .stage-completed { background: rgba(97,161,255,.13); color: #83b6ff; }
.project-card h2 { margin: 42px 0 8px; font-size: 23px; }
.project-card > p { min-height: 42px; margin: 0 0 28px; color: #838d98; line-height: 1.45; }
.progress-row { color: #89939e; font-size: 12px; }
.progress-row strong { color: #e8ecf0; }
.progress-track { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 4px; background: #252d36; }
.progress-track i { display: block; height: 100%; background: #64f5ad; }
.project-meta { margin-top: 24px; color: #69737e; font-size: 12px; }
.registry-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) auto auto auto; gap: 9px; margin-bottom: 18px; }
.view-switch { display: flex; padding: 4px; border: 1px solid #26303a; border-radius: 12px; background: #10151c; }
.view-switch a { display: grid; place-items: center; padding: 0 12px; border-radius: 8px; color: #7f8994; text-decoration: none; font-size: 12px; }
.view-switch a.active { color: #07110b; background: #64f5ad; }
.project-registry { overflow: hidden; }
.registry-row { display: grid; grid-template-columns: 150px minmax(240px, 1fr) 130px; align-items: center; gap: 14px; min-height: 58px; padding: 10px 16px; border-top: 1px solid #242c35; color: inherit; text-decoration: none; }
.registry-row:not(.registry-head):hover { background: #171d25; }
.registry-row > strong { color: #64f5ad; font: 800 13px/1 ui-monospace, monospace; }
.registry-row > span:nth-child(2) { display: grid; gap: 4px; }
.registry-row b { font-size: 14px; }
.registry-row small { overflow: hidden; color: #737e89; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.registry-head { min-height: 42px; border-top: 0; color: #68737e; background: #0e1319; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.passport-note { margin-top: 15px; padding-top: 14px; border-top: 1px solid #222a33; }
.passport-note strong { font-size: 11px; }
.passport-note p { margin: 7px 0 0; color: #929ca7; font-size: 12px; line-height: 1.5; }
.empty-state { padding: 70px 30px; text-align: center; }
.empty-state .empty-icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: #192129; color: #64f5ad; font-weight: 800; }
.empty-state h2 { margin: 22px 0 8px; }
.empty-state p { margin: 0 auto 24px; max-width: 480px; color: #88919c; }
.back-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 40px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid #34424d;
  border-radius: 11px;
  color: #d5dee5;
  background: #131b22;
  box-shadow: 0 5px 16px rgb(0 0 0 / 16%);
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  transition: color .15s, background .15s, border-color .15s, transform .15s;
}
.back-link:hover {
  border-color: #58e5a3;
  color: #07130d;
  background: #5ce9a5;
  transform: translateX(-2px);
}
.back-link:focus-visible {
  outline: 2px solid #66efad;
  outline-offset: 3px;
}
.object-form { max-width: 900px; padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid label, .auth-panel label { display: grid; gap: 8px; color: #aeb6bf; font-size: 13px; font-weight: 650; }
.form-grid .span-2 { grid-column: span 2; }
input, select, textarea {
  width: 100%; padding: 12px 13px; border: 1px solid #2a3440; border-radius: 11px;
  outline: none; background: #0c1016; color: #f4f6f8; font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: #64f5ad; box-shadow: 0 0 0 3px rgba(100,245,173,.08); }
textarea { resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #252c35; }
.form-error { color: #ff8f94; font-size: 13px; }
.form-error-summary { margin-bottom: 22px; padding: 16px 18px; border: 1px solid rgba(255,92,100,.45); border-radius: 13px; color: #ffd1d3; background: rgba(255,92,100,.09); }
.form-error-summary strong { font-size: 15px; }
.form-error-summary p { margin: 5px 0 8px; color: #e9aeb1; font-size: 12px; }
.form-error-summary ul { margin: 0; padding-left: 20px; font-size: 12px; line-height: 1.6; }
.save-confirmation { margin-bottom: 18px; padding: 13px 16px; border: 1px solid rgba(100,245,173,.35); border-radius: 12px; color: #75f8b8; background: rgba(100,245,173,.08); font-size: 13px; font-weight: 750; }
.auth-layout { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 8vw; min-height: calc(100vh - 176px); }
.auth-copy h1 { margin: 0; font-size: clamp(46px, 7vw, 82px); letter-spacing: -.055em; line-height: .98; }
.auth-panel { display: grid; gap: 20px; padding: 28px; }
.auth-panel h2 { margin: 0 0 4px; font-size: 26px; }
.object-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding: 20px 0 30px; }
.object-kicker { justify-content: flex-start; margin-bottom: 15px; color: #7f8995; font: 700 12px/1 ui-monospace, monospace; }
.completion { display: grid; text-align: right; }
.completion strong { font-size: 46px; letter-spacing: -.05em; }
.completion span { color: #7f8995; font-size: 12px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 22px; padding-bottom: 1px; border-bottom: 1px solid #202731; }
.tabs a, .tabs span { flex: 0 0 auto; padding: 13px 14px; color: #747e89; text-decoration: none; font-size: 13px; }
.tabs .active { border-bottom: 2px solid #64f5ad; color: #e9edf0; }
.object-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; }
.object-layout > .panel { padding: 24px; }
.section-head h2 { margin: 0; font-size: 22px; }
.section-head > span { color: #747e89; font-size: 12px; }
.stage-list { margin-top: 18px; }
.stage-row { display: grid; grid-template-columns: 38px 1fr auto 42px; align-items: center; gap: 13px; padding: 15px 0; border-top: 1px solid #222a33; }
.stage-index { color: #606a75; font: 700 11px/1 ui-monospace, monospace; }
.stage-main { display: grid; gap: 4px; }
.stage-main strong { font-size: 14px; }
.stage-main span { color: #717b86; font-size: 11px; }
.stage-progress { text-align: right; font-size: 12px; }
.object-layout aside { display: grid; align-content: start; gap: 18px; }
.summary-panel { padding: 20px; }
.summary-panel dl { margin: 15px 0 0; }
.summary-panel dl div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-top: 1px solid #222a33; }
.summary-panel dt { color: #707a85; font-size: 12px; }
.summary-panel dd { margin: 0; text-align: right; font-size: 12px; }
.team-list { display: grid; gap: 12px; margin-top: 16px; }
.team-list > div { display: flex; align-items: center; gap: 11px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #26323a; color: #64f5ad; font-weight: 800; }
.team-list p { display: grid; gap: 2px; margin: 0; }
.team-list strong { font-size: 13px; }
.team-list p span { color: #737d88; font-size: 11px; }
.muted { color: #737d88; }
.mini-link { color: #64f5ad; font-size: 12px; text-decoration: none; }
.function-summary { display: grid; gap: 0; margin-top: 14px; }
.function-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #222a33; font-size: 12px; }
.function-summary span { color: #828c97; }
.button-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.room-strip { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 10px; margin-bottom: 28px; }
.room-card { display: grid; grid-template-columns: 38px 1fr 28px; align-items: center; gap: 10px; min-height: 72px; padding: 13px; border: 1px solid #222b35; border-radius: 15px; background: #11161c; }
.room-card > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #1b252d; color: #64f5ad; font: 750 11px/1 ui-monospace, monospace; }
.room-card > div { display: grid; gap: 4px; }.room-card strong { font-size: 12px; }.room-card small { color: #737e89; font-size: 10px; }
.room-card > a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #64f5ad; background: #1b252d; text-decoration: none; }
.room-card-empty { color: inherit; text-decoration: none; }
.filter-row { display: flex; gap: 7px; overflow-x: auto; margin: -12px 0 18px; padding-bottom: 4px; }
.filter-row a { flex: 0 0 auto; padding: 8px 11px; border: 1px solid #252e38; border-radius: 999px; color: #84909b; text-decoration: none; font-size: 11px; }
.filter-row a.active { border-color: #64f5ad; color: #64f5ad; background: rgba(100,245,173,.06); }
.data-panel { overflow: hidden; }
.function-table { overflow-x: auto; }
.function-row { display: grid; grid-template-columns: minmax(240px, 2fr) minmax(110px, .8fr) minmax(130px, .9fr) repeat(3, minmax(110px, .8fr)) minmax(130px, .7fr); align-items: center; gap: 14px; min-width: 1080px; padding: 15px 20px; border-top: 1px solid #222a33; }
.function-row:first-child { border-top: 0; }
.function-row.table-head { min-height: 42px; color: #69737e; background: #0e1319; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.function-row > div:first-child { display: grid; gap: 4px; }
.function-row > div:first-child strong { font-size: 13px; }
.function-row small { color: #747e89; font-size: 10px; }
.function-row > span { color: #a7afb8; font-size: 11px; }
.work-state { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 999px; background: #222a33; color: #aab3bd; font-size: 10px; font-weight: 750; }
.state-ready, .state-closed { background: rgba(100,245,173,.11); color: #75f8b8 !important; }
.state-in_progress { background: rgba(97,161,255,.12); color: #8ebcff !important; }
.state-blocked, .state-critical { background: rgba(255,92,100,.12); color: #ff9298 !important; }
.state-not_required { color: #737d88 !important; }
.row-actions { display: flex; justify-content: flex-end; gap: 10px; }
.row-actions a { color: #77aefb; font-size: 10px; text-decoration: none; }
.compact-empty { padding: 48px 24px; }
.narrow-form { max-width: 620px; }
.issue-list { overflow: hidden; }
.issue-row { display: grid; grid-template-columns: 10px minmax(220px, 1fr) 160px 160px 70px; align-items: center; gap: 14px; padding: 17px 20px; border-top: 1px solid #222a33; color: inherit; text-decoration: none; }
.issue-row:first-child { border-top: 0; }
.issue-row > div { display: grid; gap: 4px; }
.issue-row small, .issue-row time, .issue-row > span { color: #747e89; font-size: 11px; }
.priority { width: 7px; height: 7px; border-radius: 50%; background: #707b86; }
.priority-high { background: #ffb053; }.priority-critical { background: #ff5c64; box-shadow: 0 0 10px rgba(255,92,100,.6); }
.issue-hero { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 30px; }
.issue-hero h1 { margin: 14px 0; font-size: clamp(30px, 5vw, 50px); letter-spacing: -.04em; }
.issue-hero p { color: #a3acb6; line-height: 1.6; }
.issue-hero dl { margin: 0; }
.issue-hero dl div { padding: 12px 0; border-top: 1px solid #28313a; }
.issue-hero dt { color: #717b86; font-size: 10px; }.issue-hero dd { margin: 5px 0 0; font-size: 12px; }
.comments-panel { max-width: 800px; margin-top: 18px; padding: 26px; }
.comments-panel h2 { margin-top: 0; }
.comments article { padding: 16px 0; border-top: 1px solid #252e37; }
.comments article > div { display: flex; justify-content: space-between; gap: 20px; }
.comments time { color: #68727d; font-size: 10px; }
.comments p { margin-bottom: 0; color: #a7b0ba; font-size: 13px; line-height: 1.55; }
.comments-panel form { display: grid; gap: 10px; margin-top: 20px; }
.comments-panel form .button { justify-self: end; }
.field-help { color: #69737e; font-size: 10px; font-weight: 400; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module-card { display: block; overflow: hidden; border: 1px solid #222b35; border-radius: 20px; color: inherit; background: #11161c; text-decoration: none; }
.module-label { padding: 18px 20px; border-bottom: 1px solid #27313a; color: #07110b; background: #64f5ad; font: 850 27px/1 ui-monospace, monospace; letter-spacing: -.03em; }
.module-main { padding: 20px 20px 4px; }.module-main h2 { margin: 18px 0 5px; }.module-main p { margin: 0; color: #737e89; font-size: 12px; }
.module-card dl { margin: 15px 20px 20px; }.module-card dl div { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-top: 1px solid #222a33; }
.module-card dt { color: #6f7984; font-size: 10px; }.module-card dd { margin: 0; text-align: right; font-size: 11px; }
.module-hero { display: grid; grid-template-columns: 300px 1fr; gap: 38px; padding: 28px; }
.sticker-preview { display: grid; align-content: center; min-height: 205px; padding: 24px; border-radius: 16px; color: #101510; background: #f1f6ef; box-shadow: inset 0 0 0 2px #111; }
.sticker-preview span { font-size: 11px; font-weight: 800; }.sticker-preview strong { margin: 20px 0 8px; font: 900 50px/1 ui-monospace, monospace; letter-spacing: -.05em; }.sticker-preview small { font: 750 11px/1 ui-monospace, monospace; }.sticker-preview em { margin-top: 28px; font-size: 13px; font-style: normal; }
.module-info h1 { margin: 0 0 18px; font-size: 32px; }.module-info dl { margin: 0; }.module-info dl div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-top: 1px solid #273039; }.module-info dt { color: #717b86; font-size: 11px; }.module-info dd { margin: 0; text-align: right; font-size: 12px; }
.module-channels { margin-top: 18px; }.channel-head { padding: 22px; }.channel-row { display: grid; grid-template-columns: 120px 180px 1fr 80px; align-items: center; gap: 16px; padding: 14px 22px; border-top: 1px solid #232c35; color: inherit; text-decoration: none; }
.channel-row > strong { font: 800 12px/1 ui-monospace, monospace; }.channel-row > span { color: #78828d; font-size: 10px; }.channel-row > div { display: grid; gap: 3px; }.channel-row > div b { color: #64f5ad; font: 750 11px/1 ui-monospace, monospace; }.channel-row > div span, .unassigned { color: #98a1ab; font-size: 11px; }
.configurator-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.room-sidebar { position: sticky; top: 90px; overflow: hidden; }
.configurator-title { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 12px 14px 12px 18px; border-bottom: 1px solid #252e37; }
.configurator-title > div { display: flex; align-items: center; gap: 9px; font-weight: 750; }
.configurator-title small { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; color: #84909b; background: #222b34; font-size: 10px; }
.configurator-title > a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #07110b; background: #64f5ad; text-decoration: none; font-size: 22px; font-weight: 600; }
.room-list { display: grid; max-height: calc(100vh - 190px); overflow-y: auto; padding: 7px; }
.room-list > a { display: grid; grid-template-columns: 45px 1fr; align-items: center; min-height: 58px; padding: 8px 10px; border-radius: 11px; color: inherit; text-decoration: none; }
.room-list > a:hover { background: #171e26; }
.room-list > a.active { color: #07110b; background: #64f5ad; }
.room-list > a > span { font: 800 12px/1 ui-monospace, monospace; }
.room-list > a > div { display: grid; gap: 4px; min-width: 0; }
.room-list strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.room-list small { color: #737e89; font-size: 10px; }
.room-list > a.active small { color: rgba(7,17,11,.65); }
.function-workspace { min-height: 620px; overflow: visible; }
.workspace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; padding: 16px 20px; border-bottom: 1px solid #252e37; }
.workspace-toolbar .eyebrow { margin-bottom: 7px; }
.workspace-toolbar h2 { margin: 0; font-size: 22px; }
.workspace-actions { display: flex; align-items: center; gap: 8px; }
.workspace-actions form { margin: 0; }
.catalog-menu { position: relative; }
.catalog-menu summary, .tool-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 11px; color: #07110b; background: #64f5ad; font: 800 22px/1 inherit; cursor: pointer; list-style: none; }
.catalog-menu summary::-webkit-details-marker { display: none; }
.tool-button.duplicate { color: #dfe5e9; background: #222b34; font-size: 14px; }
.tool-button.danger { color: #ff9298; background: rgba(255,92,100,.12); }
.tool-button:disabled { opacity: .35; cursor: default; }
.catalog-popover { position: absolute; z-index: 20; top: 52px; right: 0; width: min(680px, calc(100vw - 48px)); max-height: 70vh; overflow-y: auto; padding: 16px; border: 1px solid #34404b; border-radius: 16px; background: #121820; box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.catalog-search { margin-bottom: 10px; }
.catalog-popover section { padding: 13px 0; border-top: 1px solid #27313a; }
.catalog-popover section:first-of-type { border-top: 0; }
.catalog-popover h3 { margin: 0 0 9px; color: #7e8994; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.catalog-popover section > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.catalog-popover section form { margin: 0; }
.catalog-popover section button { width: 100%; min-height: 40px; padding: 10px 11px; border: 0; border-radius: 9px; color: #dfe5e9; background: #1a222b; text-align: left; font: inherit; font-size: 12px; cursor: pointer; }
.catalog-popover section button:hover { color: #07110b; background: #64f5ad; }
.workspace-filter { display: grid; grid-template-columns: minmax(240px, 1fr) 220px auto; gap: 8px; padding: 13px 16px; border-bottom: 1px solid #252e37; }
.workspace-table { overflow-x: auto; }
.workspace-row { display: grid; grid-template-columns: 38px minmax(280px, 1fr) minmax(130px, .45fr) 130px 70px; align-items: center; gap: 13px; min-width: 760px; min-height: 64px; padding: 9px 16px; border-top: 1px solid #222b34; color: inherit; text-decoration: none; }
.workspace-row:hover { background: #171e26; }
.workspace-row.selected { color: #07110b; background: #64f5ad; }
.workspace-row > span:first-child { color: #66727e; font: 700 11px/1 ui-monospace, monospace; }
.workspace-row.selected > span:first-child { color: rgba(7,17,11,.6); }
.workspace-row > .function-name-cell { display: grid; gap: 5px; min-width: 0; }
.workspace-row strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-row small { overflow: hidden; color: #7d8893; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-row.selected small { color: rgba(7,17,11,.68); }
.workspace-row > .binding-cell { color: #89949f; font-size: 11px; }
.workspace-row.selected > .binding-cell { color: rgba(7,17,11,.68); }
.workspace-row > b { color: #64f5ad; font: 800 11px/1 ui-monospace, monospace; }
.workspace-row.selected > b { color: #07110b; }
.workspace-head { min-height: 40px; border-top: 0; color: #68737e; background: #0e1319; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.workspace-head:hover { background: #0e1319; }
.row-edit { color: #7faef2 !important; font-size: 10px !important; cursor: pointer; }
.workspace-row.selected .row-edit { color: #07110b !important; }
.inline-cell { position: relative; cursor: text; }
.inline-cell > form { display: none; position: absolute; z-index: 2; inset: -7px -6px; margin: 0; }
.inline-cell.editing > strong, .inline-cell.editing > small, .inline-cell.editing > span { visibility: hidden; }
.inline-cell.editing > form { display: block; }
.inline-cell input { height: 100%; min-height: 48px; padding: 7px 9px; border-color: #64f5ad; background: #0c1117; font-size: 12px; }
.binding-cell > span { color: #89949f; font-size: 11px; }
.row-select { color: #7faef2; font-size: 10px; text-decoration: none; }
.workspace-row.selected .row-select { color: #07110b; font-weight: 750; }
.marking-cell > b { color: #64f5ad; font: 800 11px/1 ui-monospace, monospace; }
.workspace-row.selected .marking-cell > b { color: #07110b; }
.row-tools { display: flex; align-items: center; gap: 8px; }
.row-tools form { margin: 0; }
.row-tools button { padding: 2px 5px; border: 0; color: #ff9298; background: transparent; font-size: 16px; cursor: pointer; }
.catalog-admin-list { overflow: hidden; }
.catalog-admin-row { display: grid; grid-template-columns: minmax(300px, 1fr) 230px 70px 100px 78px; align-items: center; gap: 14px; min-height: 56px; padding: 10px 16px; border-top: 1px solid #252e37; color: inherit; text-decoration: none; }
.catalog-admin-row:hover { background: #171e26; }
.catalog-admin-row > span { color: #85909b; font-size: 11px; }
.catalog-admin-row > b { color: #64f5ad; font: 750 11px/1 ui-monospace, monospace; }
.catalog-admin-row > a { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.catalog-admin-row > a small { color: #77838e; font-size: 9px; }
.catalog-admin-row > form { text-align: right; }
.catalog-admin-row > form button { border: 0; color: #ff9298; background: transparent; cursor: pointer; font-size: 10px; }
.catalog-admin-head { min-height: 40px; border-top: 0; color: #68737e; background: #0e1319; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.catalog-admin-head:hover { background: #0e1319; }
.settings-tabs { display: flex; gap: 6px; margin: -12px 0 20px; padding-bottom: 10px; border-bottom: 1px solid #252e37; }
.settings-tabs a { padding: 9px 13px; border-radius: 9px; color: #84909b; text-decoration: none; font-size: 12px; }
.settings-tabs a.active { color: #07110b; background: #64f5ad; font-weight: 750; }
.user-admin-row { display: grid; grid-template-columns: minmax(180px, .8fr) 150px minmax(260px, 1fr) 110px; align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px; border-top: 1px solid #252e37; color: inherit; text-decoration: none; }
.user-admin-row:hover { background: #171e26; }
.user-admin-row > span { color: #85909b; font-size: 11px; }
.role-choice-field > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.role-choice-field > div label { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 10px; border: 1px solid #29333e; border-radius: 9px; }
.role-choice-field input { width: auto; }
.passport-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.passport-section { padding: 22px; }
.passport-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 0 0; }
.passport-grid > div { min-height: 74px; padding: 14px 0; border-top: 1px solid #252e37; }
.passport-grid > div:nth-child(odd) { padding-right: 18px; }
.passport-grid > div:nth-child(even) { padding-left: 18px; border-left: 1px solid #252e37; }
.passport-grid > div.wide { grid-column: span 2; padding-right: 0; padding-left: 0; border-left: 0; }
.passport-grid dt { margin-bottom: 7px; color: #74808b; font-size: 11px; }
.passport-grid dd { margin: 0; color: #e5e9ed; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.page-actions { display: flex; align-items: center; gap: 8px; }
.import-card { max-width: 760px; overflow: hidden; }
.import-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.import-stats article { display: grid; gap: 9px; padding: 20px; }
.import-stats span { color: #77828d; font-size: 11px; }
.import-stats strong { color: #64f5ad; font: 850 29px/1 ui-monospace, monospace; }
.import-warnings, .import-success { margin-bottom: 16px; padding: 20px 22px; }
.import-warnings { border-color: rgba(255,176,83,.35); }
.import-warnings p:not(.eyebrow) { margin: 8px 0 0; color: #d6b98e; font-size: 12px; line-height: 1.5; }
.import-success { color: #64f5ad; font-size: 13px; }
.import-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.import-rooms { overflow: hidden; }
.import-rooms > .panel-head { padding: 20px 22px; }
.import-rooms > .panel-head h2 { margin: 7px 0 0; }
.import-room { border-top: 1px solid #252e37; }
.import-room summary { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 58px; padding: 10px 18px; cursor: pointer; list-style: none; }
.import-room summary::-webkit-details-marker { display: none; }
.import-room summary > span { color: #64f5ad; font: 800 12px/1 ui-monospace, monospace; }
.import-room summary > strong { font-size: 13px; }
.import-room summary > small { color: #77828d; font-size: 10px; }
.import-room[open] summary { background: #151c23; }
.import-room > div { padding: 0 18px 12px 76px; background: #11171d; }
.import-function { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 4px 14px; padding: 9px 0; border-top: 1px solid #232c35; }
.import-function > span { font-size: 12px; }
.import-function > small { grid-column: 1; color: #707b86; font-size: 10px; }
.import-function > b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #64f5ad; text-align: right; font: 750 11px/1 ui-monospace, monospace; }
.import-confirm { position: sticky; top: 90px; padding: 22px; }
.import-confirm h2 { margin: 8px 0 18px; }
.compact-form { padding: 0; }
.compact-form label { display: grid; gap: 7px; margin-bottom: 14px; }
.compact-form label > span { color: #8d98a3; font-size: 11px; font-weight: 650; }
.compact-form input[type="checkbox"] { width: auto; }
.compact-form label:has(input[type="checkbox"]) { display: flex; align-items: center; }
.compact-form label:has(input[type="checkbox"]) > span { order: 2; }
.compact-form .button { width: 100%; margin-top: 4px; }
.safe-note { margin: 16px 0 0; color: #6f7984; font-size: 10px; line-height: 1.55; }
.object-form label > em { color: #ff9298; font-size: 10px; font-style: normal; }
.report-actions { display: grid; gap: 12px; margin-bottom: 16px; }
.report-action { display: grid; grid-template-columns: 55px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 22px; color: inherit; text-decoration: none; }
.report-action:hover { border-color: #64f5ad; background: #141c22; }
.report-action > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; color: #07110b; background: #64f5ad; font: 850 13px/1 ui-monospace, monospace; }
.report-action h2 { margin: 5px 0 7px; font-size: 19px; }
.report-action p { margin: 0; color: #78838e; font-size: 11px; line-height: 1.5; }
.report-action > b { color: #64f5ad; font-size: 12px; }
.report-summary { padding: 22px; }
.report-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.report-kpis > div { display: grid; gap: 9px; padding: 14px; border: 1px solid #27313b; border-radius: 12px; background: #0f151b; }
.report-kpis span { color: #78838e; font-size: 10px; }
.report-kpis strong { color: #64f5ad; font: 850 24px/1 ui-monospace, monospace; }
.wb-planner-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; }
.wb-module-sidebar { position: sticky; top: 88px; overflow: hidden; }
.wb-module-list { display: grid; max-height: 560px; overflow-y: auto; padding: 8px; }
.wb-module-list > a { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 62px; padding: 9px 11px; border-radius: 11px; color: inherit; text-decoration: none; }
.wb-module-list > a:hover { background: #151d24; }
.wb-module-list > a.active { color: #07110b; background: #64f5ad; }
.wb-module-list > a > b { font: 800 11px/1 ui-monospace, monospace; }
.wb-module-list > a div { display: grid; gap: 5px; min-width: 0; }
.wb-module-list > a strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.wb-module-list > a small { color: #7d8994; font-size: 9px; }
.wb-module-list > a.active small { color: #315543; }
.empty-module-list { padding: 22px 15px; color: #78838e; font-size: 11px; line-height: 1.5; }
.wb-add-module { display: grid; gap: 10px; padding: 14px; border-top: 1px solid #252e37; }
.wb-add-module label { display: grid; gap: 7px; }
.wb-add-module label span { color: #7f8a95; font-size: 10px; }
.wb-planner-main { display: grid; gap: 16px; min-width: 0; }
.wb-selected-module, .wb-assignment-panel { overflow: hidden; }
.wb-channel-groups { display: grid; gap: 18px; padding: 18px; }
.wb-channel-title { display: flex; justify-content: space-between; margin-bottom: 9px; }
.wb-channel-title strong { font-size: 12px; }
.wb-channel-title span { color: #78838e; font-size: 10px; }
.wb-channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wb-channel { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; min-height: 58px; padding: 9px 11px; border: 1px dashed #2c3741; border-radius: 10px; color: #697580; }
.wb-channel > b { font: 800 10px/1 ui-monospace, monospace; }
.wb-channel > span { font-size: 10px; }
.wb-channel.occupied { border-style: solid; border-color: #2c4b3d; color: #edf7f1; background: #111c18; }
.wb-channel.occupied > b { color: #64f5ad; }
.wb-channel > div { display: grid; gap: 5px; min-width: 0; }
.wb-channel > div strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.wb-channel > div small { overflow: hidden; color: #78838e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.wb-assignment-panel .section-head { padding: 18px; border-bottom: 1px solid #252e37; }
.wb-assignment-row { display: grid; grid-template-columns: minmax(180px, 1fr) 90px minmax(190px, .8fr) auto; gap: 12px; align-items: center; min-height: 68px; padding: 10px 18px; border-bottom: 1px solid #222b33; }
.wb-assignment-row > div { display: grid; gap: 5px; }
.wb-assignment-row strong { font-size: 12px; }
.wb-assignment-row small { color: #78838e; font-size: 9px; }
.wb-assignment-row code { color: #64f5ad; font: 750 11px/1 ui-monospace, monospace; }
.wb-assignment-row .button { padding: 10px 13px; }
.procurement-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.procurement-kpis > div { display: grid; gap: 8px; padding: 16px; }
.procurement-kpis span { color: #78838e; font-size: 10px; }
.procurement-kpis strong { color: #64f5ad; font: 850 21px/1 ui-monospace, monospace; }
.procurement-kpis small { color: #65717c; font-size: 9px; }
.procurement-panel { overflow-x: auto; }
.procurement-head, .procurement-item > summary { display: grid; grid-template-columns: minmax(260px, 1fr) repeat(6, 78px) 150px; gap: 10px; align-items: center; min-width: 980px; }
.procurement-head.has-prices, .procurement-item.has-prices > summary { grid-template-columns: minmax(240px, 1fr) repeat(6, 70px) 100px 110px 140px; min-width: 1160px; }
.team-assign-form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto; gap: 14px; align-items: end; margin-bottom: 18px; }
.team-assign-form label { display: grid; gap: 7px; }
.team-manage-list article { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid #26313c; }
.team-manage-list article:first-of-type { border-top: 0; }
.team-manage-list article div { display: grid; gap: 3px; }
.team-manage-list small, .my-stage-grid span, .my-stage-grid small { color: #82909e; }
.my-stage-panel { margin-bottom: 18px; }
.my-stage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.my-stage-grid a { display: grid; gap: 5px; padding: 13px; border: 1px solid #293642; border-radius: 12px; color: inherit; text-decoration: none; }
.my-stage-grid a:hover { border-color: #55e7a5; }
@media (max-width: 760px) { .team-assign-form { grid-template-columns: 1fr; } }
.catalog-groups { display: grid; gap: 12px; }
.catalog-group { padding: 0; overflow: hidden; }
.catalog-group > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; }
.catalog-group > summary::-webkit-details-marker { display: none; }
.catalog-group > summary div { display: grid; gap: 4px; }
.catalog-group > summary small, .catalog-group > summary > span { color: #82909e; }
.catalog-group[open] > summary { border-bottom: 1px solid #293642; }
.catalog-group[open] > summary > span { color: #55e7a5; }
.price-update-summary { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 16px; }
.price-update-summary div { display: grid; gap: 4px; min-width: 130px; }
.price-update-summary span { color: #82909e; font-size: 12px; }
.equipment-catalog-table { padding: 0; overflow-x: auto; }
.equipment-catalog-row { display: grid; grid-template-columns: minmax(260px, 1.5fr) 170px minmax(180px, 1fr); gap: 14px; align-items: center; padding: 13px 18px; border-top: 1px solid #293642; color: inherit; text-decoration: none; min-width: 720px; }
.equipment-catalog-row:has(> :nth-child(5)) { grid-template-columns: minmax(260px, 1.5fr) 170px minmax(180px, 1fr) 120px 140px; min-width: 980px; }
.equipment-catalog-row:first-child { border-top: 0; }
.equipment-catalog-row:not(.head):hover { background: #131c25; }
.equipment-catalog-row.head { color: #82909e; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.equipment-catalog-row > span:first-child { display: grid; gap: 4px; }
.equipment-catalog-row small { color: #82909e; }
.procurement-head { padding: 11px 18px; border-bottom: 1px solid #2b3540; color: #77838e; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.procurement-head span:not(:first-child) { text-align: center; }
.procurement-item { min-width: 980px; border-bottom: 1px solid #222b33; }
.procurement-item > summary { min-height: 64px; padding: 9px 18px; cursor: pointer; list-style: none; }
.procurement-item > summary::-webkit-details-marker { display: none; }
.procurement-item > summary:hover { background: #121a20; }
.procurement-item[open] > summary { background: #142019; }
.procurement-item > summary > div { display: grid; gap: 5px; min-width: 0; }
.procurement-item > summary strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.procurement-item > summary small { color: #78838e; font-size: 9px; }
.procurement-item > summary > b { text-align: center; font: 750 11px/1 ui-monospace, monospace; }
.procurement-stage { padding: 7px 9px; border: 1px solid #2d483c; border-radius: 999px; color: #64f5ad; text-align: center; font-size: 9px; }
.procurement-edit { display: grid; gap: 15px; padding: 18px; border-top: 1px solid #26302b; background: #0d1418; }
.procurement-flow { display: grid; grid-template-columns: repeat(6, minmax(105px, 1fr) 18px) minmax(105px, 1fr); gap: 7px; align-items: end; }
.procurement-flow label, .procurement-meta label { display: grid; gap: 6px; }
.procurement-flow label span, .procurement-meta label span { color: #7f8a95; font-size: 9px; }
.procurement-flow i { align-self: center; color: #52605a; text-align: center; font-style: normal; }
.procurement-flow input { min-width: 0; padding: 9px; }
.procurement-meta { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)) auto; gap: 10px; align-items: end; }
.procurement-meta .wide { grid-column: span 2; }
.procurement-meta input { min-width: 0; padding: 10px; }
.procurement-total { display: flex; flex-wrap: wrap; gap: 18px; color: #78838e; font-size: 9px; }
.procurement-total b { color: #dbe7e1; }
.project-lifecycle-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: -12px 0 18px; }
.project-lifecycle-actions form { margin: 0; }
.purpose-badge { padding: 8px 11px; border: 1px solid #2d483c; border-radius: 999px; color: #64f5ad; font-size: 10px; }
.danger-zone { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-top: 16px; padding: 20px; border-color: #563138; }
.danger-zone h2 { margin: 5px 0; }
.danger-zone p { margin: 0; color: #8b7478; font-size: 10px; }
.danger-zone form { display: flex; gap: 8px; align-items: end; }
.danger-zone label { display: grid; gap: 6px; color: #987c81; font-size: 9px; }
.button.danger { color: #fff; background: #c74853; }
.route-template-list article, .project-route-list article { display: grid; grid-template-columns: 48px minmax(240px, 1fr) 170px 110px 90px 36px; gap: 12px; align-items: center; min-height: 66px; padding: 9px 16px; border-top: 1px solid #252e37; }
.route-template-list article > b, .project-route-list article > b { color: #64f5ad; font: 800 11px/1 ui-monospace, monospace; }
.route-template-list article > a, .project-route-list article > div:first-of-type { display: grid; gap: 5px; color: inherit; text-decoration: none; }
.route-template-list article small, .project-route-list article small { color: #78838e; font-size: 9px; }
.route-template-list article > span { color: #84909b; font-size: 10px; }
.route-template-list article button { border: 0; color: #ff9298; background: transparent; cursor: pointer; font-size: 18px; }
.project-route-list article { grid-template-columns: 48px minmax(250px, 1fr) 180px 140px 55px 230px; }
.project-route-list article > strong { color: #64f5ad; text-align: right; font: 800 11px/1 ui-monospace, monospace; }
.route-row-actions { display: flex; justify-content: flex-end; gap: 5px; align-items: center; }
.route-row-actions form { margin: 0; }
.route-row-actions button, .route-row-actions a { display: grid; place-items: center; min-width: 30px; min-height: 30px; padding: 0 8px; border: 1px solid #2b3540; border-radius: 8px; color: #95a1ac; background: #11181e; text-decoration: none; cursor: pointer; font-size: 9px; }
.route-row-actions .danger-text { color: #ff9298; }
.access-choice-field { display: flex !important; align-items: center; gap: 9px !important; padding: 10px; border: 1px solid #27313b; border-radius: 10px; }
.access-choice-field input { width: auto; }
.access-choice-field > span { order: 2; }
.equipment-multiselect { min-height: 270px; }
.function-compatibility { grid-column: 1 / -1; margin-top: 18px; border: 1px solid #293642; border-radius: 12px; overflow: hidden; }
.function-compatibility > summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 15px 17px; cursor: pointer; list-style: none; }
.function-compatibility > summary::-webkit-details-marker { display: none; }
.function-compatibility > summary span { display: grid; gap: 4px; }
.function-compatibility > summary small { color: #82909e; font-weight: 400; }
.function-compatibility > summary b { color: #5ce9a5; font-size: 10px; }
.function-compatibility[open] > summary { border-bottom: 1px solid #293642; }
.function-compatibility > div { display: grid; gap: 9px; padding: 15px 17px; }
.function-recipe { grid-column: 1 / -1; display: grid; gap: 16px; margin-top: 22px; padding-top: 22px; border-top: 1px solid #293642; }
.function-recipe h2 { margin: 4px 0; }
.recipe-help { border: 1px solid #315040; border-radius: 11px; background: #0d1713; }
.recipe-help > summary { padding: 13px 15px; color: #65e9a8; cursor: pointer; font-size: 11px; font-weight: 750; }
.recipe-help > div { display: grid; gap: 8px; padding: 0 15px 14px; }
.recipe-help p { margin: 0; color: #9ba9a2; font-size: 10px; line-height: 1.5; }
.recipe-help code { color: #d0dae0; }
.recipe-table { display: grid; gap: 10px; }
.recipe-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; align-items: end; padding: 16px; border: 1px solid #293642; border-radius: 12px; background: #0d141a; }
.recipe-row label { display: grid; gap: 6px; }
.recipe-row label > span { color: #82909e; font-size: 9px; }
.recipe-row label > small { min-height: 11px; color: #66737d; font-size: 8px; }
.recipe-row input, .recipe-row select { min-width: 0; padding: 9px; }
.recipe-equipment { grid-column: span 6; }
.recipe-quantity { grid-column: span 3; }
.recipe-type { grid-column: span 3; }
.recipe-purpose { grid-column: span 6; }
.recipe-alternative { grid-column: span 3; }
.recipe-priority { grid-column: span 3; }
.recipe-checks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 3px; }
.recipe-row .check-field { display: flex; align-items: center; gap: 8px; }
.recipe-row .check-field input { width: auto; }
.recipe-row .check-field span { color: #9ba7b1; }
.recipe-row .danger-check { color: #ff9298; }
.recipe-row > .form-error { grid-column: 1 / -1; }
.inactive-row { opacity: .55; }
.equipment-groups { margin-top: 16px; }
.knowledge-search { display: grid; grid-template-columns: minmax(280px, 1fr) 220px 190px auto; gap: 10px; margin-bottom: 16px; padding: 14px; }
.knowledge-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.knowledge-categories { position: sticky; top: 88px; display: grid; gap: 5px; padding: 14px; }
.knowledge-categories > strong { padding: 8px 10px 12px; }
.knowledge-categories > a { display: grid; grid-template-columns: 25px 1fr; gap: 8px; align-items: start; padding: 10px; border-radius: 10px; color: #aeb9c3; text-decoration: none; }
.knowledge-categories > a:first-of-type { grid-template-columns: 1fr; }
.knowledge-categories > a:hover, .knowledge-categories > a.active { color: #08130e; background: #5ce9a5; }
.knowledge-categories > a > span:last-child { display: grid; gap: 3px; }
.knowledge-categories small { color: inherit; opacity: .7; font-size: 9px; }
.knowledge-list { display: grid; gap: 12px; }
.knowledge-card { display: grid; gap: 10px; padding: 19px 21px; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.knowledge-card:hover { border-color: #4fce91; transform: translateY(-1px); }
.knowledge-card h2 { margin: 0; font-size: 18px; }
.knowledge-card p { margin: 0; color: #93a0ab; line-height: 1.55; }
.knowledge-card-meta, .knowledge-card > div:last-child { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: #7f8c97; font-size: 10px; }
.knowledge-card-meta > span:first-child { color: #5ce9a5; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.knowledge-card > div:last-child time { margin-left: auto; }
.knowledge-status { display: inline-flex; padding: 5px 8px; border: 1px solid #35414b; border-radius: 999px; color: #9ca8b2; font-size: 9px; }
.knowledge-status.field_tested { border-color: #377155; color: #68e9a7; }
.knowledge-status.standard { border-color: #3c6f8a; color: #76d5ff; }
.knowledge-status.archived { border-color: #70454a; color: #ff9298; }
.knowledge-article-head { position: relative; max-width: 970px; margin: 0 auto 22px; }
.knowledge-article-head > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 24px 0 12px; color: #60eaa8; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.knowledge-article-head h1 { max-width: 880px; margin: 0; font-size: clamp(34px, 5vw, 62px); line-height: .98; }
.knowledge-article-head > p { max-width: 760px; margin: 18px 0 0; color: #9aa7b2; font-size: 16px; line-height: 1.55; }
.knowledge-article-head > .button { position: absolute; right: 0; bottom: 0; }
.knowledge-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; max-width: 1120px; margin: auto; align-items: start; }
.knowledge-article { padding: clamp(22px, 4vw, 46px); }
.knowledge-body { color: #d1dae1; font-size: 14px; line-height: 1.72; }
.knowledge-body p { margin: 0 0 16px; }
.knowledge-warning { margin-bottom: 25px; padding: 16px 18px; border: 1px solid #7a5b2b; border-radius: 12px; background: #241d11; }
.knowledge-warning strong { color: #ffc56d; text-transform: uppercase; letter-spacing: .07em; font-size: 10px; }
.knowledge-warning p { margin: 8px 0 0; color: #ddc69e; line-height: 1.55; }
.knowledge-code { margin-top: 28px; overflow: hidden; border: 1px solid #2d3c47; border-radius: 13px; background: #091015; }
.knowledge-code > div { display: flex; justify-content: space-between; align-items: center; padding: 11px 15px; border-bottom: 1px solid #2d3c47; }
.knowledge-code button { border: 0; color: #62e9a8; background: transparent; cursor: pointer; }
.knowledge-code pre { max-height: 700px; margin: 0; padding: 18px; overflow: auto; color: #c8d4dc; font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre; }
.knowledge-aside { position: sticky; top: 88px; display: grid; gap: 12px; }
.knowledge-aside > section { padding: 17px; }
.knowledge-aside dl { display: grid; gap: 5px; margin: 15px 0 0; }
.knowledge-aside dt { margin-top: 8px; color: #788590; font-size: 9px; text-transform: uppercase; }
.knowledge-aside dd { margin: 0; color: #c6d0d8; font-size: 11px; line-height: 1.5; }
.related-knowledge { display: grid; gap: 8px; }
.related-knowledge > strong { margin-bottom: 5px; }
.related-knowledge a { padding: 8px 0; border-top: 1px solid #27323b; color: #aebbc4; text-decoration: none; font-size: 11px; line-height: 1.4; }
.knowledge-form .code-editor { min-height: 400px; color: #c7d4dc; background: #091015; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.category-admin-list { padding: 0; overflow: hidden; }
.category-admin-list > a { display: grid; grid-template-columns: 45px 1fr 90px; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid #27323b; color: inherit; text-decoration: none; }
.category-admin-list > a:first-child { border-top: 0; }
.category-admin-list > a:hover { background: #121b22; }
.category-admin-list b { color: #5ce9a5; }
.category-admin-list span { display: grid; gap: 4px; }
.category-admin-list small { color: #7f8b96; }
.category-admin-list em { color: #7f8b96; font-style: normal; font-size: 10px; }
.task-kpis { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.task-kpis > div { display: grid; gap: 8px; padding: 17px 19px; border: 1px solid #26323c; border-radius: 14px; background: #10171d; }
.task-kpis span { color: #7f8c97; font-size: 10px; }
.task-kpis strong { color: #5ce9a5; font: 850 24px/1 ui-monospace, monospace; }
.task-filter { display: grid; grid-template-columns: minmax(250px, 1fr) 210px 250px auto; gap: 10px; margin-bottom: 14px; padding: 13px; }
.task-list { padding: 0; overflow: hidden; }
.task-row { position: relative; display: grid; grid-template-columns: minmax(280px, 1fr) 210px 110px 130px; gap: 15px; align-items: center; min-height: 70px; padding: 12px 18px 12px 22px; border-top: 1px solid #27323b; color: inherit; text-decoration: none; }
.task-row:first-child { border-top: 0; }
.task-row:not(.task-head):hover { background: #121b22; }
.task-row:not(.task-head)::before { position: absolute; top: 14px; bottom: 14px; left: 0; width: 3px; border-radius: 3px; background: #56616b; content: ""; }
.task-row.priority-high::before { background: #efaa50; }
.task-row.priority-critical::before { background: #ff626c; }
.task-row > span:first-child { display: grid; gap: 5px; min-width: 0; }
.task-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-row small { color: #7f8c97; font-size: 9px; }
.task-row > span:not(:first-child) { color: #a3afb8; font-size: 10px; }
.task-head { min-height: 40px; color: #76838e; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.task-status { display: inline-flex; justify-content: center; padding: 7px 10px; border: 1px solid #34414b; border-radius: 999px; font-size: 9px !important; }
.task-status.status-in_progress { border-color: #387158; color: #64e9a7; }
.task-status.status-waiting { border-color: #75613f; color: #f1bd66; }
.task-status.status-done { border-color: #34709a; color: #73cfff; }
.task-status.status-rejected { border-color: #70454a; color: #ff9298; }
.task-hero { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin: 28px 0; }
.task-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; color: #6ee9ad; font-size: 10px; }
.priority-badge { padding: 6px 9px; border: 1px solid #35414b; border-radius: 999px; color: #9aa6af; }
.priority-badge.priority-high { border-color: #70562f; color: #efb866; }
.priority-badge.priority-critical { border-color: #793a41; color: #ff858d; }
.task-project-link { display: inline-block; margin-top: 12px; color: #8d9ba6; text-decoration: none; }
.task-project-link:hover { color: #5ce9a5; }
.task-owner { display: grid; gap: 5px; min-width: 190px; text-align: right; }
.task-owner small, .task-owner time { color: #7d8994; font-size: 9px; }
.task-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; align-items: start; }
.task-detail-layout > div { display: grid; gap: 16px; }
.task-description { padding: 24px; }
.task-description > p:last-child { margin: 14px 0 0; color: #c3cdd4; line-height: 1.65; }
.task-discussion { padding: 22px; }
.task-timeline { display: grid; gap: 12px; margin-top: 18px; }
.task-comment { padding: 15px; border: 1px solid #2b3741; border-radius: 12px; background: #0d141a; }
.task-comment > div { display: flex; justify-content: space-between; gap: 20px; }
.task-comment time, .task-event small { color: #77848f; font-size: 9px; }
.task-comment p { margin: 9px 0 0; color: #bdc8d0; font-size: 11px; line-height: 1.55; }
.task-event { display: grid; grid-template-columns: 16px 1fr; gap: 8px; padding: 6px 2px; }
.task-event > span { color: #4ddf9b; font-size: 8px; }
.task-event strong { font-size: 10px; }
.task-event p { margin: 4px 0; color: #93a0aa; font-size: 10px; }
.task-comment-form { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #29343d; }
.task-comment-form textarea { resize: vertical; }
.task-comment-form button { justify-self: end; }
.task-control { position: sticky; top: 88px; padding: 20px; }
.task-control form { display: grid; gap: 13px; margin-top: 15px; }
.task-control label { display: grid; gap: 6px; }
.task-control label span { color: #7e8b95; font-size: 9px; }
.task-control dl { display: grid; gap: 4px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #2b3540; }
.task-control dt { margin-top: 8px; color: #75818c; font-size: 8px; text-transform: uppercase; }
.task-control dd { margin: 0; color: #bdc7cf; font-size: 10px; }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topnav { display: none; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .object-layout { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; padding-top: 6vh; }
  .room-strip { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .module-hero { grid-template-columns: 1fr; }
  .configurator-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .passport-layout { grid-template-columns: 1fr; }
  .import-layout { grid-template-columns: 1fr; }
  .import-confirm { position: static; }
  .report-kpis { grid-template-columns: repeat(3, 1fr); }
  .wb-planner-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .wb-assignment-row { grid-template-columns: minmax(160px, 1fr) 75px minmax(170px, .8fr); }
  .wb-assignment-row .button { grid-column: 3; justify-self: end; }
  .procurement-kpis { grid-template-columns: repeat(3, 1fr); }
  .procurement-flow { grid-template-columns: repeat(4, minmax(105px, 1fr)); }
  .procurement-flow i { display: none; }
  .procurement-meta { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
  .route-template-list article { grid-template-columns: 42px minmax(220px, 1fr) 140px 90px 36px; }
  .route-template-list article > span:nth-of-type(2) { display: none; }
  .project-route-list article { grid-template-columns: 42px minmax(220px, 1fr) 120px 120px 55px; }
  .recipe-equipment, .recipe-purpose { grid-column: span 12; }
  .recipe-quantity, .recipe-type, .recipe-alternative, .recipe-priority { grid-column: span 6; }
  .knowledge-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .knowledge-search { grid-template-columns: 1fr 1fr; }
  .knowledge-article-layout { grid-template-columns: 1fr; }
  .knowledge-aside { position: static; grid-template-columns: 1fr 1fr; }
  .project-route-list article > span:first-of-type { display: none; }
  .route-row-actions { grid-column: 2 / -1; }
  .task-filter { grid-template-columns: 1fr 1fr; }
  .task-row { grid-template-columns: minmax(240px, 1fr) 170px 120px; }
  .task-row > span:nth-child(3), .task-head > span:nth-child(3) { display: none; }
  .task-detail-layout { grid-template-columns: 1fr; }
  .task-control { position: static; }
}

@media (max-width: 620px) {
  .app-shell { width: min(100% - 24px, 1180px); padding-top: 30px; }
  .topbar { min-height: 62px; padding: 0 14px; }
  .user-menu > span { display: none; }
  .page-head { align-items: stretch; flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; }
  .registry-toolbar { grid-template-columns: 1fr auto; }
  .registry-toolbar input { grid-column: span 2; }
  .view-switch { grid-column: span 2; }
  .view-switch a { flex: 1; min-height: 36px; }
  .registry-row { grid-template-columns: 105px minmax(0, 1fr); min-height: 54px; padding: 9px 11px; }
  .registry-row > .status-badge, .registry-head > span:last-child { display: none; }
  .registry-row > strong { font-size: 12px; }
  .registry-row b { font-size: 13px; }
  .room-strip { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .object-form { padding: 18px; }
  .object-hero { align-items: flex-start; flex-direction: column; }
  .completion { text-align: left; }
  .stage-row { grid-template-columns: 32px 1fr auto; }
  .stage-progress { display: none; }
  .issue-row { grid-template-columns: 8px 1fr; }
  .issue-row > span:not(.priority), .issue-row time { display: none; }
  .issue-hero { grid-template-columns: 1fr; padding: 20px; }
  .module-grid { grid-template-columns: 1fr; }
  .channel-row { grid-template-columns: 100px 1fr; }
  .channel-row > span:first-of-type, .channel-row > span:last-child { display: none; }
  .configurator-layout { grid-template-columns: 1fr; }
  .room-sidebar { position: static; }
  .room-list { display: flex; max-height: none; overflow-x: auto; padding: 7px; }
  .room-list > a { flex: 0 0 180px; }
  .workspace-toolbar { align-items: flex-start; }
  .workspace-filter { grid-template-columns: 1fr; }
  .catalog-popover { position: fixed; top: 74px; right: 12px; left: 12px; width: auto; }
  .catalog-popover section > div { grid-template-columns: 1fr; }
  .passport-grid { grid-template-columns: 1fr; }
  .passport-grid > div, .passport-grid > div:nth-child(odd), .passport-grid > div:nth-child(even), .passport-grid > div.wide { grid-column: span 1; padding-right: 0; padding-left: 0; border-left: 0; }
  .catalog-admin-row { grid-template-columns: minmax(220px, 1fr) 90px; min-width: 420px; }
  .catalog-admin-row > span:nth-child(2), .catalog-admin-head > span:nth-child(2), .catalog-admin-row > b, .catalog-admin-head > span:nth-child(3) { display: none; }
  .user-admin-row { grid-template-columns: 1fr 100px; }
  .user-admin-row > span:nth-child(2), .user-admin-row > span:nth-child(3) { display: none; }
  .role-choice-field > div { grid-template-columns: 1fr; }
  .page-actions { align-items: stretch; flex-direction: column; }
  .import-stats { grid-template-columns: repeat(2, 1fr); }
  .import-room > div { padding-left: 18px; }
  .report-action { grid-template-columns: 45px 1fr; gap: 13px; padding: 16px; }
  .report-action > span { width: 42px; height: 42px; }
  .report-action > b { grid-column: 2; }
  .report-kpis { grid-template-columns: repeat(2, 1fr); }
  .wb-planner-layout { grid-template-columns: 1fr; }
  .wb-module-sidebar { position: static; }
  .wb-module-list { display: flex; max-height: none; overflow-x: auto; }
  .wb-module-list > a { flex: 0 0 210px; }
  .wb-channel-grid { grid-template-columns: 1fr; }
  .wb-assignment-row { grid-template-columns: 1fr 70px; }
  .wb-assignment-row select { grid-column: 1 / span 2; }
  .wb-assignment-row .button { grid-column: 1 / span 2; justify-self: stretch; }
  .procurement-kpis { grid-template-columns: repeat(2, 1fr); }
  .procurement-flow { grid-template-columns: repeat(2, minmax(110px, 1fr)); }
  .procurement-meta { grid-template-columns: 1fr; }
  .procurement-meta .wide { grid-column: span 1; }
  .danger-zone { align-items: stretch; flex-direction: column; }
  .danger-zone form { align-items: stretch; flex-direction: column; }
  .route-template-list, .project-route-list { overflow-x: auto; }
  .route-template-list article, .project-route-list article { min-width: 700px; }
  .knowledge-search, .knowledge-layout { grid-template-columns: 1fr; }
  .knowledge-categories { position: static; }
  .knowledge-categories { display: flex; overflow-x: auto; }
  .knowledge-categories > strong { display: none; }
  .knowledge-categories > a { flex: 0 0 180px; }
  .knowledge-article-head > .button { position: static; margin-top: 15px; }
  .knowledge-aside { grid-template-columns: 1fr; }
  .recipe-quantity, .recipe-type, .recipe-alternative, .recipe-priority { grid-column: span 12; }
  .task-kpis { grid-template-columns: 1fr; }
  .task-filter { grid-template-columns: 1fr; }
  .task-row { grid-template-columns: minmax(0, 1fr) 110px; }
  .task-row > span:nth-child(2), .task-head > span:nth-child(2) { display: none; }
  .task-hero { align-items: flex-start; flex-direction: column; }
  .task-owner { text-align: left; }
}
