: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);
}

* {
  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);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 25px 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  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);
}

.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;
}

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

.nav-list {
  display: grid;
  gap: 7px;
}

.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-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 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-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: auto;
  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;
}

.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-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-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: 0;
}

.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;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #2563eb);
}

.training-video-progress-thumb {
  position: absolute;
  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-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-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.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-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: grayscale(1) saturate(0) brightness(1.28) contrast(.82);
  opacity: .92;
}

.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.04);
}

.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-head span {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.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(auto-fit, minmax(54px, 1fr));
  gap: 8px;
}

.dashboard-month-completion-day {
  min-height: 54px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  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;
}

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

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

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

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

.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-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-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 {
  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;
}

.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-add {
  max-width: 820px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  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-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-timers b {
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.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;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.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-project-list-panel {
  min-height: 420px;
}

.office-project-list-panel .office-project-filter strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.15;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.office-project-list-panel .office-project-filter em {
  min-height: 28px;
}

.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-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-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-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: 220px 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 .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 minmax(0, 1fr) 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-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 {
  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 minmax(0, 1fr) 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: 2;
  }

  .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-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: minmax(0, var(--office-board-height, 520px)) 18px;
  gap: 6px;
  overflow: hidden;
}

.office-task-board.backlog-expanded {
  grid-template-columns: minmax(720px, calc(100vw - 620px)) repeat(7, minmax(180px, 220px));
}

.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.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(260px, 360px) 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 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 28px;
  align-items: center;
  gap: 5px;
}

.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-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 {
  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 minmax(0, 1fr) 18px;
}

.office-project-group-row.office-project-planning-bar b {
  padding: 0 8px;
  align-self: center;
  font-size: 12px;
}

.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-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-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-title {
  gap: 2px;
}

.office-task-timeline .office-task-title b {
  max-height: 28px;
  -webkit-line-clamp: 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.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-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: 2;
}

.office-task-project-line {
  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;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-task-card-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.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;
  right: 3px;
  width: 16px;
  min-width: 0;
  height: 13px;
  min-height: 0;
  padding: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, .62);
  box-shadow: none;
  appearance: none;
  cursor: ns-resize;
  opacity: 1;
  pointer-events: auto;
  touch-action: none;
}

.office-task-resize.top {
  top: 4px;
}

.office-task-resize.bottom {
  bottom: 4px;
}

.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: 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 {
  width: min(1480px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
}

.office-task-modal .editor-head > div {
  min-width: 0;
  flex: 1;
}

.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-modal label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

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

.office-task-modal-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 14px;
  align-items: stretch;
}

.office-task-modal-main,
.office-task-modal-side {
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 14px;
  align-content: start;
}

.office-task-modal-side .office-task-conversation {
  margin-top: 21px;
  min-height: 459px;
  height: calc(100% - 21px);
  grid-template-rows: auto minmax(220px, 1fr) auto auto;
}

.office-task-modal-side .office-task-message-list {
  max-height: none;
}

.office-task-modal-side .office-task-message {
  width: 100%;
}

.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-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-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-compose {
  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: 46px;
  padding: 7px 4px;
  border: 0;
  background: transparent;
  resize: vertical;
}

.office-task-message-compose textarea:focus {
  outline: 0;
}

.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: 28;
}

.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;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.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;
}

.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-table input {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 7px;
  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);
}

.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;
}

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

.schedule-month-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-table {
  max-height: calc(100vh - 330px);
  overflow: auto;
}

.schedule-table .head {
  position: sticky;
  top: 0;
  z-index: 2;
}

.schedule-table .tr {
  min-width: max(1180px, calc(220px + 58px * 31 + 82px));
}

.schedule-row span {
  min-height: 50px;
  padding: 7px;
  justify-content: center;
  text-align: center;
}

.schedule-row.head span {
  display: grid;
  align-content: center;
  gap: 2px;
}

.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: 3;
  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-cell input {
  width: 44px;
  height: 34px;
  padding: 0 5px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #111827;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.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: #f1f5f9;
}

.schedule-cell.weekend input {
  color: var(--muted);
  background: #e9eef5;
}

.schedule-total {
  color: #111827;
  background: var(--surface-tint);
  font-weight: 900;
}

.schedule-area-row {
  min-width: max(1180px, calc(220px + 58px * 31 + 82px));
  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;
}

.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 .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;
}

.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-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;
}

.novelty-comment-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-head span {
  color: var(--muted);
  font-weight: 750;
}

.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;
}

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(220px, 1fr) repeat(3, auto);
  gap: 10px;
  align-items: center;
}

.qr-field {
  grid-column: 1 / -1;
}

.qr-field button {
  min-height: 48px;
  white-space: nowrap;
}

.qr-preview-modal {
  width: min(460px, 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);
}

.qr-preview-modal img {
  width: min(320px, 100%);
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.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 auto;
  align-content: start;
  overflow: visible;
}

.org-responsibility-board-mode .org-structure-shell {
  height: auto;
  min-height: 0;
  grid-template-rows: auto 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: 1fr;
  align-items: start;
}

.org-responsibility-krs-mode .org-structure-toolbar .head-actions {
  width: 100%;
  justify-content: flex-start;
  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;
}

.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: auto;
  height: auto;
}

.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: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  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;
}

