#hardware-linkage { color: #14213b; }
.lk-view { min-width: 0; }
.lk-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.lk-heading h1 { margin: 0 0 5px; font-size: 26px; line-height: 1.35; }
.lk-heading p { color: #667894; font-size: 14px; }
.lk-heading-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lk-heading-actions .wb-button { gap: 8px; min-height: 40px; }
.lk-icon { display: inline-flex; width: 20px; height: 20px; flex: 0 0 auto; color: #1761ff; }
.lk-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.lk-tabs { display: flex; gap: 34px; border-bottom: 1px solid #dfe7f1; margin: 0 0 22px; }
.lk-tabs button { color: #526681; background: none; border: 0; padding: 7px 0 15px; font-size: 15px; border-bottom: 3px solid transparent; }
.lk-tabs button[aria-selected="true"] { color: #1761ff; border-bottom-color: #1761ff; font-weight: 600; }
.lk-panel { background: #fff; border: 1px solid #dfe7f1; border-radius: 9px; padding: 16px; min-width: 0; }
.lk-list-panel { min-height: 540px; display: flex; flex-direction: column; }
.lk-filters { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.lk-filters input[type="search"] { width: min(320px, 100%); }
.lk-filters select { min-width: 155px; }
.lk-filters input[type="date"] { width: 151px; }
.lk-filters .lk-search { display: flex; align-items: center; border: 1px solid #dbe4f0; border-radius: 7px; gap: 9px; padding-left: 12px; }
.lk-search .lk-icon { color: #74839d; width: 17px; height: 17px; }
.lk-search input { border: 0; padding-left: 0; }
.lk-search:focus-within { outline: 2px solid #a9c8ff; outline-offset: 1px; }
.lk-search input:focus-visible { outline: 0; }
.lk-table-wrap { overflow-x: auto; min-width: 0; max-width: 100%; width: 100%; overscroll-behavior-x: contain; }
.lk-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.lk-table th { text-align: left; color: #253b5e; background: #f2f6fc; padding: 14px 16px; font-weight: 500; white-space: nowrap; }
.lk-table th:first-child { border-radius: 7px 0 0 0; }
.lk-table th:last-child { border-radius: 0 7px 0 0; }
.lk-table td { border-bottom: 1px solid #e5ecf5; padding: 15px 16px; vertical-align: middle; line-height: 1.6; }
.lk-rule-table { min-width: 1000px; table-layout: fixed; white-space: normal; }
.lk-rule-table th:first-child { width: 19%; }
.lk-rule-table th:nth-child(2) { width: 16%; }
.lk-rule-table th:nth-child(3) { width: 13%; }
.lk-rule-table th:nth-child(4) { width: calc(52% - 250px); }
.lk-rule-table th:nth-child(5) { width: 94px; }
.lk-rule-table th:nth-child(6) { width: 156px; }
.lk-rule-table td:not(:last-child) { overflow: hidden; overflow-wrap: anywhere; }
.lk-rule-name { display: flex; align-items: center; gap: 15px; min-width: 0; }
.lk-rule-name strong { font-weight: 600; }
.lk-rule-name .lk-icon { width: 34px; height: 34px; padding: 6px; border-radius: 6px; background: #eef5ff; }
.lk-rule-title { border: 0; padding: 0; text-align: left; background: none; color: #14213b; font-weight: 600; font-size: 14px; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.lk-rule-title:hover { color: #1761ff; }
.lk-rule-table .lk-summary { white-space: normal; overflow: hidden; overflow-wrap: anywhere; word-break: break-word; }
.lk-muted { color: #74839d; font-size: 12px; line-height: 1.65; }
.lk-status { display: inline-block; background: #eef1f6; color: #63758f; border-radius: 5px; padding: 2px 8px; font-size: 12px; white-space: nowrap; }
.lk-status-enabled, .lk-status-confirmed, .lk-status-succeeded { background: #eaf8f1; color: #13855e; }
.lk-status-failed { background: #fff0f1; color: #be4650; }
.lk-status-pending, .lk-status-unconfirmed, .lk-status-uncertain, .lk-status-running { background: #fff7e7; color: #a86e0e; }
.lk-row-actions { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.lk-text-button { border: 0!important; background: transparent!important; color: #1761ff!important; padding: 2px 0!important; min-height: 25px!important; }
.lk-text-button:disabled { color: #8c9aaf!important; cursor: not-allowed; }
.lk-more { position: relative; }
.lk-more summary { list-style: none; color: #526681; cursor: pointer; padding: 4px; font-size: 18px; line-height: 1; }
.lk-more summary::-webkit-details-marker { display: none; }
.lk-more-menu { position: fixed; z-index: 8; min-width: 140px; display: grid; padding: 5px; border: 1px solid #dfe7f1; border-radius: 7px; background: #fff; box-shadow: 0 5px 20px #162b481c; }
.lk-more-menu button { background: #fff; border: 0; color: #465873; text-align: left; padding: 9px 12px; border-radius: 4px; }
.lk-more-menu button:hover { background: #f2f6fc; }
.lk-more-menu button.danger { color: #c43a48; }
.lk-footer { margin-top: auto; padding: 19px 3px 3px; display: flex; justify-content: space-between; align-items: center; color: #74839d; font-size: 13px; }
.lk-page-buttons { display: flex; gap: 8px; align-items: center; }
.lk-page-buttons button { min-width: 34px; padding: 5px 9px; min-height: 33px; }
.lk-page-buttons button:disabled { cursor: not-allowed; }
.lk-empty { flex: 1; min-height: 290px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 35px 15px; }
.lk-empty-icon { width: 70px; height: 70px; color: #a4b8d6; margin-bottom: 21px; }
.lk-empty h3 { font-size: 20px; margin: 0 0 10px; }
.lk-empty p { color: #74839d; font-size: 14px; line-height: 1.7; margin: 0 0 15px; }
.lk-loading { min-height: 300px; display: grid; place-items: center; color: #74839d; }
.lk-error { padding: 11px 14px; border: 1px solid #f1c6cc; background: #fff4f5; color: #ba3c48; font-size: 13px; line-height: 1.7; border-radius: 7px; margin-bottom: 16px; }
.lk-error button { margin-left: 15px; }
.lk-batch { display: flex; align-items: center; gap: 16px; font-size: 13px; margin-bottom: 16px; }
.lk-checkbox { display: inline-flex; gap: 9px; align-items: center; font-size: 13px; }
.lk-checkbox input { min-height: auto; width: 16px; height: 16px; accent-color: #1761ff; }
.lk-group-toggle { margin-left: auto; }
.lk-result-tabs { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.lk-result-tabs button { padding: 7px 14px; min-height: 34px; }
.lk-result-tabs .selected { background: #eaf2ff; color: #1761ff; border-color: #dce9ff; }
.lk-task-table { min-width: 1000px; }
.lk-task-table th, .lk-task-table td { padding-left: 13px; padding-right: 13px; }
.lk-task-table td small { display: block; font-size: 11px; color: #74839d; }
.lk-group-row td { background: #f8fafd; color: #465873; font-weight: 600; }
.lk-editor-crumb { display: flex; align-items: center; gap: 8px; color: #526681; font-size: 13px; margin-bottom: 15px; }
.lk-editor-title { display: flex; align-items: center; gap: 15px; margin: 0 0 23px; }
.lk-editor-title h1 { font-size: 26px; line-height: 1.35; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.lk-editor-grid { display: grid; grid-template-columns: minmax(330px, 35%) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.lk-editor-card { padding: 20px; }
.lk-editor-card h2 { font-size: 20px; margin: 0 0 18px; }
.lk-editor-card h3 { font-size: 17px; margin: 0 0 14px; }
.lk-field { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 15px; font-size: 13px; color: #253b5e; }
.lk-field-label { line-height: 1.5; }
.lk-field input, .lk-field select { width: 100%; }
.lk-field input, .lk-field select, .lk-condition > *, .lk-filters > * { min-width: 0; }
.lk-field-wide { grid-template-columns: 1fr; gap: 7px; }
.lk-field input[type="checkbox"] { width: 17px; height: 17px; min-height: auto; accent-color: #1761ff; }
.lk-editor-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid #e1e8f2; }
.lk-editor-section > select { margin-bottom: 13px; min-width: 150px; }
.lk-condition { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr) 24px; gap: 7px; margin-bottom: 10px; }
.lk-condition select, .lk-condition input { width: 100%; padding-left: 8px; padding-right: 8px; }
.lk-delete { border: 0; background: none; color: #8492a9; font-size: 19px; padding: 0; }
.lk-delete:hover { color: #c43a48; }
.lk-room-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; border-radius: 7px; background: #f7f9fc; margin-bottom: 16px; }
.lk-advanced summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 14px; padding-bottom: 13px; }
.lk-advanced summary::after { content: ' ›'; color: #74839d; }
.lk-advanced[open] summary::after { content: ' ⌄'; }
.lk-rule-note { margin-top: 20px; background: #edf5ff; color: #4d6c98; padding: 11px 13px; border-radius: 6px; font-size: 12px; line-height: 1.7; }
.lk-action-heading { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 17px; }
.lk-action-heading h2 { margin-bottom: 9px; }
.lk-action-table { width: 100%; min-width: 590px; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.lk-action-table th { text-align: left; background: #f2f6fc; padding: 12px 8px; font-weight: 500; }
.lk-action-table td { padding: 7px 7px; border-bottom: 1px solid #e6edf6; vertical-align: top; }
.lk-action-table td:first-child { width: 32px; padding-top: 17px; }
.lk-action-table th:last-child, .lk-action-table td:last-child { width: 26px; padding-left: 0; padding-right: 0; }
.lk-action-table select { width: 100%; padding: 8px; min-height: 35px; }
.lk-action-number { display: inline-block; background: #eef5ff; border-radius: 4px; padding: 0 6px; color: #526b96; line-height: 24px; }
.lk-delay-control { display: flex; gap: 7px; align-items: center; }
.lk-delay-control input { width: 65px; padding: 8px; min-height: 35px; }
.lk-delay-control select { width: 76px; }
.lk-action-extra { display: flex; gap: 9px; align-items: flex-start; padding: 4px 0 9px; }
.lk-action-extra textarea { resize: vertical; width: 100%; min-height: 65px; border: 1px solid #dbe4f0; border-radius: 6px; color: #253b5e; padding: 9px; font: inherit; }
.lk-action-extra input { width: 90px; min-height: 35px; }
.lk-action-extra label { min-width: 0; }
.lk-timeline { margin-top: 24px; }
.lk-timeline h3 { margin-bottom: 27px; }
.lk-timeline-track { display: flex; align-items: stretch; margin: 0 10px 20px; gap: 0; overflow-x: auto; padding-top: 8px; }
.lk-timepoint { flex: 1; min-width: 110px; border-top: 2px solid #3675ff; position: relative; padding: 18px 8px 0; text-align: center; }
.lk-timepoint::before { content: ''; position: absolute; width: 10px; height: 10px; border: 2px solid #1761ff; background: #fff; border-radius: 50%; top: -7px; left: calc(50% - 6px); }
.lk-timepoint strong { font-size: 14px; display: block; margin-bottom: 5px; }
.lk-timepoint span { color: #74839d; font-size: 12px; line-height: 1.5; }
.lk-editor-savebar { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #fff; border: 1px solid #dfe7f1; border-radius: 8px; padding: 13px 17px; margin-top: 16px; }
.lk-editor-savebar .lk-field { margin: 0; grid-template-columns: auto minmax(190px, 1fr); }
.lk-editor-savebar .lk-heading-actions { flex-wrap: nowrap; }
.lk-dialog { border: 1px solid #dfe7f1; border-radius: 10px; padding: 0; width: min(680px, calc(100vw - 32px)); color: #14213b; max-height: calc(100vh - 48px); }
.lk-dialog::backdrop { background: #13243a66; }
.lk-dialog > header, .lk-dialog > footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 21px; }
.lk-dialog > header { border-bottom: 1px solid #e1e8f2; }
.lk-dialog h2 { font-size: 20px; }
.lk-dialog-close { border: 0; padding: 0; min-height: 25px; font-size: 25px; }
.lk-dialog-body { padding: 20px 21px; font-size: 14px; line-height: 1.8; }
.lk-dialog-body p + p { margin-top: 12px; }
.lk-dialog > footer { justify-content: flex-end; border-top: 1px solid #e1e8f2; }
.lk-detail-grid { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; font-size: 13px; margin: 0; }
.lk-detail-grid dt { color: #74839d; }
.lk-detail-grid dd { margin: 0; overflow-wrap: anywhere; }
.lk-preview-list { padding-left: 21px; font-size: 13px; }
.lk-preview-list li { padding: 7px 0; }
@media (min-width: 1051px) and (max-height: 850px) {
  .lk-editor-card { padding: 18px; }
  .lk-editor-section { margin-top: 16px; padding-top: 15px; }
  .lk-rule-note { margin-top: 14px; padding: 9px 11px; }
  .lk-action-heading { margin-bottom: 12px; }
  .lk-action-table td { padding-top: 5px; padding-bottom: 5px; }
  .lk-timeline { margin-top: 18px; }
  .lk-timeline h3 { margin-bottom: 18px; }
  .lk-timeline-track { margin-bottom: 14px; }
  .lk-editor-savebar { margin-top: 12px; padding: 10px 15px; }
}
@media (max-width: 1280px) {
  .lk-editor-grid { grid-template-columns: minmax(290px, 36%) minmax(0, 1fr); }
  .lk-editor-card { padding: 16px; }
  .lk-field { grid-template-columns: 85px minmax(0, 1fr); gap: 8px; }
  .lk-condition { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) 20px; }
  .lk-filters { gap: 10px; }
  .lk-filters select { min-width: 130px; }
}
@media (max-width: 1050px) {
  .lk-editor-grid { grid-template-columns: 1fr; }
  .lk-editor-savebar { position: static; flex-wrap: wrap; }
  .lk-action-table { min-width: 600px; }
}
@media (max-width: 760px) {
  .lk-heading { flex-direction: column; gap: 14px; }
  .lk-heading h1, .lk-editor-title h1 { font-size: 23px; }
  .lk-tabs { gap: 26px; margin-bottom: 15px; }
  .lk-tabs button { font-size: 14px; }
  .lk-panel { padding: 12px; }
  .lk-list-panel { min-height: 500px; }
  .lk-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .lk-search { grid-column: 1 / -1; }
  .lk-filters input[type="search"], .lk-filters select, .lk-filters input[type="date"] { min-width: 0; width: 100%; }
  .lk-group-toggle { grid-column: 1 / -1; margin-left: 0; }
  .lk-batch { gap: 10px; flex-wrap: wrap; }
  .lk-batch .lk-muted { width: 100%; }
  .lk-empty { min-height: 240px; }
  .lk-empty h3 { font-size: 18px; }
  .lk-condition { grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr) 20px; }
  .lk-room-picker { grid-template-columns: 1fr 1fr; }
  .lk-editor-savebar { padding: 12px; }
  .lk-editor-savebar .lk-field { grid-template-columns: 1fr; width: 100%; }
  .lk-editor-savebar .lk-heading-actions { width: 100%; justify-content: flex-end; gap: 8px; }
  .lk-editor-savebar .wb-button { padding: 8px 12px; }
  .lk-editor-title { margin-bottom: 15px; }
  .lk-action-heading { align-items: center; }
  .lk-timepoint { padding-left: 3px; padding-right: 3px; }
  .lk-timepoint span { font-size: 11px; }
}

.lk-history-heading {margin:0 0 14px;font-size:19px}
.lk-history-filters {display:grid;grid-template-columns:minmax(140px,1.4fr) repeat(4,minmax(115px,1fr)) auto;align-items:end;gap:10px;margin-bottom:14px}
.lk-history-field {display:grid;gap:6px;min-width:0}
.lk-history-field>span {color:#52647d;font-size:12px}
.lk-history-field :is(select,input[type=date],input[type=search]) {width:100%;min-width:0}
.lk-history-field .lk-search {min-width:0}
.lk-list-panel:has(.lk-history-heading) .lk-result-tabs {gap:7px;margin-bottom:12px}
.lk-list-panel:has(.lk-history-heading) .lk-result-tabs button {padding:4px 9px;min-height:28px;font-size:12px}
.lk-task-table {width:100%;min-width:0;white-space:normal}
.lk-task-table :is(th,td) {padding:8px;overflow-wrap:anywhere}
.lk-task-table td time {font-variant-numeric:tabular-nums}
.lk-task-table th {white-space:normal}
.lk-page-buttons [aria-current=page] {color:#145fdc;border-color:#b8d2fc;background:#eaf2ff}
.lk-long-timeline {display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:13px 0;overflow:visible}
.lk-timeline-track {scrollbar-width:none}
.lk-timepoint {overflow-wrap:anywhere}
@media(min-width:761px) {
  .lk-history-heading {margin-bottom:10px}
  .lk-history-filters {margin-bottom:10px}
  .lk-history-field {gap:4px}
  .lk-list-panel:has(.lk-history-heading) .lk-result-tabs {margin-bottom:9px}
  .lk-list-panel:has(.lk-history-heading) .lk-task-table td {padding-block:5px;line-height:1.45}
  .lk-list-panel:has(.lk-history-heading) .lk-task-table small {margin-top:2px;line-height:1.45}
  .lk-list-panel:has(.lk-history-heading) .lk-footer {padding-top:12px}
}
@media(max-width:1180px) and (min-width:761px) {
  .lk-history-filters {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px) {
  .lk-history-filters {grid-template-columns:repeat(2,minmax(0,1fr))}
  .lk-history-field:first-child {grid-column:1/-1}
  .lk-task-table,.lk-task-table tbody {display:block}
  .lk-task-table thead {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
  .lk-task-table tr {display:block;margin-bottom:8px;border:1px solid #dce5ef;border-radius:7px;padding:7px 10px}
  .lk-task-table td {display:block;position:relative;padding:3px 0 3px 31%;min-height:25px;border:0}
  .lk-task-table td::before {content:attr(data-label);position:absolute;left:0;max-width:28%;color:#65788f;font-size:12px}
  .lk-task-table .lk-group-row td {padding-left:0}
  .lk-footer {flex-wrap:wrap;gap:8px}
  .lk-page-buttons {flex-wrap:wrap;gap:4px}
  .lk-page-buttons button {min-width:28px;padding:4px 6px}
  .lk-timeline .lk-timeline-track {display:flex;flex-direction:column;gap:0;margin:4px 0 14px 6px;overflow:visible}
  .lk-timepoint {min-width:0;border-top:0;border-left:2px solid #4b83ef;text-align:left;padding:0 0 12px 14px}
  .lk-timepoint:last-child {border-left-color:transparent}
  .lk-timepoint::before {left:-6px;top:2px}
  .lk-timepoint strong {margin-bottom:1px}
  .lk-action-table {min-width:0}
  .lk-action-table,.lk-action-table tbody {display:block}
  .lk-action-table thead {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
  .lk-action-table tr {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:6px;padding:6px 0;border-bottom:1px solid #e5ecf5}
  .lk-action-table td,.lk-action-table td:first-child,.lk-action-table td:last-child {width:auto;border:0;padding:0}
  .lk-action-table td:first-child {grid-column:1/-1}
  .lk-action-table td:nth-child(4) {grid-column:1/3}
  .lk-action-table td:nth-child(5) {grid-column:3;grid-row:2/4;align-self:center}
}
