:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-tint: #fff6e6;
  --line: #dbe5ee;
  --line-strong: #c7d6e4;
  --text: #17212b;
  --muted: #64748b;
  --faint: #94a3b8;
  --green: #f59e0b;
  --green-dark: #111827;
  --blue: #111827;
  --blue-soft: #f3f4f6;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --shadow: 0 18px 45px rgba(15, 23, 42, .08);
  --shadow-soft: 0 10px 26px rgba(15, 23, 42, .06);
}

.accounting-page {
  width: min(1280px, 100%);
  max-width: 100%;
  min-width: 0;
}

.accounting-tabs button {
  min-width: 220px;
}

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

.accounting-summary-grid > div {
  min-height: 88px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: var(--shadow-soft);
}

.accounting-summary-grid b {
  font-size: 24px;
  line-height: 1;
  color: var(--text);
}

.accounting-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.accounting-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
}

.accounting-panel .panel-head {
  align-items: center;
  margin-bottom: 0;
}

.accounting-panel .panel-head > div {
  min-width: 0;
}

.accounting-drop-zone {
  min-height: 178px;
  padding: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(245, 158, 11, .08), transparent),
    #fff;
  color: var(--text);
  cursor: pointer;
  text-align: center;
}

.accounting-drop-zone.drag-over,
.accounting-drop-zone:hover {
  border-color: var(--amber);
  background:
    linear-gradient(180deg, rgba(245, 158, 11, .14), rgba(245, 158, 11, .04)),
    #fff;
}

.accounting-drop-zone input {
  display: none;
}

.accounting-drop-zone strong {
  font-size: 18px;
}

.accounting-drop-zone span {
  color: var(--muted);
  font-weight: 750;
}

.accounting-upload-status {
  padding: 14px;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 8px;
  background: #fff8eb;
  font-weight: 850;
}

.accounting-upload-status.error {
  border-color: rgba(244, 63, 94, .35);
  background: #fff1f2;
}

.accounting-upload-status small {
  color: var(--muted);
  font-weight: 850;
}

.accounting-upload-status-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.accounting-upload-status-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.accounting-upload-status-head b,
.accounting-upload-status-head small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accounting-upload-status-head strong {
  color: var(--text);
  font-size: 13px;
}

.accounting-loader {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(245, 158, 11, .24);
  border-top-color: var(--amber);
  animation: accountingSpin .8s linear infinite;
}

.accounting-loader.stopped {
  animation: none;
}

.accounting-upload-status.error .accounting-loader {
  border-color: rgba(244, 63, 94, .2);
  border-top-color: #e11d48;
}

.accounting-upload-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
}

.accounting-upload-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  transition: width .18s ease;
}

.accounting-upload-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.accounting-upload-steps span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .16);
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.accounting-upload-steps span.active {
  background: #ffedd5;
  color: #c2410c;
}

.accounting-upload-steps span.done {
  background: #ecfdf5;
  color: #047857;
}

.accounting-upload-files {
  display: grid;
  gap: 6px;
}

.accounting-upload-file {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(203, 213, 225, .85);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.accounting-upload-file span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.accounting-upload-file b,
.accounting-upload-file small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accounting-upload-file em {
  padding: 6px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
}

.accounting-upload-file.active em {
  background: #ffedd5;
  color: #c2410c;
}

.accounting-upload-file.done em {
  background: #ecfdf5;
  color: #047857;
}

.accounting-upload-file.error {
  border-color: rgba(244, 63, 94, .28);
  background: #fff1f2;
}

.accounting-upload-file.error em {
  background: rgba(244, 63, 94, .12);
  color: #be123c;
}

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

.accounting-latest-list {
  display: grid;
  gap: 8px;
}

.accounting-list-head,
.accounting-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.accounting-latest-list h4 {
  margin: 0;
  font-size: 14px;
}

.accounting-list-head span,
.accounting-pagination span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.accounting-compact-row {
  min-height: 58px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.accounting-compact-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.accounting-compact-row span,
.accounting-table-row span {
  min-width: 0;
}

.accounting-compact-row b,
.accounting-table-row b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accounting-compact-row small,
.accounting-table-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.accounting-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 210px) minmax(160px, 190px);
  gap: 10px;
}

.accounting-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.accounting-table-row {
  min-width: 1040px;
  display: grid;
  grid-template-columns: 90px minmax(170px, .9fr) minmax(360px, 1.65fr) minmax(160px, .85fr) 74px 250px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-top: 1px solid var(--line);
}

.accounting-table-row:first-child {
  border-top: 0;
}

.accounting-table-row.head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.accounting-table-more {
  min-width: 940px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 12px;
  border-top: 1px solid var(--line);
}

.accounting-table-more span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.accounting-status {
  display: inline-flex;
  min-height: 26px;
  padding: 0 9px;
  align-items: center;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.accounting-status.done {
  background: #ecfdf5;
  color: #047857;
}

.accounting-status.empty {
  background: #fff7ed;
  color: #c2410c;
}

.accounting-status.error {
  background: #fff1f2;
  color: #be123c;
}

.accounting-found-stack {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.accounting-hit-snippets {
  display: grid;
  gap: 5px;
}

.accounting-hit-snippets i {
  display: block;
  max-width: 100%;
  padding: 6px 8px;
  border-left: 3px solid #fbbf24;
  border-radius: 7px;
  background: #fffbeb;
  color: #475569;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.35;
}

.accounting-hit-snippets mark {
  padding: 0 2px;
  border-radius: 4px;
  background: #fde047;
  color: #111827;
}

.accounting-found-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.accounting-validation {
  display: inline-flex;
  min-height: 26px;
  padding: 0 9px;
  align-items: center;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.accounting-validation.ok {
  background: #ecfdf5;
  color: #047857;
}

.accounting-validation.warn {
  background: #fff7ed;
  color: #c2410c;
}

.accounting-validation.unknown {
  background: #f1f5f9;
  color: #64748b;
}

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

.accounting-actions .small {
  min-width: 0;
  justify-content: center;
  padding-left: 8px;
  padding-right: 8px;
}

.accounting-actions .primary {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .accounting-summary-grid,
  .accounting-filters,
  .accounting-compact-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .accounting-actions {
    justify-content: flex-start;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, .05), transparent 240px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}

button,
input,
textarea,
select {
  font: inherit;
}

input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  font-weight: 750;
}

input:focus {
  outline: 3px solid rgba(245, 158, 11, .18);
  border-color: #f59e0b;
  background: #fff;
}

textarea {
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  font-weight: 750;
  resize: vertical;
}

textarea:focus {
  outline: 3px solid rgba(245, 158, 11, .18);
  border-color: #f59e0b;
  background: #fff;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

select {
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  background:
    linear-gradient(45deg, transparent 50%, #111827 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, #111827 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
    linear-gradient(180deg, #ffffff, #f8fafc);
  appearance: none;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px rgba(15, 23, 42, .04);
}

select:hover {
  border-color: #f59e0b;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

select:focus {
  outline: 3px solid rgba(245, 158, 11, .18);
  border-color: #f59e0b;
  background:
    linear-gradient(45deg, transparent 50%, #111827 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, #111827 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
    #ffffff;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  transition: grid-template-columns .18s ease;
}

.shell.main-sidebar-collapsed {
  grid-template-columns: 78px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 25px 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  color: #f7f9ff;
  background:
    radial-gradient(circle at 15% 5%, rgba(255, 184, 0, .18), transparent 18%),
    linear-gradient(180deg, #111720, #080b10);
  border-right: 0;
  box-shadow: 18px 0 46px rgba(4, 9, 18, .18);
}

.mobile-sidebar-menu {
  flex: 1 1 auto;
  height: 100%;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 20px;
  overflow: hidden;
}

.mobile-sidebar-summary {
  display: none;
}

.mobile-sidebar-menu[open] > .mobile-sidebar-summary {
  flex: 0 0 auto;
}

.sidebar-bottom {
  position: static;
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 8px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 6px;
  min-height: 76px;
  padding: 2px 0 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand:hover,
.brand:focus-visible {
  background: transparent;
  outline: none;
}

.brand-logo {
  width: min(100%, 196px);
  height: 72px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.sidebar-collapse-toggle {
  min-height: 34px;
  width: 100%;
  margin: 0;
  padding: 0 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  background: rgba(255,255,255,.045);
  color: #dbe4f2;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
}

.sidebar-collapse-toggle:hover,
.sidebar-collapse-toggle:focus-visible {
  background: rgba(255,255,255,.085);
  color: #fff;
  outline: none;
}

.sidebar-collapse-toggle span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-collapse-toggle b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #ffb800;
  font-size: 16px;
  line-height: 1;
}

.sidebar-footer-actions {
  padding: 0 0 2px;
}

.consumables-page,
.consumables-panel {
  min-width: 0;
}

.consumable-order-list {
  display: grid;
  gap: 14px;
}

.consumable-order-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.consumable-order-card-head,
.consumable-order-row,
.consumable-warehouse-row,
.consumable-purchase-row,
.consumable-supplier-order-row {
  display: grid;
  gap: 12px;
  align-items: center;
}

.consumable-order-card-head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.consumable-order-card-head h4,
.consumable-issue-detail h4 {
  margin: 2px 0;
}

.consumable-order-card-head span,
.consumable-order-card-head small,
.consumable-order-row small,
.consumable-warehouse-row small,
.consumable-issue-list small {
  display: block;
  color: var(--muted);
}

.consumable-picker {
  display: grid;
  gap: 10px;
}

.consumable-picker-list {
  max-height: 320px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.consumable-picker-list button {
  min-height: 58px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.consumable-picker-list button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.consumable-picker-list button.is-hidden {
  display: none;
}

.consumable-order-table,
.consumable-warehouse-table,
.consumable-purchase-table,
.consumable-supplier-order-table {
  display: grid;
  gap: 1px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.consumable-order-row,
.consumable-purchase-row,
.consumable-supplier-order-row {
  grid-template-columns: minmax(240px, 1.5fr) 120px 120px 110px 110px;
  min-width: 760px;
  padding: 10px 12px;
  background: #fff;
}

.consumable-stock-table .consumable-order-row {
  grid-template-columns: minmax(240px, 1.4fr) 120px 100px 150px 150px 110px 110px minmax(190px, 1fr) 100px;
  min-width: 1280px;
}

.consumable-stats-table .consumable-order-row {
  grid-template-columns: 150px 180px minmax(240px, 1.5fr) 120px 110px;
}

.employee-cabinet-page .consumable-stats-table .consumable-order-row {
  grid-template-columns: 150px minmax(240px, 1.5fr) 120px 110px;
  min-width: 620px;
}

.consumable-warehouse-row {
  grid-template-columns: 44px 140px minmax(180px, 1fr) 150px 130px minmax(260px, 1.5fr);
  min-width: 900px;
  padding: 10px 12px;
  background: #fff;
}

.consumable-purchase-row {
  grid-template-columns: minmax(240px, 1.5fr) minmax(150px, 1fr) 90px 90px 100px 80px 80px 100px;
  min-width: 980px;
}

.consumable-supplier-order-row {
  grid-template-columns: 44px 130px minmax(150px, 1fr) 170px 130px minmax(260px, 1.5fr) 120px;
  min-width: 1010px;
}

.consumable-supplier-order-row:first-child {
  grid-template-columns: 44px 130px minmax(150px, 1fr) 170px 130px minmax(260px, 1.5fr) 120px;
}

.consumables-panel .consumable-supplier-order-row:not(:has(input[type="checkbox"])) {
  grid-template-columns: 130px minmax(150px, 1fr) 170px 130px minmax(260px, 1.5fr) 120px;
  min-width: 900px;
}

.consumable-order-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f8fafc;
}

.consumable-order-head small {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.15;
  text-transform: none;
  letter-spacing: 0;
}

.consumable-order-row input[type="number"],
.consumable-order-row input[list] {
  width: 100%;
  min-height: 36px;
}

.consumable-issue-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 16px;
}

.consumable-issue-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.consumable-issue-list button {
  padding: 12px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.consumable-issue-list button.active {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .15);
}

.consumable-issue-detail {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.consumable-warehouse-row.is-clickable {
  cursor: pointer;
}

.consumable-warehouse-row.is-clickable:hover,
.consumable-warehouse-row.active {
  background: #fff8eb;
}

.consumable-order-detail {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.consumable-detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 8px;
}

.consumable-detail-meta span {
  min-height: 58px;
  padding: 10px;
  display: grid;
  gap: 4px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 800;
}

.consumable-detail-meta b {
  color: #111827;
  font-size: 12px;
  text-transform: uppercase;
}

.consumable-detail-table .consumable-order-row {
  grid-template-columns: minmax(240px, 1.6fr) 140px 120px 100px;
  min-width: 680px;
}

.consumable-status-modal {
  max-width: 520px;
}

.consumable-status-options {
  display: grid;
  gap: 8px;
}

.consumable-status-options button {
  min-height: 66px;
  padding: 12px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  text-align: left;
}

.consumable-status-options button:hover {
  border-color: #f59e0b;
  background: #fff8eb;
}

.consumable-status-options span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.nav-group-toggle,
.nav-item,
.tree-title,
.tree-item {
  width: 100%;
  text-align: left;
  background: transparent;
}

.nav-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 0 4px 0 0;
  display: grid;
  align-content: start;
  gap: 7px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 184, 0, .52) rgba(255, 255, 255, .08);
}

.nav-list::-webkit-scrollbar {
  width: 7px;
}

.nav-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.nav-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 184, 0, .52);
}

.nav-group-toggle {
  min-height: 44px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
  border-radius: 11px;
  color: #d9e2ef;
  font-weight: 760;
  letter-spacing: .005em;
  line-height: 1.15;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.045);
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.nav-group-toggle span,
.nav-item span {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: break-word;
}

.nav-count-badge {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin-left: 7px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  vertical-align: middle;
  box-shadow: 0 8px 18px rgba(245, 158, 11, .24);
}

.nav-item > .nav-count-badge {
  flex: 0 0 auto;
  margin-left: auto;
}

.nav-group-toggle b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #dbe4f2;
  background: rgba(255,255,255,.055);
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
}

.nav-group-toggle:hover,
.nav-group-toggle.active {
  color: #fff;
  background: rgba(255,255,255,.075);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 12px 24px rgba(0,0,0,.1);
}

.nav-group-toggle.expanded b {
  color: #dbe4f2;
  background: rgba(255,255,255,.055);
}

.nav-group-items {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 2px 0 7px 18px;
  animation: navGroupOpen .16s ease both;
}

.nav-group-items::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 184, 28, .88), rgba(255, 138, 18, .28));
  box-shadow: 0 0 12px rgba(255, 158, 11, .34);
}

.nav-group-items.has-active::before {
  display: none;
}

@keyframes navGroupOpen {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-item {
  position: relative;
  min-height: 39px;
  padding: 9px 10px 9px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 10px;
  color: #d4dceb;
  font-weight: 690;
  font-size: 14px;
  letter-spacing: .002em;
  line-height: 1.12;
}

.nav-item-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 25px;
  align-items: center;
  gap: 4px;
}

.nav-item-row .nav-item {
  min-width: 0;
}

.nav-item-open {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 8px;
  color: rgba(219, 228, 242, .72);
  background: rgba(255, 255, 255, .035);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  opacity: .72;
  transition: opacity .16s ease, color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.nav-item-row:hover .nav-item-open,
.nav-item-open:focus-visible {
  opacity: 1;
  color: #fff;
  border-color: rgba(255, 184, 0, .32);
  background: rgba(255, 184, 0, .12);
  transform: translateY(-1px);
}

.nav-item i {
  width: 18px;
  color: #c8d2e2;
  font-style: normal;
  font-size: 13px;
  opacity: .84;
}

.nav-item.active,
.nav-item:hover {
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 184, 0, .18), rgba(255,255,255,.07));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.055);
}

.nav-item.recording {
  padding-right: 34px;
}

.nav-recording-dot {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, .52);
  animation: recordingPulse 1s ease-in-out infinite;
}

@keyframes recordingPulse {
  0%, 100% {
    opacity: .45;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, .45);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
  }
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffc247, #ff9e0b);
  box-shadow: 0 0 14px rgba(255, 158, 11, .55);
}

.sidebar.collapsed {
  padding: 18px 8px;
  gap: 12px;
  overflow: hidden;
}

.sidebar.collapsed .brand {
  min-height: 50px;
  margin: 0;
  padding: 0;
}

.sidebar.collapsed .brand-logo {
  width: 54px;
  height: 48px;
  object-position: center;
}

.sidebar.collapsed .sidebar-collapse-toggle {
  width: 46px;
  min-height: 34px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
}

.sidebar.collapsed .sidebar-collapse-toggle span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.sidebar.collapsed .sidebar-collapse-toggle b {
  background: rgba(255, 184, 0, .14);
}

.sidebar.collapsed .nav-list {
  justify-items: center;
  gap: 6px;
  padding: 0 2px;
}

.sidebar.collapsed .sidebar-bottom {
  width: auto;
  justify-items: center;
}

.sidebar.collapsed .sidebar-footer-actions {
  width: 46px;
  margin: 0 auto;
  padding: 0;
}

.sidebar.collapsed .nav-item.compact {
  width: 46px;
  min-height: 42px;
  justify-content: center;
  padding: 0;
  border-radius: 12px;
  overflow: visible;
}

.sidebar.collapsed .nav-item-row.compact {
  position: relative;
  width: 46px;
  min-height: 42px;
  display: block;
}

.sidebar.collapsed .nav-item-row.compact .nav-item-open {
  position: absolute;
  right: -3px;
  top: -3px;
  z-index: 2;
  width: 17px;
  height: 17px;
  border-radius: 6px;
  font-size: 8px;
  opacity: 0;
}

.sidebar.collapsed .nav-item-row.compact:hover .nav-item-open,
.sidebar.collapsed .nav-item-row.compact .nav-item-open:focus-visible {
  opacity: 1;
}

.sidebar.collapsed .nav-item.compact i {
  width: auto;
  font-size: 15px;
}

.sidebar.collapsed .nav-item.compact span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.nav-item-tooltip {
  display: none;
}

.sidebar.collapsed .nav-item-tooltip {
  display: block;
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  z-index: 80;
  width: max-content;
  max-width: 240px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 10px;
  background: rgba(15, 23, 42, .96);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .26);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity .12s ease, transform .12s ease;
  white-space: nowrap;
}

.sidebar.collapsed .nav-item-tooltip::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 9px;
  height: 9px;
  background: rgba(15, 23, 42, .96);
  border-left: 1px solid rgba(148, 163, 184, .22);
  border-bottom: 1px solid rgba(148, 163, 184, .22);
  transform: translateY(-50%) rotate(45deg);
}

.sidebar.collapsed .nav-item.compact:hover .nav-item-tooltip,
.sidebar.collapsed .nav-item.compact:focus-visible .nav-item-tooltip {
  opacity: 1;
  transform: translate(0, -50%);
}

.sidebar.collapsed .nav-item.active::before {
  left: -6px;
  top: 10px;
  bottom: 10px;
}

.sidebar.collapsed .nav-recording-dot {
  right: 6px;
}

.sidebar.collapsed .sidebar-account {
  width: 46px;
  margin: 0 auto;
  padding: 4px;
  grid-template-columns: 1fr;
}

.sidebar.collapsed .account-open {
  grid-template-columns: 1fr;
  place-items: center;
}

.sidebar.collapsed .account-open span:not(.avatar-icon),
.sidebar.collapsed .logout-button {
  display: none;
}

.sidebar.collapsed .avatar-icon {
  width: 36px;
  height: 36px;
  font-size: 21px;
}

.sidebar-note {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  color: #c1c8d4;
  font-size: 13px;
  line-height: 1.45;
}

.sidebar-note b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #ffb800;
  border: 1px solid #ffb800;
  border-radius: 999px;
}

.sidebar-note p {
  margin: 14px 0 0;
}

.sidebar-account {
  margin-top: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  background: rgba(255,255,255,.05);
}

.account-open {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  text-align: left;
}

.account-open:hover {
  background: rgba(255,255,255,.07);
}

.avatar-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff3d6;
  font-size: 25px;
}

.account-open b,
.account-open small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-open b {
  font-size: 13px;
}

.account-open small {
  margin-top: 3px;
  color: #adb6c5;
  font-size: 12px;
}

.logout-button {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.09);
  font-size: 18px;
  font-weight: 900;
}

.logout-button:hover {
  background: rgba(244, 63, 94, .9);
}

.main {
  min-width: 0;
}

.topbar {
  position: relative;
  z-index: 5;
  min-height: 86px;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(244, 247, 251, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.user-switcher {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.user-switcher select {
  min-width: 250px;
  min-height: 40px;
}

.topbar p,
.panel p,
.hero p {
  margin: 0;
  color: var(--muted);
}

.topbar p {
  font-size: 14px;
  font-weight: 650;
}

.topbar h1,
.hero h2,
.panel h3 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  margin-top: 2px;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 850;
}

.top-actions,
.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-notice {
  max-width: min(760px, 48vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: start;
  padding: 11px 12px 11px 14px;
  border: 1px solid rgba(245, 158, 11, .38);
  border-radius: 8px;
  color: #111827;
  background: var(--surface-tint);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 850;
  box-shadow: var(--shadow-soft);
}

.top-notice span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.top-notice button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #111827;
  background: rgba(255,255,255,.68);
  font-size: 18px;
  font-weight: 900;
}

.top-notice button:hover {
  background: #fff;
}

.primary,
.ghost {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 780;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.primary {
  color: #111827;
  background: linear-gradient(135deg, #ffd166, #f59e0b 55%, #ea7a00);
  box-shadow: 0 12px 26px rgba(245, 158, 11, .28);
}

.ghost {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.primary:hover,
.ghost:hover {
  transform: translateY(-1px);
}

.primary:disabled,
.ghost:disabled {
  cursor: default;
  opacity: .55;
  transform: none;
  box-shadow: none;
}

.primary.is-loading,
.ghost.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: .78;
}

.scream-spinner {
  position: relative;
  width: 18px;
  height: 20px;
  border-radius: 50% 50% 45% 45% / 42% 42% 58% 58%;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 58%, #e5e7eb 100%);
  border: 1px solid rgba(17, 24, 39, .55);
  box-shadow: inset 0 -3px 5px rgba(17, 24, 39, .16), 0 1px 2px rgba(17, 24, 39, .18);
  flex: 0 0 auto;
  animation: scream-spinner-rotate .9s cubic-bezier(.45, 0, .35, 1) infinite;
}

.scream-spinner::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: #111827;
  box-shadow: 7px 0 0 #111827;
  transform: rotate(8deg);
}

.scream-spinner::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  width: 6px;
  height: 5px;
  border-radius: 50% 50% 60% 60%;
  background: #111827;
}

@keyframes scream-spinner-rotate {
  0% { transform: rotate(0deg) scale(1); }
  45% { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1); }
}

.ghost.active-mode {
  color: #111827;
  background: #fff3d6;
  border-color: rgba(245, 158, 11, .52);
}

.ghost.danger {
  color: #be123c;
  border-color: #fecdd3;
  background: #fff1f2;
}

.small {
  min-height: 36px;
  padding: 0 13px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  white-space: nowrap;
}

.hidden-input {
  display: none;
}

.training-top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.training-page-video-menu {
  position: relative;
}

.training-page-video-menu summary {
  list-style: none;
  cursor: pointer;
}

.training-page-video-menu summary::-webkit-details-marker {
  display: none;
}

.training-page-video-menu > div {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 25;
  width: min(360px, calc(100vw - 32px));
  padding: 8px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, .16);
}

.training-page-video-menu button {
  width: 100%;
  padding: 9px 10px;
  display: grid;
  gap: 3px;
  border: 0;
  border-radius: 7px;
  background: #f8fafc;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.training-page-video-menu button:hover {
  background: #fff7ed;
}

.training-page-video-menu b,
.training-page-video-menu small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-page-video-menu small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.training-upload-top,
.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1.15;
  white-space: nowrap;
}

.upload-button {
  min-height: 42px;
  padding: 0 16px;
  vertical-align: top;
}

.applications-page {
  max-width: 1180px;
}

.screen-recorder-panel {
  display: grid;
  gap: 18px;
}

.recorder-status {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 850;
}

.recorder-status.active {
  color: #991b1b;
  background: #fee2e2;
}

.screen-recorder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .5fr);
  gap: 12px;
}

.screen-recorder-box,
.screen-recorder-target {
  min-width: 0;
  padding: 14px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.screen-recorder-box b,
.screen-recorder-target span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.screen-recorder-box span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.screen-recorder-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  line-height: 1;
}

.recorder-timer {
  min-width: 56px;
  padding: 9px 10px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.recorder-message {
  padding: 10px 12px;
  border-radius: 8px;
  color: #1f2937;
  background: #eef6ff;
  font-size: 13px;
  font-weight: 750;
}

.training-upload-warning {
  padding: 10px 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #7c2d12;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.training-upload-progress {
  position: relative;
  min-height: 32px;
  overflow: hidden;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.training-upload-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, #93c5fd, #22c55e);
  transition: width .2s ease;
}

.training-upload-progress b {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.training-library {
  display: grid;
  gap: 12px;
}

.training-page {
  max-width: 1280px;
}

.training-section-manager {
  display: grid;
  gap: 12px;
}

.training-section-create {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto minmax(180px, .7fr) minmax(220px, .9fr);
  gap: 8px;
  align-items: center;
}

.training-section-create input,
.training-section-create select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d4e0ed;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-weight: 780;
}

.training-section-panel-head {
  align-items: stretch;
}

.training-section-admin-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 80px auto auto auto;
  gap: 8px;
  align-items: center;
  width: min(720px, 100%);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.training-section-admin-row input {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d4e0ed;
  border-radius: 8px;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.training-section-admin-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.training-section-panel {
  display: grid;
  gap: 12px;
}

.training-section-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.training-section-video-list {
  display: grid;
  gap: 10px;
}

.training-video-card {
  min-width: 0;
  min-height: 148px;
  padding: 13px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.training-video-card[draggable="true"] {
  cursor: grab;
}

.training-video-card.is-dragging {
  opacity: .58;
}

.training-section-panel.drop-active {
  outline: 2px solid rgba(245, 158, 11, .34);
  outline-offset: 3px;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.training-video-learning-row {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
}

.training-video-learning-row .training-admin-responses {
  grid-column: 1 / -1;
}

.training-video-card b,
.training-video-card small,
.training-video-card p {
  display: block;
  min-width: 0;
}

.training-video-card b {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.training-video-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.training-video-card p {
  margin: 8px 0 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
}

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

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

.training-file-row {
  min-width: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.training-file-meta-editor {
  display: grid;
  gap: 6px;
}

.training-file-meta-editor input,
.training-file-meta-editor textarea {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  font-weight: 820;
}

.training-file-meta-editor textarea {
  min-height: 52px;
  color: #475569;
  font-size: 12px;
  font-weight: 760;
  resize: vertical;
}

.training-files-page .training-file-list {
  display: grid;
  align-items: stretch;
  gap: 10px;
}

.training-file-section-panel {
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.training-file-section-panel.drag-over {
  border-color: rgba(255, 158, 11, .76);
  background: #fffaf0;
  box-shadow: 0 0 0 3px rgba(255, 158, 11, .12), 0 16px 34px rgba(15, 23, 42, .08);
}

.training-file-upload-target {
  min-height: 54px;
  padding: 12px;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.training-file-upload-target.empty {
  min-height: 70px;
}

.training-file-upload-target:hover {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #111827;
}

.training-file-upload-target span {
  font-weight: 900;
}

.training-file-upload-target small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.training-file-row[draggable="true"] {
  cursor: grab;
}

.training-file-row.dragging {
  opacity: .58;
  cursor: grabbing;
}

.training-file-row b,
.training-file-row small {
  display: block;
  min-width: 0;
}

.training-file-row b {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.training-file-row small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.training-file-upload-status {
  margin-top: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 158, 11, .34);
  border-radius: 8px;
  background: #fff8e6;
}

.training-file-upload-status div {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #7c3f00;
  font-size: 12px;
  font-weight: 850;
}

.training-file-upload-status span {
  min-width: 0;
  color: #92400e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-file-upload-status i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(251, 191, 36, .22);
}

.training-file-upload-status i b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8a00, #ffb800);
  transition: width .16s ease;
}

.training-video-row {
  min-width: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.training-video-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.training-video-row b,
.training-video-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-video-row b {
  font-size: 14px;
}

.training-video-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.training-video-edit {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(160px, .75fr) minmax(180px, .85fr);
  gap: 8px;
  align-items: end;
}

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

.training-stats-row {
  padding: 12px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.training-stats-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.training-stats-head b,
.training-stats-head small {
  display: block;
}

.training-stats-head small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.training-stats-head > span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.training-stats-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.training-stats-columns > div {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.training-stats-columns b {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.training-user-pill {
  margin: 0 5px 5px 0;
  padding: 5px 7px;
  display: inline-flex;
  border-radius: 999px;
  color: #1f2937;
  background: #e8f3ff;
  font-size: 12px;
  font-weight: 800;
}

.training-user-pill.muted {
  color: var(--muted);
  background: #eef2f7;
}

.training-video-edit label {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.training-video-edit span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.training-video-edit input,
.training-video-edit select {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d4e0ed;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 780;
}

.training-video-edit input:focus,
.training-video-edit select:focus {
  border-color: rgba(245, 158, 11, .7);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .12);
  outline: none;
}

.training-assignment-editor {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.training-assignment-editor textarea,
.training-task-answer textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  padding: 10px;
  border: 1px solid #d4e0ed;
  border-radius: 8px;
  color: #111827;
  font: inherit;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.4;
}

.training-file-list {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.training-file-list > span,
.training-file-chip {
  max-width: 100%;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  color: #334155;
  background: #e8f3ff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.training-trim-editor {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.training-preview-box {
  position: relative;
  min-width: 0;
}

.training-preview-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #05070a;
  object-fit: contain;
}

.training-preview-error {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(15, 23, 42, .82);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.3;
}

.training-preview-error[hidden] {
  display: none;
}

.training-trim-tools {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.training-trim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.training-trim-head span,
.training-trim-times span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.training-trim-head b,
.training-trim-times b {
  color: #111827;
  font-weight: 900;
}

.training-trim-range {
  position: relative;
  height: 36px;
  display: grid;
  align-items: center;
  cursor: pointer;
}

.training-trim-range::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 16px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #cbd5e1, #e2e8f0);
}

.training-trim-selection {
  position: absolute;
  left: 0;
  top: 16px;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24, #2563eb);
  pointer-events: none;
}

.training-trim-handle {
  position: absolute;
  z-index: 2;
  top: 5px;
  width: 18px;
  height: 26px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 8px;
  background: #f59e0b;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .18);
  cursor: grab;
  transform: translateX(-50%);
}

.training-trim-handle:active {
  cursor: grabbing;
  transform: translateX(-50%) scale(1.04);
}

.training-trim-handle:focus-visible {
  outline: 3px solid rgba(245, 158, 11, .24);
  outline-offset: 2px;
}

.training-trim-handle.end {
  background: #2563eb;
}

.training-trim-times {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.training-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(6px);
}

.training-video-dialog {
  width: 80vw;
  height: 80vh;
  height: 80dvh;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .88);
  border-radius: 10px;
  background: #05070a;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .36);
}

.training-video-dialog-head {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 42px;
  gap: 14px;
  align-items: center;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  background: rgba(15, 23, 42, .96);
}

.training-video-dialog-head b,
.training-video-dialog-head span {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-video-dialog-head b {
  font-size: 15px;
  font-weight: 900;
}

.training-video-dialog-head span {
  margin-top: 3px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 760;
}

.training-video-dialog-head button {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #111827;
  background: #fff;
  font-size: 24px;
  font-weight: 850;
}

.training-video-dialog-head .training-video-header-fullscreen {
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  color: #f8fafc;
  border: 1px solid rgba(226, 232, 240, .24);
  background: rgba(255, 255, 255, .1);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.training-video-dialog-head .training-video-header-fullscreen:hover {
  background: rgba(255, 255, 255, .16);
}

.training-video-player {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #05070a;
}

.training-video-player video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #05070a;
}

.training-video-buffer {
  position: absolute;
  left: 50%;
  bottom: 92px;
  z-index: 2;
  transform: translateX(-50%);
  padding: 9px 14px;
  border-radius: 8px;
  color: #f8fafc;
  background: rgba(15, 23, 42, .88);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .26);
  font-size: 13px;
  font-weight: 850;
  pointer-events: none;
}

.training-video-controls {
  display: grid;
  grid-template-columns: 52px minmax(140px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px 14px;
  color: #f8fafc;
  background: rgba(15, 23, 42, .98);
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.training-video-controls button {
  border-radius: 8px;
  font-weight: 900;
}

.training-video-controls [data-training-overlay-play] {
  position: relative;
  width: 52px;
  height: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #2563eb);
  box-shadow: 0 10px 28px rgba(245, 158, 11, .22);
}

.training-video-controls [data-training-overlay-play]::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid currentColor;
}

.training-video-controls [data-training-overlay-play].is-playing::before {
  width: 16px;
  height: 18px;
  margin-left: 0;
  border: 0;
  background:
    linear-gradient(currentColor, currentColor) left / 6px 18px no-repeat,
    linear-gradient(currentColor, currentColor) right / 6px 18px no-repeat;
}

.training-video-control-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.training-video-controls [data-training-overlay-fullscreen] {
  width: auto;
  height: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  color: #f8fafc;
  border: 1px solid rgba(226, 232, 240, .22);
  background: rgba(255, 255, 255, .08);
  font-size: 12px;
}

.training-video-controls [data-training-overlay-fullscreen]:hover {
  background: rgba(255, 255, 255, .14);
}

.training-video-play-icon {
  display: none;
}

.training-video-fullscreen-icon {
  display: block;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(currentColor, currentColor) left top / 8px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left top / 2px 8px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 8px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 2px 8px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 8px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 2px 8px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 8px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 2px 8px no-repeat;
}

.training-video-player:fullscreen,
.training-video-player:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #05070a;
}

.training-video-player:fullscreen video,
.training-video-player:-webkit-full-screen video {
  width: 100%;
  height: 100%;
}

.training-video-progress {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(226, 232, 240, .22);
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.training-video-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #2563eb);
}

.training-video-progress-buffered {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: rgba(226, 232, 240, .34);
}

.training-video-progress-thumb {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  width: 22px;
  height: 22px;
  min-height: 22px;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .28);
  cursor: grab;
}

.training-video-progress-thumb:active {
  cursor: grabbing;
}

.training-video-controls [data-training-overlay-time] {
  min-width: 112px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

.training-video-controls [data-training-overlay-loaded] {
  min-width: 92px;
  color: rgba(226, 232, 240, .68);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

.training-test-editor {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.training-test-editor-collapsed {
  display: block;
}

.training-test-editor-collapsed summary {
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.training-test-editor-collapsed summary::-webkit-details-marker {
  display: none;
}

.training-test-editor-collapsed summary > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.training-collapse-action {
  min-height: 30px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4e0ed;
  border-radius: 8px;
  color: #475569;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.training-test-editor-collapsed[open] summary {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.training-test-editor-collapsed[open] .training-collapse-action {
  font-size: 0;
}

.training-test-editor-collapsed[open] .training-collapse-action::after {
  content: "Свернуть";
  font-size: 12px;
}

.training-test-head,
.training-overlay-test-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.training-test-head > div:first-child,
.training-overlay-test-head > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.training-test-head span,
.training-overlay-test-head span,
.training-test-results span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.training-test-head > div:last-child {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.training-test-editor textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  padding: 10px;
  border: 1px solid #d4e0ed;
  border-radius: 8px;
  color: #111827;
  font: inherit;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.4;
}

.training-test-questions {
  display: grid;
  gap: 8px;
}

.training-test-question {
  display: grid;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.training-test-question label {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.training-test-question label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.training-test-question input[type="text"],
.training-test-question input:not([type]) {
  width: 100%;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #d4e0ed;
  border-radius: 8px;
  color: #111827;
  font-size: 12px;
  font-weight: 760;
}

.training-test-option {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
}

.training-test-option input[type="radio"] {
  width: 15px;
  height: 15px;
}

.training-test-results {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.training-overlay-test {
  max-height: none;
  min-height: 0;
  overflow: visible;
  display: grid;
  gap: 16px;
  padding: 0;
  color: #111827;
  background: transparent;
  border-top: 0;
}

.training-overlay-questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.training-overlay-question {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.training-overlay-question > b {
  white-space: normal;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
}

.training-overlay-question label {
  min-height: 42px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #1f2937;
  background: #fff;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
  cursor: pointer;
}

.training-overlay-question label:hover {
  border-color: rgba(245, 158, 11, .45);
  background: #fffbeb;
}

.training-overlay-question input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #f59e0b;
}

.training-overlay-question.is-correct {
  border-color: rgba(22, 163, 74, .35);
  background: #f0fdf4;
}

.training-overlay-question.is-wrong {
  border-color: rgba(220, 38, 38, .28);
  background: #fff7f7;
}

.training-overlay-answer-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.training-overlay-result {
  padding: 10px 12px;
  border: 1px solid rgba(220, 38, 38, .22);
  border-radius: 8px;
  color: #991b1b;
  background: #fff7f7;
}

.training-overlay-result.passed {
  border-color: rgba(22, 163, 74, .28);
  color: #166534;
  background: #f0fdf4;
}

.training-overlay-result b,
.training-overlay-result span {
  display: block;
}

.training-task-dialog {
  width: min(760px, calc(100vw - 72px));
  max-height: min(820px, calc(100vh - 72px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .88);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .36);
}

.training-test-dialog {
  width: min(1120px, calc(100vw - 56px));
  max-height: min(900px, calc(100vh - 48px));
}

.training-test-dialog .training-video-dialog-head {
  min-height: 68px;
  padding: 13px 14px 13px 18px;
}

.training-test-dialog .training-task-body {
  gap: 16px;
  padding: 18px;
  background: #f1f5f9;
}

.training-test-dialog .training-overlay-test-head {
  position: sticky;
  top: -18px;
  z-index: 2;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
  backdrop-filter: blur(8px);
}

.training-test-dialog .training-overlay-test-head b {
  color: #0f172a;
  font-size: 16px;
}

.training-test-dialog .training-overlay-test-head .primary {
  min-height: 40px;
  padding: 0 16px;
}

.training-image-preview-dialog {
  width: min(980px, calc(100vw - 72px));
  max-height: min(860px, calc(100vh - 72px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .88);
  border-radius: 10px;
  background: #0f172a;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .36);
}

.training-image-preview-body {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  background: #0f172a;
}

.training-image-preview-body img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.training-task-body {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.training-task-prompt {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.training-task-prompt.muted {
  background: #f9fafb;
}

.training-task-prompt b,
.training-task-answer span {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.training-task-prompt p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.45;
  white-space: pre-wrap;
}

.training-task-prompt small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.training-task-answer {
  display: grid;
  gap: 6px;
}

.training-task-submit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.training-task-submit-row > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.training-admin-responses {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.training-admin-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.training-admin-tabs button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #d4e0ed;
  border-radius: 8px;
  color: #475569;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
}

.training-admin-tabs button.active {
  color: #111827;
  border-color: rgba(245, 158, 11, .5);
  background: #fff7ed;
}

.training-admin-tabs button span {
  margin-left: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #111827;
  background: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.training-admin-pane {
  display: none;
  gap: 8px;
}

.training-admin-pane.active {
  display: grid;
}

.training-admin-answer {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 9px;
  border-radius: 8px;
  background: #f8fafc;
}

.training-admin-answer.is-passed {
  border: 1px solid rgba(22, 163, 74, .22);
  background: #f0fdf4;
}

.training-admin-answer.is-missed {
  border: 1px solid rgba(220, 38, 38, .18);
  background: #fff7f7;
}

.training-admin-answer b,
.training-admin-answer span,
.training-admin-answer p {
  min-width: 0;
  white-space: normal;
}

.training-admin-answer span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.training-admin-answer p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.4;
}

.content {
  padding: 28px 32px 36px;
}

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

.hero {
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
  gap: 26px;
  align-items: end;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, .18), rgba(17, 24, 39, .06) 48%, rgba(255, 184, 0, .12)),
    var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  color: #111827;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h2 {
  max-width: 820px;
  margin: 12px 0;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 880;
}

.hero-panel,
.panel,
.metric,
.relation-help > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-soft);
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(17, 23, 32, .86), rgba(8, 11, 16, .94)),
    var(--bg);
}

.login-card {
  width: min(420px, 100%);
  padding: 28px;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
}

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

.login-card p {
  margin: 0;
  color: var(--muted);
}

.login-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.login-mode-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.login-mode-tabs button.active {
  background: #111827;
  color: #fff;
}

.login-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.employee-badge-scanner {
  display: none;
  gap: 8px;
}

.employee-badge-scanner.active {
  display: grid;
}

.employee-badge-scanner video {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
  object-fit: cover;
}

.employee-badge-scanner small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.employee-badge-capture {
  min-height: 54px;
}

.employee-login-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.employee-login-fallback {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
}

.employee-login-fallback summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.employee-login-fallback label {
  margin-top: 10px;
}

.login-error {
  padding: 11px 12px;
  border-radius: 8px;
  color: #7f1d1d;
  background: #fee2e2;
  font-weight: 800;
}

.hero-panel {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.hero-panel span,
.metric span,
.status-list span,
.role-list span,
.relation-help span,
.map-node small {
  color: var(--muted);
}

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

.metric {
  padding: 18px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.metric strong {
  display: block;
  color: #111827;
  font-size: 34px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 7px;
  font-weight: 650;
}

.workbench,
.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
  gap: 18px;
}

.access-nav-card {
  min-height: 168px;
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.access-subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.access-subnav div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.panel {
  min-width: 0;
  padding: 18px;
}

.wide {
  min-height: 220px;
}

.dashboard-hero {
  display: block;
}

.dashboard-portal-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-portal-stat {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow);
}

.dashboard-portal-stat.tasks {
  border-color: rgba(245, 158, 11, .34);
}

.dashboard-portal-stat.projects {
  border-color: rgba(51, 65, 85, .18);
}

.dashboard-portal-stat h3 {
  margin: 5px 0 3px;
  color: #111827;
  font-size: 38px;
  line-height: 1;
}

.dashboard-portal-stat p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.dashboard-portal-ring {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fff 0 55%, transparent 56%),
    conic-gradient(#f59e0b calc(var(--value) * 1%), #e5e7eb 0);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06);
}

.dashboard-portal-ring b {
  color: #111827;
  font-size: 21px;
  line-height: 1;
}

.dashboard-portal-ring span {
  margin-top: 22px;
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  position: absolute;
}

.dashboard-portal-about {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  overflow: hidden;
  color: #f8fafc;
  background:
    radial-gradient(circle at 18% 0, rgba(245, 158, 11, .22), transparent 26%),
    linear-gradient(135deg, #101821, #080b10);
}

.dashboard-portal-brand {
  display: grid;
  align-content: center;
  gap: 18px;
}

.dashboard-portal-brand img {
  width: min(100%, 330px);
  height: auto;
  display: block;
}

.dashboard-portal-brand p {
  max-width: 560px;
  margin: 0;
  color: #dbe4f2;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.6;
}

.dashboard-portal-brand b {
  color: #f59e0b;
}

.dashboard-portal-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: stretch;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.dashboard-portal-principles article {
  min-height: 190px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px;
}

.dashboard-portal-principles article + article {
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.dashboard-portal-principles b {
  color: #fff;
  font-size: 18px;
  text-transform: uppercase;
}

.dashboard-portal-principles span {
  color: #aeb9c8;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.dashboard-main {
  gap: 22px;
}

.dashboard-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-main-head p {
  margin: 0;
  color: #6b7280;
  font-size: 16px;
  font-weight: 600;
}

.dashboard-settings-button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
}

.dashboard-main .dashboard-portal-overview {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 22px;
}

.dashboard-main .dashboard-portal-stat {
  min-height: 150px;
  padding: 28px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}

.dashboard-main .dashboard-portal-stat span {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-main .dashboard-portal-stat h3 {
  margin: 10px 0 6px;
  font-size: 44px;
}

.dashboard-main .dashboard-portal-stat p {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.dashboard-main .dashboard-portal-stat p i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6b7280;
}

.dashboard-main .dashboard-portal-ring {
  width: 96px;
  height: 96px;
  background:
    radial-gradient(circle at center, #fff 0 59%, transparent 60%),
    conic-gradient(#f59e0b calc(var(--value) * 1%), #e5e7eb 0);
}

.dashboard-main .dashboard-portal-ring b {
  font-size: 23px;
}

.dashboard-notifications {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.dashboard-notifications-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-notifications-head div {
  display: grid;
  gap: 3px;
}

.dashboard-notifications-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-notifications-head b {
  color: #111827;
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}

.dashboard-notifications-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.dashboard-notifications-list {
  display: grid;
  gap: 8px;
}

.dashboard-notification {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e5edf5;
  border-radius: 8px;
  background: #fbfdff;
  cursor: pointer;
}

.dashboard-notification.active {
  border-color: rgba(245, 158, 11, .38);
  background: #fffaf0;
}

.dashboard-notification.done {
  opacity: .68;
}

.dashboard-notification-check {
  position: relative;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.dashboard-notification-check input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.dashboard-notification-check span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}

.dashboard-notification-check input:checked + span {
  border-color: #f59e0b;
  background: #f59e0b;
}

.dashboard-notification-check input:checked + span::after {
  content: "✓";
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.dashboard-notification div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.dashboard-notification b {
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-notification p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dashboard-notification small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-main-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.dashboard-main-column {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.dashboard-main-layout > * {
  min-width: 0;
}

.dashboard-main-right .dashboard-portal-overview {
  grid-template-columns: 1fr;
}

.dashboard-main .dashboard-portal-about {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #111827;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}

.dashboard-portal-about-top {
  display: grid;
  grid-template-columns: minmax(130px, .42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.dashboard-portal-words {
  display: grid;
  gap: 18px;
  padding-left: 22px;
  border-left: 3px solid #f59e0b;
}

.dashboard-portal-words b {
  color: #111827;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-portal-about-top p {
  margin: 0;
  padding-left: 28px;
  border-left: 1px solid var(--line);
  color: #475569;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.7;
}

.dashboard-portal-about-top p b {
  color: #f59e0b;
}

.dashboard-portal-rows {
  display: grid;
}

.dashboard-portal-rows article {
  min-height: 146px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.dashboard-portal-rows article:last-child {
  border-bottom: 0;
}

.dashboard-portal-rows i {
  display: grid;
  place-items: center;
  color: #f59e0b;
  font-style: normal;
  font-size: 54px;
  text-align: center;
}

.dashboard-team-icon svg {
  width: 66px;
  height: 54px;
  display: block;
}

.dashboard-team-icon circle,
.dashboard-team-icon path {
  fill: none;
  stroke: #f59e0b;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-portal-rows b {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 19px;
  text-transform: uppercase;
}

.dashboard-portal-rows span {
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.dashboard-portal-rows em {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f8fafc;
  color: #111827;
  font-size: 30px;
  font-style: normal;
}

.dashboard-day-index-card {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(170px, .5fr) minmax(320px, 1fr);
  grid-template-rows: minmax(390px, 1fr) auto;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
  overflow: hidden;
}

.dashboard-day-index-copy h3 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 20px;
  text-transform: uppercase;
}

.dashboard-day-index-copy b {
  display: block;
  color: #f97316;
  font-size: 64px;
  line-height: 1;
}

.dashboard-day-index-copy p {
  margin: 10px 0 14px;
  color: #6b7280;
  font-size: 16px;
  font-weight: 650;
}

.dashboard-day-index-copy span {
  width: 32px;
  height: 3px;
  display: block;
  border-radius: 999px;
  background: #f97316;
}

.dashboard-person-wrap {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  padding: 8px 58px 0 8px;
}

.dashboard-person {
  width: min(170px, 100%);
  height: auto;
  display: block;
}

.dashboard-character {
  position: relative;
  aspect-ratio: 460 / 930;
  overflow: hidden;
  filter: drop-shadow(0 18px 22px rgba(15, 23, 42, .08));
}

.dashboard-character-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.dashboard-character-image.outline {
  filter: none;
  opacity: .98;
}

.dashboard-character-fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(calc(100% - var(--fill, 0%)) 0 0 0);
  transition: clip-path .35s ease;
}

.dashboard-character-image.filled {
  filter: saturate(1.08) drop-shadow(0 0 12px rgba(249, 115, 22, .16));
}

.dashboard-person-scale {
  position: absolute;
  right: 0;
  top: 18px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-person-scale span {
  position: relative;
}

.dashboard-person-scale span::before {
  content: "";
  position: absolute;
  right: 42px;
  top: 50%;
  width: 76px;
  border-top: 1px dashed #cbd5e1;
}

.dashboard-day-index-list {
  grid-column: 1 / -1;
  display: grid;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.dashboard-day-index-list div {
  min-height: 50px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.dashboard-day-index-list div:last-child {
  border-bottom: 0;
}

.dashboard-day-index-list span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid #111827;
  border-radius: 999px;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.dashboard-day-index-list b {
  color: #374151;
  font-size: 15px;
}

.dashboard-day-index-list strong {
  color: #111827;
  font-size: 16px;
}

.dashboard-day-index-list .green,
.dashboard-day-index-list strong.green {
  color: #16a34a;
  border-color: #16a34a;
}

.dashboard-month-completion {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}

.dashboard-month-completion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-month-completion-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-month-completion-actions b {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.dashboard-month-completion-head span {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-month-completion-head > div:first-child {
  display: grid;
  gap: 6px;
}

.dashboard-month-completion-head > div:first-child > p {
  display: block;
  font-size: 12px;
}

.dashboard-month-completion-sections {
  display: grid;
  gap: 18px;
}

.dashboard-month-completion-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #fbfdff;
}

.dashboard-month-completion-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-month-completion-section-head > div {
  display: grid;
  gap: 4px;
}

.dashboard-month-completion-section-head > div:last-child {
  justify-items: end;
}

.dashboard-month-completion-section-head span {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-month-completion-section-head small {
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.dashboard-month-completion-section-head h3 {
  margin: 0;
  color: #111827;
  font-size: 30px;
  line-height: 1;
}

.dashboard-month-completion-section-head p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-month-completion-section-head p i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #94a3b8;
}

.dashboard-month-completion-head h3 {
  margin: 10px 0 6px;
  color: #111827;
  font-size: 44px;
  line-height: 1;
}

.dashboard-month-completion-head p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #64748b;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
}

.dashboard-month-completion-head p i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #94a3b8;
}

.dashboard-month-completion-ring {
  flex: 0 0 auto;
}

.dashboard-month-completion-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-month-completion-day {
  min-height: 86px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 9px 6px;
  border: 1px solid color-mix(in srgb, hsl(calc(var(--score) * 1.2) 82% 42%) 42%, #ffffff);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .48)),
    hsl(calc(var(--score) * 1.2) 82% 46%);
  color: #111827;
  text-align: center;
}

.dashboard-month-completion-day small {
  color: rgba(17, 24, 39, .68);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.dashboard-month-completion-day em {
  color: #111827;
  font-size: 18px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.dashboard-month-completion-day b {
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-month-completion-day strong {
  color: rgba(17, 24, 39, .72);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.dashboard-month-completion-day > i {
  color: rgba(71, 85, 105, .72);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dashboard-month-completion-day.weekend {
  border-color: rgba(244, 114, 182, .26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .50)),
    color-mix(in srgb, hsl(calc(var(--score) * 1.2) 82% 46%) 82%, #ffe4e6);
}

.dashboard-month-completion-day.empty {
  border-color: #e5e7eb;
  background: #f8fafc;
  color: #94a3b8;
}

.dashboard-month-completion-day.empty.planned {
  border-color: #e5e7eb;
  background: #f8fafc;
  color: #111827;
}

.dashboard-month-completion-day.empty.planned b {
  color: #111827;
  font-size: 14px;
}

.dashboard-month-completion-day.empty.planned strong {
  color: #64748b;
}

.dashboard-month-completion-day.empty.weekend {
  border-color: #ffe4e6;
  background: #fff7f8;
}

.dashboard-month-completion-day.empty.planned.weekend {
  border-color: #ffe4e6;
  background: #fff7f8;
}

.dashboard-month-completion-day.empty b {
  min-height: 14px;
}

.dashboard-month-completion-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .28);
}

.dashboard-month-completion-modal {
  width: min(580px, 100%);
  max-height: min(620px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.dashboard-month-completion-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.dashboard-month-completion-modal-head div {
  display: grid;
  gap: 4px;
}

.dashboard-month-completion-modal-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-month-completion-modal-head small {
  color: #f59e0b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-month-completion-modal-head b {
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

.dashboard-month-completion-modal-head button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dashboard-month-completion-task-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding: 12px;
}

.dashboard-month-completion-task {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.dashboard-month-completion-task > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.dashboard-month-completion-task span {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #16a34a;
  font-size: 13px;
  font-weight: 950;
}

.dashboard-month-completion-task b {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-month-completion-task small {
  color: #64748b;
  font-size: 10px;
  font-weight: 750;
}

.dashboard-month-completion-task em {
  padding: 4px 7px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #4f7d5b;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.dashboard-month-completion-task.overdue {
  border-color: rgba(185, 28, 28, .2);
  background: #fff8f8;
}

.dashboard-month-completion-task.overdue span {
  border-color: rgba(185, 28, 28, .25);
  color: #ad6b6b;
}

.dashboard-month-completion-task.overdue em {
  background: #fef2f2;
  color: #9f5f5f;
}

.dashboard-month-completion-task.done {
  background: #f8fafc;
}

.dashboard-month-completion-task.done.overdue {
  background: #fff8f8;
}

.dashboard-month-completion-task.done b {
  color: #64748b;
}

.dashboard-team-performance {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 247, 237, .72), rgba(255, 255, 255, .94) 44%),
    #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}

.dashboard-team-performance-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  align-items: start;
  gap: 18px;
}

.dashboard-team-performance-head span {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-team-performance-head h3 {
  margin: 10px 0 6px;
  color: #111827;
  font-size: 42px;
  line-height: 1;
}

.dashboard-team-performance-head p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #64748b;
  font-size: 15px;
  font-weight: 700;
}

.dashboard-team-performance-head p i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #94a3b8;
}

.dashboard-team-performance-picker {
  position: relative;
  display: grid;
  gap: 8px;
  z-index: 5;
}

.dashboard-team-performance-picker small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-team-performance-selected {
  min-height: 42px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 5px 9px;
  border: 1px solid #fed7aa;
  border-radius: 9px;
  background: #fff;
  color: #111827;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.dashboard-team-performance-selected span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #fed7aa;
  border-radius: 50%;
  background: #fff7ed;
  color: #9a3412;
  font-size: 11px;
  font-weight: 950;
  text-transform: none;
}

.dashboard-team-performance-selected b {
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-team-performance-selected em {
  color: #f97316;
  font-style: normal;
  font-weight: 950;
}

.dashboard-team-performance-picker.open .dashboard-team-performance-selected {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .14);
}

.dashboard-team-performance-picker input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-weight: 800;
  outline: none;
}

.dashboard-team-performance-picker input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .16);
}

.dashboard-team-performance-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 172px;
  overflow: auto;
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .1);
}

.dashboard-team-performance-options[hidden] {
  display: none;
}

.dashboard-team-performance-options button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.dashboard-team-performance-options button[hidden] {
  display: none;
}

.dashboard-team-performance-options button span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #f8fafc;
  font-size: 15px;
  text-transform: none;
}

.dashboard-team-performance-options button b {
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-team-performance-options button.active {
  border-color: #fdba74;
  background: #fff7ed;
}

.dashboard-team-performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 8px;
}

.dashboard-team-performance-day {
  min-height: 58px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 7px 4px;
  border: 1px solid color-mix(in srgb, hsl(calc(var(--score) * 1.2) 82% 42%) 42%, #ffffff);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .48)),
    hsl(calc(var(--score) * 1.2) 82% 46%);
  color: #111827;
  font: inherit;
  cursor: pointer;
}

.dashboard-team-performance-day small {
  color: rgba(17, 24, 39, .68);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.dashboard-team-performance-day b {
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-team-performance-day em {
  color: rgba(17, 24, 39, .56);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.dashboard-team-performance-day.empty {
  border-color: #e5e7eb;
  background: #f8fafc;
  color: #94a3b8;
  cursor: default;
}

.dashboard-team-performance-day.empty b {
  min-height: 14px;
}

.dashboard-team-performance-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .34);
  backdrop-filter: blur(4px);
}

.dashboard-team-performance-modal {
  width: min(560px, 100%);
  max-height: min(680px, calc(100vh - 48px));
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, .28);
}

.dashboard-team-performance-modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: start;
}

.dashboard-team-performance-modal-head span {
  display: block;
  color: #f97316;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-team-performance-modal-head h3 {
  margin: 4px 0 5px;
  color: #111827;
  font-size: 22px;
  line-height: 1.1;
}

.dashboard-team-performance-modal-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-team-performance-modal-head button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.dashboard-team-performance-task-list {
  display: grid;
  gap: 8px;
}

.dashboard-team-performance-task {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.dashboard-team-performance-task span {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 950;
}

.dashboard-team-performance-task.done span {
  background: #dcfce7;
  color: #16a34a;
}

.dashboard-team-performance-task b {
  overflow: hidden;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-team-performance-task small {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-my-projects-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(249, 115, 22, .2);
  border-radius: 10px;
  background:
    linear-gradient(135deg, #111827 0%, #1f2937 58%, #7c2d12 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .14);
  color: #f8fafc;
}

.dashboard-my-projects-copy span {
  display: block;
  color: #fdba74;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-my-projects-copy b {
  display: block;
  margin: 8px 0 4px;
  color: #fff;
  font-size: 48px;
  line-height: 1;
}

.dashboard-my-projects-copy p {
  margin: 0;
  color: rgba(248, 250, 252, .74);
  font-size: 14px;
  font-weight: 700;
}

.dashboard-my-projects-progress {
  display: grid;
  grid-template-columns: 84px minmax(0, 110px);
  align-items: center;
  gap: 14px;
}

.dashboard-my-projects-progress i {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #111827 0 58%, transparent 60%),
    conic-gradient(#f97316 calc(var(--value) * 1%), rgba(255, 255, 255, .16) 0);
  font-style: normal;
}

.dashboard-my-projects-progress em {
  color: #fff;
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
}

.dashboard-my-projects-progress strong,
.dashboard-my-projects-progress small {
  display: block;
}

.dashboard-my-projects-progress strong {
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.dashboard-my-projects-progress small {
  margin-top: 6px;
  color: rgba(248, 250, 252, .68);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.dashboard-training-progress {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
  color: #111827;
}

.dashboard-training-progress-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: 14px;
}

.dashboard-training-progress-main span {
  display: block;
  margin-bottom: 6px;
  color: #f97316;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-training-progress-main b {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.dashboard-training-progress-main small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.dashboard-training-progress-main i {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 56%, transparent 58%),
    conic-gradient(#f97316 calc(var(--value) * 1%), #e5e7eb 0);
  font-style: normal;
}

.dashboard-training-progress-main em {
  color: #111827;
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
}

.dashboard-training-progress-list {
  display: grid;
  gap: 10px;
}

.dashboard-training-progress-metric {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.dashboard-training-progress-metric > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff7ed;
  color: #f97316;
  font-size: 15px;
  font-weight: 900;
}

.dashboard-training-progress-metric b,
.dashboard-training-progress-metric small {
  display: block;
}

.dashboard-training-progress-metric b {
  color: #111827;
  font-size: 14px;
}

.dashboard-training-progress-metric small {
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-training-progress-metric strong {
  color: #111827;
  font-size: 15px;
  white-space: nowrap;
}

.dashboard-training-progress-metric i {
  grid-column: 2 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.dashboard-training-progress-metric i em {
  width: calc(var(--value) * 1%);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #f97316, #f59e0b 52%, #facc15);
}

.dashboard-custom-blocks {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}

.dashboard-custom-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 14px;
}

.dashboard-custom-head span {
  display: block;
  color: #f97316;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-custom-head h3 {
  margin: 5px 0 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.1;
}

.dashboard-custom-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.dashboard-custom-add input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.dashboard-custom-empty {
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-custom-block {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fffaf5);
}

.dashboard-custom-block-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-custom-block-head b,
.dashboard-custom-block-head small {
  display: block;
}

.dashboard-custom-block-head b {
  color: #111827;
  font-size: 15px;
  font-weight: 950;
}

.dashboard-custom-block-head small {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
}

.dashboard-custom-delete {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 16px;
  font-weight: 900;
}

.dashboard-custom-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
  gap: 6px;
}

.dashboard-custom-day {
  min-height: 38px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  padding: 4px 2px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font: inherit;
  line-height: 1;
}

.dashboard-custom-day span {
  font-size: 11px;
  font-weight: 850;
}

.dashboard-custom-day b {
  min-height: 12px;
  color: #f97316;
  font-size: 12px;
  font-weight: 950;
}

.dashboard-custom-day.checked {
  border-color: rgba(249, 115, 22, .42);
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  color: #9a3412;
}

.dashboard-custom-day.today {
  box-shadow: inset 0 0 0 2px rgba(249, 115, 22, .28);
}

button.dashboard-custom-day.today {
  cursor: pointer;
}

.dashboard-custom-day.future {
  opacity: .56;
}

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

.dashboard-block-card {
  min-height: 180px;
  display: grid;
  gap: 18px;
  text-align: left;
}

.dashboard-block-card:hover {
  border-color: rgba(245, 158, 11, .58);
  transform: translateY(-1px);
}

.dashboard-block-metrics,
.dashboard-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-block-metrics span,
.dashboard-detail-metrics div {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.dashboard-block-metrics b,
.dashboard-detail-metrics b {
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.dashboard-block-metrics small,
.dashboard-detail-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.dashboard-detail-panel {
  display: grid;
  gap: 14px;
}

.dashboard-detail-title {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.dashboard-detail-title h3,
.dashboard-detail-title p {
  margin: 0;
}

.dashboard-period-actions {
  align-items: end;
}

.dashboard-date-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.dashboard-date-field input {
  min-height: 36px;
  padding: 0 10px;
}

.dashboard-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr)) auto;
  gap: 12px;
  align-items: start;
}

.dashboard-filter-dropdown {
  position: relative;
}

.dashboard-filter-dropdown summary {
  min-height: 40px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #111827;
  background: #fff;
  cursor: pointer;
  list-style: none;
}

.dashboard-filter-dropdown summary::-webkit-details-marker {
  display: none;
}

.dashboard-filter-dropdown summary::after {
  content: "⌄";
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.dashboard-filter-dropdown[open] summary {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .12);
}

.dashboard-filter-dropdown[open] summary::after {
  transform: rotate(180deg);
}

.dashboard-filter-dropdown summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-filter-dropdown summary b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
}

.dashboard-filter-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 10px;
  min-width: 260px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dashboard-filter-options {
  max-height: 220px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: auto;
}

.dashboard-filter-check {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #334155;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-filter-check:has(input:checked) {
  border-color: #f59e0b;
  color: #92400e;
  background: #fff7ed;
}

.dashboard-filter-check input {
  width: 14px;
  height: 14px;
  accent-color: #f59e0b;
}

.dashboard-filter-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.dashboard-filter-actions .ghost,
.dashboard-filter-reset {
  min-height: 30px;
}

.dashboard-filter-reset {
  align-self: start;
  white-space: nowrap;
}

.dashboard-chart {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.compact-head {
  margin-bottom: 0;
}

.dashboard-chart-total {
  padding: 6px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-line-chart {
  position: relative;
  min-height: 190px;
  padding: 8px 8px 28px;
  overflow: hidden;
}

.dashboard-line-chart svg {
  width: 100%;
  height: 170px;
  display: block;
}

.dashboard-line {
  fill: none;
  stroke: #f59e0b;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.dashboard-line-fill {
  fill: rgba(251, 191, 36, .16);
  stroke: none;
}

.dashboard-line-points {
  position: absolute;
  inset: 8px 8px 28px;
  pointer-events: none;
}

.dashboard-line-points button {
  position: absolute;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  color: transparent;
  background: #f59e0b;
  box-shadow: 0 5px 14px rgba(245, 158, 11, .28);
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.dashboard-line-points button:hover,
.dashboard-line-points button:focus-visible {
  z-index: 3;
  background: #d97706;
}

.dashboard-line-points button > span {
  position: absolute;
  top: -23px;
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-line-points small {
  position: absolute;
  bottom: calc(100% + 18px);
  left: 50%;
  min-width: 126px;
  padding: 7px 9px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #111827;
  background: #fffaf0;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 850;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
  text-align: center;
}

.dashboard-line-points button:hover small,
.dashboard-line-points button:focus-visible small {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dashboard-line-axis {
  position: absolute;
  inset: auto 8px 0;
  height: 22px;
}

.dashboard-line-axis span {
  position: absolute;
  top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  transform: translateX(-50%);
  white-space: nowrap;
}

.dashboard-line-points button:only-child {
  left: 50%;
}

.dashboard-line-points button:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 3px;
}

.dashboard-line-points button span {
  line-height: 1;
}

.dashboard-line-points button[title$=": 0"] {
  background: #cbd5e1;
  box-shadow: none;
}

.dashboard-line-points button[title$=": 0"] > span {
  color: var(--muted);
}

.dashboard-line-chart:has(.dashboard-line-points button:hover) .dashboard-line {
  stroke: #d97706;
}

.dashboard-line-chart:has(.dashboard-line-points button:focus-visible) .dashboard-line {
  stroke: #d97706;
}

.dashboard-line-points button::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.dashboard-line-points button span,
.dashboard-line-points button small {
  cursor: default;
}

.dashboard-line-chart,
.dashboard-line-chart * {
  box-sizing: border-box;
}

.dashboard-line-chart svg polyline {
  transition: stroke .15s ease;
}

.dashboard-line-chart button {
  font-size: 12px;
}

.dashboard-employee-table .tr {
  min-width: 880px;
}

.dashboard-events-table .tr {
  min-width: 1180px;
}

.dashboard-events-table small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.panel h3 {
  font-size: 20px;
  line-height: 1.15;
  font-weight: 850;
}

.panel p {
  margin-top: 4px;
  font-size: 14px;
}

.timeline {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  align-items: center;
}

.timeline span {
  min-height: 68px;
  padding: 14px;
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  font-weight: 720;
}

.timeline i {
  display: none;
}

.status-list,
.role-list,
.log-list {
  display: grid;
  gap: 10px;
}

.status-list div,
.role-list div {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface-soft);
}

.status-list div:hover,
.role-list div:hover {
  border-color: var(--line);
}

.role-editor-list {
  gap: 14px;
}

.role-list .role-editor {
  gap: 14px;
}

.role-main {
  display: grid;
  grid-template-columns: minmax(160px, .6fr) minmax(220px, 1fr);
  gap: 10px;
}

.role-main label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.role-main input[readonly] {
  color: var(--muted);
  background: #eef3f7;
}

.menu-permissions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.menu-permission-group {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.menu-permission-group > b {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.menu-permission-group > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.permission-toggle {
  min-width: 0;
}

.permission-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.permission-toggle span {
  min-height: 38px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.permission-toggle input:checked + span {
  border-color: rgba(245, 158, 11, .45);
  color: #111827;
  background: #fff3d6;
}

.permission-toggle input:disabled + span {
  cursor: default;
  opacity: .78;
}

.role-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.role-actions span {
  font-size: 12px;
  font-weight: 850;
}

.user-edit-row input,
.user-edit-row select {
  width: 100%;
  min-height: 38px;
}

.user-edit-row .row-actions {
  align-items: center;
}

.user-access-picker {
  position: relative;
}

.user-access-picker[open] {
  z-index: 60;
}

.user-access-picker summary {
  min-height: 38px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.user-access-picker summary b,
.user-access-picker summary small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-access-picker summary b {
  font-size: 12px;
  font-weight: 950;
}

.user-access-picker summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
}

.user-access-picker summary::-webkit-details-marker {
  display: none;
}

.user-access-picker summary::after {
  content: "⌄";
  color: var(--muted);
  font-size: 12px;
  grid-row: 1 / span 2;
  grid-column: 2;
}

.user-access-menu {
  width: min(360px, calc(100vw - 48px));
  max-height: 360px;
  position: absolute;
  z-index: 70;
  top: calc(100% + 6px);
  right: 0;
  overflow: auto;
  padding: 8px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .18);
}

.user-access-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.user-access-mode button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.user-access-mode button.active {
  border-color: rgba(245, 158, 11, .45);
  color: #111827;
  background: #fff3d6;
}

.user-access-mode button:disabled {
  cursor: default;
  opacity: .72;
}

.user-access-menu-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.profile-page {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: start;
}

.profile-card {
  display: grid;
  gap: 18px;
}

.profile-head {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.profile-avatar {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff3d6;
  font-size: 54px;
}

.profile-head h3 {
  font-size: 26px;
}

.profile-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-meta div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.profile-meta b,
.profile-meta span {
  display: block;
}

.profile-meta span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.avatar-choice {
  min-height: 112px;
  padding: 12px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.avatar-choice span {
  font-size: 42px;
}

.avatar-choice b {
  font-size: 13px;
}

.avatar-choice.active,
.avatar-choice:hover {
  border-color: rgba(245, 158, 11, .55);
  background: #fff3d6;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 18px;
}

.catalog-tree {
  align-self: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-soft);
}

.catalog-tree-section {
  display: grid;
  gap: 4px;
}

.catalog-tree-section + .catalog-tree-section {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.catalog-tree-section h3 {
  margin: 0 0 3px;
  padding: 0 2px;
  color: #111827;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.catalog-head-actions {
  justify-content: flex-end;
}

.catalog-search-input {
  width: 190px;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.catalog-search-input:focus {
  border-color: rgba(245, 158, 11, .72);
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .14);
}

.catalog-search-empty {
  margin-top: 10px;
}

.catalog-group-page {
  align-self: start;
}

.catalog-kind-list {
  display: grid;
  gap: 12px;
}

.catalog-kind-card {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.catalog-kind-card h4 {
  margin: 5px 0;
  font-size: 18px;
}

.catalog-kind-card p {
  margin: 0;
  color: var(--muted);
}

.tree-group + .tree-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.tree-title {
  padding: 9px 8px;
  color: #111827;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.tree-item {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 680;
}

.tree-collapsible {
  display: grid;
  gap: 4px;
}

.tree-collapsible summary {
  min-height: 42px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #1f2937;
  cursor: pointer;
  list-style: none;
}

.tree-collapsible summary::-webkit-details-marker {
  display: none;
}

.tree-collapsible summary:hover,
.tree-collapsible.active summary,
.tree-collapsible[open] summary {
  border-color: rgba(245, 158, 11, .22);
  background: #fff8eb;
}

.tree-collapsible-arrow {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(100, 116, 139, .24);
  border-radius: 999px;
  background: #fff;
}

.tree-collapsible-arrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(-45deg) translate(-1px, -1px);
  transition: transform .16s ease;
}

.tree-collapsible[open] .tree-collapsible-arrow::before {
  transform: rotate(45deg) translate(-1px, -1px);
}

.tree-collapsible summary b,
.tree-collapsible summary small {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-collapsible summary b {
  font-size: 12px;
  font-weight: 900;
}

.tree-collapsible summary small {
  margin-top: 2px;
  color: #64748b;
  font-size: 10px;
  font-weight: 760;
}

.tree-collapsible .tree-item {
  width: calc(100% - 25px);
  margin-left: 25px;
}

.tree-employee-title {
  margin: 8px 8px 2px;
  color: #64748b;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.12;
}

.tree-employee-title + .tree-item {
  margin-top: 0;
}

.tree-item.has-count {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.tree-item.has-count span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-count-badge {
  min-width: 24px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
}

.tree-item.active,
.tree-item:hover {
  color: var(--text);
  background: #eef6f2;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.summary-row div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.summary-row b {
  display: block;
  color: #111827;
  font-size: 24px;
  line-height: 1;
}

.summary-row span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.content-processing-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-processing-filters {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.content-processing-filter-field {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 240px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.content-processing-filter-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.content-processing-filter-menu {
  position: relative;
  min-width: 240px;
}

.content-processing-filter-menu[open] {
  z-index: 60;
}

.content-processing-filter-menu summary {
  position: relative;
  min-height: 38px;
  display: grid;
  align-items: center;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-processing-filter-menu summary::-webkit-details-marker {
  display: none;
}

.content-processing-filter-menu summary::after {
  content: "⌄";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-weight: 950;
}

.content-processing-filter-menu[open] summary {
  border-color: rgba(245, 158, 11, .58);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .12);
}

.content-processing-filter-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 70;
  width: min(340px, calc(100vw - 32px));
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.content-processing-filter-panel input {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font-size: 13px;
  font-weight: 820;
}

.content-processing-filter-panel input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .14);
  outline: none;
}

.content-processing-filter-list {
  max-height: 240px;
  display: grid;
  gap: 5px;
  overflow: auto;
}

.content-processing-filter-list button {
  min-height: 38px;
  display: grid;
  gap: 2px;
  justify-items: start;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.content-processing-filter-list button[hidden] {
  display: none;
}

.content-processing-filter-list button:hover,
.content-processing-filter-list button.active {
  border-color: #fdba74;
  background: #fff7ed;
}

.content-processing-filter-list b {
  font-size: 12px;
  font-weight: 920;
}

.content-processing-filter-list small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.content-processing-filter-check {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}

.content-processing-filter-check span {
  min-height: 38px;
}

.content-processing-bulk-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.content-processing-bulk-toolbar.active {
  border-color: #f7d991;
  background: #fffbeb;
}

.content-processing-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

.content-processing-select-cell {
  justify-content: center;
  align-items: center !important;
}

.content-processing-select-cell input {
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
}

.content-processing-table {
  overflow-x: auto;
}

.content-processing-table .tr {
  min-width: 1650px;
}

.content-processing-sort-button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 950;
  text-align: left;
  cursor: pointer;
}

.content-processing-sort-button b {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 950;
}

.content-processing-sort-button.active b {
  color: #f59e0b;
}

.table-panel {
  overflow: hidden;
}

.users-panel {
  overflow: visible;
}

.user-workplaces-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.user-workplaces-tree {
  position: sticky;
  top: 104px;
}

.operation-norms-panel {
  display: grid;
  gap: 14px;
}

.operation-norms-head {
  margin-bottom: 0;
}

.norming-dashboard-panel {
  display: grid;
  gap: 14px;
}

.norming-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}

.norming-dashboard-grid div {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.norming-dashboard-grid b {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.norming-dashboard-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.norming-dashboard-table .tr {
  min-width: 940px;
}

.norming-activity-table .tr {
  min-width: 1120px;
}

.norming-activity-table small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.office-tasks-panel {
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.office-project-page-panel {
  overflow-x: auto;
  overflow-y: hidden;
}

.office-project-page-panel .office-projects-section {
  min-width: 1080px;
}

.office-project-page-panel .office-projects-head {
  grid-template-columns: minmax(560px, 1fr) auto;
}

.office-project-page-panel .office-project-create {
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 190px) auto;
}

.office-tasks-head {
  margin-bottom: 0;
}

.office-week-actions span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.office-task-mode-toggle {
  min-height: 36px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.office-task-mode-toggle button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: #64748b;
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.office-task-mode-toggle button:hover {
  color: #111827;
  background: #eef3f8;
}

.office-task-mode-toggle button.active {
  color: #111827;
  background: linear-gradient(180deg, #fff7ed, #fed7aa);
  box-shadow: 0 6px 14px rgba(245, 158, 11, .18);
}

.office-task-add {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(145px, 170px) auto minmax(210px, 260px) auto;
  align-items: end;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.office-task-add input {
  min-height: 40px;
  background: #fff;
}

.office-task-add-date {
  min-width: 0;
}

.office-task-add-tomorrow {
  min-height: 40px;
  align-self: end;
}

.office-task-add-owner {
  min-width: 0;
}

.office-task-add-owner .office-task-select-field {
  gap: 0;
}

.office-task-add-owner .office-task-select-field > span {
  display: none;
}

.office-task-add-owner .office-task-select summary {
  min-height: 40px;
  background: #fff;
}

.office-task-add-owner .office-task-select-menu {
  right: auto;
  min-width: 260px;
  max-width: min(320px, calc(100vw - 40px));
}

.office-task-work-zone {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.office-task-work-drop {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 9px 12px;
  border: 1px dashed #c7d6e4;
  border-radius: 8px;
  background: #fff;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.office-task-work-zone.has-task .office-task-work-drop {
  cursor: pointer;
}

.office-task-work-drop.drop-active {
  border-color: #d97706;
  background: #fff8eb;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .18);
}

.office-task-work-zone.has-task .office-task-work-drop {
  border-style: solid;
  border-color: #f59e0b;
  background: #fff8eb;
}

.office-task-stop-work {
  min-height: 54px;
  align-self: stretch;
  white-space: nowrap;
}

.office-task-work-drop span,
.office-task-work-timers span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.office-task-work-drop b {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.office-task-work-timers {
  display: grid;
  grid-template-columns: repeat(3, minmax(128px, auto));
  gap: 8px;
}

.office-task-work-timers div {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.office-task-work-timer.has-tooltip {
  position: relative;
}

.office-task-work-timers b {
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.office-task-work-tooltip {
  min-width: 280px;
  min-height: 0;
  max-width: min(420px, calc(100vw - 32px));
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: grid;
  align-content: stretch;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(203, 213, 225, .92);
  border-radius: 10px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity .14s ease, transform .14s ease;
}

.office-task-work-timer.has-tooltip:hover .office-task-work-tooltip,
.office-task-work-timer.has-tooltip:focus-within .office-task-work-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.office-task-work-tooltip strong {
  color: #111827;
  font-size: 12px;
  font-weight: 950;
}

.office-task-work-tooltip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-top: 7px;
  border-top: 1px solid #edf2f7;
}

.office-task-work-tooltip-row em {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-task-work-tooltip-row b {
  color: #f97316;
  font-size: 12px;
}

.office-task-work-tooltip-empty {
  color: #64748b;
  font-size: 12px;
  font-weight: 780;
}

.office-tasks-workbench {
  min-width: 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  min-height: 520px;
}

.office-projects-workbench {
  min-width: 1080px;
  align-items: start;
}

.office-projects-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.office-project-board-stack {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.user-workplaces-sidebar {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.user-workplaces-settings {
  padding-bottom: 10px;
}

.workplace-settings-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.workplace-visibility-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.workplace-visibility-summary-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.workplace-visibility-summary-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workplace-visibility-summary-card span {
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.workplace-visibility-summary-card b {
  min-width: 30px;
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

.workplace-visibility-summary-card p {
  min-height: 34px;
  margin: 0;
  color: #334155;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.workplace-visibility-summary-card.visible {
  background: #f0fdf4;
  border-color: rgba(34, 197, 94, .24);
}

.workplace-visibility-summary-card.visible b {
  background: #dcfce7;
  color: #166534;
}

.workplace-visibility-summary-card.hidden {
  background: #fff7ed;
  border-color: rgba(245, 158, 11, .26);
}

.workplace-visibility-summary-card.hidden b {
  background: #ffedd5;
  color: #9a3412;
}

.workplace-visibility-table .tr {
  min-width: 980px;
}

.workplace-visibility-table .tr span {
  min-height: 54px;
}

.workplace-visibility-table .tr span.workplace-visibility-employee {
  display: grid;
  align-content: center;
  gap: 3px;
}

.workplace-visibility-table b,
.workplace-visibility-table small {
  display: block;
}

.workplace-visibility-table small {
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.workplace-section-toggle {
  display: inline-flex;
}

.workplace-section-toggle span {
  min-width: 68px;
  justify-content: center;
}

.workplace-section-toggle input:not(:checked) + span {
  border-color: #d9e2ec;
  background: #f8fafc;
  color: #64748b;
}

.workplace-visibility-empty {
  display: block;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.workplace-visibility-picker {
  width: 100%;
  position: relative;
}

.workplace-visibility-picker summary {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  list-style: none;
}

.workplace-visibility-picker summary::-webkit-details-marker {
  display: none;
}

.workplace-visibility-picker[open] summary {
  border-color: rgba(245, 158, 11, .45);
  background: #fff7e6;
  color: #92400e;
}

.workplace-visibility-picker .workplace-visibility-list {
  width: min(360px, 72vw);
  position: absolute;
  z-index: 35;
  top: calc(100% + 6px);
  left: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}

.workplace-visibility-list {
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow: auto;
  padding: 0 8px 8px;
}

.office-task-filter-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  height: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.office-task-filter-panel.has-project-owner {
  grid-template-rows: calc(var(--office-board-height, 520px) * .58 + 50px) minmax(0, calc(var(--office-board-height, 520px) * .42));
  align-content: start;
  gap: 0;
}

.office-task-filter-main {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: hidden;
}

.office-task-filter-group {
  display: grid;
  gap: 8px;
}

.office-task-filter-group + .office-task-filter-group {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(203, 213, 225, .82);
}

.office-task-filter-group.deferred-group {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 2px solid rgba(100, 116, 139, .28);
}

.office-task-filter {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border-radius: 7px;
  color: #334155;
  background: transparent;
  text-align: left;
  font-weight: 850;
}

.office-task-filter:hover,
.office-task-filter.active {
  color: #111827;
  background: #eef6f2;
}

.office-task-filter span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.office-task-filter i {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-style: normal;
  font-size: 13px;
}

.office-task-filter b {
  min-width: 28px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #92400e;
  font-size: 12px;
}

.office-task-filter b.hot {
  background: #fef3c7;
}

.office-task-project-owner-panel {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: 8px;
  padding-top: 14px;
  border-top: 2px solid rgba(245, 158, 11, .42);
  overflow: hidden;
}

.office-task-project-owner-head {
  display: grid;
  gap: 3px;
  padding: 0 4px;
}

.office-task-project-owner-head span {
  color: #64748b;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.office-task-project-owner-head b {
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-task-project-owner-list {
  min-height: 0;
  display: grid;
  gap: 7px;
  align-content: start;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.office-task-project-owner-option {
  min-height: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-left: 4px solid rgba(148, 163, 184, .58);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  color: #334155;
  text-align: left;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease, transform .14s ease;
}

.office-task-project-owner-option:hover,
.office-task-project-owner-option:focus-visible {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.office-task-project-owner-option.active {
  border-color: rgba(245, 158, 11, .52);
  border-left-color: #f59e0b;
  background: linear-gradient(180deg, #fff8eb, #ffffff);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, .12);
}

.office-task-project-owner-option span {
  overflow: hidden;
  color: #111827;
  font-size: 11px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-task-project-owner-option b {
  min-width: 23px;
  min-height: 21px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 10px;
  font-weight: 950;
}

.office-task-project-owner-option.active b {
  background: #f59e0b;
  color: #111827;
}

.office-project-list-panel {
  min-height: 420px;
}

.office-project-list-panel .office-project-filter strong {
  display: block;
  overflow: visible;
  line-height: 1.15;
  white-space: normal;
}

.office-project-list-panel .office-project-filter em {
  min-height: 0;
}

.office-project-filter span {
  align-items: flex-start;
}

.office-project-filter em {
  min-width: 0;
  display: grid;
  gap: 2px;
  color: inherit;
  font-style: normal;
}

.office-project-filter strong,
.office-project-filter small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-project-list-panel .office-project-filter strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.office-project-filter strong {
  color: inherit;
  font-size: 12px;
  font-weight: 880;
}

.office-project-filter small {
  color: #64748b;
  font-size: 10px;
  font-weight: 760;
}

.office-project-filter.completed {
  color: #64748b;
}

.office-project-filter.completed:hover,
.office-project-filter.completed.active {
  background: #f1f5f9;
}

.office-project-filter.completed i {
  border-color: rgba(34, 197, 94, .34);
  background: #ecfdf5;
  color: #16a34a;
  font-weight: 950;
}

.office-project-filter.completed b.hot {
  background: #eef2f7;
  color: #64748b;
}

.office-project-filter-empty {
  padding: 10px 8px;
  border: 1px dashed rgba(148, 163, 184, .55);
  border-radius: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
}

.office-project-planning-section {
  gap: 12px;
}

.office-project-planning-head {
  grid-template-columns: minmax(420px, 1fr) auto;
}

.office-project-planning-forms {
  display: grid;
  gap: 7px;
  width: min(100%, 1040px);
  margin-top: 4px;
}

.office-project-planning-create {
  display: grid;
  align-items: center;
  gap: 8px;
}

.office-project-planning-project-create {
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 240px) auto auto;
}

.office-project-planning-block-create {
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px) minmax(170px, 240px) auto;
}

.office-project-planning-create input[name="title"],
.office-project-planning-create select {
  min-height: 36px;
}

.office-project-planning-create .office-task-select-field {
  min-width: 0;
  gap: 0;
}

.office-project-planning-create .office-task-select-field > span {
  display: none;
}

.office-project-planning-create .office-task-select summary {
  min-height: 36px;
  background: #fff;
}

.office-project-planning-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.office-project-planning-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.office-project-planning-tabs button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.office-project-planning-tabs button:hover,
.office-project-planning-tabs button.active {
  border-color: rgba(245, 158, 11, .45);
  background: #fff7e6;
  color: #92400e;
}

.office-project-planning-rail {
  min-height: 420px;
}

.office-project-completed-projects {
  margin-top: 8px;
  border-top: 1px solid rgba(100, 116, 139, .22);
}

.office-project-completed-projects > summary {
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  position: relative;
  color: #475569;
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
  list-style: none;
  text-transform: uppercase;
}

.office-project-completed-projects > summary::-webkit-details-marker {
  display: none;
}

.office-project-completed-projects > summary::before {
  content: "›";
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  position: absolute;
  color: #64748b;
  font-size: 18px;
  transform: translateX(-3px);
  transition: transform .18s ease;
}

.office-project-completed-projects > summary span {
  padding-left: 18px;
}

.office-project-completed-projects[open] > summary::before {
  transform: translateX(-3px) rotate(90deg);
}

.office-project-completed-projects > summary b {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-size: 11px;
}

.office-project-completed-list {
  display: grid;
  gap: 5px;
  padding: 0 0 8px;
}

.office-project-planning-owner-label {
  min-height: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 8px 6px;
  width: 100%;
  border-top: 1px solid rgba(100, 116, 139, .22);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
  text-align: left;
  text-transform: uppercase;
}

.office-project-planning-owner-label:hover,
.office-project-planning-owner-label.active {
  background: #fff8eb;
  color: #92400e;
}

.office-project-planning-owner-label span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-project-planning-owner-label b {
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
  font-size: 11px;
}

.office-project-planning-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}

.office-project-planning-board {
  grid-template-columns: minmax(0, 1fr);
}

.office-project-planning-owner-column .planning-row {
  background: linear-gradient(180deg, rgba(248, 250, 252, .72), rgba(255, 255, 255, .9));
  cursor: grab;
  touch-action: none;
}

.office-project-planning-owner-column .planning-row:hover {
  background: linear-gradient(180deg, rgba(248, 250, 252, .72), rgba(255, 255, 255, .9));
}

.office-project-planning-owner-column .planning-row.dragging {
  background: #fff8eb;
  box-shadow: inset 3px 0 0 #f59e0b;
  opacity: .78;
}

.office-project-planning-grid {
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(var(--project-day-width) - 1px), rgba(219, 229, 238, .95) calc(var(--project-day-width) - 1px), rgba(219, 229, 238, .95) var(--project-day-width)),
    #fff;
}

.office-project-month-group-cell {
  padding: 4px 8px;
  border-right: 1px solid rgba(203, 213, 225, .9);
  border-bottom: 1px solid rgba(203, 213, 225, .9);
  background: linear-gradient(180deg, #fff7e6, #fffaf0);
}

.office-project-month-group-cell b {
  color: #92400e;
  font-size: 11px;
  text-transform: capitalize;
}

.office-project-month-group-cell span {
  color: #b45309;
  font-size: 9px;
}

.office-project-week-cell b {
  text-transform: capitalize;
}

.office-project-planning-cell {
  container-type: inline-size;
  z-index: 4;
  min-width: 0;
  align-self: center;
  display: grid;
  align-content: center;
  justify-items: stretch;
  gap: 3px;
  margin: 7px 8px;
}

.office-project-planning-cell.dragging {
  z-index: 10;
  opacity: .82;
}

.office-project-planning-cell.resizing {
  z-index: 10;
}

.office-project-planning-bar {
  width: 100%;
  min-width: 48px;
  max-width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) minmax(58px, auto) 18px;
  align-content: center;
  align-items: stretch;
  margin: 0;
  padding: 0;
  border-color: rgba(245, 158, 11, .22);
  border-radius: 8px;
  cursor: grab;
  overflow: hidden;
  touch-action: none;
}

.office-project-planning-bar.project {
  grid-template-columns: 18px 24px minmax(0, 1fr) 18px;
  min-height: 36px;
  border-color: rgba(180, 83, 9, .72);
  background: linear-gradient(90deg, #d97706, #f59e0b 58%, #fbbf24);
  box-shadow: 0 8px 16px rgba(180, 83, 9, .22);
}

.office-project-planning-bar.project.collapsed {
  background: linear-gradient(90deg, #b45309, #d97706 58%, #f59e0b);
}

.office-project-planning-bar.project.completed {
  border-color: rgba(148, 163, 184, .68);
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
  box-shadow: 0 6px 14px rgba(100, 116, 139, .16);
}

.office-project-planning-bar.project.completed.collapsed {
  background: linear-gradient(90deg, #64748b, #94a3b8);
}

.office-project-planning-bar .office-project-planning-toggle {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
  align-self: center;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.office-project-planning-bar .office-project-planning-toggle span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transform: none;
  line-height: 1;
  padding: 0;
  font-size: 13px;
}

.office-project-planning-bar .office-project-planning-toggle.expanded span {
  transform: translateY(-1px);
}

.office-project-planning-bar .office-project-resize {
  min-width: 18px;
  min-height: 100%;
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  text-decoration: none;
  touch-action: none;
}

.office-project-planning-bar .office-project-resize::before,
.office-project-planning-bar .office-project-resize::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 2px;
  height: 14px;
  border-radius: 999px;
  background: currentColor;
  opacity: .74;
  transform: translateY(-50%);
}

.office-project-planning-bar .office-project-resize::before {
  left: calc(50% - 3px);
}

.office-project-planning-bar .office-project-resize::after {
  left: calc(50% + 2px);
}

.office-project-planning-bar .office-project-resize.left {
  color: rgba(255, 255, 255, .95);
}

.office-project-planning-bar .office-project-resize.right {
  color: rgba(255, 255, 255, .95);
}

.office-project-planning-bar.block .office-project-resize {
  background: transparent;
}

.office-project-planning-bar.block .office-project-resize.left {
  color: rgba(71, 85, 105, .58);
}

.office-project-planning-bar.block .office-project-resize.right {
  color: rgba(71, 85, 105, .58);
}

.office-project-planning-bar .office-project-resize:hover,
.office-project-planning-bar .office-project-resize:focus-visible {
  background: transparent;
  outline: none;
  text-decoration: none;
}

.office-project-planning-bar.key {
  border-color: rgba(180, 83, 9, .72);
  background: linear-gradient(90deg, #d97706, #f59e0b 58%, #fbbf24);
  box-shadow: 0 8px 16px rgba(180, 83, 9, .22);
}

.office-project-planning-bar.block {
  grid-template-columns: 18px 24px minmax(0, 1fr) 24px 18px;
  min-height: 28px;
  border-color: rgba(59, 130, 246, .18);
  background: linear-gradient(90deg, rgba(239, 246, 255, .84), rgba(255, 255, 255, .74));
  box-shadow: 0 4px 10px rgba(37, 99, 235, .06);
}

.office-project-planning-bar.block .office-project-planning-toggle {
  grid-column: 2;
  border-color: rgba(148, 163, 184, .36);
  background: rgba(255, 255, 255, .78);
  color: #92400e;
}

.office-project-planning-bar.block > b {
  grid-column: 3;
  justify-self: start;
  padding: 0 6px;
  text-align: left;
}

.office-project-planning-add-task {
  grid-column: 4;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  z-index: 3;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(245, 158, 11, .32) !important;
  border-radius: 999px;
  background: #fff8eb !important;
  color: #92400e !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1;
  text-decoration: none !important;
}

.office-project-planning-add-task:hover,
.office-project-planning-add-task:focus-visible {
  border-color: rgba(245, 158, 11, .58) !important;
  background: #ffedd5 !important;
  color: #111827 !important;
}

.office-project-planning-cell.task {
  margin-block: 5px;
  z-index: 5;
}

.office-project-planning-task-row {
  width: 100%;
  min-height: 30px !important;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 4px 8px !important;
  border: 1px solid rgba(203, 213, 225, .82) !important;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92) !important;
  color: #334155 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .07) !important;
  cursor: grab !important;
  text-align: left;
  text-decoration: none !important;
  touch-action: none;
}

.office-project-planning-task-row span {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .46);
  border-radius: 999px;
  color: #16a34a;
  font-size: 11px;
  font-weight: 950;
}

.office-project-planning-task-row b,
.office-project-planning-task-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-project-planning-task-row b {
  color: #111827;
  font-size: 11px;
  font-weight: 900;
}

.office-project-planning-task-row small {
  color: #64748b;
  font-size: 9px;
  font-weight: 850;
}

.office-project-planning-task-row.done {
  background: #f8fafc !important;
}

.office-project-planning-task-row.done b {
  color: #64748b;
}

.office-project-planning-task-deadline {
  min-width: 0;
  padding: 0 8px;
  overflow: hidden;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.15;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-project-planning-task-deadline.on-time {
  color: #6b8f73;
}

.office-project-planning-task-deadline.overdue {
  color: #ad6b6b;
}

.office-project-planning-task-deadline.missing {
  color: #94a3b8;
}

.office-project-planning-meta {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 20px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.office-project-planning-meta.project {
  color: rgba(146, 64, 14, .62);
}

.office-project-planning-meta.block {
  gap: 4px;
  padding: 0 6px;
  color: #94a3b8;
}

.office-project-planning-meta span {
  flex: 0 0 auto;
  min-width: max-content;
}

.office-project-planning-meta .office-project-planning-edit {
  flex: 0 0 auto;
  min-width: max-content;
  min-height: 14px;
  align-self: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: currentColor;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.office-project-planning-meta .office-project-planning-edit:hover,
.office-project-planning-meta .office-project-planning-edit:focus-visible {
  color: #92400e;
  outline: none;
}

@container (max-width: 180px) {
  .office-project-planning-bar.project,
  .office-project-group-row.office-project-planning-bar.project {
    grid-template-columns: 18px 24px minmax(0, 1fr) 18px;
    min-height: 34px;
  }

  .office-project-planning-bar.block,
  .office-project-group-row.office-project-planning-bar.block {
    grid-template-columns: 18px 24px minmax(0, 1fr) 24px 18px;
    min-height: 28px;
  }

  .office-project-planning-bar .office-project-resize {
    grid-row: auto;
  }

  .office-project-planning-bar .office-project-resize.left {
    grid-column: 1;
  }

  .office-project-planning-bar .office-project-resize.right {
    grid-column: -2 / -1;
  }

  .office-project-planning-bar.project .office-project-planning-toggle {
    grid-column: 2;
  }

  .office-project-planning-bar.project > b {
    grid-column: 3;
  }

  .office-project-planning-bar.block > b {
    grid-column: 3;
  }

  .office-project-planning-bar.block .office-project-planning-add-task {
    grid-column: 4;
  }

  .office-project-planning-bar.block .office-project-resize.right {
    grid-column: 5;
  }

  .office-project-planning-bar.block > span {
    display: none;
  }

  .office-project-planning-meta {
    gap: 5px;
    padding: 0 18px;
  }
}

@container (max-width: 120px) {
  .office-project-planning-meta {
    gap: 4px;
    padding: 0 12px;
  }
}

.office-project-planning-bar.block.color-0 {
  border-color: rgba(59, 130, 246, .22);
  background: linear-gradient(90deg, rgba(219, 234, 254, .82), rgba(239, 246, 255, .7));
}

.office-project-planning-bar.block.color-1 {
  border-color: rgba(16, 185, 129, .22);
  background: linear-gradient(90deg, rgba(209, 250, 229, .78), rgba(236, 253, 245, .68));
}

.office-project-planning-bar.block.color-2 {
  border-color: rgba(14, 165, 233, .22);
  background: linear-gradient(90deg, rgba(224, 242, 254, .82), rgba(240, 249, 255, .7));
}

.office-project-planning-bar.block.color-3 {
  border-color: rgba(168, 85, 247, .2);
  background: linear-gradient(90deg, rgba(243, 232, 255, .76), rgba(250, 245, 255, .68));
}

.office-project-planning-bar.block.color-4 {
  border-color: rgba(236, 72, 153, .18);
  background: linear-gradient(90deg, rgba(252, 231, 243, .76), rgba(253, 242, 248, .68));
}

.office-project-planning-bar.block.color-5 {
  border-color: rgba(234, 179, 8, .22);
  background: linear-gradient(90deg, rgba(254, 249, 195, .76), rgba(254, 252, 232, .68));
}

.office-project-planning-bar.block.color-6 {
  border-color: rgba(20, 184, 166, .22);
  background: linear-gradient(90deg, rgba(204, 251, 241, .76), rgba(240, 253, 250, .68));
}

.office-project-planning-bar.block.color-7 {
  border-color: rgba(100, 116, 139, .2);
  background: linear-gradient(90deg, rgba(226, 232, 240, .72), rgba(248, 250, 252, .7));
}

.office-project-planning-bar.project > b,
.office-project-planning-bar.project > span {
  color: #fff;
}

.office-project-planning-bar.project .office-project-planning-toggle {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.office-project-planning-complete-mark {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  margin-right: 6px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #16a34a;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.office-project-planning-cell.completed .office-project-planning-meta {
  color: #94a3b8;
}

.office-project-planning-bar > b,
.office-project-planning-bar > span {
  min-width: 0;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  align-self: center;
}

.office-project-planning-bar > b {
  font-size: 12px;
}

.office-project-planning-bar > span {
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
}

.office-project-planning-cell button {
  min-height: 16px;
  margin-top: -2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #92400e;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: none;
}

.office-project-planning-cell button:hover {
  background: transparent;
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.office-task-board {
  min-width: 0;
  min-height: 0;
  position: relative;
  display: grid;
  grid-template-columns: 220px repeat(7, minmax(180px, 220px));
  gap: 8px;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  transition: grid-template-columns .28s ease;
  scrollbar-gutter: stable;
}

.office-task-board-stack {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
}

.office-task-schedule-section {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, var(--office-board-height, 520px)) 18px;
  gap: 6px;
  overflow: hidden;
}

.office-task-date-only-section {
  grid-template-rows: auto minmax(var(--office-board-height, 520px), auto) 18px;
  overflow: visible;
}

.office-task-schedule-section > .office-task-board:first-child {
  grid-row: 1 / 3;
}

.office-task-all-split-section {
  grid-template-rows:
    auto
    calc(var(--office-board-height, 520px) * .58)
    auto
    calc(var(--office-board-height, 520px) * .42)
    18px;
  gap: 8px;
  overflow: visible;
}

.office-task-all-split-section.projects-collapsed {
  grid-template-rows:
    auto
    calc(var(--office-board-height, 520px) * .58)
    auto;
}

.office-task-all-split-section.office-task-date-only-section {
  grid-template-rows:
    auto
    minmax(calc(var(--office-board-height, 520px) * .58), auto)
    auto
    minmax(calc(var(--office-board-height, 520px) * .42), auto)
    18px;
}

.office-task-all-split-section.office-task-date-only-section.projects-collapsed {
  grid-template-rows:
    auto
    minmax(calc(var(--office-board-height, 520px) * .58), auto)
    auto;
}

.office-task-all-split-section > .office-task-board:first-child {
  grid-row: auto;
}

.office-task-split-label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.office-task-split-label::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, rgba(203, 213, 225, .9), rgba(203, 213, 225, 0));
}

.office-task-project-split-divider {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px auto auto auto minmax(24px, 1fr);
  align-items: center;
  gap: 8px;
  color: #475569;
}

.office-task-project-split-line {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, .72));
}

.office-task-project-split-line:last-child {
  background: linear-gradient(90deg, rgba(148, 163, 184, .72), rgba(148, 163, 184, 0));
}

.office-task-project-split-divider strong {
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.office-task-project-split-divider em {
  min-width: 24px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.office-task-project-section-toggle {
  min-height: 24px;
  padding: 0 9px;
  border-color: rgba(245, 158, 11, .36);
  background: #fff7e6;
  color: #92400e;
  font-size: 10px;
  font-weight: 950;
}

.office-task-project-section-toggle:hover,
.office-task-project-section-toggle:focus-visible {
  border-color: rgba(245, 158, 11, .62);
  background: #ffefd1;
  color: #78350f;
}

.office-task-assigned-toolbar {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  align-items: end;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.office-task-assigned-toolbar > div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.office-task-assigned-toolbar b {
  color: #111827;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.office-task-assigned-toolbar span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.office-task-assigned-owner-select .office-task-select-field > span {
  font-size: 10px;
  text-transform: uppercase;
}

.office-task-assigned-owner-select .office-task-select summary {
  min-height: 36px;
}

.office-task-board.backlog-expanded {
  grid-template-columns: minmax(720px, calc(100vw - 620px)) repeat(7, minmax(180px, 220px));
}

.office-task-assigned-by-me-board {
  grid-template-columns: 220px repeat(7, minmax(180px, 220px));
}

.office-task-date-kanban-list {
  position: relative;
  min-height: 0;
  height: 100%;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  overflow-y: auto;
}

.office-task-date-only-board,
.office-task-assigned-by-me-board {
  height: auto;
  align-items: stretch;
  overflow: visible;
}

.office-task-date-only-board .office-task-column:not(.collapsed),
.office-task-assigned-by-me-board .office-task-column {
  height: auto;
  min-height: 100%;
  align-content: start;
  grid-template-rows: max-content max-content;
  overflow: visible;
}

.office-task-date-only-board.backlog-expanded .office-task-backlog {
  height: 100%;
  min-height: 100%;
  align-content: stretch;
  grid-template-rows: max-content minmax(0, 1fr);
  overflow: hidden;
}

.office-task-date-only-board.backlog-expanded .office-kanban-wrap,
.office-task-date-only-board.backlog-expanded .office-kanban-board,
.office-task-date-only-board.backlog-expanded .office-kanban-group,
.office-task-date-only-board.backlog-expanded .office-kanban-group-lanes,
.office-task-date-only-board.backlog-expanded .office-kanban-lane,
.office-task-date-only-board.backlog-expanded .office-kanban-add-card {
  min-height: 100%;
}

.office-task-date-only-board .office-task-column-head,
.office-task-assigned-by-me-board .office-task-column-head {
  align-self: start;
}

.office-task-date-only-board .office-task-date-kanban-list,
.office-task-assigned-by-me-board .office-task-date-kanban-list,
.office-task-date-only-board .office-task-backlog-list,
.office-task-assigned-by-me-board .office-task-backlog-list {
  height: auto;
  min-height: 0;
  overflow-y: visible;
}

.office-task-date-kanban-list.drop-active {
  outline: 2px solid rgba(245, 158, 11, .28);
  outline-offset: -4px;
  background: #fff8eb;
}

.office-task-date-only-column.drop-active,
.office-task-assigned-date-column.drop-active {
  outline: 2px solid rgba(245, 158, 11, .28);
  outline-offset: -4px;
}

.office-task-date-insert-marker {
  position: absolute;
  left: 12px;
  right: 12px;
  z-index: 18;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity .08s ease;
}

.office-task-date-insert-marker.active {
  opacity: 1;
}

.office-task-date-insert-marker span {
  position: relative;
  display: block;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 158, 11, .18), #f59e0b 18%, #f59e0b 82%, rgba(245, 158, 11, .18));
  box-shadow: 0 0 0 1px rgba(245, 158, 11, .12), 0 6px 16px rgba(245, 158, 11, .18);
}

.office-task-date-insert-marker span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #f59e0b;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 10px rgba(217, 119, 6, .28);
}

.office-task-date-only-board .office-task-date-kanban-list {
  padding: 9px;
}

.office-task-date-only-column.collapsed .office-task-date-kanban-list {
  padding: 0;
  overflow: hidden;
}

.office-task-project-board {
  border-radius: 10px;
  padding: 8px;
  border: 1px solid rgba(203, 213, 225, .74);
  background: linear-gradient(180deg, #f8fafc, #eef6ff);
}

.office-task-project-board .office-task-column {
  border-color: rgba(186, 205, 226, .9);
  background: rgba(255, 255, 255, .86);
}

.office-task-project-board .office-task-column-head {
  min-height: 42px;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
}

.office-task-project-board .office-task-date-kanban-list {
  padding: 8px;
  background: rgba(255, 255, 255, .72);
}

.office-task-project-filter-column .office-task-column-head b,
.office-task-project-date-column .office-task-column-head b {
  font-size: 12px;
}

.office-task-project-filter-column {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.office-task-project-filter-list {
  min-height: 0;
  height: 100%;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 8px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(248, 251, 255, .9)),
    #fff;
}

.office-task-date-only-board .office-task-project-filter-list {
  height: auto;
  overflow-y: visible;
}

.office-task-project-filter-option {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 10px 8px;
  border: 1px solid rgba(203, 213, 225, .92);
  border-left: 4px solid rgba(148, 163, 184, .62);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: #334155;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .05);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}

.office-task-project-filter-option:hover,
.office-task-project-filter-option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, .32);
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .1);
}

.office-task-project-filter-option.active {
  border-color: rgba(245, 158, 11, .54);
  border-left-color: #f59e0b;
  background: linear-gradient(180deg, #fff8eb, #ffffff);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, .12), 0 12px 26px rgba(15, 23, 42, .1);
}

.office-task-project-filter-option span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.office-task-project-filter-option b {
  color: #111827;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.18;
  overflow-wrap: anywhere;
  white-space: normal;
}

.office-task-project-filter-option em {
  min-width: 24px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  margin-top: 1px;
}

.office-task-project-filter-option.active em {
  background: #f59e0b;
  color: #111827;
}

.office-task-project-filter-empty {
  padding: 12px 8px;
  border: 1px dashed rgba(148, 163, 184, .62);
  border-radius: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.office-task-project-board .office-task-card {
  min-height: 74px;
  box-shadow: 0 7px 16px rgba(15, 23, 42, .07);
}

.office-task-project-board .office-task-project-line {
  color: #475569;
  font-size: 9px;
  font-weight: 850;
}

.office-task-column {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.office-task-date-column.collapsed {
  width: 64px;
  min-width: 64px;
}

.office-task-date-column.collapsed .office-task-column-head {
  min-height: 100%;
  display: grid;
  align-content: start;
  justify-items: center;
  grid-template-rows: auto auto 1fr;
  padding: 9px 6px;
}

.office-task-date-column.collapsed .office-task-column-head b {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.office-task-date-column.collapsed .office-task-column-actions {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.office-task-date-column.collapsed .office-task-timeline {
  display: none;
}

.office-task-collapsed-date-list {
  width: 100%;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(203, 213, 225, .72);
}

.office-task-collapsed-date-chip {
  width: 34px;
  min-height: 25px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #f4c56d;
  border-left-width: 4px;
  border-left-color: #f59e0b;
  border-radius: 999px;
  background: #fff8eb;
  color: #1f2937;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(15, 23, 42, .08);
  cursor: pointer;
}

.office-task-collapsed-date-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, .12);
}

.office-task-collapsed-date-chip.color-1 {
  border-color: #99f6e4;
  border-left-color: #0f766e;
  background: #f0fdfa;
}

.office-task-collapsed-date-chip.color-2 {
  border-color: #bfdbfe;
  border-left-color: #2563eb;
  background: #eff6ff;
}

.office-task-collapsed-date-chip.color-3 {
  border-color: #fecdd3;
  border-left-color: #be123c;
  background: #fff1f2;
}

.office-task-collapsed-date-chip.color-4 {
  border-color: #ddd6fe;
  border-left-color: #7c3aed;
  background: #f5f3ff;
}

.office-task-collapsed-date-chip.color-5 {
  border-color: #cbd5e1;
  border-left-color: #475569;
  background: #f8fafc;
}

.office-task-collapsed-date-list em {
  min-width: 34px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.office-task-column-head {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.office-task-column-head b {
  display: grid;
  gap: 2px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.05;
}

.office-task-column-head b small {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.office-task-date-column.weekend .office-task-column-head {
  background: #fff6f7;
}

.office-task-date-column.weekend .office-task-column-head b small {
  color: #be6470;
}

.office-task-column-head span {
  min-width: 26px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.office-task-column-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.office-task-column-actions .ghost {
  min-height: 30px;
  padding: 0 8px;
  font-size: 11px;
}

.office-task-column-actions .office-backlog-toggle {
  border-color: transparent;
  background: linear-gradient(135deg, #ffd166, #f59e0b 55%, #ea7a00);
  color: #111827;
  box-shadow: 0 12px 26px rgba(245, 158, 11, .28);
}

.office-task-column-actions .office-backlog-toggle:hover,
.office-task-column-actions .office-backlog-toggle:focus-visible {
  border-color: transparent;
  background: linear-gradient(135deg, #ffd166, #f59e0b 55%, #ea7a00);
  color: #111827;
}

.office-day-collapse {
  width: 30px;
  padding: 0;
}

.office-week-collapse-days {
  border-color: #f4c56d;
  background: #fff8eb;
  color: #92400e;
}

.office-week-collapse-days:hover,
.office-week-collapse-days:focus-visible {
  border-color: #f59e0b;
  background: #ffefd1;
  color: #78350f;
}

.office-task-backlog-list,
.office-task-timeline {
  position: relative;
  min-height: 0;
  height: 100%;
}

.office-task-backlog-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.office-task-backlog-list[hidden],
.office-task-backlog .office-kanban-wrap[hidden],
.office-task-project-board[hidden] {
  display: none;
}

.office-task-backlog-list.drop-active {
  outline: 2px solid rgba(245, 158, 11, .28);
  outline-offset: -4px;
  background: #fff8eb;
}

.office-task-backlog.drop-active .office-task-backlog-list {
  outline: 2px solid rgba(245, 158, 11, .28);
  outline-offset: -4px;
  background: #fff8eb;
}

.office-kanban-wrap {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  padding: 10px;
  background: #fbfdff;
  overflow: hidden;
}

.office-kanban-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 4px;
  padding: 8px;
}

.office-kanban-add input {
  min-height: 34px;
  padding: 0 8px;
  font-size: 12px;
}

.office-kanban-add button {
  width: 30px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 7px;
  background: #fff;
  color: #64748b;
  font-weight: 900;
}

.office-kanban-board {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-auto-columns: max-content;
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
}

.office-kanban-group {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(203, 213, 225, .88);
  border-radius: 10px;
  background: rgba(248, 250, 252, .72);
}

.office-kanban-group.due {
  border-color: rgba(245, 158, 11, .34);
  background: #fffaf0;
}

.office-kanban-group.floating {
  background: #fbfdff;
}

.office-kanban-group-head {
  min-height: 24px;
  display: flex;
  align-items: center;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.office-kanban-group-lanes {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-auto-columns: minmax(165px, 200px);
  grid-auto-flow: column;
  gap: 10px;
}

.office-kanban-add-card {
  min-height: 0;
  height: 100%;
  display: grid;
  align-content: start;
  border: 1px dashed #c7d6e4;
  border-radius: 8px;
  background: rgba(248, 250, 252, .72);
}

.office-kanban-add-card > button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  margin: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 16px;
  font-weight: 900;
}

.office-kanban-add-card > button:hover,
.office-kanban-add button:hover {
  border-color: #f59e0b;
  color: #111827;
}

.office-kanban-lane {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.office-kanban-lane.system {
  border-color: #fed7aa;
  background: #fffaf0;
}

.office-kanban-lane.system .office-kanban-lane-head {
  background: #fff7e6;
}

.office-kanban-lane.system .office-kanban-lane-actions span {
  background: #ffedd5;
  color: #9a3412;
}

.office-kanban-lane-head {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.office-kanban-lane-head b {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-kanban-lane-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.office-kanban-lane-actions span {
  min-width: 24px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}

.office-kanban-lane-actions button,
.office-kanban-title-form button {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.office-kanban-lane-actions button:hover,
.office-kanban-title-form button:hover {
  border-color: #f59e0b;
  color: #111827;
}

.office-kanban-lane-actions button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.office-kanban-title-form {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px;
}

.office-kanban-title-form input {
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.office-kanban-lane-body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 8px;
  min-width: 0;
  overflow-y: auto;
  transition: background .16s ease, outline-color .16s ease;
}

.office-task-board-resize {
  height: 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: ns-resize;
  font-size: 10px;
  font-weight: 850;
}

.office-task-board-resize::before,
.office-task-board-resize::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, #dbe5ee, transparent);
}

.office-task-board-resize span {
  width: 34px;
  height: 4px;
  display: inline-block;
  border-radius: 999px;
  background: #dbe5ee;
}

.office-task-board-resize b {
  display: none;
}

.office-task-board-resize:hover span {
  background: #f59e0b;
}

.office-projects-section {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.office-projects-head {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.office-project-title-stack {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.office-projects-head h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

.office-projects-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.office-project-create-stack {
  display: grid;
  gap: 8px;
  width: min(100%, 1120px);
  margin-top: 4px;
}

.office-project-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 0;
}

.office-project-create {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(150px, 210px) auto;
  gap: 8px;
}

.office-project-create input {
  min-height: 36px;
}

.office-project-create > select,
.office-process-actions select,
.office-process-month-days input {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #c9d8e6;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  color: #111827;
  font-size: 12px;
  font-weight: 850;
  outline: none;
  transition: border-color .14s ease, box-shadow .14s ease;
}

.office-project-create > select:focus,
.office-process-actions select:focus,
.office-process-month-days input:focus {
  border-color: rgba(245, 158, 11, .62);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .13);
}

.office-project-create .office-task-select-field,
.office-project-owner-picker .office-task-select-field,
.office-process-create .office-task-select-field {
  min-width: 0;
  gap: 4px;
}

.office-project-create .office-task-select-field > span,
.office-project-owner-picker .office-task-select-field > span,
.office-process-create .office-task-select-field > span {
  display: none;
}

.office-project-create .office-task-select summary,
.office-project-owner-picker .office-task-select summary,
.office-process-create .office-task-select summary {
  min-height: 36px;
  background: #fff;
}

.office-project-create .office-task-select-menu,
.office-project-owner-picker .office-task-select-menu,
.office-process-create .office-task-select-menu {
  right: auto;
  min-width: 230px;
  max-width: min(280px, calc(100vw - 40px));
}

.office-project-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.office-project-add input {
  min-height: 38px;
}

.office-project-tools-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.office-project-day-width-control {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(203, 213, 225, .72);
  border-radius: 10px;
  background: rgba(248, 250, 252, .82);
}

.office-project-day-width-control > span {
  padding: 0 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.office-project-day-width-control button {
  width: 30px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

.office-project-day-width-control button:hover {
  border-color: rgba(245, 158, 11, .5);
  color: #111827;
}

.office-project-day-width-control label {
  min-width: 82px;
  min-height: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 0 7px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #fff;
}

.office-project-day-width-control input {
  width: 54px;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.office-project-day-width-control input:focus {
  box-shadow: none;
}

.office-project-day-width-control i {
  color: #94a3b8;
  font-style: normal;
  font-size: 10px;
  font-weight: 850;
}

.office-project-link-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.office-project-link-toolbar .ghost.active {
  border-color: rgba(245, 158, 11, .55);
  background: #fff7e6;
  color: #92400e;
}

.office-project-link-toolbar span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.office-processes-section {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid rgba(203, 213, 225, .8);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, .95), rgba(255, 255, 255, .82)),
    #fff;
}

.office-processes-head {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(520px, 1.2fr);
  gap: 14px;
  align-items: start;
}

.office-processes-head h3 {
  margin: 0;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
}

.office-processes-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.office-process-actions {
  display: grid;
  gap: 8px;
}

.office-process-create,
.office-process-run {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) auto;
  gap: 8px;
}

.office-process-run {
  grid-template-columns: minmax(180px, 1fr) auto;
}

.office-process-template-list,
.office-process-run-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}

.office-process-template-card,
.office-process-run-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.office-process-template-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.office-process-template-card span,
.office-process-run-head span,
.office-process-stage-card span,
.office-process-template-card small,
.office-process-run-head small,
.office-process-stage-card small {
  color: #64748b;
  font-size: 10px;
  font-weight: 820;
}

.office-process-template-card b,
.office-process-run-head b,
.office-process-stage-card b {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-process-template-card b {
  margin: 2px 0;
  font-size: 13px;
  font-weight: 900;
}

.office-process-schedule {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(226, 232, 240, .88);
  padding-top: 8px;
}

.office-process-schedule summary {
  cursor: pointer;
  color: #334155;
  font-size: 11px;
  font-weight: 850;
}

.office-process-weekdays {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.office-process-month-days {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.office-process-month-days span {
  color: #64748b;
  font-size: 10px;
  font-weight: 820;
}

.office-process-run-card {
  grid-column: 1 / -1;
}

.office-process-run-card.collapsed {
  gap: 0;
}

.office-process-run-card.done {
  border-color: rgba(34, 197, 94, .24);
  background: linear-gradient(180deg, rgba(240, 253, 244, .78), rgba(255, 255, 255, .94));
}

.office-process-run-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.office-process-run-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.office-process-kanban {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 420px);
  grid-template-columns: none;
  justify-content: start;
  gap: 10px;
  overflow-x: auto;
  max-width: 100%;
  padding: 0 2px 6px;
}

.office-process-kanban-column {
  min-width: 320px;
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr);
  border: 1px solid rgba(203, 213, 225, .86);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}

.office-process-kanban-column.drop-active {
  border-color: rgba(245, 158, 11, .58);
  background: #fff8eb;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .14);
}

.office-process-kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(226, 232, 240, .92);
  background: rgba(248, 250, 252, .82);
}

.office-process-kanban-head b,
.office-process-kanban-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-process-kanban-head b {
  color: #111827;
  font-size: 12px;
  font-weight: 900;
}

.office-process-kanban-head span {
  color: #64748b;
  font-size: 10px;
  font-weight: 820;
}

.office-process-kanban-body {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 120px;
  padding: 8px;
}

.office-process-task-card {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 9px;
  background: #fff;
  color: #111827;
  text-align: left;
  cursor: grab;
  box-shadow: 0 7px 16px rgba(15, 23, 42, .06);
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease, transform .14s ease;
}

.office-process-task-card:hover {
  border-color: rgba(245, 158, 11, .48);
  background: #fffaf0;
  transform: translateY(-1px);
}

.office-process-task-card.dragging {
  opacity: .55;
}

.office-process-task-card.done {
  border-color: rgba(34, 197, 94, .3);
  background: #f0fdf4;
}

.office-process-task-card.blocked {
  border-style: dashed;
  background: #f8fafc;
}

.office-process-task-card b,
.office-process-task-card span,
.office-process-task-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-process-task-card b {
  color: #111827;
  font-size: 12px;
  font-weight: 900;
}

.office-process-task-card span,
.office-process-task-card small {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.office-process-stage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.office-process-stage-card {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: 9px;
  background: #f8fafc;
}

.office-process-stage-card.current {
  border-color: rgba(245, 158, 11, .45);
  background: #fff8eb;
  box-shadow: inset 3px 0 0 rgba(245, 158, 11, .72);
}

.office-process-stage-card.done {
  border-color: rgba(34, 197, 94, .3);
  background: #f0fdf4;
}

.office-process-stage-card button {
  min-height: 28px;
  padding: 5px 7px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  text-align: left;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.office-process-stage-card button:hover {
  border-color: rgba(245, 158, 11, .46);
  background: #fffaf0;
}

.office-process-empty {
  padding: 10px;
  border: 1px dashed rgba(148, 163, 184, .44);
  border-radius: 9px;
  color: #64748b;
  background: rgba(248, 250, 252, .7);
  font-size: 12px;
  font-weight: 800;
}

.office-process-empty.compact {
  padding: 8px;
  font-size: 11px;
}

.office-project-selector {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  margin-top: 2px;
}

.office-project-active-settings {
  grid-template-columns: minmax(0, 1fr);
}

.office-project-active-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 10px;
  background: #fff7e6;
}

.office-project-active-card.muted {
  border-color: rgba(203, 213, 225, .9);
  background: #f8fafc;
}

.office-project-active-card.key-project {
  border-color: rgba(16, 185, 129, .34);
  background: linear-gradient(180deg, #ecfdf5, rgba(255, 255, 255, .94));
}

.office-project-active-card.completed-project {
  border-color: rgba(148, 163, 184, .55);
  background: linear-gradient(180deg, #f1f5f9, rgba(255, 255, 255, .96));
}

.office-project-active-card span,
.office-project-active-card small {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.office-project-active-card > small {
  align-self: center;
}

.office-project-active-card b {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-project-key-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(16, 185, 129, .34);
  border-radius: 999px;
  background: #d1fae5;
  color: #047857;
  font-size: 10px;
  font-weight: 950;
}

.office-project-title-control {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.office-project-title-line {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px auto;
  align-items: center;
  gap: 5px;
}

.office-project-title-line.with-completion {
  grid-template-columns: minmax(0, 1fr) auto 28px auto;
}

.office-project-complete-button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(22, 163, 74, .34);
  border-radius: 7px;
  background: #ecfdf5;
  color: #15803d;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.office-project-complete-button:hover {
  border-color: rgba(22, 163, 74, .55);
  background: #dcfce7;
}

.completed-project .office-project-complete-button {
  border-color: rgba(59, 130, 246, .3);
  background: #eff6ff;
  color: #1d4ed8;
}

.office-project-title-line.confirming-delete .danger {
  border-color: rgba(239, 68, 68, .35);
  background: #fff1f2;
}

.office-project-title-form {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px 28px;
  align-items: center;
  gap: 5px;
}

.office-project-title-form[hidden],
.office-project-title-line[hidden] {
  display: none;
}

.office-project-title-form input {
  min-height: 30px;
  padding: 0 9px;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.office-project-icon-btn {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  color: #475569;
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  transition: border-color .14s ease, background .14s ease, color .14s ease, transform .14s ease;
}

.office-project-icon-btn:hover {
  border-color: rgba(245, 158, 11, .48);
  background: #fff;
  color: #111827;
  transform: translateY(-1px);
}

.office-project-icon-btn.danger {
  color: #dc2626;
}

.office-project-icon-btn.success {
  color: #15803d;
}

.office-project-delete-button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(239, 68, 68, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  color: #dc2626;
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  transition: border-color .14s ease, background .14s ease, color .14s ease, transform .14s ease;
  white-space: nowrap;
}

.office-project-delete-button:hover,
.office-project-delete-button:focus-visible {
  border-color: rgba(239, 68, 68, .42);
  background: #fff1f2;
  color: #991b1b;
  outline: none;
  transform: translateY(-1px);
}

.office-project-delete-modal {
  width: min(460px, 100%);
}

.office-project-delete-modal-step {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, .22);
  border-radius: 8px;
  background: #fffaf0;
}

.office-project-delete-modal-step.final {
  border-color: rgba(239, 68, 68, .24);
  background: #fff1f2;
}

.office-project-delete-modal-step[hidden] {
  display: none;
}

.office-project-delete-modal-step strong {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
}

.office-project-delete-modal-step p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 780;
  line-height: 1.45;
}

.office-project-delete-modal .editor-actions[hidden] {
  display: none;
}

.office-project-delete-box {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.office-project-delete-confirm {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px 28px;
  align-items: center;
  gap: 6px;
}

.office-project-delete-confirm[hidden] {
  display: none;
}

.office-project-delete-confirm span {
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
}

.office-project-owner-picker {
  display: grid;
  gap: 4px;
}

.office-project-active-card .office-project-owner-picker {
  max-width: 100%;
}

.office-project-visibility-picker {
  position: relative;
}

.office-project-visibility-picker summary {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid #c9d8e6;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  list-style: none;
}

.office-project-visibility-picker summary::-webkit-details-marker {
  display: none;
}

.office-project-visibility-picker[open] summary {
  border-color: rgba(245, 158, 11, .55);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .12);
}

.office-project-visibility-picker summary span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.office-project-visibility-picker summary b {
  margin: 0;
  color: #111827;
  font-size: 12px;
  font-weight: 880;
}

.office-project-visibility-list {
  width: min(360px, calc(100vw - 42px));
  max-height: 280px;
  position: absolute;
  z-index: 45;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  gap: 6px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}

.office-project-visibility-list label {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.office-project-visibility-list label:hover {
  background: #f8fafc;
}

.office-project-visibility-list label.owner {
  cursor: default;
  background: #fff7e6;
}

.office-project-visibility-list input {
  accent-color: #f59e0b;
}

.office-project-visibility-list span,
.office-project-visibility-list b,
.office-project-visibility-list small {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-project-visibility-list b {
  color: #111827;
  font-size: 12px;
  font-weight: 850;
}

.office-project-visibility-list small {
  margin-top: 2px;
  color: #64748b;
  font-size: 10px;
  font-weight: 760;
}

.office-project-tabs {
  min-width: 0;
  display: grid;
  grid-auto-columns: minmax(180px, 220px);
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.office-project-tabs button {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
}

.office-project-tabs button:hover,
.office-project-tabs button.active {
  border-color: rgba(245, 158, 11, .42);
  background: #fffaf0;
}

.office-project-tabs b,
.office-project-tabs span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-project-tabs b {
  color: #111827;
  font-size: 12px;
  font-weight: 950;
}

.office-project-tabs span,
.office-project-tabs small {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.office-project-board {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 0;
  overflow: visible;
  padding-bottom: 8px;
}

.office-project-board.office-project-planning-board {
  grid-template-columns: minmax(0, 1fr);
}

.office-project-board.without-owner-column {
  grid-template-columns: minmax(0, 1fr);
}

.office-project-scroll-column {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.office-project-top-scroll {
  min-width: 0;
  height: 16px;
  overflow: auto hidden;
  scrollbar-gutter: stable;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.office-project-top-scroll-spacer {
  height: 1px;
}

.office-project-persistent-scroll {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  margin: 0;
  padding: 5px 2px;
  border: 1px solid rgba(203, 213, 225, .92);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  accent-color: #f59e0b;
}

.office-project-persistent-scroll:disabled {
  opacity: .45;
  cursor: default;
}

.office-project-persistent-scroll:focus-visible {
  outline: 2px solid rgba(245, 158, 11, .26);
  outline-offset: 2px;
}

.office-project-persistent-scroll::-webkit-slider-runnable-track {
  height: 8px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .08);
}

.office-project-persistent-scroll::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 42px;
  height: 14px;
  margin-top: -4px;
  border: 1px solid rgba(148, 163, 184, .72);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 4px 10px rgba(15, 23, 42, .13);
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}

.office-project-persistent-scroll:hover::-webkit-slider-thumb,
.office-project-persistent-scroll:focus-visible::-webkit-slider-thumb {
  border-color: rgba(245, 158, 11, .72);
  background: linear-gradient(180deg, #fffaf0, #ffffff);
  box-shadow: 0 5px 12px rgba(245, 158, 11, .18);
}

.office-project-persistent-scroll::-moz-range-track {
  height: 8px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .08);
}

.office-project-persistent-scroll::-moz-range-thumb {
  width: 42px;
  height: 14px;
  border: 1px solid rgba(148, 163, 184, .72);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 4px 10px rgba(15, 23, 42, .13);
}

.office-project-persistent-scroll:hover::-moz-range-thumb,
.office-project-persistent-scroll:focus-visible::-moz-range-thumb {
  border-color: rgba(245, 158, 11, .72);
  background: linear-gradient(180deg, #fffaf0, #ffffff);
  box-shadow: 0 5px 12px rgba(245, 158, 11, .18);
}

.office-project-scroll {
  position: relative;
  min-width: 0;
  overflow: auto hidden;
  scrollbar-gutter: stable;
}

.office-project-owner-column {
  z-index: 5;
  position: relative;
  display: grid;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #fff;
  overflow: hidden;
}

.office-project-owner-head {
  display: grid;
  align-content: center;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  background: #fff3d6;
  color: #111827;
  font-size: 12px;
  font-weight: 950;
}

.office-project-owner-cell {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid rgba(226, 232, 240, .82);
  background: rgba(248, 250, 252, .5);
  text-align: left;
}

.office-project-owner-cell:not(.empty) {
  cursor: pointer;
}

.office-project-owner-cell:not(.empty):hover {
  background: #fff8eb;
}

.office-project-owner-cell.link-selected {
  background: #fff3d6;
  box-shadow: inset 3px 0 0 #f59e0b;
}

.office-project-owner-cell b,
.office-project-owner-cell span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-project-owner-cell b {
  color: #111827;
  font-size: 12px;
  font-weight: 950;
}

.office-project-owner-cell span {
  color: #64748b;
  font-size: 10px;
  font-weight: 760;
}

.office-project-owner-cell.project-row {
  background: #fff3d6;
  cursor: pointer;
}

.office-project-owner-cell.project-row b {
  color: #111827;
}

.office-project-owner-cell.project-row span {
  color: #92400e;
}

.office-project-owner-cell.block-row {
  background: rgba(255, 255, 255, .82);
  cursor: grab;
}

.office-project-owner-cell.block-row.dragging {
  background: #fff8eb;
  box-shadow: inset 3px 0 0 #f59e0b;
  opacity: .78;
}

.office-project-owner-cell.blockAssignee-row {
  background: linear-gradient(180deg, rgba(248, 250, 252, .72), rgba(255, 255, 255, .78));
  cursor: default;
}

.office-project-owner-cell.blockAssignee-row:hover {
  background: linear-gradient(180deg, rgba(248, 250, 252, .72), rgba(255, 255, 255, .78));
}

.office-project-owner-cell.blockAssignee-row b {
  color: #64748b;
  font-size: 11px;
}

.office-project-owner-cell.blockAssignee-row span {
  color: #334155;
  font-weight: 850;
}

.office-project-owner-cell.blockAssignee-row.drop-placeholder-row {
  background: rgba(255, 255, 255, .42);
  cursor: default;
}

.office-project-owner-cell.blockAssignee-row.drop-placeholder-row b {
  display: none;
}

.office-project-owner-cell.blockAssignee-row.drop-placeholder-row span {
  color: rgba(100, 116, 139, .58);
  font-size: 10px;
  font-weight: 760;
}

.office-project-grid {
  --project-day-width: 118px;
  position: relative;
  display: grid;
  gap: 0;
  min-width: max-content;
  border: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(var(--project-day-width) - 1px), rgba(219, 229, 238, .95) calc(var(--project-day-width) - 1px), rgba(219, 229, 238, .95) var(--project-day-width)),
    #fff;
  overflow: hidden;
}

.office-project-date-cell {
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 6px 8px;
  border-right: 1px solid rgba(219, 229, 238, .95);
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.office-project-date-cell b {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
}

.office-process-stage-inline-add {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(245, 158, 11, .55);
  border-radius: 999px;
  background: #fff7e6;
  color: #92400e;
  cursor: pointer;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
}

.office-process-stage-inline-add:hover {
  border-color: rgba(217, 119, 6, .82);
  background: #ffedd5;
  color: #111827;
}

.office-project-date-cell span {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 850;
  text-transform: lowercase;
}

.office-project-date-cell.process-step {
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
}

.office-project-date-cell.process-step b {
  color: #334155;
}

.office-project-date-cell.process-step span {
  text-transform: none;
}

.office-project-row {
  border-bottom: 1px solid rgba(226, 232, 240, .82);
  background: rgba(248, 250, 252, .38);
}

.office-project-row:nth-of-type(even) {
  background: rgba(255, 255, 255, .68);
}

.office-project-insert-marker,
.office-project-owner-insert-marker {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 12;
  display: none;
  pointer-events: none;
  transform: translateY(-50%);
}

.office-project-insert-marker.active,
.office-project-owner-insert-marker.active {
  display: block;
}

.office-project-insert-marker::before,
.office-project-owner-insert-marker::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .12);
}

.office-project-insert-marker span,
.office-project-owner-insert-marker span {
  position: relative;
  display: inline-flex;
  max-width: min(420px, calc(100vw - 80px));
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(245, 158, 11, .36);
  border-radius: 999px;
  background: #fff8eb;
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(146, 64, 14, .14);
}

.office-project-insert-marker span {
  margin-left: 12px;
}

.office-project-owner-insert-marker span {
  max-width: calc(100% - 16px);
  margin-left: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.office-project-group-row {
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  min-width: 84px;
  min-height: 34px;
  margin: 8px 6px;
  padding: 0 12px 0 6px;
  border: 1px solid rgba(245, 158, 11, .24);
  border-radius: 999px;
  background: linear-gradient(90deg, #fff7e6, rgba(255, 247, 230, .72));
  box-shadow: 0 8px 18px rgba(146, 64, 14, .08);
  overflow: hidden;
}

.office-project-group-row.collapsed {
  background: linear-gradient(90deg, #fffaf0, rgba(255, 247, 230, .5));
  box-shadow: 0 5px 12px rgba(146, 64, 14, .06);
}

.office-project-group-row.key-project {
  border-color: rgba(16, 185, 129, .4);
  background: linear-gradient(90deg, #ecfdf5, rgba(209, 250, 229, .68));
  box-shadow: 0 8px 18px rgba(5, 150, 105, .12);
}

.office-project-group-row.key-project span {
  color: #047857;
}

.office-project-group-row.process {
  border-color: rgba(59, 130, 246, .2);
  background: linear-gradient(90deg, #eff6ff, rgba(239, 246, 255, .58));
}

.office-project-group-row.process span {
  color: #2563eb;
}

.office-project-row-toggle {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(245, 158, 11, .26);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #92400e;
  cursor: pointer;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.office-project-row-toggle span,
.office-project-block-add span {
  width: 1em;
  height: 1em;
  display: grid;
  place-items: center;
  line-height: 1;
}

.office-project-row-toggle span {
  transform: translateY(-.5px);
}

.office-project-row-toggle:hover {
  border-color: rgba(245, 158, 11, .55);
  background: #fff;
}

.office-project-group-row b,
.office-project-group-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-project-group-row b {
  color: #111827;
  font-size: 13px;
  font-weight: 950;
}

.office-project-group-row span {
  color: #92400e;
  font-size: 11px;
  font-weight: 850;
}

.office-project-group-row.office-project-planning-bar {
  width: 100%;
  min-width: 48px;
  max-width: 100%;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) minmax(58px, auto) 18px;
  gap: 0;
  align-items: stretch;
  align-self: stretch;
  margin: 0;
  padding: 0;
}

.office-project-group-row.office-project-planning-bar.project {
  grid-template-columns: 18px 24px minmax(0, 1fr) 18px;
}

.office-project-group-row.office-project-planning-bar.block {
  grid-template-columns: 18px 24px minmax(0, 1fr) 24px 18px;
}

.office-project-group-row.office-project-planning-bar.block .office-project-planning-toggle {
  grid-column: 2;
}

.office-project-group-row.office-project-planning-bar.block > b {
  grid-column: 3;
  justify-self: start;
  text-align: left;
}

.office-project-group-row.office-project-planning-bar.block .office-project-planning-add-task {
  grid-column: 4;
}

.office-project-group-row.office-project-planning-bar.block .office-project-resize.right {
  grid-column: 5;
}

.office-project-group-row.office-project-planning-bar b {
  padding: 0 8px;
  align-self: center;
  font-size: 12px;
}

/* Planning bars keep their own fills even though they also reuse the generic group-row layout. */
.office-project-group-row.office-project-planning-bar.project {
  border-color: rgba(180, 83, 9, .72);
  background: linear-gradient(90deg, #d97706, #f59e0b 58%, #fbbf24);
  box-shadow: 0 8px 16px rgba(180, 83, 9, .22);
}

.office-project-group-row.office-project-planning-bar.project.collapsed {
  background: linear-gradient(90deg, #b45309, #d97706 58%, #f59e0b);
}

.office-project-group-row.office-project-planning-bar.project.completed {
  border-color: rgba(148, 163, 184, .68);
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
  box-shadow: 0 6px 14px rgba(100, 116, 139, .16);
}

.office-project-group-row.office-project-planning-bar.project.completed.collapsed {
  background: linear-gradient(90deg, #64748b, #94a3b8);
}

.office-project-group-row.office-project-planning-bar.block.color-0 {
  background: linear-gradient(90deg, rgba(219, 234, 254, .82), rgba(239, 246, 255, .7));
}

.office-project-group-row.office-project-planning-bar.block.color-1 {
  background: linear-gradient(90deg, rgba(209, 250, 229, .78), rgba(236, 253, 245, .68));
}

.office-project-group-row.office-project-planning-bar.block.color-2 {
  background: linear-gradient(90deg, rgba(224, 242, 254, .82), rgba(240, 249, 255, .7));
}

.office-project-group-row.office-project-planning-bar.block.color-3 {
  background: linear-gradient(90deg, rgba(243, 232, 255, .76), rgba(250, 245, 255, .68));
}

.office-project-group-row.office-project-planning-bar.block.color-4 {
  background: linear-gradient(90deg, rgba(252, 231, 243, .76), rgba(253, 242, 248, .68));
}

.office-project-group-row.office-project-planning-bar.block.color-5 {
  background: linear-gradient(90deg, rgba(254, 249, 195, .76), rgba(254, 252, 232, .68));
}

.office-project-group-row.office-project-planning-bar.block.color-6 {
  background: linear-gradient(90deg, rgba(204, 251, 241, .76), rgba(240, 253, 250, .68));
}

.office-project-group-row.office-project-planning-bar.block.color-7 {
  background: linear-gradient(90deg, rgba(226, 232, 240, .72), rgba(248, 250, 252, .7));
}

.office-project-block-task-lane {
  z-index: 3;
  display: grid;
  align-items: stretch;
  pointer-events: none;
}

.office-project-block-task-lane.empty {
  align-items: center;
  padding: 0 10px;
}

.office-project-block-task-lane.drop-placeholder {
  align-items: stretch;
  padding: 0;
}

.office-project-block-task-lane.drop-placeholder .office-project-block-task-day {
  position: relative;
  min-height: 58px;
  align-items: center;
  background: rgba(255, 255, 255, .35);
}

.office-project-block-task-lane.drop-placeholder .office-project-block-task-day::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 38px;
  border-top: 1px dashed rgba(148, 163, 184, .24);
  pointer-events: none;
}

.office-project-block-task-lane.drop-placeholder .office-project-block-task-day:hover,
.office-project-block-task-lane.drop-placeholder .office-project-block-task-day.drop-active {
  background: rgba(255, 248, 235, .68);
}

.office-project-block-task-lane.process-mode .office-project-block-task-day {
  justify-content: flex-start;
  border-right: 1px solid rgba(219, 229, 238, .6);
}

.office-project-block-task-lane.process-mode .office-project-block-task-chip {
  width: 100%;
  max-width: none;
  flex: 1 1 0;
}

.office-task-result-kpi-options {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, .34);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 247, 230, .9), rgba(255, 255, 255, .96));
}

.office-task-type-toggle-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.office-task-type-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  align-items: center;
  gap: 9px !important;
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 158, 11, .34);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 247, 230, .9), rgba(255, 255, 255, .96));
  color: #475569 !important;
  cursor: pointer;
}

.office-task-type-toggle > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.office-task-result-check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid #f59e0b;
  border-radius: 8px;
  background: #fff;
}

.office-task-result-toggle > input:checked + .office-task-result-check {
  color: #fff;
  background: #f59e0b;
}

.office-task-result-toggle > input:checked + .office-task-result-check::after {
  content: "✓";
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.office-task-type-toggle > span:last-child,
.office-task-result-kpi-head > div,
.office-task-result-kpi-list label > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.office-task-type-toggle b {
  color: #172033;
  font-size: 14px;
  font-weight: 950;
}

.office-task-type-toggle small,
.office-task-result-kpi-head small,
.office-task-result-kpi-list small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.office-task-result-kpi-options[hidden] {
  display: none;
}

.office-task-result-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.office-task-result-kpi-head > label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
}

.office-task-result-kpi-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 7px;
}

.office-task-result-kpi-row {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(14, 165, 233, .2);
  border-radius: 10px;
  background: rgba(240, 249, 255, .9);
}

.office-task-result-kpi-row > label {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.office-task-result-kpi-value {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 2px;
  background: #fff !important;
  cursor: text;
}

.office-task-result-kpi-value[hidden] {
  display: none;
}

.office-task-result-kpi-list b {
  overflow: hidden;
  color: #075985;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-project-block-task-empty {
  grid-column: 1 / span 3;
  grid-row: 1;
  align-self: center;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 850;
  pointer-events: none;
}

.office-project-block-task-empty.drop-placeholder-hint {
  grid-column: 1 / -1;
  justify-self: start;
  z-index: 2;
  padding-left: 10px;
  opacity: .62;
}

.office-project-block-task-day {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  padding: 6px;
  pointer-events: auto;
  transition: background .14s ease, outline-color .14s ease;
}

.office-project-block-task-day.drop-active {
  background: rgba(245, 158, 11, .08);
  outline: 1px dashed rgba(245, 158, 11, .5);
  outline-offset: -4px;
}

.office-project-block-task-chip {
  position: relative;
  min-width: 0;
  max-width: 108px;
  display: grid;
  gap: 1px;
  padding: 5px 7px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 9px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 6px 14px rgba(15, 23, 42, .08);
  color: #111827;
  text-align: left;
  cursor: grab;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.office-project-block-task-chip:hover {
  border-color: rgba(245, 158, 11, .5);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .12);
  transform: translateY(-1px);
}

.office-project-block-task-chip.chain-selected {
  border-color: rgba(245, 158, 11, .85);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, .18), 0 12px 24px rgba(15, 23, 42, .12);
}

.office-project-block-task-chip.dragging {
  opacity: .58;
  cursor: grabbing;
  transform: scale(.98);
}

.office-project-block-task-chip b,
.office-project-block-task-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.office-project-block-task-chip b {
  display: -webkit-box;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}

.office-project-block-task-chip span {
  color: #334155;
  font-size: 9px;
  font-weight: 900;
}

.office-project-block-task-chip.done {
  padding-right: 24px;
  border-color: #d8dee7;
  background: #f8fafc;
  color: #64748b;
}

.office-project-block-task-chip.done::after,
.office-task-card.done::after {
  content: "✓";
  position: absolute;
  z-index: 3;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(22, 163, 74, .32);
  border-radius: 999px;
  color: #15803d;
  background: linear-gradient(180deg, #ecfdf5, #bbf7d0);
  box-shadow: 0 5px 12px rgba(21, 128, 61, .16), inset 0 1px 0 rgba(255, 255, 255, .86);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.office-project-block-task-chip.done::after {
  top: 5px;
  right: 5px;
}

.office-project-empty {
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 10px;
  border: 1px dashed #c7d6e4;
  border-radius: 10px;
  color: #64748b;
  background: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 850;
}

.office-project-bar {
  z-index: 3;
  min-width: 48px;
  min-height: 34px;
  align-self: center;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 28px 16px;
  align-items: stretch;
  margin: 8px 6px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 999px;
  background: #fff7ed;
  box-shadow: 0 9px 20px rgba(15, 23, 42, .1);
  cursor: grab;
  overflow: hidden;
  transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}

.office-project-bar.dragging,
.office-project-bar.resizing {
  z-index: 8;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .18);
}

.office-project-bar.linked {
  box-shadow: 0 9px 20px rgba(15, 23, 42, .1), inset 0 0 0 2px rgba(15, 23, 42, .06);
}

.office-project-bar.link-selected {
  outline: 3px solid rgba(245, 158, 11, .34);
  outline-offset: 2px;
}

.office-project-bar.process-mode {
  grid-template-columns: 16px minmax(0, 1fr) 28px 16px;
  border-color: rgba(59, 130, 246, .13);
  box-shadow: 0 9px 18px rgba(37, 99, 235, .08);
}

.office-project-process-anchor {
  align-self: stretch;
  background: rgba(255, 255, 255, .28);
}

.office-project-bar.dragging {
  opacity: .72;
  transform: translateY(-1px);
}

.office-project-bar-main {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 5px 8px;
}

.office-project-bar-main b,
.office-project-bar-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-project-bar-main b {
  color: #111827;
  font-size: 12px;
  font-weight: 950;
}

.office-project-bar-main span {
  color: rgba(15, 23, 42, .68);
  font-size: 10px;
  font-weight: 800;
}

.office-project-block-add {
  width: 22px;
  height: 22px;
  align-self: center;
  justify-self: center;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #111827;
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}

.office-project-block-add span {
  transform: translateY(-.5px);
}

.office-project-block-add:hover {
  border-color: rgba(245, 158, 11, .56);
  background: #fff;
  transform: translateY(-1px);
}

.office-project-resize {
  border: 0;
  background: rgba(255, 255, 255, .34);
  cursor: ew-resize;
  position: relative;
  z-index: 5;
  touch-action: none;
}

.office-project-resize:hover {
  background: rgba(255, 255, 255, .72);
}

.office-project-bar.color-0 {
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.office-project-bar.color-1 {
  background: linear-gradient(135deg, #ccfbf1, #a7f3d0);
}

.office-project-bar.color-2 {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.office-project-bar.color-3 {
  background: linear-gradient(135deg, #ffe4e6, #fecdd3);
}

.office-project-bar.color-4 {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.office-project-bar.color-5 {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}

.office-project-bar.color-6 {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.office-project-bar.color-7 {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.office-project-link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.office-project-link-box b,
.office-project-link-box span {
  display: block;
}

.office-project-link-box b {
  color: #111827;
  font-size: 13px;
  font-weight: 950;
}

.office-project-link-box span {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
}

.office-project-linked-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.office-project-linked-list button {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  text-align: left;
  font-size: 12px;
  font-weight: 900;
}

.office-project-linked-list button:hover {
  border-color: rgba(245, 158, 11, .5);
  background: #fff8eb;
}

.office-project-linked-list small {
  color: #64748b;
  font-size: 11px;
  font-weight: 760;
}

.office-task-chain-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(203, 213, 225, .88);
  border-radius: 12px;
  background: #f8fafc;
}

.office-task-chain-box button {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(203, 213, 225, .88);
  border-radius: 10px;
  background: #fff;
  color: #111827;
  text-align: left;
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}

.office-task-chain-box button:hover {
  border-color: rgba(245, 158, 11, .5);
  background: #fff8eb;
  transform: translateY(-1px);
}

.office-task-chain-box button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.office-task-chain-box button small {
  color: #64748b;
  font-size: 11px;
  font-weight: 760;
}

.office-project-link-lines {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.office-project-link-path {
  fill: none;
  stroke: rgba(245, 158, 11, .52);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 6;
  filter: drop-shadow(0 4px 8px rgba(245, 158, 11, .12));
}

.office-task-chain-path {
  fill: none;
  stroke: rgba(245, 158, 11, .62);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 4 5;
  filter: drop-shadow(0 4px 8px rgba(245, 158, 11, .14));
}

.office-process-timer-marker {
  width: 26px;
  height: 26px;
  position: absolute;
  z-index: 8;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(245, 158, 11, .58);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7e6, #ffb020);
  color: #111827;
  cursor: pointer;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(245, 158, 11, .25);
}

.office-process-timer-marker:hover {
  border-color: rgba(217, 119, 6, .82);
  transform: translateY(-1px);
}

.office-process-approval-marker {
  width: 26px;
  height: 26px;
  position: absolute;
  z-index: 8;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, .42);
  border-radius: 999px;
  background: linear-gradient(180deg, #eff6ff, #bfdbfe);
  color: #1e3a8a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .16);
}

.office-process-approval-marker.pending,
.office-process-approval-marker.idle {
  border-color: rgba(245, 158, 11, .48);
  background: linear-gradient(180deg, #fff7ed, #fed7aa);
  color: #92400e;
}

.office-process-approval-marker.rejected {
  border-color: rgba(225, 29, 72, .48);
  background: linear-gradient(180deg, #fff1f2, #fecdd3);
  color: #9f1239;
}

.office-process-approval-marker:hover {
  transform: translateY(-1px);
}

.office-process-timer-modal {
  max-width: 620px;
}

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

.office-kanban-lane-body.drop-active {
  outline: 2px solid rgba(245, 158, 11, .28);
  outline-offset: -4px;
  background: #fff8eb;
}

.office-task-timeline {
  background:
    linear-gradient(90deg, rgba(148, 163, 184, .14) 1px, transparent 1px) 0 0 / 100% calc(100% / 13),
    #fff;
}

.office-task-drop-marker {
  position: absolute;
  left: 46px;
  right: 6px;
  z-index: 1;
  display: none;
  align-items: center;
  padding: 0 8px;
  border: 1px dashed #d97706;
  border-radius: 8px;
  background: rgba(254, 243, 199, .72);
  color: #92400e;
  font-size: 11px;
  font-weight: 950;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.office-task-drag-time {
  position: absolute;
  left: 54px;
  z-index: 30;
  display: none;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(17, 24, 39, .1);
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  pointer-events: none;
  transform: translateY(calc(-100% - 5px));
  box-shadow: 0 10px 24px rgba(15, 23, 42, .18);
}

.office-task-drag-time.active {
  display: inline-flex;
}

.office-task-drop-marker.active {
  display: flex;
}

.office-task-drop-marker.backlog-marker {
  position: static;
  min-height: 42px;
  justify-content: center;
  margin-bottom: 2px;
}

.office-task-hour {
  height: calc(100% / 13);
  padding-left: 7px;
  border-bottom: 1px solid rgba(219, 229, 238, .9);
  color: #94a3b8;
  font-size: 10px;
  font-weight: 850;
}

.office-task-hour span {
  position: relative;
  top: -1px;
  display: inline-block;
  width: 34px;
  padding: 0 4px;
  background: #fff;
  text-align: left;
}

.office-task-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 58px;
  position: relative;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid #dbe5ee;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  background: #fff8eb;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
  cursor: grab;
  transition: box-shadow .16s ease, transform .16s ease, opacity .16s ease;
}

.office-task-date-only-board .office-task-card,
.office-task-assigned-by-me-board .office-task-card {
  height: auto;
  min-height: 62px;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 6px;
  overflow: visible;
}

.office-task-date-only-board .office-task-card-main,
.office-task-assigned-by-me-board .office-task-card-main {
  overflow: visible;
}

.office-task-date-only-board .office-task-title,
.office-task-assigned-by-me-board .office-task-title {
  overflow: visible;
}

.office-task-date-only-board .office-task-title b,
.office-task-assigned-by-me-board .office-task-title b {
  line-height: 1.24;
}

.office-task-timeline .office-task-card {
  position: absolute;
  left: 46px;
  right: 6px;
  width: auto;
  max-width: none;
  min-height: 42px;
  padding: 6px 7px;
  z-index: 2;
  overflow: visible;
}

.office-task-timeline .office-task-card.overlap-stacked {
  box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
}

.office-task-timeline .office-task-title {
  gap: 2px;
}

.office-task-timeline .office-task-title b {
  max-height: none;
  -webkit-line-clamp: var(--office-task-title-lines, 2);
}

.office-task-date-floating-list {
  position: absolute;
  left: 46px;
  right: 6px;
  top: 22px;
  z-index: 3;
  display: grid;
  gap: 6px;
  max-height: min(210px, calc(100% - 34px));
  overflow-y: auto;
  pointer-events: auto;
}

.office-task-date-floating-list .office-task-card {
  position: relative;
  left: auto;
  right: auto;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 7px;
}

.office-task-date-floating-list .office-task-title b {
  max-height: 32px;
}

.office-task-card.subtask {
  border-style: dashed;
}

.office-task-card.chain-selected {
  border-color: rgba(245, 158, 11, .85);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, .18), 0 12px 26px rgba(15, 23, 42, .14);
}

.office-task-links {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.office-task-link-path {
  fill: none;
  stroke: rgba(100, 116, 139, .34);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 4 5;
}

.office-task-card.dragging {
  opacity: .46;
  transform: scale(.985);
}

.office-task-card.resizing {
  z-index: 4;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
  cursor: ns-resize;
}

.office-task-card.color-1 {
  border-left-color: #0f766e;
  background: #f0fdfa;
}

.office-task-card.color-2 {
  border-left-color: #2563eb;
  background: #eff6ff;
}

.office-task-card.color-3 {
  border-left-color: #be123c;
  background: #fff1f2;
}

.office-task-card.color-4 {
  border-left-color: #7c3aed;
  background: #f5f3ff;
}

.office-task-card.color-5 {
  border-left-color: #475569;
  background: #f8fafc;
}

.office-task-card.meeting {
  border-left-color: #7c3aed;
  background: #f5f3ff;
}

.office-task-date-only-board .office-task-card.meeting.date-card .office-task-title b,
.office-task-assigned-by-me-board .office-task-card.meeting.date-card .office-task-title b {
  display: block;
  overflow: visible;
  text-overflow: clip;
  -webkit-line-clamp: unset;
}

.office-task-meeting-time-line {
  color: #6d4fc2;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.office-task-card.done {
  border-color: #d8dee7;
  border-left-color: #94a3b8;
  background: #f1f5f9;
  box-shadow: none;
}

.office-task-card.done::after {
  top: 8px;
  left: 7px;
}

.office-task-card.done .office-task-card-main {
  padding-left: 18px;
}

.office-task-card.done .office-task-title b {
  color: #64748b;
}

.office-task-card.done .office-task-card-actions button {
  border-color: #dbe5ee;
  background: #e9eef5;
  color: #64748b;
}

.office-task-deadline-snapshot {
  border-color: #cbd5e1;
  border-left-color: #94a3b8;
  background: #f8fafc;
  box-shadow: none;
  cursor: default;
  opacity: .86;
}

.office-task-deadline-snapshot .office-task-title b {
  color: #64748b;
}

.office-task-snapshot-cross {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
}

.office-task-deadline-snapshot .office-task-project-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.office-task-deadline-snapshot s {
  color: #94a3b8;
}

.office-task-card.approval-pending,
.office-process-task-card.approval-pending {
  border-color: rgba(245, 158, 11, .38);
  border-left-color: #f59e0b;
  background: #fff7ed;
}

.office-task-card.approval-waiting,
.office-process-task-card.approval-waiting {
  border-color: rgba(37, 99, 235, .34);
  border-left-color: #2563eb;
  background: #eff6ff;
}

.office-task-card.approval-rejected,
.office-process-task-card.approval-rejected {
  border-color: rgba(225, 29, 72, .46);
  border-left-color: #e11d48;
  background: #fff1f2;
  box-shadow: 0 10px 22px rgba(225, 29, 72, .12);
}

.office-task-title-tooltip {
  position: fixed;
  z-index: 120;
  max-width: min(380px, calc(100vw - 24px));
  padding: 9px 11px;
  border: 1px solid rgba(203, 213, 225, .92);
  border-radius: 10px;
  background: rgba(255, 255, 255, .98);
  color: #111827;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(4px) scale(.98);
  transition: opacity .14s ease, transform .14s ease;
  pointer-events: none;
  overflow-wrap: anywhere;
}

.office-task-title-tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.office-task-card-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px;
  overflow: hidden;
}

.office-task-title {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 3px;
  background: transparent;
  text-align: left;
  overflow: hidden;
}

.office-task-title b {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--office-task-title-lines, 2);
}

.office-task-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  margin-right: 5px;
  padding: 1px 5px;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  background: #ede9fe;
  color: #5b21b6;
  font-size: 9px;
  font-weight: 950;
  vertical-align: 1px;
}

.office-task-participants-line {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: #5b21b6;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.office-task-project-line {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  padding-top: 2px;
  border-top: 1px solid rgba(100, 116, 139, .12);
  color: #64748b;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.15;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.office-task-project-line.is-stacked {
  display: grid;
  gap: 3px;
  line-height: 1.24;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.office-task-project-name,
.office-task-responsible-name {
  min-width: 0;
  display: block;
  overflow: hidden;
  line-height: 1.24;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
}

.office-task-project-name {
  color: #64748b;
  font-weight: 600;
}

.office-task-responsible-name {
  color: #64748b;
  font-size: 9px;
  font-weight: 600;
}

.office-task-card-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.office-task-card.saving::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 5px;
  height: 5px;
  z-index: 21;
  border-radius: 999px;
  background: rgba(245, 158, 11, .72);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .72);
  pointer-events: none;
  animation: officeTaskSavingPulse .9s ease-in-out infinite alternate;
}

@keyframes officeTaskSavingPulse {
  from { opacity: .35; }
  to { opacity: 1; }
}

.office-task-card-actions small {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(17, 24, 39, .08);
  color: #111827;
  font-size: 10px;
  font-weight: 900;
}

.office-task-resize {
  position: absolute;
  left: 6px;
  right: 6px;
  width: auto;
  min-width: 0;
  height: 18px;
  min-height: 0;
  padding: 0;
  z-index: 20;
  display: grid;
  justify-items: end;
  align-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  appearance: none;
  cursor: ns-resize;
  opacity: 1;
  pointer-events: auto;
  touch-action: none;
}

.office-task-resize.top {
  top: 0;
}

.office-task-resize.bottom {
  bottom: 0;
}

.office-task-resize::before {
  content: "";
  width: 9px;
  height: 5px;
  display: block;
  background:
    linear-gradient(rgba(100, 116, 139, .72), rgba(100, 116, 139, .72)) 0 0 / 100% 1px no-repeat,
    linear-gradient(rgba(100, 116, 139, .72), rgba(100, 116, 139, .72)) 0 100% / 100% 1px no-repeat;
  opacity: .86;
}

.office-task-resize:hover,
.office-task-resize:focus-visible {
  background: linear-gradient(90deg, transparent, rgba(255, 248, 235, .95));
  box-shadow: 0 4px 10px rgba(245, 158, 11, .16);
}

.office-task-resize:hover::before,
.office-task-resize:focus-visible::before {
  background:
    linear-gradient(#d97706, #d97706) 0 0 / 100% 1px no-repeat,
    linear-gradient(#d97706, #d97706) 0 100% / 100% 1px no-repeat;
  opacity: 1;
}

.office-task-resizing {
  cursor: ns-resize;
  user-select: none;
}

.office-task-modal {
  position: relative;
  z-index: 2;
  width: min(1480px, calc(100vw - 48px));
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  grid-template-rows: auto auto auto minmax(260px, 1fr) auto;
  overflow: hidden;
}

.office-task-modal .editor-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.office-task-modal .editor-head > div {
  min-width: 0;
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
}

.office-task-head-actions {
  grid-column: 2;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.office-task-title-editor {
  width: 100%;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.12;
  resize: none;
  overflow: hidden;
  box-shadow: none;
}

.office-task-title-editor:focus {
  outline: none;
  box-shadow: inset 0 -2px 0 rgba(245, 158, 11, .45);
}

.office-task-project-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.office-task-project-context span {
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.office-task-project-context b {
  color: #0f172a;
}

.office-task-project-context small {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.office-task-author-line {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
}

.office-task-modal label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.office-task-unsaved-close-modal {
  width: min(520px, 100%);
}

.office-task-unsaved-close-modal p {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, .24);
  border-radius: 8px;
  background: #fffaf0;
  color: #475569;
  font-size: 13px;
  font-weight: 820;
  line-height: 1.45;
}

.office-task-unsaved-close-modal .editor-actions {
  justify-content: flex-end;
}

.office-task-description-field {
  min-height: 0;
}

.office-task-description-field > span {
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.office-task-description-editor {
  min-height: 132px;
  max-height: 34vh;
  overflow: auto;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.45;
  white-space: pre-wrap;
  outline: none;
}

.office-task-description-editor:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .14);
}

.office-task-description-editor:empty::before {
  content: "Описание";
  color: #94a3b8;
}

.office-task-description-image {
  position: relative;
  width: min(320px, 100%);
  max-width: 100%;
  display: inline-block;
  margin: 8px 8px 8px 0;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  background: #fff;
  vertical-align: top;
  overflow: hidden;
}

.office-task-description-image img {
  width: 100%;
  height: auto;
  display: block;
}

.office-task-description-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(100, 116, 139, .72) 46% 54%, transparent 55%),
    linear-gradient(135deg, transparent 0 62%, rgba(100, 116, 139, .72) 63% 70%, transparent 71%);
}

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

.office-task-deadline-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.office-task-deadline-history-link {
  font-size: 11px;
  white-space: nowrap;
}

.office-task-setter-deadline-field small {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 750;
}

.office-task-deadline-history-modal {
  width: min(680px, calc(100vw - 40px));
}

.office-task-deadline-history-list {
  display: grid;
  gap: 10px;
}

.office-task-deadline-history-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  background: #f8fafc;
}

.office-task-deadline-history-item b {
  color: #0f172a;
  font-size: 15px;
}

.office-task-deadline-history-item span,
.office-task-deadline-history-item small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.office-task-deadline-history-item s {
  color: #94a3b8;
}

.office-task-meeting-toggle {
  border-color: rgba(245, 158, 11, .34);
}

.office-task-meeting-toggle input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.office-task-meeting-check {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}

.office-task-meeting-toggle input:checked + .office-task-meeting-check {
  border-color: #f59e0b;
  background: #f59e0b;
}

.office-task-meeting-toggle input:checked + .office-task-meeting-check::after {
  content: "✓";
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
}

.office-task-meeting-text {
  color: #111827;
  white-space: nowrap;
}

.office-task-participants-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.office-task-participants-field > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.office-task-participants-field > div:first-child span {
  color: var(--muted);
  font-weight: 800;
}

.office-task-participants-field[hidden] {
  display: none;
}

.office-task-meeting-schedule {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  background: #f8faff;
}

.office-task-meeting-schedule[hidden] {
  display: none;
}

.office-task-meeting-schedule-head {
  display: grid;
  gap: 16px;
  align-items: end;
}

.office-task-meeting-schedule-head > div {
  display: grid;
  gap: 3px;
}

.office-task-meeting-schedule-head b {
  color: #1e293b;
  font-size: 13px;
}

.office-task-meeting-schedule-head small,
.office-task-meeting-schedule-head label > span,
.office-task-meeting-schedule legend {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.office-task-meeting-schedule-head label {
  display: grid;
  gap: 5px;
}

.office-task-meeting-schedule-timing {
  display: grid;
  grid-template-columns: minmax(170px, 1.35fr) minmax(130px, .8fr) minmax(150px, 1fr);
  gap: 10px;
}

.office-task-meeting-schedule-timing label {
  display: grid;
  gap: 5px;
}

.office-task-meeting-schedule-timing label > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

[data-office-standard-task-time][hidden] {
  display: none;
}

.office-task-meeting-schedule fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

.office-task-meeting-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(42px, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.office-task-meeting-weekdays label {
  position: relative;
}

.office-task-meeting-weekdays input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.office-task-meeting-weekdays span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.office-task-meeting-weekdays input:checked + span {
  border-color: #818cf8;
  background: #eef2ff;
  color: #3730a3;
}

@media (max-width: 760px) {
  .office-task-meeting-schedule-head {
    grid-template-columns: 1fr;
  }

  .office-task-meeting-schedule-timing {
    grid-template-columns: 1fr;
  }

  .office-task-meeting-weekdays {
    grid-template-columns: repeat(4, minmax(42px, 1fr));
  }
}

.office-task-modal-layout {
  min-height: max-content;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.office-task-modal-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: visible;
  padding-right: 2px;
}

.office-task-modal-main > * {
  flex: 0 0 auto;
}

.office-task-description-field {
  align-self: stretch;
  overflow: visible;
}

.office-task-select-field {
  position: relative;
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.office-task-select {
  position: relative;
}

.office-task-select summary {
  min-height: 43px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.office-task-select summary::-webkit-details-marker {
  display: none;
}

.office-task-select summary:hover,
.office-task-select[open] summary {
  border-color: #f59e0b;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .13);
}

.office-task-select summary b {
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-task-select summary i {
  color: #94a3b8;
  font-style: normal;
  font-weight: 950;
  transition: transform .16s ease;
}

.office-task-select[open] summary i {
  transform: rotate(180deg);
}

.office-task-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid #dbe5ee;
  border-radius: 10px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .14);
}

.office-task-select-menu input {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
}

.office-task-select-options {
  display: grid;
  gap: 3px;
  max-height: 190px;
  overflow-y: auto;
}

.office-task-select-options button {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
}

.office-task-select-options button:hover {
  background: #f8fafc;
}

.office-task-select-options button.selected {
  background: #fff8eb;
  color: #111827;
}

.office-task-select-options button.selected::after {
  content: "✓";
  color: #d97706;
  font-weight: 950;
}

.office-task-select-options button.is-hidden {
  display: none;
}

.office-task-participant-select .office-task-select-menu {
  max-width: 100%;
  z-index: 80;
}

.office-task-participant-select summary {
  min-height: 43px;
  height: auto;
  align-items: start;
  padding-top: 10px;
  padding-bottom: 10px;
}

.office-task-participant-select summary b {
  overflow: visible;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.office-task-participant-select summary i {
  margin-top: 1px;
}

.office-task-modal .office-task-participant-options label {
  min-height: 34px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border-radius: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  cursor: pointer;
}

.office-task-modal .office-task-participant-options label:hover {
  background: #f8fafc;
}

.office-task-modal .office-task-participant-options label.selected {
  background: #fff8eb;
  color: #111827;
}

.office-task-modal .office-task-participant-options label.is-hidden {
  display: none;
}

.office-task-participant-options input {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  accent-color: #f59e0b;
}

.office-task-participant-options span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-task-delete-confirm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 10px;
  border: 1px solid rgba(190, 18, 60, .18);
  border-radius: 9px;
  background: #fff1f2;
}

.office-task-delete-confirm[hidden] {
  display: none;
}

.office-task-delete-confirm span {
  color: #9f1239;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.office-task-conversation {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.office-task-conversation-wide {
  min-width: 0;
  min-height: 0;
}

.office-task-conversation-wide .office-task-conversation {
  height: 100%;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(260px, 1fr) auto auto;
}

.office-task-conversation-wide .office-task-message-list {
  min-height: 260px;
  max-height: none;
}

.office-task-conversation-wide .office-task-message {
  width: min(760px, 100%);
}

.office-task-conversation-wide .office-task-message-compose {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.office-task-conversation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.office-task-conversation-head div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.office-task-conversation-head b {
  color: #111827;
  font-size: 13px;
  font-weight: 950;
}

.office-task-conversation-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.office-task-message-list {
  max-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #e5edf5;
  border-radius: 8px;
  background: #eef3f8;
}

.office-task-message {
  width: min(92%, 480px);
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .07);
}

.office-task-message-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.office-task-message-meta b {
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-task-message-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.office-task-message p {
  margin: 0;
  color: #111827;
  font-size: 13px;
  line-height: 1.42;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.office-task-message-mention {
  display: inline-block;
  padding: 1px 7px 2px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 950;
  white-space: nowrap;
}

.office-task-message-compose {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.office-task-message-compose textarea {
  min-height: 70px;
  padding: 7px 4px;
  border: 0;
  background: transparent;
  resize: vertical;
}

.office-task-message-compose textarea:focus {
  outline: 0;
}

.office-task-mention-menu {
  position: absolute;
  z-index: 90;
  width: min(320px, calc(100% - 16px));
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid #dbe5ee;
  border-radius: 10px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .16);
}

.office-task-mention-menu[hidden] {
  display: none;
}

.office-task-mention-menu input {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
}

.office-task-mention-menu [data-office-mention-options] {
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
}

.office-task-mention-menu button {
  min-height: 42px;
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
  text-align: left;
}

.office-task-mention-menu button:hover {
  background: #fff8eb;
}

.office-task-mention-menu b,
.office-task-mention-menu small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-task-mention-menu b {
  font-size: 12px;
  font-weight: 950;
}

.office-task-mention-menu small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.office-task-attachment-list {
  display: grid;
  gap: 7px;
}

.office-task-attachment {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.office-task-attachment span {
  min-width: 34px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 950;
}

.office-task-attachment b {
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-task-attachment small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.office-task-artifacts {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.office-task-artifact-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 8px;
  border: 1px dashed rgba(245, 158, 11, .42);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.office-task-artifact-compose textarea {
  min-height: 44px;
  padding: 7px 4px;
  border: 0;
  background: transparent;
  resize: vertical;
}

.office-task-artifact-compose textarea:focus {
  outline: 0;
}

.office-task-artifact-list {
  max-height: 240px;
  display: grid;
  gap: 8px;
  overflow: auto;
}

.office-task-artifact {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}

.office-task-artifact.file a {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  margin-top: 7px;
  color: inherit;
  text-decoration: none;
}

.office-task-artifact.file a span {
  grid-row: span 2;
  min-width: 34px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: #fff7ed;
  color: #92400e;
  font-size: 10px;
  font-weight: 950;
}

.office-task-artifact.file a b {
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-task-artifact.file a small {
  color: #64748b;
  font-size: 11px;
  font-weight: 760;
}

.office-task-artifact.text p {
  margin: 7px 0 0;
  color: #111827;
  font-size: 13px;
  line-height: 1.42;
  white-space: pre-wrap;
}

.office-task-related-box {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 11px;
  border: 1px solid rgba(203, 213, 225, .66);
  border-radius: 10px;
  background: rgba(248, 250, 252, .74);
  color: #64748b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.office-task-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.office-task-related-head b {
  color: #475569;
  font-size: 12px;
  font-weight: 880;
}

.office-task-related-head span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 760;
}

.office-task-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.office-task-related-group {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(226, 232, 240, .88);
  border-radius: 8px;
  background: rgba(255, 255, 255, .64);
}

.office-task-related-group .office-subtask-head b {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.office-task-related-group .office-subtask-head span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 760;
}

.office-subtask-add {
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(245, 158, 11, .34);
  border-radius: 7px;
  background: #fff7ed;
  color: #92400e;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.office-subtask-add:hover {
  border-color: rgba(245, 158, 11, .62);
  background: #fffbeb;
}

.office-task-related-group > button {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 7px;
  background: rgba(255, 255, 255, .78);
  color: #475569;
  text-align: left;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}

.office-task-related-group > button:hover {
  border-color: rgba(245, 158, 11, .36);
  background: #fff;
  color: #111827;
}

.office-task-related-group > button span {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 840;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-task-related-group > button small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
}

.office-task-journal-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.office-task-journal-head {
  align-items: start;
}

.office-task-journal-search {
  display: grid;
  grid-template-columns: minmax(240px, 520px) auto auto 1fr;
  gap: 8px;
  align-items: center;
}

.office-task-journal-search input {
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font-weight: 750;
}

.office-task-journal-table .tr {
  min-height: 58px;
}

.office-task-journal-row.archived {
  opacity: .72;
}

.office-task-journal-title {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.office-task-journal-title b {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-task-journal-title small,
.office-task-journal-history summary {
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.office-task-journal-status {
  display: inline-grid;
  min-height: 22px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 900;
}

.office-task-journal-history {
  min-width: 0;
}

.office-task-journal-history summary {
  cursor: pointer;
}

.office-task-journal-history div {
  display: grid;
  gap: 5px;
  margin-top: 6px;
}

.office-task-journal-history p {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 6px 7px;
  border-radius: 7px;
  background: #f8fafc;
}

.office-task-journal-history p b {
  font-size: 11px;
}

.office-task-journal-history p span,
.office-task-journal-history p small {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.office-task-journal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.office-task-history-layer {
  z-index: 910;
}

.office-task-history-modal {
  width: min(980px, 100%);
}

.office-task-history-modal .editor-head p {
  max-width: 760px;
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.office-task-history-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.office-task-history-summary span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
  background: #f8fafc;
}

.office-task-history-summary b {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-task-history-summary small {
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.office-task-history-events {
  display: grid;
  gap: 10px;
}

.office-task-history-event {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 8px;
  background: #fff;
}

.office-task-history-event-head {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(116px, auto) minmax(160px, 1fr);
  gap: 10px;
  align-items: baseline;
}

.office-task-history-event-head b {
  color: #111827;
  font-size: 12px;
  font-weight: 950;
}

.office-task-history-event-head span,
.office-task-history-event-head small,
.office-task-history-event p {
  color: #64748b;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}

.office-task-history-event-head small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-task-history-event p {
  margin: 0;
}

.office-task-history-change-list {
  display: grid;
  gap: 5px;
  padding: 7px;
  border-radius: 7px;
  background: #f8fafc;
}

.office-task-journal-change {
  display: grid;
  grid-template-columns: minmax(74px, .6fr) minmax(90px, 1fr) 16px minmax(90px, 1fr);
  gap: 5px;
  align-items: start;
}

.office-task-journal-change em,
.office-task-journal-change i,
.office-task-journal-change strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-style: normal;
}

.office-task-journal-change em {
  color: #334155;
  font-weight: 900;
}

.office-task-journal-change i {
  color: #64748b;
}

.office-task-journal-change strong {
  color: #0f766e;
  text-align: center;
}

.office-subtask-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.office-subtask-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.office-subtask-list > button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  text-align: left;
}

.office-subtask-list > button span {
  min-width: 0;
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-subtask-list > button small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.user-task-visibility {
  width: fit-content;
  min-height: 34px;
}

.link-button {
  width: fit-content;
  min-height: 0;
  padding: 0;
  border: 0;
  color: #b45309;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-button:hover {
  color: #92400e;
}

.operation-norm-history-panel .panel-head h3 {
  margin-top: 8px;
}

.operation-norm-history-table .tr {
  min-width: 820px;
}

.norms-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}

.norms-summary div {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.norms-summary b {
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.norms-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.operation-norm-map-list {
  display: grid;
  gap: 10px;
}

.operation-norm-map {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.operation-norm-map.open {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.operation-norm-map-toggle {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 22px minmax(260px, 1fr) minmax(280px, auto) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  text-align: left;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.operation-norm-map-toggle span {
  color: var(--amber);
  font-size: 18px;
  font-weight: 900;
}

.operation-norm-map-toggle b {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
}

.operation-norm-map-toggle b .map-code-badge {
  flex: 0 0 auto;
  margin-right: 0;
}

.operation-norm-map-toggle em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.norm-status-list {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.norm-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.1;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.norm-status-badge.missing {
  color: #9f1239;
  border-color: #fecdd3;
  background: #fff1f2;
}

.norm-status-badge.complete {
  color: #166534;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.norm-status-badge.reference {
  color: #475569;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.operation-norm-table {
  border-width: 1px 0 0;
  border-radius: 0;
}

.operation-norm-table .tr {
  min-width: 860px;
}

.operation-norm-table .tr span {
  min-width: 0;
}

.operation-norm-title-cell {
  display: grid;
  gap: 4px;
  align-content: center;
}

.operation-norm-open-block {
  width: fit-content;
  min-height: 28px;
  padding: 4px 8px;
  font-size: 11px;
}

.operation-norm-table input {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 7px;
  font-weight: 850;
}

.operation-norm-readonly-row {
  background: #f8fafc;
  color: #64748b;
}

.operation-norm-readonly-row b {
  color: #334155;
}

.operation-norm-readonly-note {
  color: #64748b;
  font-weight: 800;
}

.operation-norm-readonly-value {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  width: 100%;
  padding: 0 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 7px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 850;
}

.operation-norm-readonly-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.operation-norm-table small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.data-table {
  overflow-x: auto;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.tr {
  min-width: 920px;
  display: grid;
  grid-template-columns: var(--cols);
  background: var(--surface);
}

.catalog-table-wrap .data-table {
  max-height: calc(100vh - 330px);
  overflow: auto;
  scrollbar-gutter: stable both-edges;
}

.catalog-table-wrap .data-table .tr,
.catalog-table-wrap .folder-row {
  min-width: var(--catalog-min-width, 920px);
}

.catalog-table-wrap .data-table .tr.head {
  position: sticky;
  top: 0;
  z-index: 8;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.catalog-select-cell {
  justify-content: center;
}

.catalog-row-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #f59e0b;
  cursor: pointer;
}

.catalog-import-file {
  max-width: 220px;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-table-wrap .data-table::-webkit-scrollbar {
  height: 13px;
  width: 13px;
}

.catalog-table-wrap .data-table::-webkit-scrollbar-track {
  background: #e8eef5;
  border-radius: 999px;
}

.catalog-table-wrap .data-table::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border: 3px solid #e8eef5;
  border-radius: 999px;
}

.catalog-table-wrap .data-table::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.users-table .tr {
  min-width: 1240px;
  position: relative;
  z-index: 1;
}

.users-table:has(.user-access-picker[open]) {
  padding-bottom: 380px;
}

.users-table .tr:has(.user-access-picker[open]) {
  z-index: 30;
}

.users-table .tr span {
  padding: 10px;
  font-size: 14px;
}

.time-table .tr,
.relation-table .tr {
  min-width: 980px;
}

.schedule-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.schedule-head {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(520px, 1.7fr);
  align-items: start;
  gap: 18px;
}

.schedule-head > div:first-child {
  min-width: 0;
}

.schedule-head .head-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(130px, 180px) 42px minmax(150px, 1fr) minmax(150px, 1fr) minmax(180px, 1.4fr) minmax(145px, 170px);
  align-items: center;
  gap: 8px;
}

.schedule-head .head-actions > * {
  min-width: 0;
}

.schedule-head .schedule-disabled-apply-date,
.schedule-head [data-schedule-search],
.schedule-head .schedule-disabled-fill,
.schedule-head [data-schedule-action="save"] {
  grid-row: 2;
}

.schedule-head .schedule-disabled-apply-date {
  grid-column: 1 / span 3;
}

.schedule-head [data-schedule-search] {
  grid-column: 4 / span 2;
}

.schedule-head .schedule-disabled-fill {
  grid-column: 6;
}

.schedule-head [data-schedule-action="save"] {
  grid-column: 7;
}

@media (max-width: 1180px) {
  .schedule-head {
    grid-template-columns: 1fr;
  }

  .schedule-head .head-actions {
    grid-template-columns: 42px minmax(130px, 1fr) 42px minmax(150px, 1fr);
  }

  .schedule-head .schedule-disabled-apply-date,
  .schedule-head [data-schedule-search],
  .schedule-head .schedule-disabled-fill,
  .schedule-head [data-schedule-action="save"] {
    grid-row: auto;
    grid-column: auto;
  }
}

.schedule-disabled-action {
  display: block;
  cursor: not-allowed;
}

.schedule-disabled-action > button {
  width: 100%;
  pointer-events: none;
}

.content-processing-stage-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.content-processing-stage-actions button {
  min-width: 160px;
}

.content-processing-brief-images {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.content-processing-brief-image-title {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.content-processing-brief-image-title input {
  width: 100%;
}

.content-processing-add-image {
  justify-self: start;
}

.schedule-content {
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: start;
}

.hr-content {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
}

.hr-tree {
  min-height: calc(100vh - 150px);
  max-height: calc(100vh - 150px);
  overflow: auto;
}

.hr-candidates-panel {
  display: grid;
  gap: 16px;
}

.hr-hh-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.hr-hh-actions .ok {
  color: #15803d;
}

.hr-candidate-search {
  display: grid;
  gap: 10px;
  align-items: center;
}

.hr-candidate-position-shell {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.hr-candidate-position-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 14px;
}

.hr-candidate-position-head small,
.hr-candidate-phrase-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.hr-candidate-position-head h4 {
  margin: 2px 0 0;
  font-size: 20px;
  letter-spacing: 0;
}

.hr-candidate-position-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.hr-candidate-position-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.hr-candidate-position-tabs button {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.hr-candidate-position-tabs button.active {
  border-color: rgba(245, 158, 11, .35);
  color: #92400e;
  background: #fffbeb;
}

.hr-candidate-position-tabs span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.hr-candidate-position-tabs small {
  color: inherit;
  font-size: 12px;
  font-weight: 760;
}

.hr-candidate-position-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.hr-candidate-search {
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 190px) minmax(150px, 200px) minmax(110px, 140px) minmax(430px, auto);
  align-items: end;
}

.hr-candidate-search label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.hr-candidate-search small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 760;
}

.hr-candidate-search-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.hr-candidate-search-actions .small {
  min-height: 38px;
  white-space: nowrap;
}

.hr-candidate-search input,
.hr-candidate-search select,
.hr-candidate-position-form input {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
}

.hr-candidate-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hr-candidate-phrase-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.hr-candidate-phrase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hr-candidate-phrase-head b {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hr-candidate-tabs > button,
.hr-candidate-tab {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 850;
}

.hr-candidate-tabs > button {
  padding: 0 12px;
  cursor: pointer;
}

.hr-candidate-tab {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}

.hr-candidate-tab > button {
  min-height: 32px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.hr-candidate-tab > button:first-child {
  padding: 0 10px 0 12px;
}

.hr-candidate-tab .hr-candidate-tab-close {
  width: 30px;
  padding: 0;
  border-left: 1px solid var(--line);
  color: #94a3b8;
}

.hr-candidate-tab .hr-candidate-tab-close:hover {
  color: #be123c;
  background: #fff1f2;
}

.hr-candidate-tabs > button.active,
.hr-candidate-tab.active {
  border-color: rgba(20, 184, 166, .35);
  background: #f0fdfa;
  color: #0f766e;
}

.hr-candidate-tabs b {
  margin-left: 4px;
  color: inherit;
}

.hr-candidate-review-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.hr-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hr-review-head h4 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.hr-review-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.hr-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.hr-review-card {
  min-width: 0;
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hr-review-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.hr-review-card-head b {
  color: #0f766e;
  font-size: 14px;
}

.hr-review-card-head em {
  padding: 3px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-style: normal;
}

.hr-review-card h5 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.hr-review-match,
.hr-review-verdict,
.hr-review-block p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.hr-review-verdict {
  color: var(--text);
  font-weight: 850;
}

.hr-review-block {
  display: grid;
  gap: 5px;
}

.hr-review-block span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.hr-review-block ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 13px;
  line-height: 1.4;
}

.hr-candidates-table .tr {
  min-width: 1280px;
  grid-template-columns: 72px minmax(90px, .55fr) minmax(90px, .55fr) minmax(360px, 2fr) minmax(140px, .8fr) minmax(130px, .8fr) minmax(140px, .75fr);
  align-items: start;
}

.hr-candidates-table .tr span {
  min-width: 0;
}

.hr-candidates-table .tr:not(.head) > span {
  align-self: start;
  padding-top: 8px;
}

.hr-candidates-table .tr:not(.head) > span:first-child {
  padding-top: 6px;
}

.hr-candidate-row {
  cursor: pointer;
}

.hr-candidate-row:hover {
  background: #f8fafc;
}

.hr-candidate-row:focus-visible {
  outline: 2px solid rgba(20, 184, 166, .45);
  outline-offset: -2px;
}

.hr-candidate-table-photo {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  object-fit: cover;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 13px;
  font-weight: 900;
}

.hr-candidate-table-photo.placeholder {
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: linear-gradient(180deg, #f8fafc 0%, #eef6f4 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.hr-candidate-photo-preview {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 44px;
  z-index: 1;
}

.hr-candidate-photo-preview:hover,
.hr-candidate-photo-preview:focus-within {
  z-index: 20;
}

.hr-candidate-photo-popover {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  width: 180px;
  height: 220px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-4px) scale(.98);
  transform-origin: left center;
  transition: opacity .14s ease, transform .14s ease;
}

.hr-candidate-photo-preview:hover .hr-candidate-photo-popover,
.hr-candidate-photo-preview:focus-within .hr-candidate-photo-popover {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
}

.hr-candidate-photo-popover img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.hr-candidates-table small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hr-candidate-companies-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.hr-candidate-companies-list li {
  padding-left: 2px;
  overflow-wrap: anywhere;
}

.hr-candidate-companies-list li::marker {
  color: #0f766e;
}

.hr-candidate-companies-more {
  margin-top: 7px;
}

.hr-candidate-companies-more summary {
  width: fit-content;
  color: #0f766e;
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none;
}

.hr-candidate-companies-more summary::-webkit-details-marker {
  display: none;
}

.hr-candidate-companies-more summary::after {
  content: "";
}

.hr-candidate-companies-more[open] summary {
  margin-bottom: 7px;
}

.hr-candidate-companies-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.hr-candidate-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hr-candidate-actions a {
  color: #0f766e;
  font-weight: 850;
}

.hh-vacancies-panel,
.hh-vacancy-detail {
  display: grid;
  gap: 16px;
}

.hh-vacancy-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.hh-vacancy-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.hh-vacancy-card b,
.hh-response-head b {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.hh-vacancy-card small,
.hh-response-head small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.hh-vacancy-card em {
  flex: 0 0 auto;
  color: #0f766e;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.hh-vacancy-preview,
.hh-response-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hh-vacancy-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.hh-vacancy-preview h4 {
  margin: 0;
  font-size: 20px;
}

.hh-vacancy-preview p,
.hh-response-card p {
  margin: 0;
  color: #334155;
  line-height: 1.42;
}

.hh-vacancy-preview article {
  max-height: 340px;
  overflow: auto;
}

.hh-vacancy-status-form {
  display: grid;
  grid-template-columns: minmax(0, 280px) auto;
  justify-content: start;
  gap: 8px;
}

.hh-response-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.hh-response-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 180px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.hh-response-column h4 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  font-size: 14px;
}

.hh-response-list {
  display: grid;
  gap: 8px;
}

.hh-response-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.hh-response-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hh-response-actions select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hr-candidate-detail {
  display: grid;
  gap: 16px;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.hr-candidate-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.hr-candidate-detail-actions a {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.hr-candidate-resume-head {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.hr-candidate-photo {
  width: 112px;
  aspect-ratio: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e2e8f0;
  color: #0f766e;
  font-size: 28px;
  font-weight: 950;
}

.hr-candidate-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hr-candidate-intro {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.hr-candidate-intro > button {
  width: max-content;
}

.hr-candidate-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.hr-candidate-intro h3 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.05;
}

.hr-candidate-title {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.hr-candidate-headline {
  display: grid;
  gap: 4px;
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
}

.hr-candidate-resume-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 22px;
}

.hr-candidate-resume-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hr-candidate-side-section {
  display: grid;
  gap: 9px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.hr-candidate-side-section h4,
.hr-candidate-section-title h4 {
  margin: 0;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 850;
}

.hr-candidate-side-section div,
.hr-candidate-extra-grid div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.hr-candidate-side-section span,
.hr-candidate-extra-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.hr-candidate-side-section b,
.hr-candidate-extra-grid b {
  color: #1f2937;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hr-candidate-resume-main {
  min-width: 0;
  display: grid;
  gap: 28px;
}

.hr-candidate-resume-section {
  display: grid;
  gap: 14px;
}

.hr-candidate-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.hr-candidate-section-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hr-candidate-desired {
  display: grid;
  gap: 8px;
}

.hr-candidate-desired h5 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.16;
}

.hr-candidate-desired > b {
  color: #0f766e;
  font-size: 16px;
}

.hr-candidate-bullets {
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: 14px;
}

.hr-candidate-bullets span::before {
  content: "- ";
  color: #94a3b8;
}

.hr-candidate-experience-item {
  display: grid;
  grid-template-columns: minmax(130px, 170px) minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #eef2f7;
}

.hr-candidate-experience-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hr-candidate-experience-period {
  display: grid;
  align-content: start;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hr-candidate-experience-period b {
  color: #475569;
  font-size: 13px;
}

.hr-candidate-experience-body {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.hr-candidate-experience-body h5,
.hr-candidate-education-item h5 {
  margin: 0;
  color: #111827;
  font-size: 19px;
  line-height: 1.18;
}

.hr-candidate-experience-body h6 {
  margin: 6px 0 0;
  color: #111827;
  font-size: 17px;
  line-height: 1.2;
}

.hr-candidate-experience-body .muted,
.hr-candidate-education-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hr-candidate-description {
  display: grid;
  gap: 9px;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.48;
}

.hr-candidate-description p {
  margin: 0;
  white-space: pre-line;
}

.hr-candidate-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hr-candidate-tags span {
  padding: 6px 10px;
  border: 1px solid rgba(20, 184, 166, .22);
  border-radius: 999px;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 12px;
  font-weight: 850;
}

.hr-candidate-note {
  display: grid;
  gap: 4px;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}

.hr-candidate-note b {
  color: var(--text);
}

.hr-candidate-education-level {
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

.hr-candidate-education-item {
  display: grid;
  grid-template-columns: minmax(70px, 100px) minmax(0, 1fr);
  gap: 18px;
}

.hr-candidate-education-item > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.hr-candidate-extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.hr-candidate-detail-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.hr-candidate-detail-summary > div,
.hr-candidate-section article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hr-candidate-detail-summary span,
.hr-candidate-section span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.hr-candidate-detail-summary b,
.hr-candidate-section b {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hr-candidate-section {
  display: grid;
  gap: 8px;
}

.hr-candidate-section h4 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.hr-candidate-section article {
  display: grid;
  gap: 8px;
}

.hr-candidate-section p {
  margin: 0;
  color: var(--muted);
  font-weight: 760;
}

.hr-candidate-raw {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hr-candidate-raw summary {
  cursor: pointer;
  padding: 12px;
  color: var(--text);
  font-weight: 900;
}

.hr-candidate-raw pre {
  max-height: 520px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border-top: 1px solid var(--line);
  color: #334155;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

@media (max-width: 980px) {
  .hr-candidate-position-head,
  .hr-candidate-search {
    grid-template-columns: 1fr;
  }

  .hr-candidate-search-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hr-candidate-resume-head,
  .hr-candidate-resume-layout,
  .hr-candidate-experience-item,
  .hr-candidate-education-item {
    grid-template-columns: 1fr;
  }

  .hr-candidate-detail-actions {
    justify-content: flex-start;
  }
}

.skud-import-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.skud-import-box > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.skud-import-box b,
.skud-import-box span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skud-import-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.schedule-month-input,
.schedule-bulk-date-input {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  font-weight: 800;
}

.schedule-bulk-date-input {
  min-width: 150px;
}

.schedule-employee-first-shift {
  width: 100%;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--text);
  background: #fff;
  font-size: 11px;
  font-weight: 850;
}

.schedule-table-scroll {
  width: 100%;
  max-height: calc(100vh - 330px);
  overflow: auto;
  padding-bottom: 6px;
  scrollbar-gutter: stable both-edges;
}

.schedule-table {
  min-width: max(1180px, calc(220px + 68px * 31 + 82px));
  overflow: visible;
}

.schedule-table .head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff3d6;
  box-shadow: 0 1px 0 var(--line-strong);
}

.schedule-table .tr {
  min-width: 100%;
}

.schedule-row span {
  min-height: 72px;
  padding: 6px;
  justify-content: center;
  text-align: center;
}

.schedule-row.head span {
  display: grid;
  align-content: center;
  gap: 2px;
  background: #fff3d6;
}

.schedule-row.head b {
  font-size: 13px;
}

.schedule-row.head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.employee-head,
.schedule-employee {
  position: sticky;
  left: 0;
  z-index: 1;
  justify-content: flex-start !important;
  text-align: left !important;
  background: inherit;
  box-shadow: 1px 0 0 var(--line);
}

.schedule-row.head .employee-head {
  z-index: 30;
  background: #fff3d6;
}

.schedule-employee {
  display: grid !important;
  align-content: center;
  gap: 3px;
}

.schedule-employee b {
  font-size: 13px;
  line-height: 1.2;
}

.schedule-employee small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.schedule-employee-select {
  width: 100%;
  min-height: 28px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.schedule-refill-link {
  width: max-content;
  padding: 0;
  border: 0;
  color: #64748b;
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.schedule-refill-link:hover {
  color: #334155;
  text-decoration: underline;
}

.schedule-filter-select {
  min-width: 190px;
}

.schedule-search-input {
  min-width: 220px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  font-weight: 800;
}

.schedule-empty-state {
  margin-top: 12px;
}

.schedule-cell input {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 44px;
  height: 28px;
  padding: 0 5px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #111827;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 850;
  line-height: 26px;
  text-align: center;
}

.schedule-cell {
  position: relative;
  display: block !important;
  min-height: 104px;
  overflow: hidden;
}

.schedule-actual-hours {
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  min-height: 13px;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.schedule-work-intervals {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  display: grid !important;
  grid-auto-rows: min-content;
  gap: 2px;
  width: calc(100% - 8px);
  min-width: 0;
  max-width: 60px;
  min-height: 0;
  padding: 1px 0 0;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.18;
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
  overflow: hidden;
}

.schedule-work-intervals b {
  display: block;
  padding: 0;
  margin: 0;
  min-width: 0;
  min-height: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.18;
  text-align: center;
}

.schedule-work-intervals .schedule-work-night {
  margin-top: 0;
}

.schedule-cell.absence input {
  color: #7c2d12;
  background: #fff7ed;
  border-color: #fed7aa;
}

.schedule-absence-marker {
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  min-height: 12px;
  color: #9a3412;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.schedule-cell.has-night .schedule-actual-hours:not(:empty) {
  bottom: 7px;
}

.schedule-total {
  display: grid !important;
  align-content: center;
  gap: 3px;
}

.schedule-total b {
  font-size: 13px;
}

.schedule-total small {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.schedule-cell input:focus {
  outline: 3px solid rgba(245, 158, 11, .18);
  border-color: #f59e0b;
  background: #fff;
}

.schedule-cell.weekend,
.schedule-row.head .weekend {
  background: #fff1f2;
}

.schedule-cell.weekend input {
  color: #9f1239;
  background: #fff7f8;
}

.schedule-total {
  color: #111827;
  background: var(--surface-tint);
  font-weight: 900;
}

.schedule-area-row {
  min-width: 100%;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  background: #edf0f4;
  font-weight: 850;
}

.schedule-area-row small {
  color: #4b5563;
  font-weight: 750;
}

.schedule-fill-overlay {
  align-items: flex-start;
  padding-top: 9vh;
}

.schedule-fill-modal {
  width: min(680px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
}

.schedule-fill-modal label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 850;
}

.schedule-fill-modal input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font-weight: 850;
}

.schedule-fill-results {
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.schedule-fill-employee {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 96px;
  gap: 10px;
  align-items: end;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.schedule-fill-employee > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.schedule-fill-employee label {
  gap: 4px;
  font-size: 11px;
}

.schedule-fill-employee button {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.schedule-fill-employee:hover {
  border-color: #f59e0b;
  background: #fff7ed;
}

.schedule-fill-employee span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.relation-table .tr {
  min-width: max(980px, var(--relation-min-width, 980px));
}

.relation-table {
  max-height: calc(100vh - 260px);
  overflow: auto;
  display: block;
  scrollbar-gutter: stable both-edges;
}

.relation-table:has(.relation-search-select[open]) {
  padding-bottom: 300px;
}

.relation-table .tr:has(.relation-search-select[open]) {
  position: relative;
  z-index: 30;
}

.relation-table .tr + .tr,
.relation-table .tr + .empty-state {
  margin-top: 1px;
}

.relation-table::-webkit-scrollbar {
  height: 13px;
  width: 13px;
}

.relation-table::-webkit-scrollbar-track {
  background: #e8eef5;
  border-radius: 999px;
}

.relation-table::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border: 3px solid #e8eef5;
  border-radius: 999px;
}

.relation-table::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.relation-table .tr.head {
  position: sticky;
  top: 0;
  z-index: 9;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.tr.head {
  color: #111827;
  background: #fff3d6;
  font-weight: 850;
}

.tr span {
  min-height: 44px;
  padding: 12px;
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
}

.catalog-row {
  cursor: pointer;
}

.catalog-row:hover {
  background: #fbfdff;
}

.catalog-row.catalog-row-focused {
  background: #fff7ed;
  box-shadow: inset 4px 0 0 #f59e0b, 0 0 0 2px rgba(245, 158, 11, .2);
}

.catalog-usage-button {
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(245, 158, 11, .38);
  border-radius: 999px;
  color: #92400e;
  background: linear-gradient(180deg, #fff8eb, #ffedd5);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.catalog-usage-button:hover {
  border-color: #f59e0b;
  background: #fff3d6;
}

.catalog-usage-empty {
  color: var(--muted);
  font-weight: 800;
}

.catalog-usage-modal {
  width: min(680px, 100%);
}

.catalog-usage-list {
  display: grid;
  gap: 8px;
}

.catalog-usage-map {
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  text-decoration: none;
}

.catalog-usage-map:hover {
  border-color: rgba(245, 158, 11, .45);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.catalog-usage-map span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-development-layout .catalog-tree .tree-title {
  pointer-events: none;
}

.product-development-table .tr {
  min-width: 0;
}

.product-development-table {
  overflow-x: hidden;
}

.product-development-table .tr > span {
  min-width: 0;
}

.product-development-table .head span {
  font-size: 13px;
  line-height: 1.15;
}

.product-development-table .row-actions {
  gap: 6px;
}

.product-development-table .row-actions .small {
  min-width: 0;
  padding: 0 9px;
}

.product-launch-table .tr > span {
  padding-inline: 7px;
}

.product-launch-table .head span {
  font-size: 11px;
}

.product-development-row {
  position: relative;
  cursor: grab;
}

.product-development-row:hover {
  background: #fbfdff;
}

.product-development-row.dragging {
  opacity: .55;
}

.product-development-stage-row {
  position: relative;
}

.product-development-stage-row.dragging-stage {
  opacity: .65;
}

.product-development-stage-row .stage-drag-handle {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  margin-right: 2px;
  border: 1px solid #d6e0eb;
  border-radius: 7px;
  background: #fff;
  color: #7b8ba1;
  cursor: grab;
  font-weight: 900;
  line-height: 1;
}

.product-development-stage-row .stage-drag-handle:hover {
  border-color: var(--amber);
  color: var(--amber-dark);
}

.product-development-stage-row .stage-drag-handle:active {
  cursor: grabbing;
}

.product-development-row.drop-before::before,
.product-development-row.drop-after::after,
.product-development-stage-row.drop-before::before,
.product-development-stage-row.drop-after::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--amber);
  z-index: 2;
}

.product-development-row.drop-before::before {
  top: -2px;
}

.product-development-row.drop-after::after,
.product-development-stage-row.drop-after::after {
  bottom: -2px;
}

.product-development-stage-row.drop-before::before {
  top: -2px;
}

.product-development-stage-row.drop-stage {
  outline: 2px solid var(--amber);
  outline-offset: -2px;
}

.product-development-stage-row .folder-delete-link {
  margin-left: auto;
}

.novelty-comment-cell {
  display: -webkit-box;
  max-height: 38px;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.novelty-description-cell {
  display: -webkit-box;
  max-height: 54px;
  overflow: hidden;
  color: #475569;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.novelty-thumbs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.novelty-thumb,
.novelty-file-preview {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.novelty-thumb img,
.novelty-file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.novelty-thumb.video,
.novelty-file-preview span {
  color: #fff;
  background: #111827;
}

.novelty-model-link {
  display: grid;
  gap: 4px;
  color: #111827;
  font-weight: 850;
  text-decoration: none;
}

.novelty-model-link:hover {
  color: #f59e0b;
}

.novelty-model-link small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hover-media-preview {
  width: 280px;
  max-width: calc(100vw - 24px);
  position: fixed;
  display: none;
  z-index: 80;
  pointer-events: none;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.hover-media-preview.visible {
  display: grid;
}

.hover-media-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #0f172a;
}

.hover-preview-video {
  height: 180px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #111827;
  font-size: 44px;
  font-weight: 900;
}

.hover-media-preview span {
  padding: 9px 10px;
  color: #111827;
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.novelty-form {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.product-development-editor-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  gap: 18px;
  align-items: start;
}

.product-development-editor-body .novelty-form {
  min-width: 0;
}

.content-processing-table .tr > span {
  min-width: 0;
  padding-inline: 7px;
  align-items: flex-start;
  line-height: 1.22;
}

.content-processing-table .head span {
  font-size: 11px;
}

.content-processing-table {
  --content-processing-table-min-width: 1700px;
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.content-processing-table .tr,
.content-processing-table .folder-row {
  min-width: var(--content-processing-table-min-width);
}

.content-processing-table .content-processing-row > span {
  min-height: 62px;
}

.content-processing-row.selected {
  background: #fff9e8;
}

.content-processing-row.selected:hover {
  background: #fff5d6;
}

.content-processing-table .row-actions {
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  overflow: visible;
}

.content-processing-table .row-actions .small {
  flex: 0 0 auto;
  min-width: 76px;
  padding-inline: 10px;
}

.content-processing-editor .novelty-form {
  max-width: 980px;
}

.content-processing-editor .office-task-select-field {
  color: var(--muted);
  font-size: inherit;
  font-weight: 750;
}

.content-processing-bulk-modal {
  width: min(420px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .24);
}

.content-processing-bulk-modal label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.content-processing-bulk-modal select {
  min-height: 40px;
}

.content-processing-bulk-note {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.content-processing-fields-panel {
  max-width: 980px;
}

.content-processing-stage-settings {
  display: grid;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.content-processing-stage-settings-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
}

.content-processing-stage-settings .office-task-select-field {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.content-processing-request-options-label {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 750;
}

.content-processing-request-options {
  position: relative;
  margin-top: 6px;
}

.content-processing-request-options summary {
  position: relative;
  min-height: 42px;
  box-sizing: border-box;
  padding: 11px 38px 11px 12px;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-processing-request-options summary::-webkit-details-marker {
  display: none;
}

.content-processing-request-options summary::after {
  content: "▾";
  position: absolute;
  top: 11px;
  right: 13px;
  color: var(--muted);
}

.content-processing-request-options[open] summary::after {
  transform: rotate(180deg);
}

.content-processing-request-options-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.content-processing-field-create {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.content-processing-field-create label,
.content-processing-field-main > label,
.content-processing-custom-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.content-processing-field-list {
  display: grid;
  gap: 10px;
}

.content-processing-field-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.content-processing-field-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.content-processing-field-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.content-processing-field-stages > span {
  flex: 0 0 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.content-processing-field-actions {
  display: flex;
  gap: 8px;
}

.content-processing-custom-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}

.content-processing-custom-field textarea {
  min-height: 110px;
}

.content-processing-editor .office-task-select {
  min-width: 0;
}

.content-processing-editor .office-task-select[open] {
  z-index: 70;
}

.content-processing-editor .office-task-select summary {
  min-height: 48px;
  border-color: var(--line-strong);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.content-processing-editor .office-task-select summary b {
  font-size: 14px;
  font-weight: 850;
}

.content-processing-editor .office-task-select-menu {
  z-index: 80;
  max-height: 310px;
}

.content-processing-editor .office-task-select-options {
  max-height: 220px;
}

.novelty-comment-field,
.novelty-description-field {
  grid-column: 1 / -1;
}

.novelty-form textarea {
  width: 100%;
  min-height: 92px;
  padding: 12px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  font-weight: 750;
}

.novelty-form textarea:focus {
  outline: 3px solid rgba(245, 158, 11, .18);
  border-color: #f59e0b;
  background: #fff;
}

.novelty-section-title {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #111827;
  background: #eef3f8;
  font-weight: 850;
}

.novelty-section-title b {
  display: block;
}

.novelty-launch-checklist {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 18px 14px 14px;
  border: 1px solid #f6c15f;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
}

.novelty-launch-checklist legend {
  padding: 0 8px;
  color: var(--text);
  font-weight: 850;
}

.novelty-launch-checklist label:first-of-type {
  grid-column: 1 / -1;
}

.launch-status {
  min-height: 28px;
  padding: 5px 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: normal;
}

.launch-status.done,
.launch-done {
  color: #065f46;
  background-color: #dcfce7;
  border-color: #86efac;
}

.launch-status.not-done,
.launch-not-done {
  color: #92400e;
  background-color: #fef3c7;
  border-color: #fcd34d;
}

.novelty-chat-panel {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.novelty-chat-head h3 {
  margin: 0;
  font-size: 20px;
}

.novelty-chat-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.novelty-chat-list {
  min-height: 560px;
  max-height: 720px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f8;
}

.novelty-chat-date {
  align-self: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #475569;
  background: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 850;
}

.novelty-chat-message {
  width: min(92%, 460px);
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
}

.novelty-chat-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.novelty-chat-meta b {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.novelty-chat-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.novelty-chat-message p {
  margin: 0;
  color: #111827;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.novelty-chat-form {
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.novelty-chat-form textarea {
  width: 100%;
  min-height: 62px;
  max-height: 180px;
  padding: 10px 0;
  border: 0;
  color: #111827;
  background: transparent;
  resize: vertical;
}

.novelty-chat-form textarea:focus {
  outline: 0;
}

.novelty-chat-form button {
  min-height: 42px;
  padding: 0 18px;
  align-self: end;
}

.novelty-upload-field {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 16px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.novelty-upload-field legend {
  padding: 0 8px;
  color: #111827;
  font-weight: 900;
}

.novelty-upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.novelty-upload-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.novelty-upload-head span {
  color: var(--muted);
  font-weight: 750;
}

.novelty-upload-progress {
  position: relative;
  min-height: 28px;
  overflow: hidden;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
}

.novelty-upload-progress[hidden] {
  display: none;
}

.novelty-upload-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #bfdbfe;
  transition: width 180ms ease;
}

.novelty-upload-progress b {
  position: relative;
  z-index: 1;
  display: block;
  padding: 6px 10px;
  color: #1e3a8a;
  font-size: 12px;
}

.novelty-upload-progress.error {
  border-color: #fecaca;
  background: #fef2f2;
}

.novelty-upload-progress.error b {
  color: #991b1b;
}

.novelty-file-list {
  display: grid;
  gap: 8px;
}

.novelty-file-row {
  min-width: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.novelty-file-row b,
.novelty-file-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.novelty-file-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.empty-state.compact {
  padding: 16px;
  min-height: 0;
}

.media-overlay {
  position: fixed;
  inset: 0;
  padding: 28px;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, .82);
  z-index: 50;
}

.media-viewer {
  width: min(1120px, 100%);
  max-height: calc(100vh - 56px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  position: relative;
}

.media-stage {
  min-height: 0;
  display: grid;
  place-items: center;
}

.media-stage img,
.media-stage video {
  max-width: 100%;
  max-height: calc(100vh - 128px);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.media-caption {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
}

.media-caption span {
  color: #cbd5e1;
}

.media-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #111827;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  z-index: 2;
}

.row-actions {
  gap: 8px;
  flex-wrap: nowrap;
  overflow-wrap: normal;
  white-space: nowrap;
}

.row-actions .small {
  min-width: 76px;
  justify-content: center;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.folder-row {
  min-width: 920px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #111827;
  background: #edf0f4;
  border: 0;
  text-align: left;
  font-weight: 850;
  cursor: pointer;
}

.folder-row span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #111827;
  background: #d9dee6;
}

.folder-row small {
  color: #4b5563;
  font-weight: 750;
}

.folder-rename-link,
.folder-delete-link {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.folder-delete-link {
  margin-left: 0;
}

.folder-rename-link:hover {
  color: #f59e0b;
}

.folder-delete-link:hover {
  color: #dc2626;
}

.catalog-bulk-move-modal {
  width: min(560px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
}

.catalog-folder-search {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font-weight: 800;
}

.catalog-folder-picker {
  max-height: min(420px, 55vh);
  overflow: auto;
  display: grid;
  gap: 8px;
}

.catalog-folder-picker button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.catalog-folder-picker button:hover {
  border-color: #f59e0b;
  background: #fff8ec;
}

.catalog-folder-picker span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.catalog-import-result-modal {
  width: min(520px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
}

.catalog-import-result-list {
  display: grid;
  gap: 8px;
}

.catalog-import-result-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.catalog-import-result-list span {
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.catalog-import-result-list b {
  color: var(--text);
  font-size: 18px;
}

.catalog-import-result-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  color: #0369a1;
  background: #f0f9ff;
  font-size: 13px;
  font-weight: 850;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
}

mark {
  padding: 5px 8px;
  border-radius: 999px;
  color: #052e21;
  font-size: 12px;
  font-weight: 850;
}

mark.active {
  background: #fff3d6;
}

mark.archive {
  color: #fff;
  background: var(--rose);
}

mark.created {
  color: #111827;
  background: #e5e7eb;
}

mark.in-work {
  color: #111827;
  background: #fff3d6;
}

mark.completed {
  color: #064e3b;
  background: #d1fae5;
}

mark.simulation {
  color: #111827;
  background: #dbeafe;
}

mark.live {
  color: #111827;
  background: #fde68a;
}

.icon-btn {
  min-width: 42px;
  height: 34px;
  max-width: 100%;
  padding: 0 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qr-cell {
  overflow-wrap: normal !important;
  word-break: keep-all;
}

.qr-field div {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(4, auto);
  gap: 10px;
  align-items: center;
}

.qr-field {
  grid-column: 1 / -1;
}

.qr-field button {
  min-height: 48px;
  white-space: nowrap;
}

.employee-qr-status {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f8fafc;
  font-weight: 900;
}

.qr-preview-modal {
  width: min(620px, 100%);
  padding: 22px;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(15, 23, 42, .22);
}

.employee-qr-preview {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.employee-qr-preview img,
.qr-preview-modal > img {
  width: 100%;
  justify-self: center;
  display: block;
  background: #fff;
}

.qr-preview-modal > img {
  width: min(430px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qr-preview-hint {
  justify-self: center;
  max-width: 520px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.qr-preview-modal code {
  padding: 12px;
  border-radius: 8px;
  color: #111827;
  background: #f3f4f6;
  font-weight: 850;
  text-align: center;
  overflow-wrap: anywhere;
}

.org-structure-page {
  min-width: 0;
  height: calc(100vh - 150px);
  min-height: 560px;
  overflow: hidden;
}

.org-responsibility-page {
  min-height: calc(100vh - 150px);
}

.org-responsibility-board-mode {
  height: auto;
  min-height: calc(100vh - 150px);
  overflow: visible;
}

.org-responsibility-krs-mode {
  height: auto;
  overflow: visible;
}

.org-structure-shell {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
}

.org-responsibility-krs-mode .org-structure-shell {
  height: auto;
  min-height: 0;
  grid-template-rows: auto auto;
  align-content: start;
  overflow: visible;
}

.org-responsibility-board-mode .org-structure-shell {
  height: auto;
  min-height: 0;
  grid-template-rows: auto minmax(560px, 1fr);
  overflow: visible;
}

.org-structure-tabs {
  display: flex;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.org-structure-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #475569;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 850;
}

.org-structure-tabs button.active,
.org-structure-tabs button:hover {
  border-color: rgba(245, 158, 11, .48);
  color: #111827;
  background: #fff7e6;
}

.org-structure-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.org-structure-toolbar .head-actions {
  justify-content: flex-end;
}

.org-responsibility-krs-mode .org-structure-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.org-responsibility-krs-mode .org-structure-toolbar .head-actions {
  width: auto;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  overflow: visible;
}

.org-responsibility-krs-mode .org-structure-toolbar .head-actions > * {
  flex: 0 0 auto;
}

.org-responsibility-krs-mode .org-resp-board-select {
  width: 220px;
  min-width: 180px;
  max-width: 240px;
}

.org-responsibility-krs-mode .head-actions .ghost.small,
.org-responsibility-krs-mode .head-actions .primary.small {
  min-height: 34px;
  padding-inline: 11px;
}

.org-zoom-control {
  display: inline-grid;
  grid-template-columns: 34px minmax(48px, auto) 34px;
  gap: 5px;
  align-items: center;
}

.org-zoom-control span {
  min-height: 34px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(203, 213, 225, .86);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.org-zoom-control button {
  min-width: 34px;
  padding: 0;
}

.org-structure-toolbar h3 {
  margin: 3px 0 4px;
  color: #111827;
  font-size: 24px;
  line-height: 1.12;
}

.org-structure-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.salary-payroll-page {
  min-width: 0;
}

.salary-payroll-shell {
  display: grid;
  gap: 14px;
}

.salary-payroll-toolbar select,
.salary-payroll-toolbar input {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 850;
}

.salary-payroll-summary {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(4, minmax(140px, 180px));
  gap: 10px;
  align-items: stretch;
}

.salary-payroll-summary > div,
.salary-payroll-summary article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.salary-payroll-summary span,
.salary-payroll-summary article span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.salary-payroll-summary h3,
.salary-payroll-summary b {
  margin: 5px 0 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.08;
}

.salary-payroll-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: 8px;
  background: #fff;
}

.salary-payroll-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.salary-payroll-card-head h3 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 16px;
}

.salary-payroll-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 720;
}

.salary-payroll-card-head > strong {
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(20, 184, 166, .24);
  border-radius: 8px;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.salary-payroll-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.salary-payroll-card label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.salary-payroll-card input,
.salary-payroll-card select {
  min-width: 0;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  font-size: 13px;
  font-weight: 850;
}

.salary-payroll-task-kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.salary-payroll-task-kpis article {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
  background: #f8fafc;
}

.salary-payroll-task-kpis article.collapsed {
  padding-block: 8px;
}

.salary-payroll-task-row-main,
.salary-payroll-task-row-meta {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 8px;
}

.salary-payroll-task-row-main {
  grid-template-columns: minmax(260px, 1fr) auto minmax(104px, 128px);
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.salary-payroll-task-row-meta {
  grid-template-columns: minmax(100px, max-content) minmax(100px, max-content) minmax(180px, 260px);
}

.salary-payroll-task-row-main > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
}

.salary-payroll-task-row-main > span i {
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .45);
  border-radius: 7px;
  background: #fff;
  color: #0f766e;
  font-style: normal;
  font-weight: 950;
}

.salary-payroll-task-row-main > span b {
  grid-column: 2;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.salary-payroll-task-row-main > span small {
  grid-column: 2;
}

.salary-payroll-task-row-main > span small,
.salary-payroll-task-kpis small {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.salary-payroll-task-split b {
  min-width: 86px;
  min-height: 38px;
  display: grid;
  gap: 2px;
  place-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(20, 184, 166, .22);
  border-radius: 8px;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 18px;
  line-height: 1;
}

.salary-payroll-task-split b small {
  color: #0f766e;
  font-size: 10px;
  text-transform: uppercase;
}

.salary-payroll-task-split {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.salary-payroll-task-kpis article strong {
  min-height: 38px;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 6px;
  border: 1px solid rgba(20, 184, 166, .24);
  border-radius: 8px;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.salary-payroll-task-kpis article strong small {
  color: inherit;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.salary-payroll-task-kpis label {
  gap: 4px;
}

.salary-payroll-task-kpis input {
  min-height: 30px;
}

.salary-payroll-function-pool {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 240px) repeat(2, minmax(120px, 150px));
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(20, 184, 166, .2);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fffd 0%, #f8fafc 100%);
}

.salary-payroll-function-pool > span {
  min-width: 0;
  display: grid;
  gap: 4px;
  align-self: center;
}

.salary-payroll-function-pool > span b {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.salary-payroll-function-pool small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.salary-payroll-function-pool article {
  min-height: 48px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 8px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
  background: #fff;
}

.salary-payroll-function-pool article b {
  color: #0f766e;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

.salary-payroll-kpi-list {
  display: grid;
  gap: 8px;
}

.salary-payroll-function-group {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.salary-payroll-function-group-head {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 74px 88px 86px minmax(104px, 130px);
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(203, 213, 225, .92);
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.salary-payroll-function-group.expanded > .salary-payroll-function-group-head {
  border-color: rgba(20, 184, 166, .24);
  background: #f8fffd;
}

.salary-payroll-function-group-head > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
}

.salary-payroll-function-group-head i {
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .45);
  border-radius: 7px;
  background: #fff;
  color: #0f766e;
  font-style: normal;
  font-weight: 950;
}

.salary-payroll-function-group-head b {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.salary-payroll-function-group-head small {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.salary-payroll-function-group-head strong,
.salary-payroll-function-group-head em {
  min-height: 34px;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 5px 7px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.salary-payroll-function-group-head strong.paid {
  border-color: rgba(34, 197, 94, .28);
  background: #dcfce7;
  color: #166534;
}

.salary-payroll-function-group-head em {
  border-color: rgba(20, 184, 166, .24);
  background: #f0fdfa;
  color: #0f766e;
}

.salary-payroll-function-group-head strong small,
.salary-payroll-function-group-head em small {
  color: inherit;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.salary-payroll-function-group-body {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.salary-payroll-kpi-row,
.salary-payroll-project-row {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
  background: #fbfdff;
}

.salary-payroll-kpi-row {
  grid-template-columns: 1fr;
}

.salary-payroll-kpi-row-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(88px, 110px) 72px 78px minmax(92px, 116px);
  gap: 8px;
  align-items: end;
}

.salary-payroll-kpi-row-head > span,
.salary-payroll-project-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
  align-self: center;
}

.salary-payroll-kpi-row-head b,
.salary-payroll-project-row b {
  color: #111827;
  font-size: 13px;
}

.salary-payroll-kpi-row-head small,
.salary-payroll-project-row small {
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.salary-payroll-project-row > em {
  min-height: 34px;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 6px;
  border: 1px solid rgba(20, 184, 166, .2);
  border-radius: 8px;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.salary-payroll-project-row > em small {
  color: inherit;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.salary-payroll-project-group {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.salary-payroll-project-group-head {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 74px minmax(104px, 130px);
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(203, 213, 225, .92);
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.salary-payroll-project-group.expanded > .salary-payroll-project-group-head {
  border-color: rgba(20, 184, 166, .24);
  background: #f8fffd;
}

.salary-payroll-project-group-head > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
}

.salary-payroll-project-group-head i {
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .45);
  border-radius: 7px;
  background: #fff;
  color: #0f766e;
  font-style: normal;
  font-weight: 950;
}

.salary-payroll-project-group-head b {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.salary-payroll-project-group-head small {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.salary-payroll-project-group-head strong,
.salary-payroll-project-group-head em {
  min-height: 34px;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 5px 7px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.salary-payroll-project-group-head em {
  border-color: rgba(20, 184, 166, .24);
  background: #f0fdfa;
  color: #0f766e;
}

.salary-payroll-project-group-head em.missed {
  border-color: rgba(239, 68, 68, .22);
  background: #fee2e2;
  color: #991b1b;
}

.salary-payroll-project-group-head strong small,
.salary-payroll-project-group-head em small {
  color: inherit;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.salary-payroll-project-row {
  grid-template-columns: minmax(180px, 260px) minmax(160px, 210px) minmax(150px, 190px);
  align-items: end;
  padding-left: 42px;
}

.salary-payroll-checkline {
  min-height: 34px;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  font-size: 12px;
  font-weight: 850;
}

.salary-payroll-checkline input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
}

.salary-payroll-kpi-row-head strong,
.salary-payroll-kpi-row-head em {
  min-height: 38px;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 6px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.salary-payroll-kpi-row-head strong.paid {
  border-color: rgba(34, 197, 94, .28);
  background: #dcfce7;
  color: #166534;
}

.salary-payroll-kpi-row-head em {
  border-color: rgba(20, 184, 166, .24);
  background: #f0fdfa;
  color: #0f766e;
}

.salary-payroll-kpi-row-head strong small,
.salary-payroll-kpi-row-head em small {
  color: inherit;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.salary-payroll-function-weeks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.salary-payroll-function-weeks > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(46px, auto) repeat(2, minmax(42px, 1fr)) 48px minmax(58px, auto);
  gap: 6px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(203, 213, 225, .8);
  border-radius: 8px;
  background: #f8fafc;
}

.salary-payroll-function-weeks > div.paid {
  border-color: rgba(34, 197, 94, .36);
  background: #f0fdf4;
}

.salary-payroll-function-weeks > div > span {
  align-self: center;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}

.salary-payroll-function-weeks > div > span small {
  display: block;
  margin-top: 2px;
  color: #0f766e;
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
}

.salary-payroll-function-weeks > .empty-state {
  grid-column: 1 / -1;
  display: block;
}

.salary-payroll-function-weeks b,
.salary-payroll-function-weeks strong,
.salary-payroll-function-weeks em {
  min-height: 30px;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 0 7px;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.salary-payroll-function-weeks b {
  color: #334155;
}

.salary-payroll-function-weeks b small {
  color: #64748b;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.salary-payroll-function-weeks strong {
  background: #fee2e2;
  color: #991b1b;
}

.salary-payroll-function-weeks strong.paid {
  background: #dcfce7;
  color: #166534;
}

.salary-payroll-function-weeks em {
  font-style: normal;
}

.salary-payroll-function-weeks > div.paid em {
  background: #dcfce7;
  color: #166534;
}

.salary-payroll-manual-create,
.salary-payroll-manual-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 180px) minmax(100px, 130px) minmax(140px, 170px) minmax(105px, 130px) auto;
  gap: 8px;
  align-items: end;
}

.salary-payroll-manual-create {
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) minmax(110px, 140px) auto;
}

.salary-payroll-manual-create {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(20, 184, 166, .18);
  border-radius: 8px;
  background: #f8fffd;
}

.salary-payroll-manual-row {
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
  background: #f8fafc;
}

.salary-payroll-manual-row > input {
  align-self: end;
}

.salary-payroll-manual-row strong {
  min-height: 34px;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 5px 10px;
  border: 1px solid rgba(20, 184, 166, .24);
  border-radius: 8px;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.salary-payroll-manual-row strong small {
  color: inherit;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.salary-payroll-manual-fact {
  align-self: end;
  min-height: 34px;
}

.salary-payroll-weeks .table {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
}

.salary-payroll-weeks .tr {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 92px 92px 92px 92px 110px 130px;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(226, 232, 240, .9);
}

.salary-payroll-weeks .tr:last-child {
  border-bottom: 0;
}

.salary-payroll-weeks .tr.head {
  min-height: 38px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.salary-payroll-weeks .tr span {
  min-width: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 820;
}

.salary-payroll-weeks .tr small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 720;
}

@media (max-width: 980px) {
  .salary-payroll-summary,
  .salary-payroll-task-kpis,
  .salary-payroll-task-row-main,
  .salary-payroll-task-row-meta,
  .salary-payroll-function-pool,
  .salary-payroll-function-group-head,
  .salary-payroll-project-group-head,
  .salary-payroll-kpi-row,
  .salary-payroll-kpi-row-head,
  .salary-payroll-project-row,
  .salary-payroll-manual-create,
  .salary-payroll-manual-row {
    grid-template-columns: 1fr;
  }
}

.org-structure-workspace {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.org-responsibility-workspace {
  grid-template-columns: minmax(0, 1fr);
  min-height: 560px;
  height: 100%;
}

.org-process-sidebar {
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 12px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow-soft);
}

.org-process-sidebar-head h3 {
  margin: 3px 0 0;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

.org-process-sidebar-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.org-process-sidebar-create input {
  min-height: 34px;
  padding: 0 9px;
  font-size: 12px;
}

.org-process-sidebar-groups {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  overflow-y: auto;
  padding-right: 2px;
}

.org-process-sidebar-group {
  display: grid;
  gap: 6px;
}

.org-process-sidebar-group-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 7px;
  align-items: center;
}

.org-process-sidebar-group-head b {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-process-sidebar-group-head span {
  min-height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #92400e;
  background: #fff3d6;
  font-size: 11px;
  font-weight: 950;
}

.org-process-sidebar-list {
  display: grid;
  gap: 5px;
}

.org-process-sidebar-section {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(203, 213, 225, .72);
}

.org-process-sidebar-section-head b {
  color: #334155;
  font-size: 12px;
  font-weight: 950;
}

.org-kr-tree {
  display: grid;
  gap: 7px;
}

.org-kr-item {
  min-width: 0;
  padding: 8px;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  cursor: grab;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
}

.org-kr-item.dragging {
  opacity: .58;
}

.org-kr-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.org-kr-badge {
  min-width: 34px;
  height: 24px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #92400e;
  background: #fff3d6;
  font-size: 11px;
  font-weight: 950;
}

.org-kr-row b,
.org-kr-function-row b {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  font-weight: 920;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-kr-children,
.org-kr-processes {
  display: grid;
  gap: 5px;
  margin-left: 16px;
  padding-left: 10px;
  border-left: 1px solid rgba(245, 158, 11, .26);
}

.org-kr-function {
  display: grid;
  gap: 5px;
  padding: 6px;
  border: 1px solid rgba(203, 213, 225, .78);
  border-radius: 8px;
  background: #fff;
  cursor: grab;
}

.org-kr-project {
  display: grid;
  gap: 5px;
  padding: 6px;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 8px;
  background: #fffaf0;
  cursor: grab;
}

.org-kr-function.dragging,
.org-kr-process.dragging,
.org-kr-project.dragging,
.org-project-item.dragging {
  opacity: .58;
}

.org-kr-function-row,
.org-kr-process {
  min-width: 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  color: #334155;
  font-size: 11px;
  font-weight: 820;
}

.org-kr-function-row small,
.org-kr-process small {
  min-width: 0;
  max-width: 92px;
  overflow: hidden;
  color: #64748b;
  font-size: 9px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-kr-process {
  padding: 5px 6px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 8px;
  background: #f8fafc;
  cursor: grab;
}

.org-kr-function-row > span,
.org-kr-process span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 10px;
  font-weight: 950;
}

.org-kr-function-row button,
.org-kr-add {
  min-height: 26px;
  padding: 0 7px;
  border: 1px solid rgba(203, 213, 225, .86);
  border-radius: 8px;
  color: #92400e;
  background: #fffaf0;
  font-size: 10px;
  font-weight: 900;
}

.org-kr-add {
  justify-self: start;
}

.org-kr-empty {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 760;
}

.org-kr-floating {
  border-style: dashed;
  background: linear-gradient(180deg, #ffffff, #fffaf0);
}

.org-process-sidebar-item {
  min-width: 0;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(203, 213, 225, .86);
  border-radius: 8px;
  background: #fff;
  cursor: grab;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
}

.org-process-sidebar-item.dragging {
  opacity: .55;
}

.org-process-sidebar-item b,
.org-process-sidebar-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-process-sidebar-item b {
  color: #111827;
  font-size: 12px;
  font-weight: 900;
}

.org-process-sidebar-item small,
.org-process-sidebar-empty {
  color: #64748b;
  font-size: 11px;
  font-weight: 760;
}

.org-process-sidebar-delete {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: rgba(190, 18, 60, .58);
  background: rgba(255, 241, 242, .58);
  font-size: 14px;
  font-weight: 950;
}

.org-process-sidebar-delete:hover {
  color: #be123c;
  background: #ffe4e6;
}

.org-board-scroll {
  --org-cell: 32px;
  --org-pan-x: 0px;
  --org-pan-y: 0px;
  --org-zoom: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: grab;
  overscroll-behavior: contain;
  touch-action: none;
  user-select: none;
  background:
    linear-gradient(rgba(15, 23, 42, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .055) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff, #f8fbff);
  background-position:
    var(--org-pan-x) var(--org-pan-y),
    var(--org-pan-x) var(--org-pan-y),
    0 0;
  background-size:
    calc(var(--org-cell) * var(--org-zoom)) calc(var(--org-cell) * var(--org-zoom)),
    calc(var(--org-cell) * var(--org-zoom)) calc(var(--org-cell) * var(--org-zoom)),
    auto;
}

.org-board-scroll.panning {
  cursor: grabbing;
}

.org-board {
  --org-cell: 32px;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  cursor: grab;
  transform-origin: 0 0;
  will-change: transform;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.org-edges {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 1px;
  height: 1px;
  pointer-events: none;
  overflow: visible;
}

.org-edge-path {
  fill: none;
  stroke: #b45309;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  marker-end: url(#org-edge-arrow);
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,.95))
    drop-shadow(0 5px 9px rgba(15, 23, 42, .16));
}

.org-edge-path-inline {
  stroke-width: 1.4;
  stroke: #b45309;
  stroke-dasharray: 5 5;
  opacity: .9;
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,.9))
    drop-shadow(0 3px 6px rgba(15, 23, 42, .12));
}

.org-responsibility-board .org-edges {
  z-index: 3;
}

.org-responsibility-board .org-edges-inline {
  z-index: 12;
}

.org-edges marker path {
  fill: #f59e0b;
  stroke: #fff;
  stroke-width: .7;
}

.org-node {
  position: absolute;
  z-index: 4;
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-rows: 8px minmax(0, 1fr);
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.org-node:hover,
.org-node.selected,
.org-node.process-drop-target {
  border-color: rgba(245, 158, 11, .76);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .14), 0 0 0 3px rgba(245, 158, 11, .13);
}

.org-node.process-drop-target {
  background: linear-gradient(180deg, #fff7e6, #ffffff);
}

.org-node.dragging,
.org-node.resizing {
  opacity: .9;
  transform: translateY(-1px);
}

.org-node-grip {
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(90deg, #111827, #374151 55%, #f59e0b);
  cursor: grab;
}

.org-node-body {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.org-node textarea {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 11px 42px 6px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #17212b;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
  resize: none;
  overflow: auto;
}

.org-node textarea:focus {
  outline: none;
  background: rgba(255, 247, 230, .62);
}

.org-node-footer {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  align-items: center;
  padding: 0 10px 10px;
}

.org-node-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.org-metric-button {
  min-width: 0;
  min-height: 26px;
  padding: 0 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 5px;
  align-items: center;
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: 8px;
  color: #334155;
  background: rgba(248, 250, 252, .9);
  font-size: 10px;
  font-weight: 900;
}

.org-metric-button span {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-metric-button b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #92400e;
  background: #fff3d6;
  font-size: 10px;
  font-weight: 950;
}

.org-metric-button:hover {
  border-color: rgba(245, 158, 11, .55);
  background: #fffaf0;
}

.org-process-button {
  min-width: 0;
  min-height: 30px;
  padding: 0 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 7px;
  align-items: center;
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: 8px;
  color: #334155;
  background: rgba(248, 250, 252, .9);
  font-size: 11px;
  font-weight: 900;
}

.org-process-button span {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-process-button b {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #92400e;
  background: #fff3d6;
  font-size: 11px;
  font-weight: 950;
}

.org-process-button:hover {
  border-color: rgba(245, 158, 11, .55);
  background: #fffaf0;
}

.org-employees-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
  padding-right: 28px;
}

.org-employee-empty {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 850;
}

.org-employee-add,
.org-employee-avatar,
.org-employee-single span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, .9);
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.org-employee-add {
  color: #92400e;
  background: #fff7e6;
}

.org-employee-avatar:hover,
.org-employee-add:hover {
  border-color: rgba(245, 158, 11, .68);
  transform: translateY(-1px);
}

.org-employee-single {
  min-width: 0;
  max-width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  background: transparent;
  text-align: left;
}

.org-employee-single b {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-employee-search-panel {
  position: absolute;
  left: 10px;
  right: 34px;
  bottom: 10px;
  z-index: 5;
  padding: 7px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(245, 158, 11, .34);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .1);
}

.org-employee-search-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 5px;
}

.org-employee-search-head input {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 820;
}

.org-employee-search-head button {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-weight: 900;
}

.org-employee-search-results {
  display: grid;
  gap: 5px;
  max-height: 158px;
  overflow-y: auto;
}

.org-employee-search-results [hidden] {
  display: none !important;
}

.org-employee-search-results button {
  min-width: 0;
  padding: 6px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.org-employee-search-results button:hover {
  background: #f8fafc;
}

.org-employee-search-results span {
  grid-row: span 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 11px;
  font-weight: 950;
}

.org-employee-search-results b,
.org-employee-search-results small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-employee-search-results b {
  font-size: 11px;
  font-weight: 900;
}

.org-employee-search-results small,
.org-employee-search-empty {
  color: #64748b;
  font-size: 10px;
  font-weight: 760;
}

.org-process-modal {
  width: min(760px, calc(100vw - 28px));
}

.org-process-modal.org-resp-modal {
  width: min(1280px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
}

.org-process-modal .editor-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 780;
}

.org-process-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.org-process-tabs button {
  min-height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(203, 213, 225, .86);
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.org-process-tabs button.active,
.org-process-tabs button:hover {
  border-color: rgba(245, 158, 11, .55);
  background: #fff7e6;
  color: #111827;
}

.org-process-tabs span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-weight: 950;
}

.org-process-create {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) auto;
  gap: 8px;
  align-items: center;
}

.org-process-card-form {
  display: grid;
  gap: 12px;
}

.org-process-card-form label {
  display: grid;
  gap: 6px;
}

.org-process-card-form label span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.org-process-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.org-resp-card-form > .org-process-card-actions {
  justify-content: space-between;
}

.org-resp-card-delete-actions,
.org-resp-card-save-actions,
.org-resp-card-delete-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.org-resp-card-delete-confirm[hidden] {
  display: none;
}

.org-resp-card-delete-confirm span {
  color: #be123c;
  font-size: 11px;
  font-weight: 900;
}

.org-resp-card-save-actions {
  margin-left: auto;
}

.org-process-list {
  display: grid;
  gap: 8px;
}

.org-process-row {
  min-width: 0;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(203, 213, 225, .86);
  border-radius: 8px;
  background: #fff;
}

.org-process-row b,
.org-process-row span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-process-row b {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.org-process-row span,
.org-process-empty {
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
}

.org-process-row button {
  min-width: 64px;
  height: 30px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #9f1239;
  background: #fff1f2;
  font-size: 11px;
  font-weight: 900;
}

.org-node-actions {
  position: absolute;
  top: 14px;
  right: 8px;
  z-index: 3;
  display: grid;
  gap: 5px;
}

.org-node-actions button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 8px;
  color: #334155;
  background: rgba(255, 255, 255, .92);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.org-node-actions button:hover {
  border-color: rgba(245, 158, 11, .6);
  color: #92400e;
}

.org-node-resize {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 3;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(100, 116, 139, .9) 43% 50%, transparent 51%),
    linear-gradient(135deg, transparent 0 62%, rgba(100, 116, 139, .9) 63% 70%, transparent 71%),
    rgba(255,255,255,.8);
  cursor: nwse-resize;
}

.org-resp-quick-add {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.org-resp-board-select {
  min-width: 190px;
  max-width: 260px;
  height: 36px;
  padding: 0 32px 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.org-resp-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(203, 213, 225, .88);
  border-radius: 9px;
  background: rgba(248, 250, 252, .9);
}

.org-resp-view-switch button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: #64748b;
  background: transparent;
  font-size: 12px;
  font-weight: 950;
}

.org-resp-view-switch button.active {
  color: #111827;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
}

.org-resp-quick-add button {
  min-width: 0;
  padding: 0 6px;
}

.org-resp-type {
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #334155;
  background: #f1f5f9;
  font-size: 10px;
  font-weight: 950;
}

.org-resp-type.kr {
  color: #92400e;
  background: #fff3d6;
}

.org-resp-type.krGroup {
  color: #92400e;
  background: #fff3d6;
}

.org-resp-type.functionGroup,
.org-resp-type.commonFunctionGroup {
  color: #075985;
  background: #e0f2fe;
}

.org-resp-type.projectGroup,
.org-resp-type.skillGroup,
.org-resp-type.commonSkillGroup {
  color: #166534;
  background: #dcfce7;
}

.org-resp-type.groupAdd {
  color: #64748b;
  background: #f1f5f9;
}

.org-resp-type.function,
.org-resp-type.commonFunction {
  color: #075985;
  background: #e0f2fe;
}

.org-resp-type.project,
.org-resp-type.skill,
.org-resp-type.commonSkill {
  color: #166534;
  background: #dcfce7;
}

.org-resp-type.block {
  color: #334155;
  background: #e2e8f0;
}

.org-resp-node.block {
  z-index: 2;
  border-style: dashed;
  border-color: rgba(148, 163, 184, .88);
  background:
    linear-gradient(180deg, rgba(248,250,252,.78), rgba(241,245,249,.58));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.82), 0 18px 38px rgba(15, 23, 42, .08);
}

.org-resp-node.block .org-node-grip {
  cursor: default;
}

.org-resp-node:not(.block) {
  z-index: 5;
}

.org-resp-drop-preview {
  position: absolute;
  z-index: 4;
  border: 2px dashed rgba(245, 158, 11, .82);
  border-radius: 8px;
  background: rgba(245, 158, 11, .12);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.86), 0 12px 24px rgba(245, 158, 11, .14);
  pointer-events: none;
}

.org-resp-node:not(.block) .org-node-grip {
  height: 6px;
}

.org-resp-node .org-node-body {
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 7px;
  padding: 8px;
}

.org-resp-node:not(.block) .org-node-body {
  padding-right: 38px;
}

.org-resp-node.krGroup .org-node-body {
  padding-right: 8px;
}

.org-resp-node.krGroup,
.org-resp-node.functionGroup,
.org-resp-node.commonFunctionGroup,
.org-resp-node.projectGroup,
.org-resp-node.skillGroup,
.org-resp-node.commonSkillGroup,
.org-resp-node.groupAdd {
  cursor: pointer;
}

.org-resp-node.krGroup .org-node-body,
.org-resp-node.functionGroup .org-node-body,
.org-resp-node.commonFunctionGroup .org-node-body,
.org-resp-node.projectGroup .org-node-body,
.org-resp-node.skillGroup .org-node-body,
.org-resp-node.commonSkillGroup .org-node-body {
  padding-right: 38px;
}

.org-resp-node.groupAdd {
  border-style: dashed;
  border-color: rgba(148, 163, 184, .72);
  background: rgba(248, 250, 252, .86);
  box-shadow: none;
  cursor: default;
}

.org-resp-node.groupAdd .org-node-grip,
.org-resp-node.groupAdd .org-resp-card-head,
.org-resp-node.groupAdd .org-resp-title,
.org-resp-node.groupAdd .org-node-actions,
.org-resp-node.groupAdd .org-node-resize {
  display: none;
}

.org-resp-node.groupAdd .org-node-body {
  height: 100%;
  display: grid;
  align-items: stretch;
  padding: 5px;
}

.org-resp-add-section-stack {
  width: 100%;
  display: grid;
  align-content: start;
  gap: 4px;
}

.org-resp-add-section-button {
  width: 100%;
  min-height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #92400e;
  background: rgba(255, 247, 230, .82);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
  cursor: pointer;
}

.org-resp-add-section-button:hover {
  background: #ffedd5;
}

.org-resp-node.block .org-node-body {
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 4px;
  padding: 8px 42px 8px 10px;
}

.org-resp-node.block.vacant {
  border-color: rgba(245, 158, 11, .48);
}

.org-resp-node.block.vacant .org-node-body {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(245, 158, 11, .08) 0,
      rgba(245, 158, 11, .08) 7px,
      rgba(255, 255, 255, .36) 7px,
      rgba(255, 255, 255, .36) 15px
    ),
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(248,250,252,.86));
}

.org-resp-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) repeat(2, auto);
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.org-resp-kind {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.org-resp-title {
  min-height: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.org-resp-key-badge {
  justify-self: end;
  width: max-content;
  max-width: 44px;
  overflow: hidden;
  padding: 2px 6px;
  border: 1px solid rgba(245, 158, 11, .34);
  border-radius: 7px;
  color: #92400e;
  background: #fff7e6;
  font-size: 8px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.org-resp-vacant-badge {
  justify-self: end;
  width: max-content;
  max-width: 58px;
  overflow: hidden;
  padding: 2px 5px;
  border: 1px solid rgba(245, 158, 11, .42);
  border-radius: 999px;
  color: #92400e;
  background: rgba(255, 247, 230, .92);
  font-size: 7px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.org-resp-schedule-badge {
  justify-self: end;
  width: max-content;
  max-width: 78px;
  overflow: hidden;
  padding: 2px 6px;
  border: 1px solid rgba(20, 184, 166, .34);
  border-radius: 999px;
  color: #0f766e;
  background: rgba(240, 253, 250, .94);
  font-size: 7px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.org-resp-inline-key {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 15px;
  margin-right: 5px;
  padding: 0 4px;
  border: 1px solid rgba(245, 158, 11, .55);
  border-radius: 999px;
  color: #92400e;
  background: rgba(255, 247, 230, .72);
  font-size: 8px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: 1px;
}

.org-responsibility-board.compact .org-resp-node.function {
  box-shadow: 0 14px 26px rgba(15, 23, 42, .08);
}

.org-responsibility-board.compact .org-resp-node.block {
  background:
    linear-gradient(180deg, rgba(248,250,252,.88), rgba(255,247,230,.34));
}

.org-resp-process-stack {
  min-height: 0;
  display: grid;
  gap: 3px;
  overflow: hidden;
}

.org-resp-kpi-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.org-resp-kpi-row::-webkit-scrollbar {
  display: none;
}

.org-resp-kpi-row span {
  max-width: 96px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 2px 6px;
  border: 1px solid rgba(14, 165, 233, .22);
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 9px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-group-stack {
  min-height: 0;
  display: grid;
  gap: 3px;
  overflow: hidden;
}

.org-resp-group-stack > span,
.org-resp-group-stack article {
  min-width: 0;
  overflow: hidden;
  padding: 3px 6px;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 6px;
  color: #92400e;
  background: rgba(255, 247, 230, .85);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-group-stack [data-resp-group-row-id] {
  cursor: pointer;
}

.org-resp-group-stack [data-resp-group-row-id]:hover {
  border-color: rgba(245, 158, 11, .58);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .18);
}

.org-resp-group-stack [data-resp-group-row-id].selected {
  border-color: #f59e0b;
  box-shadow:
    inset 0 0 0 1px rgba(245, 158, 11, .32),
    0 0 0 2px rgba(245, 158, 11, .16);
}

.org-resp-group-stack.functionGroup article {
  display: grid;
  gap: 3px;
  border-color: rgba(14, 165, 233, .22);
  color: #075985;
  background: rgba(224, 242, 254, .78);
  white-space: nowrap;
}

.org-resp-group-stack.projectGroup > span {
  display: grid;
  gap: 2px;
  border-color: rgba(22, 163, 74, .2);
  color: #166534;
  background: rgba(220, 252, 231, .78);
  white-space: normal;
}

.org-resp-group-stack.projectGroup > span small {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 9px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-due {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  padding: 3px 7px;
  border-radius: 999px;
  color: #166534;
  background: rgba(220, 252, 231, .82);
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-group-stack article b {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-group-key-toggle {
  min-height: 26px;
  display: inline-grid !important;
  grid-template-columns: 16px max-content;
  width: fit-content;
  align-items: center;
  gap: 6px !important;
  padding: 4px 9px !important;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 999px;
  color: #92400e;
  background: #fff7e6;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.org-resp-group-key-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #f59e0b;
}

.org-resp-group-key-toggle span {
  min-width: 0;
  display: block;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  white-space: nowrap;
}

.org-resp-group-stack article div {
  display: grid;
  gap: 2px;
  padding-left: 8px;
  border-left: 2px solid rgba(14, 165, 233, .28);
}

.org-resp-group-stack article .org-resp-group-kpis {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
  padding-left: 0;
  border-left: 0;
  white-space: nowrap;
}

.org-resp-group-stack article .org-resp-group-kpis span {
  flex: 0 0 auto;
  max-width: 118px;
  overflow: hidden;
  padding: 2px 5px;
  border: 1px solid rgba(14, 165, 233, .24);
  border-radius: 999px;
  color: #075985;
  background: rgba(224, 242, 254, .9);
  font-size: 8px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-group-stack article div span {
  min-width: 0;
  overflow: hidden;
  color: #475569;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-process-stack span {
  min-width: 0;
  overflow: hidden;
  padding: 2px 6px;
  border: 1px solid rgba(203, 213, 225, .72);
  border-radius: 6px;
  color: #475569;
  background: rgba(248, 250, 252, .9);
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-function-detail-list,
.org-resp-group-stack article .org-resp-group-detail-list {
  min-width: 0;
  display: grid;
  gap: 3px;
  overflow: hidden;
  padding-left: 0;
  border-left: 0;
}

.org-resp-function-detail-list span,
.org-resp-group-stack article .org-resp-group-detail-list span {
  min-width: 0;
  min-height: 20px;
  max-width: none;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-function-detail-list.kpis span,
.org-resp-group-stack article .org-resp-group-detail-list.kpis span {
  border: 1px solid rgba(14, 165, 233, .25);
  color: #075985;
  background: rgba(224, 242, 254, .92);
}

.org-resp-function-detail-list.processes span,
.org-resp-group-stack article .org-resp-group-detail-list.processes span {
  border: 1px solid rgba(139, 92, 246, .2);
  color: #5b4b87;
  background: rgba(245, 243, 255, .9);
}

.org-resp-owner-chip {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  overflow: hidden;
  padding: 5px 7px;
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: 8px;
  background: rgba(248, 250, 252, .92);
}

.org-resp-owner-chip span {
  color: #64748b;
  font-size: 9px;
  font-weight: 850;
}

.org-resp-owner-chip b {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 11px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-node.block .org-resp-title {
  font-size: 15px;
}

.org-resp-block-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.org-resp-block-position {
  min-width: 0;
  overflow: hidden;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-block-position.muted {
  color: #0f766e;
}

.org-resp-block-goal {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 247, 230, .92), rgba(255,255,255,.72));
}

.org-resp-block-goal span {
  color: #92400e;
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
}

.org-resp-block-goal b {
  min-width: 0;
  overflow: hidden;
  color: #17212b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.org-resp-node.block .org-resp-owner-chip {
  padding: 4px 7px;
  background: rgba(255,255,255,.72);
}

.org-resp-modal textarea {
  min-height: 94px;
  resize: vertical;
}

.org-resp-owner-search {
  position: relative;
}

.org-resp-owner-trigger {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 10px;
  color: #17212b;
  background: #fff;
  text-align: left;
}

.org-resp-owner-trigger b {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-owner-trigger span {
  color: #64748b;
  font-size: 14px;
  font-weight: 950;
}

.org-resp-owner-options {
  display: none;
  max-height: 220px;
  overflow: auto;
  margin-top: 6px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
}

.org-resp-owner-options.open {
  display: grid;
}

.org-resp-owner-filter {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px;
  border-bottom: 1px solid rgba(226, 232, 240, .78);
  background: #fff;
}

.org-resp-owner-filter input {
  min-height: 36px;
  padding: 0 10px;
  font-size: 13px;
}

.org-resp-owner-options button {
  min-height: 42px;
  display: grid;
  gap: 2px;
  justify-items: start;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid rgba(226, 232, 240, .78);
  border-radius: 0;
  color: #17212b;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.org-resp-owner-options button[hidden] {
  display: none;
}

.org-resp-owner-options button:last-child {
  border-bottom: 0;
}

.org-resp-owner-options button:hover {
  background: #fff7e6;
}

.org-resp-owner-options small {
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
}

.org-resp-process-editor {
  display: grid;
  gap: 8px;
}

.org-resp-process-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
}

.org-resp-process-editor-head b {
  min-width: 24px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #92400e;
  background: #fff3d6;
}

.org-resp-process-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.org-resp-process-create input {
  min-height: 36px;
  padding: 0 10px;
  font-size: 13px;
}

.org-resp-process-editor-list {
  max-height: 210px;
  display: grid;
  gap: 6px;
  overflow: auto;
}

.org-resp-process-editor-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: 8px;
  background: #fff;
}

.org-resp-process-editor-list article span {
  min-width: 0;
  overflow: hidden;
  color: #17212b;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-process-editor-list article button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #be123c;
  background: #fff1f2;
  font-size: 13px;
  font-weight: 950;
}

.org-resp-kpi-editor .org-resp-process-editor-head b {
  color: #075985;
  background: #e0f2fe;
}

.org-resp-kpi-editor-list article span {
  color: #075985;
}

.org-resp-group-editor {
  display: grid;
  gap: 10px;
}

.org-resp-group-editor-list {
  max-height: min(58vh, 620px);
  display: grid;
  gap: 7px;
  overflow: auto;
}

.org-resp-group-editor-list article {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: 8px;
  background: #fff;
}

.org-resp-group-main-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.org-resp-group-editor-list article input {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.org-resp-group-main-row div {
  display: flex;
  gap: 6px;
  align-items: center;
}

.org-resp-group-due-chip {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(245, 158, 11, .22);
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.org-resp-group-due {
  display: grid;
  grid-template-columns: minmax(150px, max-content) minmax(180px, 240px);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
  background: #f8fafc;
}

.org-resp-group-due span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.org-resp-group-due input {
  width: 100%;
  min-width: 0;
}

.org-resp-group-editor-list .danger {
  color: #be123c;
  background: #fff1f2;
}

.org-resp-group-processes {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(226, 232, 240, .86);
  border-radius: 8px;
  background: #f8fafc;
}

.org-resp-group-function-details {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 8px;
}

.org-resp-link-toolbar {
  position: relative;
  z-index: 4;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
}

.org-resp-link-toolbar span {
  margin-left: 4px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
}

.org-resp-link-toolbar .active-mode {
  color: #075985;
  border-color: #7dd3fc;
  background: #e0f2fe;
}

.org-resp-link-arrows {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.org-resp-link-arrows > path {
  fill: none;
  stroke: #38a3c7;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 4 5;
  opacity: .78;
}

.org-resp-link-arrows marker path {
  fill: #38a3c7;
  opacity: .9;
}

.org-resp-group-function-details > .org-resp-group-processes {
  position: relative;
  z-index: 2;
}

.org-resp-group-function-details.link-mode-active [data-resp-link-process],
.org-resp-group-function-details.link-mode-active [data-resp-link-kpi] {
  cursor: pointer;
  transition: box-shadow .15s ease, background .15s ease;
}

.org-resp-group-function-details.link-mode-active [data-resp-link-process]:hover,
.org-resp-group-function-details.link-mode-active [data-resp-link-kpi]:hover,
.org-resp-group-function-details [data-resp-link-process].link-selected {
  border-radius: 8px;
  background: rgba(224, 242, 254, .9);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, .38);
}

.org-resp-group-kpi-editor {
  background: #f0f9ff;
}

.org-resp-group-kpi-editor .org-resp-group-processes-head b {
  color: #075985;
  background: #e0f2fe;
}

.org-resp-group-processes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
  font-size: 10px;
  font-weight: 950;
}

.org-resp-group-processes-head b {
  min-width: 22px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
}

.org-resp-group-process-list {
  display: grid;
  gap: 5px;
}

.org-resp-group-process-list div,
.org-resp-group-process-add {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.org-resp-group-process-list [data-resp-link-process] {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.org-resp-group-process-list button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #be123c;
  background: #fff1f2;
  font-weight: 950;
}

.org-resp-group-process-list .org-resp-process-choice {
  width: auto;
  min-width: 82px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #64748b;
  background: #fff;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.org-resp-group-process-list .org-resp-process-choice.selected {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.org-resp-process-picker-layer {
  z-index: 1400;
  padding: 18px;
}

.org-resp-process-picker {
  width: min(720px, calc(100vw - 36px));
  max-height: min(760px, calc(100vh - 36px));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.org-resp-process-picker-search {
  flex: 0 0 auto;
  width: 100%;
}

.org-resp-process-picker-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.org-resp-process-picker-list section {
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #f8fafc;
}

.org-resp-process-picker-list section[hidden] {
  display: none;
}

.org-resp-process-picker-owner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #475569;
  font-size: 11px;
}

.org-resp-process-picker-owner span {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-weight: 900;
}

.org-resp-process-picker-list section > button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  color: #17212b;
  background: #fff;
  text-align: left;
  font-weight: 800;
}

.org-resp-process-picker-list section > button:hover,
.org-resp-process-picker-list section > button.selected {
  border-color: #7dd3fc;
  background: #f0f9ff;
}

.org-resp-process-picker-list section > button small {
  color: #0284c7;
  font-size: 10px;
  font-weight: 900;
}

.org-resp-group-process-list small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 850;
}

.org-resp-check-row {
  min-height: 58px;
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(203, 213, 225, .86);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  color: #17212b;
}

.org-resp-check-row input {
  width: 17px;
  height: 17px;
  accent-color: #f59e0b;
}

.org-resp-check-row span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.org-resp-check-row b {
  color: #17212b;
  font-size: 13px;
  font-weight: 950;
}

.org-resp-check-row small {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.org-resp-kr-view {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 14px 0 0;
}

.org-resp-kr-controls {
  position: relative;
  z-index: 80;
  display: grid;
  grid-template-columns: 38px minmax(170px, 220px) 38px auto minmax(170px, 220px) minmax(190px, 240px);
  align-items: end;
  gap: 8px;
  max-width: 100%;
}

.org-resp-month-arrow {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  align-self: end;
  font-size: 16px;
}

.org-resp-kr-controls label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
}

.org-resp-kr-controls input,
.org-resp-kr-controls select {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(203, 213, 225, .92);
  border-radius: 9px;
  color: #0f172a;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.org-resp-filter-menu {
  position: relative;
  width: 100%;
  min-width: 0;
}

.org-resp-filter-menu[open] {
  z-index: 120;
}

.org-resp-filter-menu summary {
  position: relative;
  min-height: 38px;
  display: grid;
  align-items: center;
  min-width: 0;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(203, 213, 225, .92);
  border-radius: 9px;
  color: #0f172a;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-filter-menu summary::-webkit-details-marker {
  display: none;
}

.org-resp-filter-menu summary::after {
  content: "⌄";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 13px;
  font-weight: 950;
}

.org-resp-filter-menu[open] summary {
  border-color: rgba(245, 158, 11, .58);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .12);
}

.org-resp-filter-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 130;
  width: min(360px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: min(460px, calc(100vh - 170px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.org-resp-filter-panel > input {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.org-resp-filter-panel > button,
.org-resp-filter-actions button {
  min-height: 30px;
  border: 1px solid rgba(245, 158, 11, .24);
  border-radius: 8px;
  color: #92400e;
  background: #fff7e6;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.org-resp-filter-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.org-resp-filter-list {
  max-height: min(330px, calc(100vh - 280px));
  min-height: 0;
  display: grid;
  gap: 4px;
  overflow: auto;
}

.org-resp-filter-list label {
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(226, 232, 240, .72);
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
}

.org-resp-filter-list label[hidden] {
  display: none;
}

.org-resp-filter-list input {
  width: 15px;
  height: 15px;
  min-height: 15px;
  padding: 0;
  accent-color: #f59e0b;
}

.org-resp-filter-list span,
.org-resp-filter-list b,
.org-resp-filter-list small {
  min-width: 0;
  display: block;
}

.org-resp-filter-list b {
  overflow: hidden;
  color: #17212b;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-filter-list small {
  margin-top: 2px;
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-range-switch {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(203, 213, 225, .86);
  border-radius: 10px;
  background: #fff;
}

.org-resp-range-switch button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: #64748b;
  background: transparent;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.org-resp-range-switch button.active {
  color: #92400e;
  background: #fff3d6;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .22);
}

.org-resp-kr-chart {
  display: grid;
  grid-template-columns: minmax(140px, 210px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 247, 230, .58), rgba(255,255,255,.88) 42%),
    #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.org-resp-kr-chart.collapsed {
  grid-template-columns: minmax(0, 1fr);
  padding: 10px 12px;
}

.org-resp-kr-chart.collapsed > div:first-child {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
}

.org-resp-kr-chart.collapsed h3 {
  margin: 0;
}

.org-resp-kr-chart.collapsed > div:first-child p {
  margin: 0;
}

.org-resp-kr-chart h3 {
  margin: 3px 0 0;
  color: #17212b;
  font-size: 14px;
  line-height: 1.1;
}

.org-resp-kr-chart > div:first-child p {
  margin: 5px 0 8px;
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
}

.org-resp-kr-chart > div:first-child strong {
  min-width: 48px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(245, 158, 11, .34);
  border-radius: 999px;
  color: #92400e;
  background: #fff7e6;
  font-size: 12px;
  font-weight: 950;
}

.org-resp-kr-chart-toggle {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 8px;
  color: #92400e;
  background: #fff7e6;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.org-resp-kr-line-chart {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.org-resp-kr-line-chart svg {
  width: 100%;
  min-height: 140px;
  display: block;
}

.org-resp-kr-line-chart path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.org-resp-kr-line-chart .grid {
  stroke: rgba(203, 213, 225, .72);
  stroke-width: 1;
  stroke-dasharray: 2 8;
}

.org-resp-kr-line-chart .indicator-line {
  stroke: var(--line-color, #f59e0b);
  stroke-width: 1.8;
  filter: drop-shadow(0 3px 5px rgba(245, 158, 11, .14));
}

.org-resp-kr-line-chart .indicator-dot {
  fill: #fff7e6;
  stroke: var(--line-color, #f59e0b);
  stroke-width: 2;
  cursor: help;
}

.org-resp-kr-line-chart .empty {
  fill: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}

.org-resp-kr-line-chart text {
  fill: #64748b;
  font-size: 8px;
  font-weight: 850;
  text-transform: capitalize;
}

.org-resp-kr-line-legend {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.org-resp-kr-line-legend span {
  width: 20px;
  height: 3px;
  display: inline-block;
  border-radius: 999px;
  background: var(--line-color, #f59e0b);
}

.org-resp-kr-line-legend b {
  max-width: 190px;
  overflow: hidden;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-kr-line-legend em {
  color: #94a3b8;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.org-resp-chart-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 190px;
  max-width: 280px;
  display: none;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(203, 213, 225, .86);
  border-radius: 9px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
  pointer-events: none;
}

.org-resp-chart-tooltip.show {
  display: grid;
}

.org-resp-chart-tooltip b,
.org-resp-chart-tooltip span,
.org-resp-chart-tooltip em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-chart-tooltip b {
  color: #17212b;
  font-size: 12px;
  font-weight: 950;
}

.org-resp-chart-tooltip span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.org-resp-chart-tooltip em {
  color: #92400e;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.org-resp-kr-chart-bars {
  display: grid;
  gap: 9px;
}

.org-resp-kr-chart-bars article {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 2fr) 48px;
  align-items: center;
  gap: 10px;
}

.org-resp-kr-chart-bars b {
  min-width: 0;
  overflow: hidden;
  color: #17212b;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-kr-chart-bars article > div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.org-resp-kr-chart-bars article > div span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f172a, #f59e0b);
}

.org-resp-kr-chart-bars em {
  color: #92400e;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-align: right;
}

.org-resp-kr-chart-bars p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.org-resp-kr-month-chart {
  min-height: 230px;
  display: grid;
  grid-template-columns: repeat(7, minmax(72px, 1fr));
  gap: 12px;
  align-items: end;
}

.org-resp-kr-month-chart article {
  min-width: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.org-resp-kr-month-bars {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 7px;
  padding: 10px 9px;
  border: 1px solid rgba(226, 232, 240, .86);
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 0 24%, rgba(226,232,240,.55) 25% 25.5%, transparent 26% 49%, rgba(226,232,240,.55) 50% 50.5%, transparent 51% 74%, rgba(226,232,240,.55) 75% 75.5%, transparent 76%),
    rgba(248, 250, 252, .82);
}

.org-resp-kr-month-bars span {
  width: 18px;
  min-height: 3px;
  display: block;
  border-radius: 999px 999px 4px 4px;
}

.org-resp-kr-month-bars .plan {
  background: #cbd5e1;
}

.org-resp-kr-month-bars .fact {
  background: linear-gradient(180deg, #f59e0b, #0f172a);
  box-shadow: 0 8px 16px rgba(245, 158, 11, .18);
}

.org-resp-kr-month-chart b {
  color: #17212b;
  font-size: 12px;
  font-weight: 950;
  text-transform: capitalize;
}

.org-resp-kr-month-chart em {
  color: #92400e;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.org-resp-kr-month-chart small {
  max-width: 100%;
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-resp-kr-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .05);
}

.org-resp-kr-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.org-resp-kr-table th,
.org-resp-kr-table td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(226, 232, 240, .9);
  text-align: left;
  vertical-align: middle;
}

.org-resp-kr-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #64748b;
  background: #f8fafc;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.org-resp-kr-table th.current {
  color: #92400e;
  background: #fff7e6;
}

.org-resp-kr-table .org-resp-kr-month-group {
  border-left: 1px solid rgba(203, 213, 225, .62);
}

.org-resp-kr-table .org-resp-kr-month-start {
  border-left: 1px solid rgba(203, 213, 225, .62);
}

.org-resp-kr-table .org-resp-kr-month-end {
  border-right: 1px solid rgba(226, 232, 240, .7);
}

.org-resp-kr-month-head {
  display: inline-grid;
  grid-template-columns: minmax(72px, 1fr);
  align-items: center;
}

.org-resp-kr-month-head span {
  color: inherit;
  text-align: center;
  white-space: nowrap;
}

.org-resp-kr-table th small {
  display: block;
  margin-top: 3px;
  color: inherit;
  font-size: 9px;
  font-weight: 850;
  text-transform: none;
}

.org-resp-kr-table thead tr:nth-child(2) th {
  top: 38px;
  background: #fff;
}

.org-resp-kr-table th.org-resp-kr-plan-col,
.org-resp-kr-table td.org-resp-kr-plan-col {
  background: rgba(248, 250, 252, .68);
}

.org-resp-kr-table th.org-resp-kr-fact-col,
.org-resp-kr-table td.org-resp-kr-fact-col {
  border-left: 1px solid rgba(203, 213, 225, .68);
  background: rgba(248, 250, 252, .68);
}

.org-resp-kr-table th.org-resp-kr-period-start,
.org-resp-kr-table td.org-resp-kr-period-start {
  border-left: 1px solid rgba(245, 158, 11, .32);
}

.org-resp-kr-table th.org-resp-kr-period-end,
.org-resp-kr-table td.org-resp-kr-period-end {
  border-right: 1px solid rgba(245, 158, 11, .32);
}

.org-resp-kr-table thead tr:nth-child(2) th.org-resp-kr-period-start,
.org-resp-kr-table thead tr:nth-child(2) th.org-resp-kr-period-end {
  border-top: 1px solid rgba(245, 158, 11, .26);
  border-bottom: 1px solid rgba(245, 158, 11, .22);
  background: #fffaf0;
}

.org-resp-kr-table tbody td.org-resp-kr-period-start,
.org-resp-kr-table tbody td.org-resp-kr-period-end {
  border-top: 1px solid rgba(245, 158, 11, .12);
  border-bottom: 1px solid rgba(245, 158, 11, .12);
}

.org-resp-kr-table tbody tr:hover td.org-resp-kr-plan-col {
  background: rgba(255, 250, 240, .58);
}

.org-resp-kr-table tbody tr:hover td.org-resp-kr-fact-col {
  background: rgba(255, 250, 240, .58);
}

.org-resp-kr-day-head {
  display: inline-grid;
  justify-items: center;
  gap: 2px;
  min-width: 34px;
  line-height: 1.1;
  text-transform: none;
}

.org-resp-kr-day-head b {
  color: #334155;
  font-size: 11px;
  font-weight: 950;
}

.org-resp-kr-day-head small {
  margin: 0;
  color: #64748b;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.org-resp-kr-table tr:last-child td {
  border-bottom: 0;
}

.org-resp-kr-owner-row td {
  position: sticky;
  left: 0;
  z-index: 1;
  padding: 13px 12px 8px;
  background:
    linear-gradient(90deg, rgba(255, 247, 230, .86), rgba(248,250,252,.92));
  border-top: 1px solid rgba(203, 213, 225, .78);
  border-bottom: 1px solid rgba(226, 232, 240, .86);
}

.org-resp-kr-owner-row:first-child td {
  border-top: 0;
}

.org-resp-kr-subgroup-row td {
  position: sticky;
  left: 0;
  z-index: 1;
  padding: 6px 12px;
  background: #fff;
  border-bottom: 1px solid rgba(226, 232, 240, .86);
}

.org-resp-kr-subgroup-row.with-summary td:not(:first-child) {
  position: static;
  left: auto;
  z-index: auto;
  padding: 6px 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  background: #fff;
}

.org-resp-kr-subgroup-row.with-summary td:first-child {
  white-space: nowrap;
}

.org-resp-kr-subgroup-row.with-summary td:first-child b {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin-left: 8px;
  border-radius: 999px;
  color: #92400e;
  background: #fff3d6;
  font-size: 10px;
  font-weight: 950;
}

.org-resp-kr-owner-row div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.org-resp-kr-subgroup-row button,
.org-resp-kr-owner-row button {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 8px;
  color: #92400e;
  background: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.org-resp-kr-subgroup-row button {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-color: rgba(203, 213, 225, .84);
  color: #475569;
  background: #fff;
}

.org-resp-kr-owner-row button:hover {
  border-color: rgba(245, 158, 11, .55);
  background: #fff7e6;
}

.org-resp-kr-subgroup-row button:hover {
  border-color: rgba(245, 158, 11, .42);
  color: #92400e;
  background: #fff7e6;
}

.org-resp-kr-subgroup-row span {
  color: #334155;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.org-resp-kr-table .org-resp-kr-owner-row span {
  color: #17212b;
  font-size: 13px;
  font-weight: 950;
}

.org-resp-kr-table .org-resp-kr-owner-row b {
  min-width: 24px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #92400e;
  background: #fff3d6;
  font-size: 11px;
  font-weight: 950;
}

.org-resp-kr-table .org-resp-kr-owner-row em {
  margin-left: 10px;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.org-resp-kr-sticky-col {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  background: #fff;
  box-shadow: 10px 0 18px rgba(15, 23, 42, .04);
}

.org-resp-kr-table th.org-resp-kr-sticky-col {
  z-index: 3;
  background: #f8fafc;
}

.org-resp-kr-table b,
.org-resp-kr-table small {
  display: block;
  min-width: 0;
}

.org-resp-kr-table b {
  color: #17212b;
  font-size: 13px;
  font-weight: 600;
}

.org-resp-kr-row.kr .org-resp-kr-tree-cell {
  background: #fff;
}

.org-resp-kr-function-row td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(226, 232, 240, .9);
  color: #334155;
  background: linear-gradient(90deg, rgba(241, 245, 249, .86), rgba(248, 250, 252, .58));
}

.org-resp-kr-function-row b {
  color: #17212b;
  font-size: 13px;
  font-weight: 600;
}

.org-resp-kr-row.function .org-resp-kr-tree-cell {
  padding-left: 26px;
  background: #fff;
}

.org-resp-kr-row.kpi .org-resp-kr-tree-cell {
  padding-left: 46px;
  background: #fff;
}

.org-resp-kr-table small {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.org-resp-kr-table input {
  width: 54px;
  min-height: 28px;
  padding: 0 7px;
  border: 1px solid rgba(203, 213, 225, .64);
  border-radius: 7px;
  color: #334155;
  background: rgba(248, 250, 252, .62);
  font-size: 12px;
  font-weight: 850;
  box-shadow: none;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.org-resp-kr-table input[readonly] {
  color: #64748b;
  background: #f8fafc;
}

.org-resp-kr-table td:has(.org-resp-kr-cell-percent) {
  min-width: 82px;
}

.org-resp-kr-cell-percent {
  min-width: 28px;
  display: inline-grid;
  place-items: center;
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #b45309;
  background: rgba(255, 247, 230, .72);
  font-size: 9px;
  font-weight: 900;
  vertical-align: middle;
}

.org-resp-kr-table input:focus,
.org-resp-kr-controls input:focus,
.org-resp-kr-controls select:focus {
  outline: 3px solid rgba(245, 158, 11, .18);
  border-color: #f59e0b;
  background: #fff;
  color: #0f172a;
}

.org-resp-kr-progress {
  width: min(180px, 100%);
  height: 9px;
  display: inline-block;
  overflow: hidden;
  margin-right: 9px;
  border-radius: 999px;
  background: #e2e8f0;
  vertical-align: middle;
}

.org-resp-kr-progress span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f172a, #f59e0b);
}

.org-resp-kr-table strong {
  color: #92400e;
  font-size: 12px;
  font-weight: 950;
}

.org-resp-kr-empty {
  height: 120px;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
  text-align: center !important;
}

@media (max-width: 900px) {
  .org-resp-kr-controls {
    grid-template-columns: 38px minmax(150px, 1fr) 38px;
  }

  .org-resp-range-switch,
  .org-resp-filter-menu {
    grid-column: 1 / -1;
  }

  .org-resp-kr-chart {
    grid-template-columns: 1fr;
  }

  .org-resp-kr-month-chart {
    grid-template-columns: repeat(2, minmax(76px, 1fr));
  }

  .org-resp-kr-chart-bars article {
    grid-template-columns: 1fr 48px;
  }

  .org-resp-kr-chart-bars article > div {
    grid-column: 1 / -1;
    order: 3;
  }
}

.map-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.map-back {
  margin-bottom: 12px;
}

.map-toolbar .head-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  max-width: none;
}

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

.map-folder-list {
  display: grid;
  gap: 12px;
}

.map-folder-list .map-list {
  padding: 0 0 6px;
}

.map-folder-row {
  min-width: 0;
}

.map-folder-row.map-folder-drop-target,
.map-list.map-folder-drop-target {
  outline: 2px dashed rgba(245, 158, 11, .72);
  outline-offset: -4px;
  background: #fff7ed;
}

.operation-norm-status-group {
  display: grid;
  gap: 10px;
}

.operation-norm-status-row {
  min-width: 0;
  cursor: default;
}

.map-folder-select {
  min-width: 280px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.map-title-field {
  max-width: 780px;
  margin-top: 12px;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.map-title-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.map-code-badge {
  min-width: 44px;
  min-height: 34px;
  padding: 7px 10px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(245, 158, 11, .36);
  border-radius: 8px;
  color: #92400e;
  background: #fff7e6;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.map-code-badge.compact {
  min-width: 32px;
  min-height: 24px;
  margin-right: 7px;
  padding: 5px 7px;
  font-size: 11px;
}

.map-code-badge.map-block-badge {
  flex: 0 0 auto;
  min-width: 42px;
  margin-right: 0;
  border-color: rgba(15, 23, 42, .14);
  color: #111827;
  background: #f8fafc;
}

.map-title-field input {
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  font-size: 22px;
  font-weight: 900;
}

.map-title-field input:focus {
  outline: 3px solid rgba(245, 158, 11, .18);
  border-color: #f59e0b;
}

.map-folder-controls {
  margin-top: 12px;
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.map-folder-select input,
.map-folder-select select {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  font-weight: 800;
}

.map-card {
  min-height: 190px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: var(--shadow-soft);
}

.map-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.map-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.map-card-actions .small {
  min-height: 30px;
  padding: 7px 9px;
}

.map-card-open {
  padding: 0;
  display: grid;
  gap: 8px;
  text-align: left;
  background: transparent;
}

.map-card-open:hover strong {
  color: #b45309;
}

.map-card:hover {
  border-color: rgba(245, 158, 11, .58);
  transform: translateY(-1px);
}

.map-card.dragging {
  opacity: .54;
  transform: scale(.995);
}

.map-card strong {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  font-size: 20px;
  line-height: 1.16;
}

.map-card strong span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.map-card small {
  color: var(--muted);
  line-height: 1.35;
}

.map-card-meta {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.map-card-meta span {
  padding: 6px 9px;
  border-radius: 8px;
  color: #111827;
  background: var(--surface-tint);
  font-size: 12px;
  font-weight: 800;
}

.map-canvas-wrap {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.map-canvas {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .045) 1px, transparent 1px),
    #fbfdff;
  background-size: 32px 32px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.canvas-resize {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  cursor: ns-resize;
  user-select: none;
  font-size: 12px;
  font-weight: 760;
}

.canvas-resize span {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--line-strong);
}

.map-node {
  position: absolute;
  z-index: 2;
  width: 204px;
  min-height: 86px;
  padding: 13px;
  display: grid;
  gap: 6px;
  border: 1px solid #bee9d4;
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .11);
}

.map-node:hover {
  border-color: #f59e0b;
}

.map-node.selected {
  outline: 3px solid rgba(245, 158, 11, .22);
  border-color: #f59e0b;
}

.map-node.optimal-batch-node {
  border-color: #facc15;
  background: linear-gradient(180deg, #fffbeb, #ffffff);
  box-shadow: 0 16px 34px rgba(180, 83, 9, .13);
}

.map-node.node-map-block {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4, #ffffff);
  box-shadow: 0 16px 34px rgba(22, 101, 52, .13);
}

.map-node .node-kind {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-weight: 900;
}

.map-node b {
  font-size: 14px;
  line-height: 1.15;
}

.map-node-title {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.map-node-title > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.map-node span {
  color: #111827;
  font-weight: 800;
}

.map-node-open {
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #fed7aa;
  border-radius: 7px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
}

.map-node-open:hover {
  border-color: #fdba74;
  background: #ffedd5;
  color: #7c2d12;
}

.map-node small {
  font-size: 12px;
  line-height: 1.25;
}

.node-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.node-actions button,
.icon-close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--text);
  background: #eef3f7;
  font-weight: 900;
}

.node-actions button:hover,
.icon-close:hover {
  background: var(--blue-soft);
  color: #111827;
}

.map-edges {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.edge {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

.map-edges marker path {
  fill: var(--amber);
}

.operation-stages {
  display: grid;
  gap: 14px;
}

.stage-list {
  display: grid;
  gap: 12px;
}

.stage-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.stage-label {
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.stage-label b {
  font-size: 16px;
}

.stage-label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.stage-ops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.stage-op {
  padding: 13px;
  display: grid;
  gap: 7px;
  text-align: left;
  border: 1px solid #cfe9dc;
  border-radius: 8px;
  background: #ffffff;
}

.stage-op.optimal-batch-stage-op {
  border-color: #fde68a;
  background: #fffbeb;
}

.stage-op.node-stage-op {
  border-color: #86efac;
  background: #f0fdf4;
}

.stage-op:hover {
  border-color: #f59e0b;
  background: var(--surface-tint);
}

.stage-op strong {
  font-size: 14px;
}

.stage-op span {
  color: #111827;
  font-weight: 800;
}

.stage-op-details {
  display: grid;
  gap: 4px;
}

.stage-op-details em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.25;
}

.stage-op-details b {
  color: #111827;
  font-weight: 820;
}

.stage-op small,
.empty-state {
  color: var(--muted);
}

.optimal-batch-badge {
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid #fbbf24;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.assignment-create-panel {
  display: grid;
  gap: 4px;
}

.assignment-tabs {
  width: 100%;
}

.assignment-subtabs {
  width: min(860px, 100%);
}

.assignment-subtabs button {
  white-space: normal;
}

.simulation-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.simulation-controls h3 {
  margin: 0;
  font-size: 18px;
}

.simulation-controls p {
  margin-top: 4px;
}

.segmented-control {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.segmented-control button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.segmented-control button.active {
  color: #111827;
  background: #fff3d6;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .06);
}

.assignment-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(150px, .45fr) minmax(150px, .45fr) minmax(180px, .45fr);
  gap: 12px;
  align-items: end;
}

.assignment-launch-mode,
.assignment-source-note {
  grid-column: 1 / -1;
}

.assignment-source-note {
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.assignment-source-note.ok {
  border-color: rgba(16, 185, 129, .3);
  background: #ecfdf5;
  color: #047857;
}

.assignment-source-note.warn {
  border-color: rgba(245, 158, 11, .38);
  background: #fff7ed;
  color: #92400e;
}

.assignment-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.assignment-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  font-weight: 850;
}

.assignment-form input:focus {
  outline: 3px solid rgba(245, 158, 11, .18);
  border-color: #f59e0b;
  background: #fff;
}

.assignment-select-field {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.assignment-select {
  position: relative;
  min-width: 0;
}

.assignment-select summary {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.assignment-select summary::-webkit-details-marker {
  display: none;
}

.assignment-select summary:hover,
.assignment-select[open] summary {
  border-color: #f59e0b;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}

.assignment-select summary b {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignment-select summary i {
  color: #0f172a;
  font-style: normal;
  font-weight: 950;
  transition: transform .16s ease;
}

.assignment-select[open] summary i {
  transform: rotate(180deg);
}

.assignment-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 70;
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid #dbe5ee;
  border-radius: 10px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .14);
}

.assignment-select-menu input {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
}

.assignment-select-options {
  display: grid;
  gap: 3px;
  max-height: 220px;
  overflow-y: auto;
}

.assignment-select-options button {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
}

.assignment-select-options button:hover {
  background: #f8fafc;
}

.assignment-select-options button.selected {
  background: #fff8eb;
  color: #111827;
}

.assignment-select-options button.selected::after {
  content: "✓";
  color: #d97706;
  font-weight: 950;
}

.assignment-select-options button.is-hidden {
  display: none;
}

.assignment-form > button {
  min-height: 48px;
}

.demand-planner-panel {
  display: grid;
  gap: 14px;
}

.demand-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(145px, .45fr) minmax(150px, .45fr) minmax(155px, .5fr) minmax(105px, .35fr);
  gap: 12px;
  align-items: end;
}

.demand-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.demand-form input,
.demand-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  font-weight: 850;
}

.demand-form button {
  min-height: 42px;
  white-space: nowrap;
}

.demand-table .tr {
  min-width: 1120px;
}

.demand-row.fits {
  background: #f0fdf4;
}

.demand-row.miss {
  background: #fff7ed;
}

.inventory-summary-panel,
.inventory-warehouse-panel,
.inventory-areas-panel,
.material-warehouse-actions,
.material-issue-assignments-panel,
.material-issue-panel {
  display: grid;
  gap: 14px;
}

.inventory-tabs {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  overflow: visible;
}

.inventory-tabs button {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}

.inventory-summary-row {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.inventory-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 14px;
  align-items: start;
}

.inventory-area-card {
  min-width: 0;
  padding: 14px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.inventory-area-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.inventory-area-head h3 {
  margin: 3px 0 0;
  font-size: 18px;
}

.inventory-area-stats {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 2px 10px;
  text-align: right;
}

.inventory-area-stats span {
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.inventory-area-stats small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.inventory-category {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.inventory-category-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.inventory-category-head b {
  font-size: 14px;
}

.inventory-category-head span {
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: #fff3d6;
  font-size: 12px;
  font-weight: 900;
}

.inventory-table {
  display: grid;
  gap: 6px;
  overflow-x: auto;
}

.inventory-row {
  min-width: 620px;
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(100px, .55fr) minmax(120px, .7fr) minmax(100px, .55fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.inventory-row.with-batches {
  min-width: 920px;
  grid-template-columns: minmax(220px, 1.25fr) minmax(95px, .45fr) minmax(280px, 1.05fr) minmax(115px, .55fr) minmax(100px, .5fr);
}

.inventory-row.with-expected {
  min-width: 820px;
  grid-template-columns: minmax(220px, 1.35fr) minmax(95px, .45fr) minmax(170px, .8fr) minmax(115px, .55fr) minmax(100px, .5fr);
}

.inventory-row.with-batches.with-expected {
  min-width: 1080px;
  grid-template-columns: minmax(220px, 1.15fr) minmax(95px, .4fr) minmax(260px, .95fr) minmax(170px, .75fr) minmax(115px, .5fr) minmax(100px, .45fr);
}

.inventory-head {
  min-height: 34px;
  padding: 8px 10px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.inventory-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.inventory-row b {
  overflow-wrap: anywhere;
  color: #111827;
  font-size: 13px;
}

.inventory-row small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
}

.inventory-batches {
  display: grid;
  gap: 6px;
}

.inventory-batches div {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.inventory-batches b {
  font-size: 12px;
}

.inventory-row.reserved {
  border-color: #facc15;
  background: #fffdf2;
}

.inventory-row.deficit {
  border-color: #fda4af;
  background: #fff1f2;
}

.inventory-empty {
  padding: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 780;
}

.inventory-empty.compact {
  padding: 10px 12px;
  font-size: 12px;
}

.inventory-material-state {
  gap: 10px;
}

.inventory-material-state-block {
  display: grid;
  gap: 7px;
}

.inventory-material-state-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.inventory-material-state-title span {
  min-width: 24px;
  height: 21px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: #fff3d6;
}

.inventory-material-state-table {
  display: grid;
  gap: 6px;
  overflow-x: auto;
}

.inventory-material-state-row {
  min-width: 620px;
  display: grid;
  grid-template-columns: minmax(230px, 1.3fr) minmax(115px, .48fr) minmax(170px, .8fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.inventory-material-state-row.expected {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.inventory-material-state-row.reserved {
  border-color: #facc15;
  background: #fffdf2;
}

.inventory-material-state-row.deficit {
  border-color: #fda4af;
  background: #fff1f2;
}

.inventory-material-state-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
  overflow-wrap: anywhere;
}

.inventory-material-state-row b {
  overflow-wrap: anywhere;
  color: #111827;
  font-size: 13px;
}

.inventory-material-state-row small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
}

.material-add-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) minmax(150px, .55fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.material-add-form label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.material-add-form input,
.material-add-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  font-weight: 850;
}

.material-issue-table {
  display: grid;
  gap: 6px;
  overflow-x: auto;
}

.material-issue-row {
  min-width: 1120px;
  display: grid;
  grid-template-columns: minmax(130px, .85fr) minmax(220px, 1.25fr) minmax(90px, .5fr) minmax(90px, .45fr) minmax(90px, .45fr) minmax(190px, .85fr) minmax(110px, .55fr) minmax(100px, .45fr);
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.material-issue-head {
  min-height: 34px;
  padding: 8px 10px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.material-issue-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.material-issue-row b {
  overflow-wrap: anywhere;
  color: #111827;
  font-size: 13px;
}

.material-issue-row small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
}

.material-issue-row.deficit {
  border-color: #fda4af;
  background: #fff1f2;
}

.material-issue-row.issued {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.material-issue-assignment-list {
  display: grid;
  gap: 10px;
}

.material-issue-assignment {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.material-issue-assignment.open {
  border-color: rgba(245, 158, 11, .55);
}

.material-issue-assignment-head {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 0;
  color: var(--text);
  background: var(--surface-soft);
  text-align: left;
  cursor: pointer;
}

.material-issue-assignment-head span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.material-issue-assignment-head b,
.material-issue-assignment-row b {
  overflow-wrap: anywhere;
  color: #111827;
  font-size: 13px;
}

.material-issue-assignment-head small,
.material-issue-assignment-row small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 750;
}

.material-issue-assignment-caret {
  justify-items: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.material-issue-assignment-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.material-issue-assignment-body .head-actions {
  justify-content: end;
}

.material-issue-assignment-table {
  display: grid;
  gap: 6px;
  overflow-x: auto;
}

.material-issue-assignment-row {
  min-width: 880px;
  display: grid;
  grid-template-columns: minmax(230px, 1.25fr) minmax(110px, .55fr) minmax(110px, .5fr) minmax(110px, .5fr) minmax(300px, 1.2fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.material-issue-assignment-head-row {
  min-height: 34px;
  padding: 8px 10px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.material-issue-assignment-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
  overflow-wrap: anywhere;
}

.assignment-table .tr {
  min-width: 1240px;
}

.assignment-table .assignment-row {
  cursor: grab;
}

.assignment-table .assignment-row.has-resolution-warning {
  border-color: #fca5a5;
  background: #fff1f2;
  box-shadow: inset 4px 0 0 #ef4444;
}

.assignment-warning-cell {
  display: grid !important;
  align-content: center;
  justify-items: start;
  gap: 4px;
  text-align: left !important;
}

.assignment-warning-text {
  display: -webkit-box;
  overflow: hidden;
  color: #991b1b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.assignment-warning-cell small {
  padding: 2px 6px;
  border-radius: 999px;
  color: #991b1b;
  background: #fee2e2;
  font-size: 11px;
  font-weight: 900;
}

.task-restart-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  margin-right: 6px;
  padding: 0 6px;
  border: 1px solid #f59e0b;
  border-radius: 999px;
  color: #7c2d12;
  background: #fef3c7;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  vertical-align: middle;
}

.task-restart-note {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  margin: 2px 0 4px;
  padding: 7px 8px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  color: #7c2d12;
  background: #fffbeb;
  text-align: left;
}

.task-restart-note b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fef3c7;
  color: #7c2d12;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.task-restart-note span {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #7c2d12;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.assignment-table .assignment-row.dragging {
  opacity: .55;
}

.assignment-table .assignment-row.drop-before {
  box-shadow: inset 0 3px 0 #f5b51b;
}

.assignment-table .assignment-row.drop-after {
  box-shadow: inset 0 -3px 0 #f5b51b;
}

.assignment-table .assignment-row.drop-before,
.assignment-table .assignment-row.drop-after {
  background: #fffaf0;
}

.task-board-panel {
  display: grid;
  gap: 12px;
}

.area-load-panel {
  display: grid;
  gap: 12px;
}

.production-diagnostics-page {
  display: grid;
  gap: 14px;
}

.production-diagnostics-panel .panel-head {
  align-items: start;
}

.production-diagnostics-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.production-diagnostics-actions button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.production-diagnostics-controls {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(100px, 140px) minmax(150px, 180px) minmax(160px, 1fr);
  gap: 10px;
  align-items: end;
}

.production-diagnostics-controls label,
.production-diagnostics-map-picker label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.production-diagnostics-controls input[type="date"],
.production-diagnostics-controls input[type="number"] {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  background: #fff;
}

.production-diagnostics-all-maps {
  min-height: 40px;
  display: flex !important;
  grid-auto-flow: column;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.production-diagnostics-map-picker {
  max-height: 152px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.production-diagnostics-map-picker label {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.production-diagnostics-map-picker span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.production-diagnostics-error {
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-weight: 900;
}

.production-diagnostic-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.production-diagnostic-metric {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.production-diagnostic-metric strong {
  color: #111827;
  font-size: 25px;
  line-height: 1;
}

.production-diagnostic-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.production-diagnostic-metric.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.production-diagnostic-metric.warn {
  border-color: #fed7aa;
  background: #fff7ed;
}

.production-diagnostic-metric.bad {
  border-color: #fecaca;
  background: #fef2f2;
}

.production-diagnostics-table-panel {
  display: grid;
  gap: 12px;
}

.production-diagnostics-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.production-diagnostics-row {
  min-width: 980px;
  display: grid;
  gap: 1px;
  background: var(--line);
}

.production-diagnostics-row > span {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 42px;
  padding: 8px 10px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 850;
}

.production-diagnostics-row.head > span {
  min-height: 36px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.production-diagnostics-row.maps {
  grid-template-columns: minmax(240px, 1.5fr) minmax(260px, 1.3fr) 110px 110px 100px 100px 110px 90px;
}

.production-diagnostics-row.areas {
  grid-template-columns: minmax(220px, 1.4fr) repeat(5, 120px) 150px;
}

.production-diagnostics-row.employees {
  grid-template-columns: minmax(260px, 1.4fr) minmax(160px, .8fr) 100px 140px 140px 90px;
}

.production-diagnostics-row.warnings {
  grid-template-columns: 110px minmax(220px, 1fr) minmax(360px, 1.5fr) minmax(220px, .9fr);
}

.production-diagnostics-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.production-diagnostics-row em {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 1px 4px 1px 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef6ff;
  color: #475569;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.production-diagnostics-row .ok {
  color: #15803d;
}

.production-diagnostics-row .warn {
  color: #c2410c;
}

.production-diagnostics-row .bad {
  color: #b91c1c;
}

.production-diagnostics-empty {
  padding: 14px;
  color: var(--muted);
  font-weight: 850;
}

.area-load-table {
  display: grid;
  grid-template-columns: var(--area-load-cols);
  gap: 8px 12px;
  overflow-x: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.area-load-head-cell {
  min-height: 30px;
  display: flex;
  align-items: center;
  color: var(--text);
  font-weight: 860;
}

.forecast-mode {
  flex: 0 0 auto;
}

.area-load-action-head {
  position: sticky;
  right: 0;
  z-index: 2;
  padding-left: 8px;
  background: var(--surface-soft);
  box-shadow: -10px 0 14px rgba(15, 23, 42, .06);
}

.area-load-row {
  min-height: 54px;
  padding: 8px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 3px 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.area-load-row b {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #111827;
  background: rgba(255, 255, 255, .7);
}

.area-load-row span {
  color: #111827;
  font-weight: 900;
}

.area-load-percent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.area-load-percent em {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, .76);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.area-load-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.area-load-empty-cell {
  min-height: 54px;
  padding: 8px;
  display: grid;
  place-items: center;
  border: 1px dashed #c9d7ea;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 820;
  background: #fff;
}

.area-load-action-cell {
  min-height: 54px;
  padding: 8px;
  position: sticky;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: -10px 0 14px rgba(15, 23, 42, .06);
}

.area-load-action-cell b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #fff2bf;
}

.area-load-action-cell button {
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
  flex: 1;
}

.area-load-row.idle {
  border-color: #fecaca;
  background: #fff1f2;
}

.area-load-row.medium {
  border-color: #fde68a;
  background: #fff7df;
}

.area-load-row.good {
  border-color: #bbf7d0;
  background: #ecfdf3;
}

.area-load-row.overload {
  border-color: #fca5a5;
  background: #fee2e2;
}

.area-load-row.has-resolution-warning {
  border-color: #ef4444;
  background: #fff1f2;
  box-shadow: inset 4px 0 0 #ef4444;
}

.gantt-panel {
  display: grid;
  gap: 12px;
}

.gantt-chart {
  display: grid;
  grid-template-columns: var(--gantt-cols);
  gap: 8px 10px;
  overflow-x: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.gantt-picker {
  width: min(760px, 100%);
  position: relative;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.gantt-picker summary {
  min-height: 42px;
  padding: 7px 12px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  cursor: pointer;
  list-style: none;
}

.gantt-picker summary::-webkit-details-marker {
  display: none;
}

.gantt-picker summary span {
  color: var(--muted);
  font-size: 11px;
}

.gantt-picker summary b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-picker-menu {
  width: min(760px, calc(100vw - 64px));
  max-height: 320px;
  position: absolute;
  z-index: 6;
  top: calc(100% + 6px);
  left: 0;
  overflow: auto;
  padding: 8px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .18);
}

.gantt-picker-actions {
  padding: 4px;
  display: flex;
  gap: 6px;
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
}

.gantt-picker-menu label {
  padding: 8px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
}

.gantt-picker-menu label:hover {
  background: var(--surface-soft);
}

.gantt-corner,
.gantt-head,
.gantt-date {
  min-height: 34px;
  display: grid;
  align-items: center;
  color: var(--text);
  font-weight: 880;
}

.gantt-date {
  align-self: stretch;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.gantt-date b {
  font-size: 18px;
}

.gantt-date span {
  color: var(--muted);
  font-size: 12px;
}

.gantt-day-cell {
  min-height: 420px;
  display: grid;
  grid-template-columns: 54px var(--gantt-employee-cols, 1fr);
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    repeating-linear-gradient(to bottom, rgba(148, 163, 184, .16) 0 1px, transparent 1px var(--gantt-hour-step, 45px)),
    #fff;
}

.gantt-cell-timeline {
  position: sticky;
  left: 0;
  z-index: 2;
  height: 100%;
  border-right: 1px solid var(--line);
  background: rgba(248, 250, 252, .94);
}

.gantt-time-scale {
  position: relative;
  height: 100%;
}

.gantt-time-scale span {
  position: absolute;
  left: 0;
  right: 0;
  display: grid;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.gantt-time-scale span::after {
  content: "";
  position: absolute;
  left: 42px;
  right: -8px;
  top: 50%;
  border-top: 1px dashed rgba(148, 163, 184, .34);
}

.gantt-time-scale b {
  padding: 2px 4px;
  background: rgba(248, 250, 252, .94);
}

.gantt-employee-lane {
  position: relative;
  min-width: 150px;
  height: 100%;
  border-right: 1px dashed rgba(148, 163, 184, .36);
}

.gantt-employee-lane:last-child {
  border-right: 0;
}

.gantt-employee-head {
  height: 34px;
  padding: 5px 8px;
  position: sticky;
  top: 0;
  z-index: 1;
  overflow: hidden;
  color: #111827;
  background: rgba(255, 255, 255, .86);
  font-size: 11px;
  font-weight: 950;
  display: grid;
  gap: 1px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-employee-head span,
.gantt-employee-head small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-employee-head small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.gantt-empty {
  height: 100%;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 820;
}

.gantt-cell-timeline + .gantt-empty {
  grid-column: 2 / -1;
}

.gantt-task {
  position: absolute;
  left: 6px;
  right: 6px;
  min-height: 0;
  padding: 6px 8px;
  display: grid;
  align-content: center;
  gap: 3px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--gantt-task-border, #bfdbfe);
  border-radius: 7px;
  background: var(--gantt-task-bg, #eff6ff);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.gantt-task:hover,
.gantt-task:focus-visible {
  border-color: var(--gantt-task-border, #60a5fa);
  background: var(--gantt-task-hover, #dbeafe);
  outline: none;
}

.gantt-task.compact {
  padding: 2px 6px;
  align-content: start;
  gap: 1px;
  box-shadow: none;
}

.gantt-task.live {
  border-color: var(--gantt-task-border, #fde68a);
  background: var(--gantt-task-bg, #fffbeb);
}

.gantt-task.has-resolution-warning {
  border-color: #ef4444;
  background: #fff1f2;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, .16), 0 8px 18px rgba(127, 29, 29, .14);
}

.gantt-task.has-resolution-warning:hover,
.gantt-task.has-resolution-warning:focus-visible {
  border-color: #dc2626;
  background: #ffe4e6;
}

.gantt-task b,
.gantt-task span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-task-number {
  color: var(--text);
  font-size: 10px;
  line-height: 1.08;
  font-weight: 900;
}

.gantt-task-operation {
  color: var(--text);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.08;
}

.gantt-task-time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.05;
}

.gantt-task.compact .gantt-task-number,
.gantt-task.compact .gantt-task-operation {
  font-size: 9px;
  line-height: 1;
}

.plan-start-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.plan-start-field input {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  font-weight: 850;
}

.task-area-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 360px);
  gap: 14px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 6px;
}

.task-area-column {
  min-height: 180px;
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.task-area-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.task-area-title {
  display: grid;
  gap: 4px;
}

.task-area-title b {
  font-size: 16px;
}

.task-area-title small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.task-area-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.task-area-actions button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #111827;
  background: #e5e7eb;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.task-area-actions button:disabled {
  color: var(--faint);
  cursor: default;
  opacity: .45;
}

.task-area-actions span {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #111827;
  background: #fff3d6;
  font-weight: 850;
}

.task-area-empty {
  min-height: 92px;
  padding: 14px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-weight: 750;
}

.task-area-empty.compact {
  min-height: 54px;
  padding: 10px;
  font-size: 12px;
}

.task-column-section {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .56);
}

.task-column-section + .task-column-section {
  margin-top: 2px;
}

.task-column-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
}

.task-column-section-head b {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.completed-task-section {
  border-style: dashed;
  background: #f8fafc;
}

.task-lane {
  padding: 10px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.task-lane-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 2px;
}

.task-lane-head b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #111827;
  background: #fff3d6;
}

.task-lane-head div {
  display: grid;
  gap: 3px;
  justify-items: end;
}

.task-lane-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.covered-task-lane {
  border-style: dashed;
  background: #f8fafc;
}

.covered-task-lane .task-lane-head b {
  width: auto;
  min-height: 28px;
  padding: 0 8px;
  background: #dcfce7;
  color: #166534;
  white-space: nowrap;
}

.completed-task-lane {
  border-style: dashed;
  background: #f8fafc;
}

.completed-task-lane .task-lane-head b {
  width: auto;
  min-height: 28px;
  padding: 0 8px;
  background: #e0f2fe;
  color: #075985;
  white-space: nowrap;
}

.task-card {
  width: 100%;
  min-height: 132px;
  padding: 12px;
  display: grid;
  gap: 8px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
}

.task-card-open {
  width: 100%;
  padding: 0;
  display: grid;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.task-card-open:disabled {
  cursor: default;
}

.task-card:hover {
  border-color: #f59e0b;
  background: #fffdf7;
}

.task-card.covered-task {
  cursor: default;
  background: #f8fafc;
  box-shadow: none;
}

.task-card.covered-task:hover {
  border-color: var(--line);
  background: #f8fafc;
}

.task-card.completed-task {
  border-color: #d1d5db;
  background: #f3f4f6;
  box-shadow: none;
}

.task-card.completed-task:hover {
  border-color: #cbd5e1;
  background: #eef2f7;
}

.task-card.completed-task strong,
.task-card.completed-task small {
  color: #6b7280;
}

.task-card strong {
  font-size: 15px;
  line-height: 1.2;
}

.task-card small {
  color: var(--muted);
  font-weight: 700;
}

.task-card-meta {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
}

.task-card-meta span,
.task-card-meta b {
  min-width: 0;
}

.task-card-meta b {
  color: var(--text);
  font-weight: 850;
}

.task-card mark {
  width: fit-content;
}

.task-card-footer {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.task-card-print-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding-top: 2px;
}

.task-card-print-actions button {
  min-height: 30px;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1.1;
  white-space: normal;
}

.task-card-print-actions button:disabled {
  opacity: .48;
  cursor: default;
}

.task-card.live-task {
  border-color: #fde68a;
}

.task-card.simulation-task {
  border-color: #bfdbfe;
}

.task-monitor-page {
  gap: 14px;
}

.task-monitor-tabs {
  width: fit-content;
}

.task-monitor-board {
  --monitor-lane-width: 220px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #94a3b8 #eef2f7;
  -webkit-overflow-scrolling: touch;
}

.task-monitor-board::-webkit-scrollbar {
  height: 12px;
}

.task-monitor-board::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #eef2f7;
}

.task-monitor-board::-webkit-scrollbar-thumb {
  border: 3px solid #eef2f7;
  border-radius: 999px;
  background: #94a3b8;
}

.task-monitor-board::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.task-monitor-area-row {
  width: max-content;
  min-width: 100%;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.task-monitor-area-title {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  display: grid;
  align-content: start;
  gap: 6px;
}

.task-monitor-area-title b {
  font-size: 16px;
}

.task-monitor-area-title span,
.debug-token {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.task-monitor-area-title small {
  color: var(--muted);
  font-weight: 760;
}

.task-monitor-panel-head {
  align-items: start;
}

.task-monitor-head-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: end;
  gap: 8px;
}

.task-monitor-date-picker {
  display: grid;
  gap: 5px;
}

.task-monitor-date-picker span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.task-monitor-date-picker input {
  min-height: 34px;
  min-width: 150px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.task-monitor-date-stack {
  display: grid;
  gap: 10px;
  min-width: max-content;
}

.task-monitor-date-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.task-monitor-date-title {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  align-content: start;
  gap: 5px;
}

.task-monitor-date-title b {
  font-size: 13px;
  line-height: 1.2;
}

.task-monitor-date-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.task-monitor-employee-grid {
  display: grid;
  grid-template-columns: var(--monitor-cols);
  gap: 10px;
  min-width: max-content;
}

.task-monitor-lane {
  min-height: 138px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  align-content: start;
  gap: 8px;
}

.task-monitor-lane.drag-target {
  border-color: #f59e0b;
  background: #fffdf7;
  box-shadow: inset 0 0 0 2px rgba(245, 158, 11, .14);
}

.task-monitor-lane-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: var(--text);
}

.task-monitor-lane-head span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface-tint);
  font-weight: 900;
}

.task-monitor-card {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  text-align: left;
  display: grid;
  gap: 6px;
  cursor: grab;
}

.task-monitor-card:hover {
  border-color: #f59e0b;
  background: #fff;
}

.task-monitor-card.in-work {
  border-color: #f59e0b;
  background: #fffbeb;
}

.task-monitor-card strong {
  line-height: 1.2;
}

.task-monitor-card small {
  color: var(--muted);
  font-weight: 760;
}

.task-monitor-empty {
  min-height: 74px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.task-monitor-drop-placeholder {
  position: relative;
  height: 18px;
  margin: 1px 0;
  color: #92400e;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.task-monitor-drop-placeholder::before {
  content: "";
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .12);
}

.task-monitor-drop-placeholder::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #f59e0b;
  transform: translateY(-50%);
}

.task-monitor-drop-placeholder span {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 1px 6px;
  border-radius: 999px;
  background: #fffbeb;
  color: #92400e;
  font-size: 10px;
  font-weight: 800;
}

.task-monitor-scan {
  display: grid;
  gap: 8px;
}

.monitor-action-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
  gap: 12px;
  align-items: end;
}

.monitor-action-group {
  display: grid;
  gap: 7px;
}

.monitor-action-group > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.monitor-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.monitor-action-row button {
  min-height: 42px;
  padding-inline: 14px;
  line-height: 1.15;
}

.monitor-action-row.debug-actions {
  justify-content: space-between;
}

.monitor-action-row.debug-actions button {
  min-width: 164px;
}

.monitor-action-group.close-group {
  min-width: 112px;
}

.monitor-action-group.close-group .monitor-action-row {
  justify-content: flex-end;
}

.task-monitor-modal button[disabled] {
  opacity: .52;
  cursor: not-allowed;
}

.task-monitor-take-modal {
  max-width: 840px;
}

.task-monitor-take-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: stretch;
}

.task-monitor-take-form {
  display: grid;
  gap: 14px;
  align-content: start;
}

.task-monitor-take-qr-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  align-content: start;
  padding: 14px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #ffffff;
}

.task-monitor-take-qr-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.task-monitor-take-qr-card img {
  width: 214px;
  height: 214px;
  object-fit: contain;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.task-monitor-take-qr-card code {
  display: block;
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  background: #eef2f7;
  color: var(--text);
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

.task-monitor-print-preview {
  display: grid;
  gap: 9px;
  justify-items: center;
  align-content: start;
  padding: 14px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.task-monitor-print-head {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.task-monitor-print-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.task-monitor-print-head b {
  padding: 4px 7px;
  border-radius: 6px;
  background: #eef2f7;
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
}

.task-monitor-print-preview h4 {
  width: 100%;
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.12;
  text-align: left;
}

.task-monitor-print-preview p {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  text-align: left;
}

.task-monitor-print-preview img {
  width: 206px;
  height: 206px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.task-monitor-print-preview code {
  display: block;
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  background: #eef2f7;
  color: var(--text);
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

.task-monitor-print-meta {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.task-monitor-print-meta span {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-monitor-filter {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.task-monitor-filter b {
  display: block;
}

.task-monitor-filter-menu {
  position: relative;
}

.task-monitor-filter-trigger {
  width: min(320px, 42vw);
  min-height: 40px;
  padding: 8px 10px 8px 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  align-items: center;
  gap: 9px;
  border: 1px solid #d8e1ec;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
}

.task-monitor-filter-trigger:hover,
.task-monitor-filter-trigger:focus-visible,
.task-monitor-filter-trigger.has-selection {
  border-color: #f5b72e;
  outline: none;
}

.task-monitor-filter-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.task-monitor-filter-trigger > b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #fff7df;
  color: #a16207;
  transition: transform .15s ease;
}

.task-monitor-filter-trigger[aria-expanded="true"] > b {
  transform: rotate(180deg);
}

.task-monitor-filter-popover {
  position: absolute;
  z-index: 12;
  right: 0;
  top: calc(100% + 8px);
  width: min(360px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(15, 23, 42, .18);
  display: grid;
  gap: 9px;
}

.task-monitor-filter-search-wrap {
  min-height: 42px;
  padding: 0 11px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 1px solid #dbe4ef;
  border-radius: 9px;
  background: #f8fafc;
  color: #64748b;
}

.task-monitor-filter-search-wrap:focus-within {
  border-color: #f5b72e;
  box-shadow: 0 0 0 3px rgba(245, 183, 46, .14);
}

.task-monitor-filter-search-wrap input {
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.task-monitor-filter-options {
  max-height: 310px;
  padding-right: 3px;
  display: grid;
  gap: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.task-monitor-filter-popover .check-row {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  line-height: 1.25;
  cursor: pointer;
}

.task-monitor-filter-popover .check-row:hover,
.task-monitor-filter-popover .check-row:has(input:checked) {
  border-color: #fde2a2;
  background: #fff9e9;
}

.task-monitor-filter-popover input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #f59e0b;
}

.task-monitor-filter-popover .is-all span {
  display: grid;
  gap: 2px;
}

.task-monitor-filter-popover .is-all small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.task-monitor-filter-empty {
  padding: 22px 12px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.monitor-area-permissions {
  display: grid;
  gap: 8px;
}

.monitor-area-permissions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.permission-toggle.compact span {
  min-height: 34px;
}

.task-detail-modal {
  width: min(840px, 100%);
}

.task-detail-grid,
.task-block-info {
  display: grid;
  gap: 10px;
}

.task-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.task-detail-grid div,
.task-block-info div {
  padding: 12px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.task-detail-grid span,
.task-block-info span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.task-detail-grid b,
.task-block-info b {
  color: #111827;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.task-package-count-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.task-package-count-editor label {
  display: grid;
  gap: 6px;
}

.task-package-count-editor label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.task-package-count-editor input {
  min-height: 38px;
  max-width: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 800;
}

.task-detail-action-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.task-detail-action-panel > div:first-child {
  display: grid;
  gap: 4px;
}

.task-detail-action-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.task-detail-action-panel b {
  color: #111827;
  font-size: 15px;
  line-height: 1.25;
}

.task-detail-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.employee-task-actions {
  background: linear-gradient(135deg, #f8fbff 0%, #fff8eb 100%);
}

.task-action-message {
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.muted-action {
  opacity: .62;
}

.employee-cabinet-page {
  display: grid;
  gap: 14px;
}

.employee-cabinet-hero {
  min-height: 148px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.4fr) minmax(260px, 320px);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(245, 158, 11, .12)), #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.employee-cabinet-person {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.employee-cabinet-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.employee-cabinet-person p,
.employee-cabinet-card-head span {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.employee-cabinet-person h2 {
  margin: 4px 0;
  font-size: 28px;
  line-height: 1.08;
}

.employee-cabinet-person small {
  color: var(--muted);
  font-weight: 760;
}

.employee-cabinet-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.employee-cabinet-metrics div,
.employee-cabinet-summary-strip div {
  min-height: 74px;
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: 8px;
  background: rgba(255, 255, 255, .76);
}

.employee-cabinet-metrics b,
.employee-cabinet-summary-strip b {
  color: #111827;
  font-size: 22px;
  line-height: 1;
}

.employee-cabinet-metrics span,
.employee-cabinet-summary-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.employee-cabinet-picker {
  position: relative;
  align-self: center;
}

.employee-cabinet-picker summary {
  min-height: 74px;
  padding: 10px 12px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  cursor: pointer;
  list-style: none;
}

.employee-cabinet-picker summary::-webkit-details-marker {
  display: none;
}

.employee-cabinet-picker summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.employee-cabinet-picker-menu {
  width: min(360px, calc(100vw - 48px));
  max-height: 380px;
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  padding: 10px;
  display: grid;
  gap: 8px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .18);
}

.employee-cabinet-picker-menu input,
.employee-cabinet-month-control input,
.employee-cabinet-date-control input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 780;
}

.employee-cabinet-picker-menu button {
  width: 100%;
  min-height: 48px;
  padding: 8px;
  display: grid;
  gap: 3px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.employee-cabinet-picker-menu button[hidden],
.employee-cabinet-picker-empty[hidden] {
  display: none !important;
}

.employee-cabinet-picker-menu button:hover,
.employee-cabinet-picker-menu button.active {
  background: #f1f5f9;
}

.employee-cabinet-picker-menu small,
.employee-cabinet-picker-empty {
  color: var(--muted);
  font-size: 11px;
}

.employee-cabinet-subnav {
  width: fit-content;
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.employee-cabinet-subnav button {
  min-height: 36px;
  padding: 7px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
}

.employee-cabinet-subnav button.active {
  background: #111827;
  color: #fff;
}

.employee-cabinet-card {
  display: grid;
  gap: 14px;
}

.employee-cabinet-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.employee-cabinet-card-head h3 {
  margin: 3px 0 0;
  font-size: 22px;
}

.employee-cabinet-news-feed,
.employee-cabinet-training-sections,
.employee-cabinet-news-admin-list,
.employee-cabinet-training-admin-sections {
  display: grid;
  gap: 12px;
}

.employee-cabinet-news-item,
.employee-cabinet-training-section,
.employee-cabinet-news-admin-row {
  padding: 14px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.employee-cabinet-news-item.pinned {
  border-color: #fbbf24;
  background: #fffbeb;
}

.employee-cabinet-news-item b,
.employee-cabinet-training-file b,
.employee-cabinet-news-admin-row b {
  color: #111827;
  font-size: 15px;
  line-height: 1.25;
}

.employee-cabinet-news-item small,
.employee-cabinet-training-file small,
.employee-cabinet-news-admin-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.employee-cabinet-news-item p,
.employee-cabinet-news-admin-row p {
  margin: 0;
  color: #334155;
  font-weight: 720;
  line-height: 1.45;
  white-space: pre-wrap;
}

.employee-cabinet-training-sections {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}

.employee-cabinet-training-section {
  background: #f8fafc;
}

.employee-cabinet-training-section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.employee-cabinet-training-section-head h4 {
  margin: 0;
  font-size: 17px;
}

.employee-cabinet-training-section-head span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 900;
}

.employee-cabinet-training-files {
  display: grid;
  gap: 8px;
}

.employee-cabinet-training-file {
  min-height: 68px;
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 8px;
  background: #fff;
}

.employee-cabinet-training-file-kind {
  width: 64px;
  min-height: 46px;
  padding: 6px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  text-align: center;
}

.employee-cabinet-training-file-kind b {
  color: inherit;
  font-size: 12px;
  line-height: 1;
}

.employee-cabinet-training-file-kind small {
  margin: 0;
  color: inherit;
  font-size: 9px;
  line-height: 1.1;
}

.employee-cabinet-training-file-kind.sheet {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #166534;
}

.employee-cabinet-training-file-kind.doc {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.employee-cabinet-training-file-kind.pdf {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.employee-cabinet-training-file-kind.video {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.employee-cabinet-training-file-kind.presentation {
  border-color: #fde68a;
  background: #fffbeb;
  color: #a16207;
}

.employee-cabinet-training-file-kind.archive {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
}

.employee-cabinet-training-file-kind.image {
  border-color: #bae6fd;
  background: #f0f9ff;
  color: #0369a1;
}

.employee-cabinet-page,
.employee-cabinet-card,
.employee-cabinet-training-section,
.employee-cabinet-training-file > div {
  min-width: 0;
}

.employee-cabinet-training-file .row-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.employee-cabinet-manage-grid {
  display: grid;
  grid-template-columns: minmax(340px, .95fr) minmax(520px, 1.35fr);
  gap: 14px;
  align-items: start;
}

.employee-cabinet-manage-training,
.employee-cabinet-news-manager {
  display: grid;
  gap: 12px;
}

.employee-cabinet-news-form {
  display: grid;
  gap: 8px;
}

.employee-cabinet-news-form input,
.employee-cabinet-news-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  font: inherit;
  font-weight: 780;
}

.employee-cabinet-news-form textarea {
  min-height: 118px;
  resize: vertical;
}

.employee-cabinet-news-admin-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.employee-cabinet-month-control,
.employee-cabinet-date-control {
  display: flex;
  gap: 6px;
  align-items: center;
}

.employee-cabinet-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.employee-cabinet-schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(86px, 1fr));
  gap: 8px;
}

.employee-cabinet-day {
  min-height: 86px;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.employee-cabinet-day:hover,
.employee-cabinet-day.active {
  border-color: #0ea5e9;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, .28);
}

.employee-cabinet-day.weekend {
  background: #f8fafc;
}

.employee-cabinet-day.has-actual {
  background: #f8fafc;
}

.employee-cabinet-day.work-low {
  background: #fff1f2;
  border-color: #fecdd3;
}

.employee-cabinet-day.work-mid {
  background: #fff7ed;
  border-color: #fed7aa;
}

.employee-cabinet-day.work-good {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.employee-cabinet-day.work-neutral {
  background: #f8fafc;
  border-color: var(--line);
}

.employee-cabinet-day.absence {
  background: #fff7ed;
  border-color: #fed7aa;
}

.employee-cabinet-day-date,
.employee-cabinet-day small,
.employee-cabinet-task-card span,
.employee-cabinet-task-card small,
.employee-cabinet-task-times span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.employee-cabinet-day-date {
  color: #334155;
  font-size: 12px;
  font-weight: 950;
}

.employee-cabinet-day-hours {
  display: grid;
  gap: 4px;
}

.employee-cabinet-day-hours span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.employee-cabinet-day b {
  color: #111827;
  font-size: 13px;
  text-align: right;
}

.employee-cabinet-absence-summary {
  display: grid;
  gap: 10px;
}

.employee-cabinet-absence-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.employee-cabinet-absence-head b {
  color: #111827;
  font-size: 18px;
}

.employee-cabinet-absence-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.employee-cabinet-absence-list div {
  min-height: 74px;
  padding: 10px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.employee-cabinet-absence-list div.has-value {
  border-color: #fed7aa;
  background: #fff7ed;
}

.employee-cabinet-absence-list span,
.employee-cabinet-absence-list small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.employee-cabinet-absence-list b {
  color: #111827;
  font-size: 18px;
}

.employee-cabinet-task-list {
  display: grid;
  gap: 10px;
}

.employee-cabinet-task-card {
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(520px, 1.5fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.employee-cabinet-task-card h4 {
  margin: 4px 0;
  font-size: 17px;
}

.employee-cabinet-task-times {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.employee-cabinet-task-times div {
  min-height: 58px;
  padding: 8px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-radius: 7px;
  background: #f8fafc;
}

.employee-cabinet-task-times b {
  font-size: 15px;
}

.employee-cabinet-task-times b.good {
  color: #047857;
}

.employee-cabinet-task-times b.warn {
  color: #b45309;
}

.empty-state {
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  overflow: visible;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.tabs button {
  flex: 0 0 auto;
  min-width: max-content;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 760;
}

.tabs button.active {
  color: #111827;
  background: #fff3d6;
  font-weight: 850;
}

.relation-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin-bottom: 2px;
}

.relation-switcher select,
.relation-select-cell select,
.head-actions select,
.relation-picker-modal select {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 760;
}

.relation-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 46px;
  width: fit-content;
  max-width: 100%;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.relation-tab {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: transparent;
  transition: background .15s ease, box-shadow .15s ease;
}

.relation-tab.active {
  background: #fff3d6;
  box-shadow: inset 0 0 0 1px rgba(241, 207, 121, .55);
}

.relation-tab-open {
  min-height: 34px;
  padding: 0 10px 0 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 820;
}

.relation-tab.active .relation-tab-open {
  color: #111827;
}

.relation-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.icon-remove {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(100, 116, 139, .12);
  color: #64748b;
}

.relation-tab .icon-remove {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin-right: 5px;
  padding: 0;
  opacity: .75;
}

.icon-remove::before,
.icon-remove::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.icon-remove::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.icon-remove::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.icon-remove:hover {
  background: rgba(185, 28, 28, .12);
  color: var(--danger);
}

.relation-select-cell select {
  width: 100%;
}

.relation-select-cell {
  min-width: 0;
}

.relation-search-select {
  position: relative;
  width: 100%;
}

.relation-search-select summary {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 50%, #334155 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, #334155 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
    #fff;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.relation-search-select summary::-webkit-details-marker {
  display: none;
}

.relation-search-select summary b {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 850;
}

.relation-search-select[open] summary,
.relation-search-select summary:hover {
  border-color: #f59e0b;
}

.relation-search-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  width: min(360px, max(100%, 260px));
  padding: 8px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(203, 213, 225, .95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .2);
}

.relation-search-menu input {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.relation-search-options {
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 4px;
}

.relation-search-options button {
  width: 100%;
  min-height: 42px;
  padding: 6px 12px;
  display: grid;
  gap: 2px;
  align-items: center;
  align-content: center;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  line-height: 1.2;
}

.relation-search-options button:hover {
  background: #fff7e6;
}

.relation-search-options button.selected {
  background: transparent;
  color: #92400e;
}

.relation-search-options button.selected:hover {
  background: #fff7e6;
}

.relation-search-options button > .relation-option-title,
.relation-search-options button > .relation-map-option {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 850;
}

.relation-search-options button small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.relation-map-option {
  min-width: 0;
  width: 100%;
  min-height: 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.relation-search-select summary .relation-map-option {
  width: 100%;
}

.relation-search-select .map-code-badge.compact {
  min-width: 30px;
  height: 24px;
  min-height: 0;
  margin-right: 0;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 11px;
  box-sizing: border-box;
}

.relation-map-option-title,
.relation-option-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relation-search-options button.is-hidden {
  display: none;
}

.relation-pager {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.relation-pager span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.relation-pager button:disabled {
  cursor: default;
  opacity: .48;
}

.relation-picker-modal {
  width: min(520px, calc(100vw - 40px));
  padding: 24px;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(15, 23, 42, .26);
}

.relation-modal-head,
.relation-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.relation-picker-modal h3 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.1;
}

.relation-picker-field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}

.relation-picker-field span {
  font-size: 13px;
}

.relation-picker-modal select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
}

.modal-close {
  width: 32px;
  height: 32px;
}

.relation-modal-actions {
  justify-content: flex-end;
  padding-top: 2px;
}

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

.relation-settings {
  margin-bottom: 16px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.relation-settings span,
.legacy-note,
.legacy-value small {
  color: var(--muted);
}

.settings-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.legacy-value {
  display: grid;
  gap: 3px;
  color: var(--amber);
  font-weight: 760;
}

.legacy-value small,
.legacy-note {
  font-size: 12px;
  font-weight: 700;
}

.relation-extra-box {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.relation-extra-row {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.relation-extra-row select {
  width: 100%;
}

.empty-inline {
  color: var(--muted);
  font-weight: 750;
}

.relation-help > div {
  padding: 18px;
  display: grid;
  gap: 8px;
}

/* Relations screen polish: keep these selectors explicit so the matrix controls
   do not inherit generic button/tab styles when the layout changes. */
.stack > .relation-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
}

.stack > .relation-switcher .relation-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.stack > .relation-switcher .relation-tab {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
  background: transparent;
}

.stack > .relation-switcher .relation-tab.active {
  background: #fff3d6;
  box-shadow: inset 0 0 0 1px rgba(241, 207, 121, .65);
}

.stack > .relation-switcher .relation-tab-open {
  min-height: 34px;
  padding: 0 10px 0 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.stack > .relation-switcher .relation-tab.active .relation-tab-open {
  color: #111827;
}

.stack > .relation-switcher .icon-remove,
.relation-column-head .icon-remove,
.relation-picker-modal .icon-remove {
  position: relative;
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border-radius: 999px;
  background: rgba(100, 116, 139, .12);
  color: #64748b;
}

.relation-picker-modal {
  width: min(520px, calc(100vw - 40px));
  padding: 24px;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(15, 23, 42, .26);
}

.relation-picker-modal .relation-modal-head,
.relation-picker-modal .relation-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.relation-picker-modal .relation-picker-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}

.relation-picker-modal select {
  width: 100%;
  min-height: 44px;
}

.relation-picker-modal .relation-modal-actions {
  justify-content: flex-end;
}

.relation-confirm-modal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 650;
}

.access-grid .log-panel {
  grid-column: 1 / -1;
}

.log-list > span {
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
}

.journal-count {
  padding: 7px 10px;
  border-radius: 999px;
  color: #111827;
  background: #fff3d6;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.journal-row {
  display: grid;
  grid-template-columns: 92px minmax(180px, .8fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.journal-time {
  color: #111827;
  font-size: 13px;
  font-weight: 850;
}

.journal-body,
.journal-body b,
.journal-body small {
  display: block;
}

.journal-body small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.journal-action {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #475569;
  font-weight: 760;
}

.journal-action b,
.journal-action small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.journal-action b {
  color: #111827;
}

.journal-action small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.journal-pager {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.journal-pager span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.journal-pager button:disabled {
  cursor: default;
  opacity: .45;
}

.toast {
  width: fit-content;
  padding: 12px 16px;
  border: 1px solid rgba(245, 158, 11, .38);
  border-radius: 8px;
  color: #111827;
  background: var(--surface-tint);
  font-weight: 850;
  box-shadow: var(--shadow-soft);
}

.catalog-editor-page {
  align-self: start;
}

.editor-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.editor-page-head.compact {
  align-items: center;
}

.editor-page-head .eyebrow {
  display: block;
  margin-top: 18px;
}

.editor-page-head h3 {
  margin-top: 6px;
}

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

.catalog-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 750;
}

.catalog-form input,
.catalog-form select {
  width: 100%;
  min-height: 48px;
}

.catalog-form input:focus,
.catalog-form select:focus {
  outline: 3px solid rgba(245, 158, 11, .18);
  border-color: #f59e0b;
  background: #fff;
}

.catalog-form input[readonly] {
  color: var(--faint);
}

.primary-name-field {
  grid-column: 1 / -1;
  color: var(--ink) !important;
}

.primary-name-field input {
  min-height: 56px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.catalog-weekday-field {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.catalog-weekday-field legend {
  padding: 0 6px;
  color: var(--muted);
  font-weight: 850;
}

.catalog-weekday-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(58px, 1fr));
  gap: 8px;
}

.catalog-weekday-option {
  min-height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px !important;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink) !important;
  background: #fff;
}

.catalog-weekday-option input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  accent-color: #f59e0b;
}

.schedule-cycle-editor {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.schedule-cycle-list {
  display: grid;
  gap: 8px;
}

.schedule-cycle-anchor {
  display: grid;
  grid-template-columns: minmax(180px, 260px) auto minmax(220px, 1fr);
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(20, 184, 166, .22);
  border-radius: 8px;
  background: #f0fdfa;
}

.schedule-cycle-anchor label {
  display: grid;
  gap: 6px;
}

.schedule-cycle-anchor span {
  align-self: center;
  color: #64748b;
  font-weight: 850;
}

.schedule-work-dates-preview {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.schedule-work-dates-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.schedule-work-dates-head b {
  color: #0f766e;
  font-size: 22px;
  font-weight: 950;
}

.schedule-work-dates-head span,
.schedule-work-dates-empty {
  color: #64748b;
  font-weight: 850;
}

.schedule-work-dates-preview textarea {
  min-height: 104px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
}

.schedule-cycle-row {
  display: grid;
  grid-template-columns: minmax(132px, .7fr) repeat(5, minmax(112px, 1fr)) 80px 84px;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.schedule-cycle-row > b {
  align-self: center;
}

.schedule-cycle-row label {
  display: grid;
  gap: 4px;
}

.schedule-cycle-row input {
  min-height: 36px;
  padding: 0 10px;
}

.schedule-cycle-row > span {
  min-height: 36px;
  display: grid;
  align-content: center;
  color: var(--muted);
  font-weight: 900;
}

.material-alt-units {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.material-alt-units .type-box-head > div {
  display: grid;
  gap: 4px;
}

.material-alt-units .type-box-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

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

.alt-unit-row {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(260px, .9fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.alt-unit-factor {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--text);
  font-weight: 850;
}

.alt-unit-factor input {
  min-width: 0;
}

.alt-unit-inverse {
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 850;
}

.alt-unit-warning {
  color: #e11d48;
}

.operation-model-settings {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.operation-model-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.operation-model-card[open] {
  display: grid;
  gap: 12px;
}

.operation-model-summary {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.operation-model-summary::-webkit-details-marker {
  display: none;
}

.operation-model-summary > span {
  color: var(--muted);
  font-weight: 850;
}

.operation-model-summary > span::after {
  content: " +";
  color: #f59e0b;
}

.operation-model-card[open] .operation-model-summary > span::after {
  content: " -";
}

.operation-model-head {
  display: grid;
  grid-template-columns: minmax(180px, 240px);
  gap: 12px;
  align-items: end;
}

.operation-model-summary h4 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 18px;
}

.operation-model-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 18px;
  align-items: start;
}

.operation-model-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.operation-model-panel.source-panel {
  background: #ffffff;
}

.operation-model-panel.optimal-panel {
  border-color: rgba(245, 158, 11, .35);
  background: #fff8eb;
}

.operation-model-panel h5 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.optimal-batch-controls {
  display: grid;
  grid-template-columns: minmax(140px, .45fr) minmax(220px, 1fr);
  gap: 10px;
}

.optimal-value {
  min-height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-weight: 850;
}

.optimal-row-note {
  color: var(--muted);
  font-weight: 850;
}

.optimal-row.active-driver .optimal-value {
  border-color: #f59e0b;
  background: #fff8eb;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 900;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .24);
  backdrop-filter: blur(10px);
}

.modal-layer.modal-layer-under {
  pointer-events: none;
  background: transparent;
  backdrop-filter: none;
}

.modal-layer.modal-layer-under .block-editor {
  opacity: .86;
  transform: translateY(8px) scale(.985);
}

.block-editor {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(15, 23, 42, .22);
}

.block-editor.map-block-editor {
  width: min(1480px, calc(100vw - 48px));
}

.map-block-editor-layout {
  display: grid;
  grid-template-columns: minmax(420px, .92fr) minmax(460px, .82fr);
  gap: 18px;
  align-items: start;
}

.map-block-editor-main,
.map-block-editor-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.map-block-editor-side {
  position: sticky;
  top: 0;
}

.map-block-optimal-panel {
  gap: 12px;
}

.map-block-optimal-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.map-block-optimal-panel.muted {
  min-height: 140px;
  align-content: start;
}

.map-block-optimal-panel .optimal-batch-controls {
  grid-template-columns: minmax(140px, .5fr) minmax(220px, 1fr);
}

.block-editor.office-task-modal:not(.office-project-modal) {
  width: min(1480px, calc(100vw - 48px));
  height: calc(100vh - 48px);
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.office-task-modal:not(.office-project-modal) > .office-task-modal-layout,
.office-task-modal:not(.office-project-modal) > .office-task-related-box,
.office-task-modal:not(.office-project-modal) > .office-task-conversation-wide {
  flex: 0 0 auto;
}

.office-task-modal:not(.office-project-modal) .office-task-conversation-wide .office-task-conversation {
  height: auto;
  min-height: 360px;
}

.office-task-modal > .editor-actions {
  position: sticky;
  z-index: 30;
  bottom: 0;
  margin: 0 -22px;
  padding: 12px 22px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -10px 24px rgba(15, 23, 42, .08);
  backdrop-filter: blur(10px);
}

.office-task-modal > .editor-actions > [data-office-modal="close"] {
  margin-left: auto;
}

.block-editor.office-project-modal {
  width: min(760px, 100%);
  height: auto;
  max-height: calc(100vh - 48px);
  grid-template-rows: none;
  grid-auto-rows: auto;
  align-content: start;
  overflow: auto;
}

.editor-head,
.editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.block-editor h3 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.1;
}

.block-editor label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 750;
}

.block-editor input,
.block-editor select,
.block-editor textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-soft);
}

.block-editor input:focus,
.block-editor select:focus,
.block-editor textarea:focus {
  outline: 3px solid rgba(245, 158, 11, .18);
  border-color: #f59e0b;
  background: #fff;
}

.block-editor input[readonly] {
  color: var(--muted);
  background: var(--surface-soft);
}

.map-operation-duplicate-warning {
  padding: 11px 12px;
  border: 1px solid #facc15;
  border-radius: 8px;
  color: #92400e;
  background: linear-gradient(180deg, #fffbeb, #fff7d6);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
}

.operation-settings-conflict {
  padding: 11px 12px;
  border: 1px solid #facc15;
  border-radius: 8px;
  color: #92400e;
  background: linear-gradient(180deg, #fffbeb, #fff7d6);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
}

.map-operation-duplicate-warning[hidden] {
  display: none;
}

.operation-time-editor {
  display: grid;
  gap: 10px;
}

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

.operation-time-grid label {
  gap: 5px;
}

.operation-time-grid input {
  text-align: center;
}

.block-editor textarea {
  min-height: 78px;
  resize: vertical;
}

.block-editor .optimal-batch-toggle {
  grid-template-columns: auto minmax(0, 1fr);
  justify-content: start;
  padding: 12px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  color: #92400e;
  background: #fffbeb;
}

.block-editor .optimal-batch-toggle input {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: #f59e0b;
}

.block-editor .optimal-batch-toggle span {
  color: #78350f;
  font-weight: 900;
}

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

.connection-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.nomenclature-type-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.type-box-head,
.type-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.type-box-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.type-row select {
  min-width: 0;
  flex: 1;
}

.repeat-select-cell {
  position: relative;
  min-width: 0;
  flex: 1;
}

.repeat-select-search {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font-weight: 760;
  width: 100%;
}

.repeat-select-line {
  display: block;
}

.repeat-select-line select {
  width: 100%;
}

.repeat-selected-value {
  margin-top: 5px;
  padding: 0 2px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
  overflow-wrap: anywhere;
  white-space: normal;
}

.repeat-create-toggle {
  width: 36px;
  height: 36px;
  font-size: 18px;
  line-height: 1;
}

.repeat-search-popover {
  position: absolute;
  z-index: 15;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.repeat-search-popover[hidden] {
  display: none;
}

.repeat-search-results {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.repeat-search-option {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.repeat-search-option:hover,
.repeat-search-option.selected {
  background: #eef5ff;
}

.repeat-search-empty {
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 800;
}

.repeat-create-inline {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.repeat-create-section {
  margin-top: -2px;
}

.repeat-create-inline[hidden] {
  display: none;
}

.repeat-create-inline input {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font-weight: 800;
}

.type-row-stack {
  display: grid;
  gap: 8px;
}

.type-row.with-measure {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px 120px auto;
}

.type-row.with-measure.has-unit-select {
  grid-template-columns: minmax(220px, 1fr) 120px 120px auto;
}

.type-row.with-measure input {
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  font-weight: 800;
}

.type-row.with-measure select {
  width: 100%;
}

.unit-readonly {
  min-height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #111827;
  background: #eef3f7;
  font-weight: 850;
}

.type-color-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding-left: 8px;
}

.type-color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.repeat-color-control {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 32px;
  gap: 6px;
  align-items: center;
  max-width: 280px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, .45);
  border-radius: 8px;
  background: #ffffff;
}

.repeat-color-control select {
  min-height: 34px;
  padding: 7px 8px;
  font-size: 12px;
}

.assignment-characteristics {
  grid-column: 1 / 4;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc;
}

.assignment-characteristics > b {
  grid-column: 1 / -1;
  color: var(--text);
}

.task-resolution-warnings {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  background: #fff7ed;
  font-weight: 800;
}

.task-resolution-warnings.restart-note {
  border-color: #fde68a;
  color: #854d0e;
  background: #fffbeb;
}

.check-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: #f59e0b;
}

.data-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.data-hero p,
.data-storage-card p,
.data-backups-panel p,
.data-slices-panel p,
.data-breakdown-panel p {
  color: var(--muted);
  font-weight: 800;
}

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

.data-storage-card {
  display: grid;
  gap: 10px;
}

.data-storage-card.warning {
  border-color: #f6c15f;
  background: #fff8e6;
}

.data-storage-card h3 {
  margin: 0;
}

.data-storage-card p {
  overflow-wrap: anywhere;
}

.data-kv {
  display: grid;
  grid-template-columns: minmax(120px, .75fr) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
}

.data-kv span {
  color: var(--muted);
  font-weight: 800;
}

.data-kv b {
  text-align: right;
}

.scanner-debug-page {
  max-width: 1320px;
}

.scanner-debug-hero {
  align-items: stretch;
}

.scanner-debug-status {
  display: grid;
  gap: 5px;
  min-width: min(360px, 100%);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.scanner-debug-status.ok {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.scanner-debug-status.warn {
  border-color: #facc15;
  background: #fefce8;
  color: #854d0e;
}

.scanner-debug-status.bad {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}

.scanner-debug-status span {
  font-weight: 800;
}

.scanner-debug-layout {
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(280px, .6fr);
  gap: 14px;
}

.scanner-debug-console,
.scanner-debug-settings {
  display: grid;
  gap: 14px;
}

.scanner-debug-readout {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.scanner-debug-readout span {
  color: var(--muted);
  font-weight: 900;
}

.scanner-debug-readout code,
.scanner-debug-sample code {
  display: block;
  max-width: 100%;
  padding: 8px;
  border-radius: 6px;
  background: #eef2f7;
  color: var(--text);
  overflow-wrap: anywhere;
  white-space: normal;
}

.scanner-debug-kv b {
  overflow-wrap: anywhere;
}

.scanner-debug-checklist {
  display: grid;
  gap: 10px;
}

.scanner-debug-checklist span {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 900;
}

.scanner-debug-checklist b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text);
  color: #ffffff;
  font-size: 13px;
}

.scanner-debug-samples {
  display: grid;
  gap: 14px;
}

.scanner-debug-active-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  justify-items: center;
  padding: 18px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
}

.scanner-debug-active-code > div {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.scanner-debug-active-code span {
  color: var(--text);
  font-size: 18px;
  font-weight: 950;
}

.scanner-debug-active-code small {
  color: var(--muted);
  font-weight: 850;
}

.scanner-debug-active-code img {
  width: min(100%, 460px);
  height: 280px;
  object-fit: contain;
  padding: 18px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #ffffff;
}

.scanner-debug-active-code code {
  display: block;
  width: min(100%, 560px);
  padding: 10px 12px;
  border-radius: 6px;
  background: #eef2f7;
  color: var(--text);
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

.scanner-debug-sample-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.scanner-debug-sample {
  display: grid;
  gap: 9px;
  align-content: start;
  min-height: 148px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.scanner-debug-sample.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
}

.scanner-debug-sample span {
  font-weight: 950;
}

.scanner-debug-sample small {
  min-height: 34px;
  color: var(--muted);
  font-weight: 800;
}

.data-cron-list {
  display: grid;
  gap: 12px;
}

.data-cron-job {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.data-cron-job-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.data-cron-job h4 {
  margin: 0 0 4px;
  font-size: 16px;
}

.data-cron-job p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.data-cron-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #0f5132;
  background: #d1fae5;
  font-size: 12px;
  font-weight: 900;
}

.data-cron-status.warning {
  color: #92400e;
  background: #fef3c7;
}

.data-cron-grid {
  display: grid;
  grid-template-columns: minmax(140px, .35fr) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
}

.data-cron-grid span {
  color: var(--muted);
  font-weight: 800;
}

.data-cron-grid b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.data-slices-table,
.data-backups-table,
.data-tree-table {
  min-width: 860px;
}

.data-tree-row.group {
  background: #f8fafc;
  font-weight: 650;
}

.data-tree-row.group > span {
  font-weight: 650;
}

.data-tree-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}

.data-tree-toggle span {
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  width: 22px;
  min-width: 24px;
  max-width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #eaf1fb;
  line-height: 1;
}

.data-tree-child {
  display: inline-block;
  padding-left: 30px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.data-backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.data-backup-upload {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  max-width: min(100%, 640px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.data-backup-upload-input {
  display: none;
}

.data-backup-file-name {
  min-width: 150px;
  max-width: 240px;
  overflow: hidden;
  color: var(--muted);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-backup-upload-progress {
  min-width: 190px;
  max-width: 320px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.data-backup-upload .small {
  min-height: 36px;
  white-space: nowrap;
}

.restored-backup-row {
  background: #fff8e6;
}

.restored-backup-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fde68a;
  color: #78350f;
  font-weight: 900;
}

@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .shell.main-sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
    display: block;
    max-height: none;
    overflow: visible;
  }

  .sidebar.collapsed {
    display: block;
  }

  .mobile-sidebar-menu {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .mobile-sidebar-summary {
    min-height: 56px;
    padding: 9px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    cursor: pointer;
    list-style: none;
  }

  .mobile-sidebar-summary::-webkit-details-marker {
    display: none;
  }

  .mobile-sidebar-summary::after {
    content: "⌄";
    grid-column: 2;
    grid-row: 1;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #ffb800;
    font-weight: 950;
  }

  .mobile-sidebar-menu[open] {
    height: calc(100vh - 28px);
    height: calc(100dvh - 28px);
    min-height: 0;
    max-height: calc(100dvh - 28px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
  }

  .mobile-sidebar-menu[open] .mobile-sidebar-summary::after {
    content: "⌃";
  }

  .mobile-sidebar-summary span {
    color: #ffb800;
    font-size: 14px;
    font-weight: 950;
    text-transform: uppercase;
  }

  .mobile-sidebar-menu[open] .brand,
  .mobile-sidebar-menu[open] .nav-list,
  .mobile-sidebar-menu[open] .sidebar-bottom {
    width: 100%;
  }

  .mobile-sidebar-menu[open] .brand {
    flex: 0 0 auto;
    min-height: 54px;
    margin: 0;
    justify-content: flex-start;
  }

  .mobile-sidebar-menu[open] .brand-logo {
    width: 148px;
    height: 48px;
  }

  .mobile-sidebar-menu[open] .nav-list {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 5px 8px 0;
    scrollbar-gutter: stable;
  }

  .mobile-sidebar-menu[open] .sidebar-bottom {
    flex: 0 0 auto;
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 0;
  }

  .hero,
  .workbench,
  .dashboard-portal-overview,
  .dashboard-main-layout,
  .dashboard-portal-about,
  .dashboard-portal-principles,
  .dashboard-block-grid,
  .catalog-layout,
  .user-workplaces-layout,
  .office-tasks-workbench,
  .access-grid,
  .map-list,
  .inventory-summary-row,
  .inventory-area-grid,
  .material-add-form,
  .assignment-form,
  .demand-form,
  .task-detail-grid,
  .relation-settings,
  .relation-help,
  .alt-unit-row,
  .screen-recorder-grid,
  .product-development-editor-body,
  .profile-page,
  .employee-cabinet-hero,
  .scanner-debug-layout,
  .scanner-debug-sample-grid,
  .task-monitor-take-grid {
    grid-template-columns: 1fr;
  }

  .training-video-row,
  .training-video-learning-row,
  .training-trim-editor,
  .training-video-edit,
  .training-section-create,
  .training-section-admin-row {
    grid-template-columns: 1fr;
  }

  .training-task-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .training-video-dialog {
    width: 80vw;
    height: 80vh;
    height: 80dvh;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .training-video-dialog-head {
    grid-template-columns: minmax(0, 1fr) 42px 42px;
    gap: 8px;
  }

  .training-video-dialog-head .training-video-header-fullscreen {
    width: 42px;
    padding: 0;
  }

  .training-video-dialog-head .training-video-header-fullscreen span:last-child {
    display: none;
  }

  .training-video-controls {
    grid-template-columns: 52px minmax(80px, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .training-video-control-meta {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 8px;
  }

  .training-video-controls [data-training-overlay-fullscreen] {
    padding: 0 10px;
  }

  .training-video-controls [data-training-overlay-time] {
    min-width: 0;
    font-size: 12px;
  }

  .training-overlay-questions {
    grid-template-columns: 1fr;
  }

  .training-test-dialog .training-task-body {
    padding: 12px;
  }

  .org-structure-workspace {
    grid-template-columns: 1fr;
  }

  .org-process-sidebar {
    max-height: 360px;
  }

  .dashboard-portal-principles article + article {
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-left: 0;
  }

  .dashboard-day-index-card,
  .dashboard-portal-about-top {
    grid-template-columns: 1fr;
  }

  .dashboard-day-index-list {
    grid-column: auto;
  }

  .dashboard-my-projects-card,
  .dashboard-my-projects-progress {
    grid-template-columns: 1fr;
  }

  .dashboard-training-progress,
  .dashboard-training-progress-main {
    grid-template-columns: 1fr;
  }

  .dashboard-custom-head,
  .dashboard-custom-add {
    grid-template-columns: 1fr;
  }

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

  .map-block-editor-layout {
    grid-template-columns: 1fr;
  }

  .map-block-editor-side {
    position: static;
  }

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

  .schedule-fill-employee {
    grid-template-columns: 1fr;
  }

  .schedule-cycle-row {
    grid-template-columns: 1fr;
  }

  .employee-cabinet-picker {
    align-self: stretch;
  }

  .employee-cabinet-picker-menu {
    left: 0;
    right: auto;
  }

  .user-workplaces-tree {
    position: static;
  }

  .office-projects-head,
  .office-processes-head,
  .office-project-create,
  .office-project-add,
  .office-process-create,
  .office-process-run,
  .office-project-selector,
  .office-project-active-card {
    grid-template-columns: 1fr;
  }

  .office-project-tools-row {
    justify-content: flex-start;
  }

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

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

  .office-task-filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .office-task-filter-group + .office-task-filter-group {
    margin-top: 0;
    padding-top: 0;
    padding-left: 10px;
    border-top: 0;
    border-left: 1px solid rgba(203, 213, 225, .82);
  }

  .assignment-characteristics {
    grid-column: 1 / -1;
  }

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

  .dashboard-block-metrics,
  .dashboard-detail-metrics,
  .dashboard-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }

  .topbar,
  .map-toolbar,
  .simulation-controls,
  .panel-head,
  .access-subnav,
  .journal-pager {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .topbar {
    padding: 16px;
  }

  .topbar h1 {
    font-size: 25px;
  }

  .org-structure-toolbar {
    grid-template-columns: 1fr;
  }

  .org-structure-toolbar .head-actions {
    justify-content: flex-start;
  }

  .content {
    padding: 16px;
  }

  .dashboard-block-grid,
  .dashboard-block-metrics,
  .dashboard-detail-metrics,
  .dashboard-filters {
    grid-template-columns: 1fr;
  }

  .dashboard-team-performance-head {
    grid-template-columns: 1fr;
  }

  .dashboard-team-performance-grid {
    grid-template-columns: repeat(auto-fit, minmax(46px, 1fr));
  }

  .dashboard-team-performance-modal-backdrop {
    padding: 14px;
  }

  .norms-summary {
    grid-template-columns: 1fr;
  }

  .norming-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .office-task-add,
  .office-task-work-zone,
  .office-process-timer-grid,
  .office-task-modal-layout,
  .office-task-modal-grid {
    grid-template-columns: 1fr;
  }

  .office-task-type-toggle-row {
    grid-template-columns: 1fr;
  }

  .office-task-modal {
    width: calc(100vw - 28px);
    height: calc(100vh - 28px);
    max-height: calc(100vh - 28px);
  }

  .block-editor.office-project-modal {
    height: auto;
    max-height: calc(100vh - 28px);
  }

  .office-task-conversation-wide .office-task-conversation {
    margin-top: 0;
    height: auto;
    min-height: 320px;
  }

  .office-task-related-grid {
    grid-template-columns: 1fr;
  }

  .office-task-work-timers {
    grid-template-columns: 1fr;
  }

  .office-task-filter-panel {
    grid-template-columns: 1fr;
  }

  .office-project-tools-row {
    align-items: stretch;
    flex-direction: column;
  }

  .office-project-day-width-control,
  .office-project-link-toolbar {
    justify-content: flex-start;
  }

  .office-process-kanban {
    grid-auto-columns: minmax(220px, 1fr);
  }

  .office-process-kanban-column {
    min-width: 220px;
  }

  .office-task-filter-group + .office-task-filter-group {
    margin-top: 2px;
    padding-top: 10px;
    padding-left: 0;
    border-top: 1px solid rgba(203, 213, 225, .82);
    border-left: 0;
  }

  .office-task-board {
    min-width: 900px;
  }

  .operation-norm-map-toggle {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .norm-status-list {
    grid-column: 2;
    justify-content: flex-start;
  }

  .operation-norm-map-toggle em {
    grid-column: 2;
  }

  .novelty-chat-list {
    min-height: 280px;
    max-height: 440px;
  }

  .novelty-chat-form {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 14px;
    display: block;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .mobile-sidebar-menu {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .mobile-sidebar-summary {
    min-height: 56px;
    padding: 9px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    cursor: pointer;
    list-style: none;
  }

  .mobile-sidebar-summary::-webkit-details-marker {
    display: none;
  }

  .mobile-sidebar-summary::after {
    content: "⌄";
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #ffb800;
    font-weight: 950;
  }

  .mobile-sidebar-menu[open] .mobile-sidebar-summary::after {
    content: "⌃";
  }

  .mobile-sidebar-summary span {
    color: #ffb800;
    font-size: 14px;
    font-weight: 950;
    text-transform: uppercase;
  }

  .mobile-sidebar-menu[open] {
    height: calc(100vh - 28px);
    height: calc(100dvh - 28px);
    min-height: 0;
    max-height: calc(100dvh - 28px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
  }

  .mobile-sidebar-menu[open] .brand,
  .mobile-sidebar-menu[open] .nav-list,
  .mobile-sidebar-menu[open] .sidebar-bottom {
    width: 100%;
  }

  .mobile-sidebar-menu[open] .brand {
    flex: 0 0 auto;
    min-height: 54px;
    margin: 0;
    justify-content: flex-start;
  }

  .mobile-sidebar-menu[open] .brand-logo {
    width: 148px;
    height: 48px;
  }

  .mobile-sidebar-menu[open] .nav-list {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 5px 8px 0;
    scrollbar-gutter: stable;
  }

  .mobile-sidebar-menu[open] .sidebar-bottom {
    flex: 0 0 auto;
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 0;
  }

  .hero {
    padding: 20px;
  }

  .hero h2 {
    font-size: 30px;
  }

  .metric-grid,
  .summary-row,
  .catalog-form,
  .editor-grid,
  .avatar-grid,
  .journal-row,
  .training-video-row,
  .training-video-edit,
  .training-section-create,
  .training-stats-columns,
  .training-trim-editor,
  .role-main,
  .menu-permissions {
    grid-template-columns: 1fr;
  }

  .employee-cabinet-page {
    gap: 12px;
  }

  .employee-cabinet-hero {
    min-height: 0;
    padding: 14px;
    gap: 12px;
  }

  .employee-cabinet-person {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
  }

  .employee-cabinet-avatar {
    width: 54px;
    height: 54px;
    font-size: 19px;
  }

  .employee-cabinet-person h2 {
    font-size: 21px;
    line-height: 1.14;
  }

  .employee-cabinet-metrics,
  .employee-cabinet-summary-strip,
  .employee-cabinet-absence-list,
  .employee-cabinet-training-sections,
  .employee-cabinet-manage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-cabinet-metrics div,
  .employee-cabinet-summary-strip div {
    min-height: 66px;
    padding: 10px;
  }

  .employee-cabinet-metrics b,
  .employee-cabinet-summary-strip b {
    font-size: 18px;
  }

  .employee-cabinet-subnav,
  .tabs.inventory-tabs {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .employee-cabinet-subnav button,
  .tabs.inventory-tabs button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .employee-cabinet-card-head,
  .consumable-order-card-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .employee-cabinet-month-control,
  .employee-cabinet-date-control,
  .consumable-order-card-head .head-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .employee-cabinet-month-control input,
  .employee-cabinet-date-control input {
    min-width: 160px;
  }

  .employee-cabinet-schedule-grid {
    grid-template-columns: repeat(7, minmax(112px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .employee-cabinet-day {
    min-height: 96px;
  }

  .employee-cabinet-task-card {
    grid-template-columns: 1fr;
  }

  .employee-cabinet-manage-grid,
  .employee-cabinet-training-sections,
  .employee-cabinet-training-file,
  .employee-cabinet-news-admin-row {
    grid-template-columns: 1fr;
  }

  .employee-cabinet-task-times {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-cabinet-picker-menu {
    width: min(100%, calc(100vw - 28px));
    max-height: 320px;
  }

  .employee-cabinet-page .consumable-order-row,
  .employee-cabinet-page .consumable-stock-table .consumable-order-row,
  .employee-cabinet-page .consumable-stats-table .consumable-order-row {
    min-width: 720px;
  }

  .training-top-actions {
    margin-left: 0;
    justify-content: flex-start;
  }

  .alt-unit-factor {
    grid-template-columns: 1fr;
  }

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

  .timeline {
    grid-template-columns: 1fr;
  }

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

  .map-canvas {
    height: 760px;
  }

  .map-node {
    width: 158px;
  }
}

@media (max-width: 700px) {
  .content {
    padding: 14px;
    overflow-x: clip;
  }

  .employee-cabinet-page {
    max-width: 100%;
    overflow: hidden;
  }

  .employee-cabinet-hero {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .employee-cabinet-person {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .employee-cabinet-avatar {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .employee-cabinet-person h2 {
    font-size: 19px;
    overflow-wrap: anywhere;
  }

  .employee-cabinet-person small {
    display: block;
    overflow-wrap: anywhere;
  }

  .employee-cabinet-metrics,
  .employee-cabinet-summary-strip,
  .employee-cabinet-absence-list,
  .employee-cabinet-training-sections,
  .employee-cabinet-manage-grid,
  .employee-cabinet-task-times {
    grid-template-columns: minmax(0, 1fr);
  }

  .employee-cabinet-subnav {
    width: 100%;
    max-width: 100%;
    padding: 3px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  .employee-cabinet-subnav button {
    min-width: max-content;
    scroll-snap-align: start;
  }

  .employee-cabinet-card {
    padding: 12px;
  }

  .employee-cabinet-training-section {
    padding: 10px;
  }

    .employee-cabinet-training-section-head {
      align-items: flex-start;
    }

    .employee-cabinet-training-file {
      grid-template-columns: auto minmax(0, 1fr);
      align-items: stretch;
    }

    .training-file-row {
      grid-template-columns: minmax(0, 1fr);
      align-items: stretch;
    }

    .employee-cabinet-training-file .row-actions {
      grid-column: 1 / -1;
      width: 100%;
      justify-content: flex-start;
    }

    .training-file-row .row-actions {
      width: 100%;
      justify-content: flex-start;
    }

  .employee-cabinet-training-file .row-actions > *,
  .training-file-row .row-actions > * {
    flex: 1 1 120px;
    min-width: 0;
  }

  .employee-cabinet-training-file b,
  .training-file-row b {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 760px) {
  .org-process-modal.org-resp-modal {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
  }

  .org-resp-group-function-details {
    grid-template-columns: minmax(0, 1fr);
  }
}

.workplace-safety-page {
  display: grid;
  gap: 14px;
}

.workplace-safety-head {
  align-items: center;
}

.workplace-safety-grid {
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(220px, .9fr) minmax(0, 1.8fr);
  gap: 12px;
  align-items: start;
}

.workplace-safety-periods {
  display: grid;
  gap: 8px;
}

.workplace-safety-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.workplace-safety-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
  padding: 9px 12px;
}

.workplace-safety-tabs button.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  color: var(--text);
}

.workplace-safety-tabs.dates button {
  padding: 7px 10px;
  font-size: 13px;
}

.workplace-safety-tabs.folders {
  padding: 2px 0 4px;
}

.workplace-safety-tabs.folders button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.workplace-safety-tabs.folders b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
}

.workplace-safety-tabs.folders button.active b {
  background: var(--accent);
  color: #fff;
}

.workplace-safety-nav,
.workplace-safety-checklist,
.workplace-safety-stats {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.workplace-safety-nav {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 180px);
  overflow: auto;
}

.workplace-safety-nav-title,
.workplace-safety-card-head,
.workplace-safety-stat-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.workplace-safety-nav-title span {
  color: var(--muted);
  font-size: 12px;
}

.workplace-safety-folder,
.workplace-safety-workplace {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 10px;
  text-align: left;
  color: var(--text);
}

.workplace-safety-folder.active,
.workplace-safety-workplace.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
}

.workplace-safety-folder b,
.workplace-safety-workplace b {
  flex: 0 0 auto;
}

.workplace-safety-workplace-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workplace-safety-workplace-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.workplace-safety-workplace-violations {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.workplace-safety-workplace-violations i {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(22, 163, 74, .1);
  color: #15803d;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.workplace-safety-workplace-violations i.bad {
  background: rgba(239, 68, 68, .12);
  color: #b91c1c;
}

.workplace-safety-workplace-status {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 84px;
}

.workplace-safety-workplace-status b {
  color: var(--muted);
  font-size: 14px;
}

.workplace-safety-workplace-status small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.workplace-safety-workplace-status.complete b {
  color: #15803d;
}

.workplace-safety-workplace-status.has-violations b {
  color: #b91c1c;
}

.workplace-safety-folder b {
  color: var(--muted);
  font-size: 12px;
}

.workplace-safety-checklist {
  display: grid;
  gap: 12px;
}

.workplace-safety-card-head h3,
.workplace-safety-stat-head b {
  margin: 0;
}

.workplace-safety-card-head p,
.workplace-safety-stat-head small {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
}

.workplace-safety-card-meta,
.workplace-safety-mark-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.workplace-safety-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.workplace-safety-mark-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 7px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 72%, var(--soft));
  padding: 3px 8px;
}

.danger-pill,
.success-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.danger-pill {
  background: rgba(239, 68, 68, .12);
  color: #b91c1c;
}

.success-pill {
  background: rgba(22, 163, 74, .12);
  color: #15803d;
}

.workplace-safety-items {
  display: grid;
  gap: 10px;
}

.workplace-safety-check-group {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft);
}

.workplace-safety-check-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workplace-safety-check-group-head h4 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.workplace-safety-check-group-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.workplace-safety-add-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.workplace-safety-add-check input {
  min-height: 34px;
}

.workplace-safety-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft);
}

.workplace-safety-check.violation {
  border-color: rgba(239, 68, 68, .35);
  background: rgba(239, 68, 68, .06);
}

.workplace-safety-check-main small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.workplace-safety-check-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.workplace-safety-check-title-line b {
  min-width: 0;
}

.workplace-safety-remove-check {
  flex: 0 0 auto;
}

.workplace-safety-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(64px, 1fr));
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.workplace-safety-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  min-height: 40px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  padding: 9px 12px;
  cursor: pointer;
  user-select: none;
  transition: background .14s ease, color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.workplace-safety-switch-dot {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--soft);
  opacity: .75;
}

.workplace-safety-switch.yes.active {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 8px 18px rgba(22, 163, 74, .22);
}

.workplace-safety-switch.no.active {
  background: #f97316;
  color: #fff;
  box-shadow: 0 8px 18px rgba(249, 115, 22, .2);
}

.workplace-safety-switch.active .workplace-safety-switch-dot {
  background: currentColor;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .95);
  opacity: 1;
}

.workplace-safety-switch:focus-visible {
  outline: 2px solid rgba(249, 115, 22, .5);
  outline-offset: 2px;
}

.workplace-safety-switch:active {
  transform: translateY(1px);
}

.workplace-safety-comment textarea {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 42px;
}

.workplace-safety-photo-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.workplace-safety-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.workplace-safety-thumbs button {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: var(--panel);
}

.workplace-safety-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.workplace-safety-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.workplace-safety-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft);
}

.workplace-safety-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.workplace-safety-summary b {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}

.workplace-safety-register-summary {
  display: grid;
  gap: 12px;
}

.workplace-safety-stat-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.workplace-safety-stat-toolbar div {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.workplace-safety-stat-toolbar b {
  font-size: 16px;
}

.workplace-safety-stat-toolbar small {
  color: var(--muted);
  font-size: 12px;
}

.workplace-safety-matrix-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.workplace-safety-matrix {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.workplace-safety-matrix th,
.workplace-safety-matrix td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 7px;
  text-align: center;
  vertical-align: middle;
}

.workplace-safety-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--soft);
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.workplace-safety-matrix .workplace-safety-matrix-point {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  background: var(--panel);
  text-align: left;
}

.workplace-safety-matrix thead .workplace-safety-matrix-point,
.workplace-safety-matrix tfoot .workplace-safety-matrix-point {
  background: var(--soft);
}

.workplace-safety-matrix .workplace-safety-matrix-total {
  position: sticky;
  right: 0;
  z-index: 3;
  min-width: 72px;
  background: var(--soft);
  font-weight: 900;
}

.workplace-safety-matrix small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
}

.workplace-safety-matrix span {
  display: block;
  color: var(--text);
  font-weight: 800;
}

.workplace-safety-matrix td {
  color: var(--muted);
  font-weight: 800;
}

.workplace-safety-matrix td.has-violations {
  background: rgba(239, 68, 68, .1);
  color: #b91c1c;
}

.workplace-safety-matrix tfoot th,
.workplace-safety-matrix tfoot td {
  position: sticky;
  bottom: 0;
  background: var(--soft);
  font-weight: 900;
}

.workplace-safety-stat-list {
  display: grid;
  gap: 10px;
}

.workplace-safety-stat-card,
.workplace-safety-stat-inspection {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft);
}

.workplace-safety-stat-card {
  display: grid;
  gap: 10px;
}

.workplace-safety-stat-inspection {
  display: grid;
  gap: 8px;
  background: var(--panel);
}

.workplace-safety-stat-inspection small {
  display: block;
  color: var(--muted);
}

.workplace-safety-stat-violation {
  border-left: 3px solid #ef4444;
  padding-left: 10px;
}

.workplace-safety-stat-violation span {
  font-weight: 700;
}

.workplace-safety-stat-violation p {
  margin: 4px 0 8px;
  color: var(--muted);
}

.workplace-safety-ok-row {
  color: #15803d;
  font-weight: 700;
}

.workplace-safety-photo-overlay .training-image-preview-dialog {
  width: min(920px, calc(100vw - 28px));
}

@media (max-width: 1100px) {
  .workplace-safety-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .workplace-safety-checklist,
  .workplace-safety-stats {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .workplace-safety-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workplace-safety-nav {
    max-height: none;
  }

  .workplace-safety-check {
    grid-template-columns: minmax(0, 1fr);
  }

  .workplace-safety-add-check {
    grid-template-columns: minmax(0, 1fr);
  }

  .workplace-safety-toggle {
    width: 100%;
  }

  .workplace-safety-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .workplace-safety-stat-toolbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .workplace-safety-workplace {
    align-items: flex-start;
  }

  .workplace-safety-workplace-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
}
.interface-tour-launch { margin-left: auto; white-space: nowrap; }
.interface-tour-overlay { position: fixed; inset: 0; z-index: 10000; pointer-events: none; }
.interface-tour-shade { position: fixed; background: rgba(10, 18, 28, .72); pointer-events: auto; }
.interface-tour-focus { position: fixed; border: 2px solid #111827; border-radius: 16px; box-shadow: 0 0 0 2px rgba(255,255,255,.82), 0 10px 30px rgba(0,0,0,.28); transition: all .22s ease; pointer-events: none; }
.interface-tour-card { position: fixed; width: min(380px, calc(100vw - 32px)); padding: 24px; border-radius: 18px; background: #fff; color: #172033; box-shadow: 0 24px 70px rgba(0,0,0,.3); pointer-events: auto; }
.interface-tour-card small { color: #65728a; font-weight: 700; }
.interface-tour-card h2 { margin: 10px 32px 8px 0; font-size: 21px; }
.interface-tour-card p { margin: 0; color: #4d5a70; line-height: 1.5; }
.interface-tour-close { position: absolute; top: 14px; right: 14px; border: 0; background: transparent; font-size: 24px; color: #65728a; cursor: pointer; }
.interface-tour-progress { height: 4px; margin: 20px 0; overflow: hidden; border-radius: 99px; background: #e6ebf2; }
.interface-tour-progress span { display: block; height: 100%; border-radius: inherit; background: #3478f6; transition: width .2s ease; }
.interface-tour-card footer { display: flex; justify-content: space-between; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .interface-tour-focus, .interface-tour-progress span { transition: none; } }