.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 {
  grid-column: 1 / -1;
  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 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 .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;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.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 {
  color: #075985;
  background: #e0f2fe;
}

.org-resp-type.projectGroup {
  color: #166534;
  background: #dcfce7;
}

.org-resp-type.groupAdd {
  color: #64748b;
  background: #f1f5f9;
}

.org-resp-type.function {
  color: #075985;
  background: #e0f2fe;
}

.org-resp-type.project {
  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.projectGroup,
.org-resp-node.groupAdd {
  cursor: pointer;
}

.org-resp-node.krGroup .org-node-body,
.org-resp-node.functionGroup .org-node-body,
.org-resp-node.projectGroup .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) minmax(0, 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-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: normal;
}

.org-resp-group-stack.projectGroup > span {
  border-color: rgba(22, 163, 74, .2);
  color: #166534;
  background: rgba(220, 252, 231, .78);
}

.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;
  overflow: hidden;
  padding-left: 0;
  border-left: 0;
}

.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-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-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: 310px;
  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-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 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.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 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 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 {
  display: grid;
  gap: 14px;
  padding: 14px 0 0;
}

.org-resp-kr-controls {
  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 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);
  left: 0;
  z-index: 30;
  width: min(360px, 84vw);
  display: grid;
  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 {
  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-list {
  max-height: 260px;
  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(180px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px;
  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 16px 36px rgba(15, 23, 42, .06);
}

.org-resp-kr-chart h3 {
  margin: 4px 0 0;
  color: #17212b;
  font-size: 20px;
  line-height: 1.1;
}

.org-resp-kr-chart > div:first-child p {
  margin: 7px 0 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.org-resp-kr-chart > div:first-child strong {
  min-width: 64px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(245, 158, 11, .34);
  border-radius: 999px;
  color: #92400e;
  background: #fff7e6;
  font-size: 16px;
  font-weight: 950;
}

.org-resp-kr-line-chart {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.org-resp-kr-line-chart svg {
  width: 100%;
  min-height: 220px;
  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: 2.5;
  filter: drop-shadow(0 5px 8px rgba(245, 158, 11, .18));
}

.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: 10px;
  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: 1280px;
  border-collapse: collapse;
}

.org-resp-kr-table th,
.org-resp-kr-table td {
  padding: 11px 12px;
  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: 24px minmax(72px, 1fr) 24px;
  align-items: center;
  gap: 6px;
}

.org-resp-kr-month-head button {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(245, 158, 11, .22);
  border-radius: 7px;
  color: #92400e;
  background: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.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 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-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: 270px;
  min-width: 270px;
  max-width: 270px;
  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: 950;
}

.org-resp-kr-row.kr .org-resp-kr-tree-cell {
  background: #fff;
}

.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: 76px;
  min-height: 30px;
  padding: 0 9px;
  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 td:has(.org-resp-kr-cell-percent) {
  min-width: 110px;
}

.org-resp-kr-cell-percent {
  min-width: 30px;
  display: inline-grid;
  place-items: center;
  margin-left: 5px;
  padding: 2px 6px;
  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-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: 174px;
  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: center;
  gap: 6px;
}

.map-node-title > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-node span {
  color: #111827;
  font-weight: 800;
}

.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-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-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 {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

.inventory-tabs button {
  flex: 1 1 240px;
  white-space: normal;
}

.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-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;
}

.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: 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 45px),
    #fff;
}

.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: 28px;
  padding: 6px 8px;
  position: sticky;
  top: 0;
  z-index: 1;
  overflow: hidden;
  color: #111827;
  background: rgba(255, 255, 255, .86);
  font-size: 11px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-empty {
  height: 100%;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 820;
}

.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-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;
}

.task-card {
  width: 100%;
  min-height: 132px;
  padding: 13px;
  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:hover {
  border-color: #f59e0b;
  background: #fffdf7;
}

.task-card strong {
  font-size: 15px;
  line-height: 1.2;
}

.task-card small {
  color: var(--muted);
  font-weight: 700;
}

.task-card mark {
  width: fit-content;
}

.task-card-footer {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.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;
  display: grid;
  gap: 14px;
  overflow-x: auto;
}

.task-monitor-area-row {
  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: 560px;
}

.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-popover {
  position: absolute;
  z-index: 12;
  right: 0;
  top: calc(100% + 8px);
  width: 260px;
  max-height: 320px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, .14);
  display: grid;
  gap: 6px;
}

.task-monitor-filter-popover .check-row {
  grid-template-columns: auto minmax(0, 1fr);
  padding: 8px;
  border-radius: 7px;
}

.task-monitor-filter-popover .check-row:hover {
  background: var(--surface-soft);
}

.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;
}

.empty-state {
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
}

.tabs {
  display: inline-flex;
  gap: 6px;
  width: fit-content;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.tabs button {
  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-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;
}

.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: 20;
  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 {
  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.office-task-modal:not(.office-project-modal) {
  width: min(1480px, calc(100vw - 48px));
}

.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;
}

.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;
}

.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;
}

.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;
  }

  .sidebar {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .brand,
  .nav-list,
  .sidebar-note,
  .sidebar-account {
    grid-column: 1 / -1;
  }

  .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 {
    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;
  }

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

  .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;
  }

  .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-modal {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
  }

  .office-task-modal-side .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 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
  }

  .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;
  }

  .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;
  }
}
