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

.install-page { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.install-page-icon { width: 88px; height: 88px; border-radius: 22px; }
.install-page h1 { margin: 4px 0 8px; font-size: clamp(28px, 5vw, 48px); }
.install-state { grid-column: 2 / -1; margin: -12px 0 0; color: #8fa0ad; }
.install-guides { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.install-guides ol { display: grid; gap: 12px; padding-left: 22px; color: #c7d0d7; }
.mobile-project-actions { display: grid; gap: 18px; }
.quick-action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-action-grid a { display: grid; gap: 7px; min-height: 110px; padding: 18px; border: 1px solid #2a3540; border-radius: 15px; color: inherit; text-decoration: none; background: #10171d; }
.quick-action-grid a:hover { border-color: #5ce9a5; }
.quick-action-grid span { color: #83919d; font-size: 12px; line-height: 1.45; }
.mobile-work-form { max-width: 760px; }
.mobile-work-form > label, .compact-upload > label { display: grid; gap: 8px; margin-bottom: 16px; }
.mobile-work-form textarea, .mobile-work-form input, .compact-upload textarea, .compact-upload input, .compact-upload select { width: 100%; }
.compact-upload { margin-bottom: 22px; }
.file-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.file-card { position: relative; display: grid; gap: 8px; overflow: hidden; min-height: 130px; padding: 15px; border: 1px solid #26313b; border-radius: 15px; color: inherit; text-decoration: none; background: #10171d; }
.file-card img { width: calc(100% + 30px); height: 170px; margin: -15px -15px 5px; object-fit: cover; }
.file-card small, .file-card p { color: #82909b; }
.file-kind { color: #5ce9a5; font-size: 10px; text-transform: uppercase; }
.history-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.history-main { display: grid; gap: 18px; }
.history-layout aside { display: grid; gap: 18px; }
.history-layout > .history-main > .panel, .history-layout > aside > .panel { overflow: hidden; padding: 20px; }
.history-list article { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid #25303a; }
.history-list time { color: #5ce9a5; font: 700 12px/1.4 ui-monospace, monospace; }
.history-list p { margin: 8px 0; line-height: 1.55; }
.history-warning { color: #ffc07a; }
.history-side-row { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid #25303a; color: inherit; text-decoration: none; }
.history-side-row span { color: #83919d; font-size: 10px; }
.history-side-row b { overflow-wrap: anywhere; }
.visit-history-list { display: grid; }
.visit-history-list > a { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid #25303a; color: inherit; text-decoration: none; }
.visit-history-list > a:hover strong { color: #5ce9a5; }
.visit-history-list time { color: #5ce9a5; font: 700 12px/1.4 ui-monospace, monospace; }
.visit-history-list div { display: grid; gap: 4px; }
.visit-history-list small, .visit-history-list > a > span { color: #83919d; font-size: 10px; }
.visit-create-form { max-width: 720px; }
.visit-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; margin-bottom: 18px; padding: 20px; border: 1px solid #26313b; border-radius: 18px; background: #10171d; }
.visit-head h1, .visit-head p { margin: 5px 0; }
.visit-chat { display: flex; flex-direction: column; gap: 10px; min-height: 360px; padding: 22px; border: 1px solid #26313b; border-radius: 18px 18px 0 0; background-color: #132219; background-image: radial-gradient(rgba(92,233,165,.055) 1px, transparent 1px); background-size: 17px 17px; }
.visit-chat-day { align-self: center; padding: 7px 12px; border-radius: 99px; color: #cbd5d0; background: rgba(7,15,11,.72); font-size: 11px; }
.visit-message { align-self: flex-end; overflow: hidden; width: min(680px, 88%); border-radius: 15px 15px 4px 15px; color: #eefbf4; background: #1c4b35; box-shadow: 0 7px 22px rgba(0,0,0,.16); }
.visit-message > p { margin: 0; padding: 11px 13px 5px; line-height: 1.45; }
.visit-message footer { display: flex; justify-content: flex-end; gap: 10px; padding: 3px 10px 8px; color: #a7d9bf; font-size: 10px; }
.visit-media { display: grid; min-height: 100px; color: inherit; text-decoration: none; }
.visit-media img { display: block; width: 100%; max-height: 520px; object-fit: contain; background: #08100c; }
.visit-media > span { display: grid; place-items: center; gap: 8px; min-height: 145px; color: #5ce9a5; background: #102a1e; font-weight: 800; }
.visit-media small { color: #b5c9be; }
.visit-empty { display: grid; flex: 1; place-items: center; color: #9eada5; }
.visit-composer { position: sticky; bottom: 74px; z-index: 5; display: grid; gap: 9px; padding: 12px; border: 1px solid #2b3b32; border-top: 0; border-radius: 0 0 18px 18px; background: #0e1713; box-shadow: 0 -8px 28px rgba(0,0,0,.25); }
.visit-composer textarea { width: 100%; min-height: 64px; resize: vertical; }
.visit-composer-actions { display: flex; align-items: center; gap: 9px; }
.visit-file-button, .visit-send { min-height: 44px; border: 1px solid #34473d; border-radius: 12px; cursor: pointer; }
.visit-file-button { display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; background: #15231c; }
.visit-file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.visit-send { margin-left: auto; padding: 0 20px; border-color: #5ce9a5; color: #07110c; background: #5ce9a5; font-weight: 800; }
.visit-attachment-preview { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid #34473d; border-radius: 11px; color: #adc1b6; }
.visit-attachment-preview img { width: 72px; height: 58px; border-radius: 8px; object-fit: cover; }
.mobile-action-picker, .mobile-project-picker { display: grid; gap: 10px; max-width: 860px; }
.mobile-action-picker > a, .mobile-project-picker > a { display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px; gap: 14px; align-items: center; min-height: 82px; padding: 14px 18px; border: 1px solid #28343e; border-radius: 15px; color: inherit; text-decoration: none; background: #10171d; }
.mobile-action-picker > a:hover, .mobile-project-picker > a:hover { border-color: #5ce9a5; background: #122019; }
.mobile-action-picker > a > span, .mobile-project-picker > a > span { color: #5ce9a5; font: 800 11px/1 ui-monospace, monospace; }
.mobile-action-picker div, .mobile-project-picker div { display: grid; gap: 5px; }
.mobile-action-picker small, .mobile-project-picker small { color: #85929e; }
.mobile-action-picker i, .mobile-project-picker i { color: #5ce9a5; font-style: normal; font-size: 20px; }
.mobile-object-search { max-width: 860px; margin-bottom: 14px; }
.activity-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.activity-list { display: grid; }
.activity-list > a { display: grid; grid-template-columns: 115px 1fr; gap: 13px; align-items: center; padding: 14px 0; border-top: 1px solid #26313b; color: inherit; text-decoration: none; }
.activity-list > a div { display: grid; gap: 5px; }
.activity-list small { color: #83919d; }
.selected-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 10px; margin: 16px 0; }
.selected-file { display: grid; gap: 6px; overflow: hidden; min-height: 105px; padding: 8px; border: 1px solid #2a3640; border-radius: 12px; background: #0b1116; }
.selected-file img { width: 100%; height: 90px; border-radius: 8px; object-fit: cover; }
.selected-file > span { display: grid; place-items: center; height: 90px; color: #5ce9a5; font-weight: 800; }
.selected-file small { overflow: hidden; color: #8d9aa5; text-overflow: ellipsis; white-space: nowrap; }
.history-media { margin-bottom: 18px; padding: 18px; border: 1px solid #26313b; border-radius: 17px; background: #0e151b; }
.history-media-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 8px; scroll-snap-type: x mandatory; }
.history-media-strip > a { flex: 0 0 150px; overflow: hidden; height: 115px; border: 1px solid #2a3640; border-radius: 13px; scroll-snap-align: start; }
.history-media-strip img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder, .video-preview, .document-preview { display: grid; place-items: center; align-content: center; gap: 7px; width: 100%; height: 100%; color: #5ce9a5; background: #111b21; font-weight: 800; }
.media-placeholder small, .video-preview small { overflow: hidden; max-width: 90%; color: #85929e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.file-gallery.list-view { grid-template-columns: 1fr; }
.file-gallery.list-view .file-card { grid-template-columns: 72px minmax(0, 1fr); min-height: 85px; }
.file-gallery.list-view .file-card img, .file-gallery.list-view .file-card .video-preview, .file-gallery.list-view .file-card .document-preview { grid-row: 1 / span 4; width: 72px; height: 72px; margin: 0; border-radius: 9px; }
.file-view-switch button { border: 0; color: #83919d; background: transparent; cursor: pointer; }
.file-view-switch button.active { color: #07110c; background: #5ce9a5; }
.recommendation-list > a { display: grid; grid-template-columns: minmax(260px, 1.4fr) minmax(240px, 1fr) 90px 100px; gap: 16px; align-items: center; padding: 16px 8px; border-top: 1px solid #26313b; color: inherit; text-decoration: none; }
.recommendation-list > a div { display: grid; gap: 5px; }
.recommendation-list small { color: #83919d; }
.recommendation-list em { color: #5ce9a5; font-size: 10px; font-style: normal; text-transform: uppercase; }
.procurement-additional { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.procurement-additional details { flex: 1; }
.procurement-additional summary { cursor: pointer; }
.manual-equipment-form { display: grid; grid-template-columns: minmax(240px, 1fr) 110px minmax(220px, 1fr) auto; gap: 12px; align-items: end; padding-top: 18px; }
.manual-equipment-form label { display: grid; gap: 7px; }
.manual-equipment-form textarea { min-height: 46px; }
.recommendation-decision { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid #37624d; border-radius: 13px; background: #102219; }
.recommendation-decision > div { flex: 1; }
.recommendation-decision h3, .recommendation-decision p { margin: 3px 0; }

@media (max-width: 760px) {
  .install-page { grid-template-columns: 62px 1fr; padding: 18px; }
  .install-page-icon { width: 62px; height: 62px; border-radius: 16px; }
  .install-page .install-main-button, .install-state { grid-column: 1 / -1; width: 100%; }
  .install-guides, .history-layout { grid-template-columns: 1fr; }
  .quick-action-grid { grid-template-columns: 1fr 1fr; }
  .quick-action-grid a { min-height: 100px; padding: 15px; }
  .file-gallery { grid-template-columns: 1fr 1fr; }
  .recommendation-list > a { grid-template-columns: 1fr; }
  .procurement-additional { display: block; }
  .manual-equipment-form { grid-template-columns: 1fr; }
  .recommendation-decision { align-items: stretch; flex-direction: column; }
  .activity-columns { grid-template-columns: 1fr; }
  .history-media { margin-right: -12px; margin-left: -12px; border-radius: 0; }
  .visit-head { grid-template-columns: 1fr auto; }
  .visit-head form { grid-column: 1 / -1; }
  .visit-chat { margin-right: -12px; margin-left: -12px; padding: 14px 10px; border-right: 0; border-left: 0; border-radius: 0; }
  .visit-message { width: 94%; }
  .visit-composer { bottom: 68px; margin-right: -12px; margin-left: -12px; border-right: 0; border-left: 0; border-radius: 0; }
  .visit-history-list > a { grid-template-columns: 75px minmax(0, 1fr); }
  .visit-history-list > a > span { grid-column: 2; }
}

@media (max-width: 480px) {
  .quick-action-grid, .file-gallery { grid-template-columns: 1fr; }
  .history-list article { grid-template-columns: 1fr; gap: 6px; }
}

* { 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;
  min-width: 190px;
}

.brand-logo { display: block; width: 190px; max-width: 100%; height: auto; }
.auth-logo { display: block; width: min(360px, 78vw); margin: 0 0 30px; }
.offline-logo { display: block; width: min(300px, 76vw); margin: 0 auto 26px; }

.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 {
  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: 8px 0 14px; }
.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; }
.project-tabs { position: sticky; top: 67px; z-index: 18; margin-top: 8px; padding: 0 4px 1px; background: rgba(9,11,15,.96); backdrop-filter: blur(12px); }
.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.priority-high { background: #ffb053; }
.priority.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: stretch; height: calc(100vh - 138px); min-height: 560px; }
.room-sidebar { position: sticky; top: 132px; display: flex; flex-direction: column; height: 100%; 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; flex: 1; align-content: start; grid-auto-rows: minmax(58px, auto); min-height: 0; 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); }
.configurator-main { min-height: 0; }
.function-workspace { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: visible; }
.workspace-toolbar { position: relative; z-index: 17; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 12px 20px; border-bottom: 1px solid #252e37; background: #10171d; }
.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-empty { margin: 14px 2px; color: #83919d; text-align: center; }
.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 {
  flex: 1;
  height: auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.function-selectable-row { cursor: pointer; }
.function-selectable-row:hover:not(.selected) { background: #141d24; }
.row-selected-label { color: #66efad; font-size: 10px; font-weight: 800; }
.configurator-guidance { margin: 18px; padding: 18px; border: 1px solid #2b3741; border-radius: 14px; background: #0d1319; }
.configurator-guidance-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.configurator-guidance-head h3 { margin: 4px 0 0; font-size: 18px; }
.configurator-guidance-head > span { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; color: #07110b; background: #64f5ad; font-size: 12px; font-weight: 800; }
.configurator-guidance-list { display: grid; gap: 8px; }
.configurator-guidance-list article { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 11px 12px; border-left: 3px solid #64f5ad; border-radius: 6px; background: #141c24; }
.configurator-guidance-list small { color: #7f91a1; }
.configurator-guidance-list p { margin: 0; line-height: 1.45; }
.global-guidance { margin-top: 14px; padding-top: 13px; border-top: 1px solid #27313a; }
.global-guidance summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #aeb9c2; cursor: pointer; font-weight: 700; }
.global-guidance summary span { color: #64f5ad; }
.global-guidance[open] summary { margin-bottom: 10px; }
.workspace-table {
  --function-name-width: 240px;
  --function-type-width: 150px;
  --function-panel-width: 74px;
}
.workspace-row {
  display: grid;
  grid-template-columns:
    28px
    minmax(140px, var(--function-name-width))
    minmax(110px, var(--function-type-width))
    minmax(58px, var(--function-panel-width))
    minmax(100px, 1fr)
    112px
    72px;
  align-items: center;
  gap: 8px;
  min-width: 850px;
  min-height: 46px;
  padding: 5px 12px;
  border-top: 1px solid #222b34;
  color: inherit;
  text-decoration: none;
}
.workspace-row:hover { background: #171e26; }
.workspace-row.selected { color: #eefbf5; background: rgba(100,245,173,.14); box-shadow: inset 3px 0 #64f5ad; }
.workspace-row > span:first-child { color: #66727e; font: 700 11px/1 ui-monospace, monospace; }
.workspace-row.selected > span:first-child { color: #64f5ad; }
.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: #9db5aa; }
.workspace-row > .binding-cell { color: #89949f; font-size: 11px; }
.workspace-row.selected > .binding-cell { color: #a7b9b0; }
.workspace-row > b { color: #64f5ad; font: 800 11px/1 ui-monospace, monospace; }
.workspace-row.selected > b { color: #64f5ad; }
.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: #64f5ad !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: #64f5ad; font-weight: 750; }
.marking-cell > b { color: #64f5ad; font: 800 11px/1 ui-monospace, monospace; }
.workspace-row.selected .marking-cell > b { color: #64f5ad; }
.function-type-cell,
.function-panel-cell {
  overflow: hidden;
  color: #8a96a1;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.function-panel-cell { color: #aab5be; font-weight: 750; }
.workspace-row.selected .function-type-cell,
.workspace-row.selected .function-panel-cell { color: #a7b9b0; }
.resizable-heading { position: relative; align-self: stretch; display: flex; align-items: center; }
.resizable-heading i {
  position: absolute;
  z-index: 3;
  top: 0;
  right: -6px;
  bottom: 0;
  width: 10px;
  cursor: col-resize;
}
.resizable-heading i::after {
  position: absolute;
  top: 8px;
  right: 4px;
  bottom: 8px;
  width: 1px;
  background: #35414b;
  content: "";
}
.function-group-heading {
  display: flex;
  align-items: center;
  min-width: 850px;
  min-height: 30px;
  padding: 5px 12px;
  border-top: 1px solid #2a3540;
  border-left: 3px solid #64f5ad;
  background: #0d141a;
}
.function-group-heading span {
  color: #64f5ad;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.function-group-led { border-left-color: #55b9ff; }
.function-group-led span { color: #55b9ff; }
.function-group-switches { border-left-color: #d28cff; }
.function-group-switches span { color: #d28cff; }
.function-group-climate { border-left-color: #ffae59; }
.function-group-climate span { color: #ffae59; }
.function-group-sensors { border-left-color: #ff7474; }
.function-group-sensors span { color: #ff7474; }
.function-auto-sort-button { white-space: nowrap; }
.toolbar-text-button {
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #2b3944;
  border-radius: 12px;
  color: #dfe6eb;
  background: #111820;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.toolbar-text-button:hover { border-color: #64f5ad; color: #64f5ad; }
.workspace-search-menu { position: relative; }
.workspace-search-menu > summary { list-style: none; }
.workspace-search-menu > summary::-webkit-details-marker { display: none; }
.workspace-search-menu .search-button { color: #dfe6eb; background: #222b34; font-size: 23px; }
.workspace-search-popover {
  position: absolute;
  z-index: 26;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 9px;
  width: min(420px, 88vw);
  padding: 14px;
  border: 1px solid #34414c;
  border-radius: 14px;
  background: #111820;
  box-shadow: 0 20px 50px #0009;
}
.workspace-search-popover > div { display: flex; justify-content: flex-end; gap: 8px; }
.import-diff { display: grid; gap: 12px; margin-bottom: 18px; padding: 14px; border: 1px solid #315040; border-radius: 12px; background: #0d1713; }
.import-diff h3 { margin: 0; font-size: 17px; }
.import-diff-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.import-diff-stats span { display: flex; justify-content: space-between; gap: 10px; padding: 9px; border-radius: 8px; background: #131f1a; color: #9eaaa4; font-size: 11px; }
.import-diff-stats b { color: #64f5ad; }
.import-diff details summary { cursor: pointer; color: #dfe9e4; font-weight: 750; }
.import-diff details p { display: grid; gap: 3px; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #26342d; font-size: 11px; }
.import-diff details small { color: #64f5ad; }
.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; }
.passport-contact { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 7px 0; }
.passport-contact + .passport-contact { border-top: 1px solid #252e37; }
.passport-contact a { color: #5cf0b2; white-space: nowrap; }
.contact-editor { grid-column: 1 / -1; margin-top: 28px; padding-top: 24px; border-top: 1px solid #29333d; }
.contact-editor .section-head { align-items: flex-start; gap: 24px; }
.contact-editor h2 { margin: 4px 0 6px; }
.contact-form-list { display: grid; gap: 12px; margin-top: 18px; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1.2fr 1fr auto; gap: 12px; align-items: end; padding: 16px; border: 1px solid #29333d; border-radius: 14px; background: #0d1319; }
.contact-form-row label { display: grid; gap: 8px; color: #aeb6bf; font-size: 13px; font-weight: 650; }
.contact-delete-field,
.contact-delete-field[hidden] { display: none !important; }
.contact-remove {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #74343d;
  border-radius: 12px;
  color: #ff9da5;
  background: #241419;
  font-weight: 750;
  white-space: nowrap;
}
.contact-remove:hover { border-color: #d0515e; color: #fff; background: #a83d49; }
.contact-remove { cursor: pointer; font-size: 13px; }
.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; }
.project-more-actions { position: relative; }
.project-more-actions summary { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 11px; border: 1px solid #34404a; border-radius: 999px; color: #c8d1d8; background: #10171d; font-size: 11px; cursor: pointer; list-style: none; }
.project-more-actions summary::-webkit-details-marker { display: none; }
.project-more-actions summary i { color: #62ecaa; font-style: normal; transition: transform .15s ease; }
.project-more-actions[open] summary { border-color: #4f8069; color: #fff; background: #14221b; }
.project-more-actions[open] summary i { transform: rotate(180deg); }
.project-actions-menu { position: absolute; z-index: 25; top: calc(100% + 8px); right: 0; width: 244px; overflow: hidden; padding: 13px; border: 1px solid #34404a; border-radius: 13px; background: #111820; box-shadow: 0 15px 38px rgba(0,0,0,.48); }
.project-status-form label { display: block; margin-bottom: 6px; color: #82909c; font-size: 11px; }
.project-status-form select { width: 100%; min-height: 38px; margin-bottom: 7px; padding: 7px 9px; border: 1px solid #34404a; border-radius: 8px; color: #f4f7f8; background: #0b1117; }
.project-more-actions .project-status-submit { width: 100%; padding: 9px; border: 1px solid #38644f; border-radius: 8px; color: #07110c; background: #60f0b1; text-align: center; cursor: pointer; font-weight: 750; }
.project-archive-action { margin-top: 10px !important; padding-top: 9px; border-top: 1px solid #29343d; }
.project-archive-action button { width: 100%; padding: 8px; border: 0; color: #df8c92; background: transparent; text-align: left; cursor: pointer; }
.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-role { grid-column: span 3; }
.recipe-scope { grid-column: span 3; }
.recipe-purpose { grid-column: span 6; }
.recipe-alternative { grid-column: span 3; }
.module-priority-row { grid-template-columns: minmax(260px, 1fr) 160px auto; }
.module-priority-row label { grid-column: auto; }
.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(240px, 1.4fr) repeat(4, minmax(140px, .7fr)) 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 > h1:first-child { display: none; }
.knowledge-body h2 { margin: 8px 0 16px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; }
.knowledge-body h3 { margin: 24px 0 12px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.25; }
.knowledge-body p { margin: 0 0 16px; }
.knowledge-body pre { overflow: auto; padding: 16px; border: 1px solid #2d3c47; border-radius: 12px; background: #091015; }
.knowledge-body table, .table-scroll table { width: 100%; border-collapse: collapse; }
.knowledge-body th, .knowledge-body td, .table-scroll th, .table-scroll td { padding: 10px; border: 1px solid #2d3c47; text-align: left; vertical-align: top; }
.knowledge-body img { max-width: 100%; height: auto; border-radius: 10px; }
.knowledge-callout { margin: 18px 0; padding: 15px 17px; border-left: 3px solid #61e9a7; border-radius: 8px; background: #102019; }
.knowledge-callout.warning { border-color: #ffb456; background: #231c12; }
.knowledge-callout.danger { border-color: #ff6b72; background: #261417; }
.knowledge-callout.verification { border-color: #68b8ff; background: #111d28; }
.table-scroll { overflow: auto; padding: 0; }
.table-scroll table { min-width: 900px; }
.version-diff .diff_header { background: #17222b; }
.version-diff .diff_add { background: #153522; }
.version-diff .diff_sub { background: #3a181c; }
.version-diff .diff_chg { background: #403818; }
.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 > section:has(form) { display: flex; flex-wrap: wrap; gap: 7px; }
.knowledge-aside > section:has(form) > strong { flex: 0 0 100%; margin-bottom: 3px; }
.knowledge-aside > section:has(form) form { margin: 0; }
.knowledge-aside > section:has(form) .button {
  width: auto;
  min-height: 0;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.2;
}
.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; }
.schedule-head { align-items: center; min-height: 0; margin: 16px 0 12px; padding: 0; }
.schedule-head .eyebrow { margin: 0 0 4px; font-size: 9px; }
.schedule-head .page-title { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1; }
.schedule-head .page-subtitle { margin: 6px 0 0; font-size: 11px; }
.schedule-head > .button { min-height: 44px; padding: 10px 18px; }
.schedule-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; padding: 11px 14px; }
.schedule-period-nav, .schedule-mode { display: flex; align-items: center; gap: 9px; }
.schedule-period-nav strong { min-width: 190px; text-align: center; }
.schedule-period-nav .compact { padding: 8px 12px; min-height: 0; }
.schedule-today { color: #61e9a7; font-size: 12px; text-decoration: none; }
.schedule-mode { padding: 4px; border: 1px solid #2b3741; border-radius: 11px; }
.schedule-mode a { padding: 8px 13px; border-radius: 8px; color: #8e9aa4; text-decoration: none; font-size: 12px; }
.schedule-mode a.active { color: #08130e; background: #5ce9a5; }
.schedule-scroll { padding: 0; overflow: auto; }
.schedule-week { --schedule-days: 8; display: grid; grid-template-columns: 190px repeat(var(--schedule-days), minmax(145px, 1fr)); min-width: 1350px; }
.schedule-corner, .schedule-day-head, .schedule-person, .schedule-cell { border-right: 1px solid #2a343d; border-bottom: 1px solid #2a343d; }
.schedule-corner, .schedule-day-head { position: sticky; top: 0; z-index: 3; min-height: 58px; padding: 11px; background: #111920; }
.schedule-corner { left: 0; z-index: 5; display: flex; align-items: center; font-size: 12px; font-weight: 800; }
.schedule-day-head { display: grid; place-content: center; text-align: center; }
.schedule-day-head strong { text-transform: capitalize; }
.schedule-day-head span { color: #82909b; font-size: 10px; }
.schedule-person { position: sticky; left: 0; z-index: 2; display: grid; align-content: center; gap: 4px; min-height: 116px; padding: 14px; background: #10171d; }
.schedule-person strong { font-size: 13px; }
.schedule-person small { color: #73818c; font-size: 9px; }
.schedule-cell { position: relative; display: grid; align-content: start; gap: 6px; min-height: 116px; padding: 7px; background: #0d1419; }
.schedule-cell.today, .schedule-day-head.anchor { background: #102019; }
.schedule-add-cell { position: absolute; inset: 0; width: 100%; border: 0; display: grid; place-items: center; color: #40505c; background: transparent; text-decoration: none; font-size: 24px; opacity: 0; cursor: pointer; }
.schedule-cell:hover .schedule-add-cell { opacity: 1; }
.schedule-add-cell.with-visits { inset: auto 5px 5px auto; z-index: 2; width: 25px; height: 25px; border: 1px solid #3b4a54; border-radius: 8px; place-items: center; color: #5ce9a5; background: #152129; font-size: 17px; opacity: .45; }
.schedule-cell:hover .schedule-add-cell.with-visits, .schedule-add-cell.with-visits:focus-visible { border-color: #5ce9a5; opacity: 1; }
.visit-card { display: grid; width: auto; min-width: 0; height: auto; gap: 3px; padding: 8px 9px; border: 1px solid #33424d; border-left: 3px solid #778793; border-radius: 9px; color: #dce5eb; background: #18222a; text-decoration: none; line-height: 1.2; }
.visit-card:hover { border-color: #60eaa8; }
.visit-card b { overflow: hidden; color: #61e9a7; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.visit-card span { overflow: hidden; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.visit-card small { overflow: hidden; color: #8c99a3; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.visit-card.confirmed { border-color: #356d54; border-left-color: #5ce9a5; background: #12231c; }
.visit-card.priority { width: auto; height: auto; border-color: #89533f; border-left: 4px solid #ff705f; border-radius: 9px; color: #fff; background: #291b1b; box-shadow: none; }
.visit-card.priority b { color: #ffb09f; }
.visit-card.priority small { color: #d7aaa2; }
.visit-status-chip { justify-self: start; padding: 2px 6px; border: 1px solid #46545e; border-radius: 999px; color: #aab5bd; font-size: 7px; font-style: normal; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.visit-card.confirmed .visit-status-chip { border-color: #3c8966; color: #6ff0ae; background: #173326; }
.visit-card.priority .visit-status-chip { border-color: #a45b47; color: #ffb29e; background: #3a211e; }
.visit-card .visit-comment { color: #dce5eb; white-space: normal; }
.schedule-picked-context { display: grid; align-content: center; gap: 4px; min-height: 56px; }
.schedule-picked-context small { color: #82919d; }
.schedule-picked-context strong { font-size: 18px; }
.task-visit-row { display: grid; gap: 5px; padding: 14px 0; border-top: 1px solid #26333d; }
.task-visit-row span { color: #8fa0ac; font-size: 13px; }
.task-visit-row p { margin: 2px 0 0; }
.schedule-empty { grid-column: 1 / -1; padding: 28px; color: #84919b; text-align: center; }
.schedule-month { padding: 0; overflow: hidden; }
.schedule-month-head, .schedule-month-week { display: grid; grid-template-columns: repeat(7, 1fr); }
.schedule-month-head span { padding: 10px; border-right: 1px solid #2a343d; color: #85929c; text-align: center; font-size: 10px; text-transform: uppercase; }
.month-cell { min-width: 0; min-height: 145px; padding: 7px; border-top: 1px solid #2a343d; border-right: 1px solid #2a343d; background: #0e151a; }
.month-cell.outside { opacity: .35; }
.month-cell.today { background: #102019; }
.month-cell > div { display: flex; justify-content: space-between; margin-bottom: 6px; }
.month-cell > div > a { color: #61e9a7; text-decoration: none; }
.month-cell .visit-card { margin-top: 5px; }
.schedule-form { max-width: 900px; margin: auto; }
.schedule-quick-modal { width: min(760px, calc(100vw - 28px)); max-height: min(90vh, 780px); padding: 0; overflow: auto; border: 1px solid #33414c; border-radius: 18px; color: #eef3f6; background: #10171d; box-shadow: 0 30px 90px #000c; }
.schedule-quick-modal::backdrop { background: rgb(1 5 8 / 74%); backdrop-filter: blur(3px); }
.schedule-quick-form { display: grid; }
.schedule-quick-form > header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 20px 14px; border-bottom: 1px solid #2b3741; background: #10171d; }
.schedule-quick-form h2 { margin: 3px 0 0; font-size: 24px; }
.schedule-quick-form .eyebrow { margin: 0; }
.modal-close { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #34414b; border-radius: 11px; color: #9eabb4; background: #151e25; cursor: pointer; font-size: 24px; }
.schedule-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 18px 20px; }
.schedule-quick-grid label:not(.schedule-all-day) { display: grid; gap: 6px; }
.schedule-quick-grid label > span { color: #8e9ba5; font-size: 10px; }
.schedule-quick-grid .span-2 { grid-column: 1 / -1; }
.schedule-quick-grid small { color: #73818c; font-size: 9px; line-height: 1.4; }
.schedule-all-day { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; align-self: end; }
.schedule-all-day input { width: 20px; height: 20px; accent-color: #5ce9a5; }
.schedule-quick-details { margin: 0 20px; border-top: 1px solid #2b3741; }
.schedule-quick-details > summary { padding: 14px 0; color: #9eabb4; cursor: pointer; font-size: 11px; }
.schedule-quick-details .schedule-quick-grid { padding: 3px 0 16px; }
.schedule-quick-form > footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid #2b3741; background: #10171d; }
.month-cell > div button { border: 0; color: #5ce9a5; background: transparent; cursor: pointer; font-size: 18px; }
@media (max-width: 760px) {
  .schedule-head { display: flex; align-items: end; }
  .schedule-head .page-title { font-size: 36px; }
  .schedule-toolbar { align-items: stretch; flex-direction: column; }
  .schedule-period-nav { justify-content: space-between; }
  .schedule-period-nav strong { min-width: 0; font-size: 12px; }
  .schedule-today { display: none; }
  .schedule-mode { justify-content: stretch; }
  .schedule-mode a { flex: 1; text-align: center; }
  .schedule-month { overflow: auto; }
  .schedule-month-head, .schedule-month-week { min-width: 900px; }
}
.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-awaiting_confirmation { border-color: #9a7137; color: #ffc36c; background: #2b2115; }
.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-quick-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 16px 20px; }
.task-quick-actions > div:first-child { display: grid; gap: 6px; }
.task-quick-actions .eyebrow { margin: 0; }
.task-action-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.task-action-buttons form { margin: 0; }
.task-read-receipt, .task-list-receipt { color: #7c8994; font-size: 9px; }
.task-read-receipt.read, .task-list-receipt.read { color: #5ce9a5; }
.task-list-receipt { display: block; margin-top: 4px; }
.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; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 13px; }
.role-card { display: grid; gap: 14px; padding: 19px; color: inherit; text-decoration: none; }
.role-card > div:first-child { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.role-card h2, .role-card p { margin: 0; }
.role-card > div:first-child span { color: #62e9a8; font-size: 9px; }
.role-card p { min-height: 34px; color: #87949e; font-size: 10px; line-height: 1.5; }
.role-card > div:last-child { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 7px; align-items: baseline; border-top: 1px solid #29343d; padding-top: 12px; }
.role-card b { color: #5ce9a5; font: 800 16px/1 ui-monospace, monospace; }
.role-card small { color: #7c8994; }
.role-editor { display: grid; gap: 16px; }
.role-basics { display: grid; grid-template-columns: 1fr 2fr auto; gap: 14px; align-items: end; padding: 19px; }
.role-basics > label:not(.access-choice-field) { display: grid; gap: 7px; }
.permission-groups { display: grid; gap: 11px; }
.permission-group { padding: 0; overflow: hidden; }
.permission-group > summary { display: flex; justify-content: space-between; padding: 16px 18px; cursor: pointer; list-style: none; }
.permission-group > summary span { color: #7f8c96; font-size: 9px; }
.permission-group > div { display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); border-top: 1px solid #29343d; }
.permission-group label { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: center; min-height: 62px; padding: 9px 14px; border-bottom: 1px solid #202a32; }
.permission-group label:nth-child(odd) { border-right: 1px solid #202a32; }
.permission-group input { width: 20px; height: 20px; justify-self: center; }
.permission-group label > span { display: grid; gap: 3px; }
.permission-group small { color: #74818b; font-size: 9px; }
.role-history { margin-top: 22px; padding: 18px; }
.role-history article { display: grid; grid-template-columns: 130px 180px 100px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid #28333c; font-size: 9px; }
.role-history time, .role-history span { color: #7f8c96; }
.role-history code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-filter { display: grid; grid-template-columns: minmax(250px, 1fr) 190px 220px auto; gap: 10px; margin-bottom: 14px; padding: 13px; }
.audit-list { padding: 0; overflow: hidden; }
.audit-list details { border-top: 1px solid #28333c; }
.audit-list details:first-child { border-top: 0; }
.audit-list summary { display: grid; grid-template-columns: 130px minmax(220px, 1fr) 180px 180px; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.audit-list summary time, .audit-list summary span, .audit-list summary b { color: #83909a; font-size: 9px; }
.audit-list pre { margin: 0; padding: 14px 18px; border-top: 1px solid #28333c; color: #b9c6ce; background: #0b1217; white-space: pre-wrap; }
.pwa-install { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto auto; gap: 13px; align-items: center; margin-bottom: 18px; padding: 13px 15px; border: 1px solid #36775a; border-radius: 14px; background: #10251b; }
.pwa-install[hidden] { display: none; }
.pwa-install img { width: 54px; height: 54px; border-radius: 13px; }
.pwa-install > div { display: grid; gap: 4px; }
.pwa-install span, .pwa-install small { color: #91aa9d; font-size: 10px; }
.pwa-install-close { border: 0; color: #8da096; background: transparent; cursor: pointer; font-size: 20px; }
.mobile-nav { display: none; }
.offline-page { max-width: 520px; margin: 12vh auto; padding: 34px; text-align: center; }
.offline-page p { color: #8d9aa4; line-height: 1.6; }
.issue-attachments { margin-top: 16px; padding: 18px; }
.issue-attachments > div:last-child { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 9px; }
.issue-attachments a { display: grid; gap: 5px; padding: 12px; border: 1px solid #2c3943; border-radius: 10px; color: inherit; text-decoration: none; }
.issue-attachments small { color: #7e8b95; font-size: 9px; }

@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; }
  .role-basics { grid-template-columns: 1fr 1fr; }
  .role-basics .access-choice-field { grid-column: 1 / -1; }
  .audit-filter { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .schedule-head { align-items: center; flex-direction: row; margin: 10px 0; }
  .schedule-head .eyebrow, .schedule-head .page-subtitle { display: none; }
  .schedule-head .page-title { font-size: 27px; }
  .schedule-head > .button { min-height: 40px; padding: 8px 12px; font-size: 10px; }
  .schedule-quick-grid { grid-template-columns: 1fr; padding: 15px; }
  .schedule-quick-grid .span-2 { grid-column: span 1; }
  .schedule-quick-details { margin: 0 15px; }
  .schedule-quick-form > header, .schedule-quick-form > footer { padding-right: 15px; padding-left: 15px; }
  .task-quick-actions { align-items: stretch; flex-direction: column; padding: 14px; }
  .task-action-buttons { justify-content: stretch; }
  .task-action-buttons form, .task-action-buttons .button { width: 100%; }
  .app-shell { width: min(100% - 24px, 1180px); padding-top: 30px; }
  .topbar { min-height: 62px; padding: 0 14px; }
  .topbar .brand { min-width: 145px; }
  .topbar .brand-logo { width: 145px; }
  .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; }
  .configurator-layout { height: auto; min-height: 0; }
  .room-sidebar, .function-workspace { height: auto; }
  .workspace-table { height: auto; min-height: 520px; max-height: none; }
  .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; }
  .passport-contact { align-items: flex-start; flex-direction: column; gap: 3px; }
  .contact-editor .section-head { align-items: stretch; flex-direction: column; }
  .contact-form-row { grid-template-columns: 1fr; }
  .contact-remove { width: 100%; }
  .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; }
  .app-shell { padding-bottom: 92px; }
  .topbar { position: sticky; top: 0; z-index: 30; }
  .mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); min-height: 68px; padding: 5px max(7px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left)); border-top: 1px solid #293640; background: rgb(8 13 18 / 96%); backdrop-filter: blur(14px); }
  .mobile-nav a { display: grid; place-items: center; align-content: center; gap: 3px; min-width: 0; color: #8d9aa5; text-decoration: none; }
  .mobile-nav a > span { font-size: 20px; line-height: 1; }
  .mobile-nav small { overflow: hidden; max-width: 100%; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-nav .mobile-add > span { display: grid; place-items: center; width: 40px; height: 40px; margin-top: -18px; border-radius: 14px; color: #08120d; background: #5ce9a5; font-size: 27px; box-shadow: 0 8px 24px rgb(92 233 165 / 25%); }
  .pwa-install { grid-template-columns: 45px 1fr auto; }
  .pwa-install img { width: 45px; height: 45px; }
  .pwa-install .button { grid-column: 1 / -1; width: 100%; }
  .pwa-install-close { position: absolute; top: 5px; right: 5px; }
  .role-basics, .permission-group > div, .audit-filter { grid-template-columns: 1fr; }
  .permission-group label:nth-child(odd) { border-right: 0; }
  .role-history article { grid-template-columns: 1fr 1fr; }
  .audit-list summary { grid-template-columns: 100px 1fr; }
  .audit-list summary span, .audit-list summary b { grid-column: 2; }
}

/* Compact project workspace and dense operational screens. */
.project-back { display: inline-flex; margin: 14px 0 6px; }
.object-hero-compact { min-height: 0; padding: 8px 0 5px; }
.object-hero-compact .page-title { margin: 9px 0 2px; font-size: clamp(34px, 5vw, 56px); }
.object-hero-compact .page-subtitle { margin: 0; }
.object-hero-compact .completion strong { font-size: clamp(38px, 5vw, 56px); }
.project-lifecycle-actions { margin: 4px 0 12px; }
.project-subpage-head { min-height: 0; margin: 12px 0 18px; }
.project-subpage-head .back-link, .project-subpage-head .eyebrow, .project-subpage-head .page-subtitle { margin-top: 0; }
.project-subpage-head .page-title { margin: 5px 0; font-size: clamp(34px, 5vw, 56px); }
.team-assign-form, .team-manage-list { padding: 20px; }
.team-manage-list > h2 { margin: 0 0 10px; }
.workspace-row {
  grid-template-columns:
    28px
    minmax(140px, var(--function-name-width))
    minmax(110px, var(--function-type-width))
    minmax(58px, var(--function-panel-width))
    minmax(100px, 1fr)
    112px
    72px;
}
.drag-handle { cursor: grab; color: #6e7c87; user-select: none; }
.workspace-row.dragging { opacity: .45; outline: 1px dashed #5ce9a5; }
.panel-menu { position: relative; }
.panel-menu > summary { display: grid; place-items: center; min-height: 46px; padding: 0 14px; border: 1px solid #2b3944; border-radius: 12px; cursor: pointer; list-style: none; }
.panel-menu-popover { position: absolute; z-index: 25; top: calc(100% + 8px); right: 0; width: min(360px, 88vw); padding: 16px; border: 1px solid #2b3944; border-radius: 14px; background: #111820; box-shadow: 0 20px 50px #0008; }
.panel-menu-hint { margin: 5px 0 10px; color: #84919b; font-size: 11px; line-height: 1.45; }
.panel-required-warning { margin: 8px 0; padding: 9px 11px; border: 1px solid #7b4e2d; border-radius: 9px; color: #ffc078; background: #2c2017; font-size: 11px; }
.panel-menu-popover > .panel-choice-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid #26313a; }
.panel-choice-row > button[data-select-panel] { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid transparent; border-radius: 9px; color: #dce4e9; background: #18212a; text-align: left; cursor: pointer; }
.panel-choice-row > button[data-select-panel]:hover { border-color: #4d6b5c; }
.panel-choice-row > button[data-select-panel].active { border-color: #5ce9a5; color: #07110b; background: #5ce9a5; font-weight: 800; }
.panel-choice-row form { display: block; margin: 0; }
.panel-choice-row form button { height: 100%; padding: 0 8px; border: 0; color: #ff6670; background: transparent; cursor: pointer; }
.panel-menu-popover form { display: grid; gap: 8px; margin-top: 10px; }
.move-to-panel-form { margin: 0; }
.tool-button.move-panel:disabled { opacity: .32; cursor: not-allowed; }
.procurement-additional { padding: 0; }
.procurement-additional details { flex: 1; }
.procurement-additional summary { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 12px 18px; list-style: none; cursor: pointer; }
.procurement-additional summary h2, .procurement-additional summary p { margin: 0; }
.procurement-additional .mini-link { align-self: center; margin: 16px 18px; white-space: nowrap; }
.files-workspace { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.5fr); gap: 18px; align-items: start; }
.files-workspace .compact-upload { position: sticky; top: 92px; }
.files-gallery-area { min-width: 0; }
.file-gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.mobile-filter > summary { display: none; }
.updates-link { position: relative; white-space: nowrap; }
.updates-link > span:first-child { padding: 0; }
.updates-badge { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border: 2px solid #090b0f; border-radius: 999px; color: #07110b; background: #5ce9a5; font-size: 8px; font-weight: 900; line-height: 1; transform: translate(42%, -35%); }
.nav-count-link { position: relative; white-space: nowrap; }
.nav-count-link > span:first-child { padding: 0; }
.nav-count-badge { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid #090b0f; border-radius: 999px; color: #07110b; background: #5ce9a5; font-size: 8px; font-weight: 900; line-height: 1; transform: translate(42%, -35%); }
.mobile-task-link > span { position: relative; }
.mobile-task-link i { position: absolute; top: -7px; right: -13px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; color: #07110b; background: #efaa50; font-size: 8px; font-style: normal; font-weight: 900; }
.assigned-stage-panel { margin-bottom: 18px; }
.assigned-stage-list { display: grid; }
.assigned-stage-list > a { display: grid; grid-template-columns: minmax(260px, 1fr) 150px 150px 55px; gap: 14px; align-items: center; min-height: 66px; padding: 12px 18px; border-top: 1px solid #27323b; color: inherit; text-decoration: none; }
.assigned-stage-list > a:hover { background: #121b22; }
.assigned-stage-list > a > span:first-child { display: grid; gap: 4px; }
.assigned-stage-list small { color: #7f8c97; }
.assigned-stage-list > a > span:nth-child(2) { color: #9eabb5; font-size: 10px; }
.stage-participants-field { align-self: start; }
.object-form #id_participants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 10px; border: 1px solid #2a3741; border-radius: 12px; }
.object-form #id_participants > div { min-width: 0; }
.object-form #id_participants label { display: flex; flex-direction: row; justify-content: flex-start; gap: 10px; align-items: center; min-height: 38px; padding: 7px 10px; border-radius: 8px; color: #e7edf0; background: #111920; cursor: pointer; }
.object-form #id_participants label:hover { background: #17232a; }
.object-form #id_participants input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; padding: 0; accent-color: #5ce9a5; }
.object-form select[name="responsible"] { height: 52px; min-height: 52px; align-self: start; }

@media (max-width: 760px) {
  .assigned-stage-list > a { grid-template-columns: minmax(0, 1fr) 90px; }
  .assigned-stage-list > a > span:nth-child(2) { display: none; }
  .assigned-stage-list > a > strong { text-align: right; }
  .object-form #id_participants { grid-template-columns: 1fr; }
}
.mobile-profile-link > span { position: relative; }
.mobile-profile-link i { position: absolute; top: -2px; right: -7px; width: 8px; height: 8px; border: 2px solid #080d12; border-radius: 50%; background: #ffad4f; }
.release-head { margin-bottom: 22px; }
.release-audience-tabs { max-width: 980px; margin-bottom: 16px; overflow-x: auto; }
.release-audience-tabs a { flex: 0 0 auto; white-space: nowrap; }
.release-timeline { display: grid; gap: 16px; max-width: 980px; }
.release-month { overflow: hidden; }
.release-month > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 24px; cursor: pointer; list-style: none; }
.release-month > summary span { font-size: 22px; font-weight: 850; }
.release-month > summary small { color: #81909b; }
.release-list { border-top: 1px solid #27323b; }
.release-note { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 22px 24px; border-bottom: 1px solid #27323b; }
.release-note:last-child { border-bottom: 0; }
.release-note time { display: grid; align-content: start; text-align: center; }
.release-note time b { color: #5ce9a5; font-size: 22px; }
.release-note time span { color: #71808b; font-size: 10px; }
.release-note-title { display: flex; align-items: center; gap: 11px; }
.release-note-title span { flex: 0 0 auto; padding: 4px 7px; border: 1px solid #315343; border-radius: 999px; color: #5ce9a5; font-size: 8px; text-transform: uppercase; }
.release-note-title h2 { margin: 0; font-size: 19px; }
.release-note p { margin: 8px 0 5px; color: #d9e0e5; }
.release-details { color: #85939d; font-size: 12px; line-height: 1.55; }
.release-audience { display: inline-block; margin-top: 5px; color: #687783; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.release-fixed .release-note-title span { border-color: #74424a; color: #ff7d85; }
.release-infrastructure .release-note-title span { border-color: #70552f; color: #ffbd61; }
.profile-quick-links { display: flex; justify-content: flex-end; margin: -42px 0 14px; }
.app-shell:has(> .project-header-compact) { padding-top: 14px; }
.project-header-compact { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 8px 0 9px; }
.project-header-compact .project-back { margin: 0; white-space: nowrap; }
.project-header-compact .object-hero-compact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 0; }
.project-header-compact .object-hero-compact .object-kicker { margin-bottom: 6px; }
.project-header-compact .object-hero-compact .page-title { margin: 2px 0 0; font-size: clamp(28px, 2.8vw, 40px); line-height: .98; }
.project-header-compact .object-hero-compact .completion strong { font-size: clamp(28px, 2.8vw, 40px); }
.project-header-compact .project-lifecycle-actions { justify-content: flex-end; margin: 0; }

@media (max-width: 620px) {
  .profile-quick-links { margin: 8px 0 12px; }
  .release-head { margin-bottom: 12px; }
  .release-month > summary { padding: 15px 16px; }
  .release-month > summary span { font-size: 18px; }
  .release-note { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 17px 15px; }
  .release-note-title { align-items: flex-start; flex-direction: column; gap: 6px; }
  .release-note-title h2 { font-size: 16px; }
  .project-header-compact { grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; padding: 7px 0; }
  .project-header-compact .project-back { align-self: start; }
  .project-header-compact .object-hero-compact { grid-template-columns: minmax(0, 1fr) auto; }
  .project-header-compact .project-lifecycle-actions { grid-column: 2; justify-content: flex-start; }
  .project-header-compact .object-hero-compact .page-title { font-size: 27px; }
  .project-header-compact .object-hero-compact .completion strong { font-size: 27px; }
  .catalog-panel-choice { grid-template-columns: 1fr; }
  .project-back { margin: 5px 0 2px; min-height: 34px; padding: 7px 10px; }
  .object-hero-compact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 2px 0 4px; }
  .object-hero-compact .page-title { margin: 5px 0 0; font-size: 30px; }
  .object-hero-compact .page-subtitle { font-size: 12px; }
  .object-hero-compact .completion { align-self: end; text-align: right; }
  .object-hero-compact .completion strong { font-size: 30px; }
  .object-hero-compact .completion span { font-size: 8px; }
  .project-lifecycle-actions { margin: 3px 0 8px; }
  .project-subpage-head { margin: 7px 0 10px; }
  .project-subpage-head .page-title { font-size: 30px; }
  .mobile-filter { margin: 10px 0; }
  .mobile-filter > summary { display: flex; align-items: center; justify-content: center; gap: 7px; width: 42px; min-height: 42px; margin-left: auto; border: 1px solid #2c3943; border-radius: 12px; cursor: pointer; list-style: none; font-size: 23px; }
  .mobile-filter > summary span { display: none; }
  .mobile-filter .task-filter { margin-top: 8px; }
  .files-workspace { grid-template-columns: 1fr; }
  .files-workspace .compact-upload { position: static; }
  .workspace-table { overflow-x: auto; }
  .workspace-row { min-width: 780px; }
  .procurement-additional { display: block; }
  .procurement-additional .mini-link { display: block; margin: 0; padding: 0 18px 14px; white-space: normal; }
}
