:root { --navy: #0b2340; --navy-2: #12365d; --blue: #1f64e8; --blue-soft: #eaf1ff; --ink: #172231; --muted: #687586; --line: #dbe1e8; --bg: #f4f6f8; --white: #fff; --green: #258b4e; --green-soft: #e6f5eb; --amber: #b67508; --amber-soft: #fff3d9; --red: #c44742; --red-soft: #fdebea; font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--bg); font-synthesis: none; }
* { box-sizing: border-box; } body { min-width: 320px; margin: 0; background: var(--bg); } button, input, select { font: inherit; } button { cursor: pointer; } button:disabled { cursor: not-allowed; opacity: .5; } .hidden { display: none !important; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 750; letter-spacing: -.045em; }.brand-inverse { color: #fff; }.brand-mark { display: inline-flex; align-items: end; gap: 2px; width: 23px; height: 23px; padding: 3px; border: 1px solid currentColor; border-radius: 5px; }.brand-mark span { display: block; width: 4px; border-radius: 2px; background: currentColor; }.brand-mark span:nth-child(1) { height: 8px; opacity: .55; }.brand-mark span:nth-child(2) { height: 13px; opacity: .76; }.brand-mark span:nth-child(3) { height: 17px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }.status-dot.is-offline { background: #aeb8c4; }.text-green { color: var(--green) !important; }.text-amber { color: var(--amber) !important; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: #eef1f4; }.auth-shell { width: min(960px, 100%); min-height: 590px; display: grid; grid-template-columns: 44% 56%; overflow: hidden; border: 1px solid #d6dde6; background: var(--white); box-shadow: 0 24px 60px rgba(12, 35, 64, .1); }.auth-side { display: flex; flex-direction: column; padding: 42px; color: #fff; background: var(--navy); }.auth-side .brand { color: #fff; }.auth-side-copy { margin: auto 0; }.auth-side-copy h1 { margin: 0; font-size: 43px; font-weight: 720; line-height: 1.13; letter-spacing: -.065em; }.auth-side-copy p { max-width: 255px; margin: 23px 0 0; color: #abc0d6; font-size: 13px; line-height: 1.8; }.auth-side-meta { color: #a6c5b0; font-size: 11px; }.auth-side-meta .status-dot { margin-right: 8px; background: #5fc77e; }.auth-content { display: grid; place-items: center; padding: 46px; }.auth-card { width: min(360px, 100%); }.auth-tabs { display: flex; gap: 24px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }.auth-tab { position: relative; padding: 0 0 14px; border: 0; color: var(--muted); background: none; font-size: 13px; }.auth-tab.is-active { color: var(--ink); font-weight: 700; }.auth-tab.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; content: ""; background: var(--blue); }.auth-card h2 { margin: 0; font-size: 26px; letter-spacing: -.06em; }.auth-subtitle { margin: 9px 0 28px; color: var(--muted); font-size: 13px; }.field { display: grid; gap: 8px; margin: 17px 0; color: #4d5b6a; font-size: 11px; font-weight: 650; }.field small { color: var(--muted); font-weight: 400; }.field input { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 4px; outline: none; color: var(--ink); background: #fff; font-size: 13px; transition: border-color .16s, box-shadow .16s; }.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,100,232,.1); }.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 14px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 650; transition: background .16s, border-color .16s, color .16s; }.button-primary { color: #fff; background: var(--blue); }.button-primary:hover { background: #1954c6; }.button-ghost { color: #38516c; border-color: var(--line); background: #fff; }.button-ghost:hover { border-color: #b8c5d3; background: #f8fafc; }.button-wide { width: 100%; }.button-small { min-height: 30px; padding: 6px 10px; font-size: 11px; }.form-message { min-height: 18px; margin: 12px 0 0; color: var(--green); font-size: 11px; line-height: 1.5; }.form-message.is-error { color: var(--red); }.form-message.is-success { color: var(--green); }.auth-note { padding-top: 18px; margin: 22px 0 0; border-top: 1px solid var(--line); color: #94a0ad; font-size: 10px; }
.app-shell { display: flex; min-height: 100vh; }.sidebar { position: fixed; top: 0; left: 0; z-index: 20; display: flex; flex: 0 0 220px; flex-direction: column; width: 220px; height: 100vh; color: #b5c6d9; background: var(--navy); transition: width .18s, transform .18s; }.sidebar-top { padding: 28px 22px 22px; border-bottom: 1px solid rgba(255,255,255,.1); }.workspace-name { margin-top: 26px; color: #7893b1; font-size: 10px; }.side-nav { display: grid; gap: 4px; padding: 21px 10px; }.nav-item { display: flex; align-items: center; gap: 13px; padding: 12px 13px; border: 0; border-radius: 3px; color: #afc1d5; background: transparent; font-size: 12px; text-align: left; }.nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }.nav-item.is-active { color: #fff; background: var(--navy-2); }.nav-icon { width: 18px; color: currentColor; font-size: 17px; line-height: 1; text-align: center; }.sidebar-bottom { display: grid; gap: 18px; margin-top: auto; padding: 18px 20px 25px; border-top: 1px solid rgba(255,255,255,.1); }.service-status { display: flex; gap: 9px; align-items: center; color: #9dc8ab; font-size: 10px; }.collapse-button { padding: 0; border: 0; color: #839db9; background: none; font-size: 11px; text-align: left; }.collapse-button:hover { color: #fff; }.sidebar.is-collapsed { flex-basis: 70px; width: 70px; }.sidebar.is-collapsed .brand > span:last-child, .sidebar.is-collapsed .workspace-name, .sidebar.is-collapsed .nav-item span:last-child, .sidebar.is-collapsed .service-status span:last-child, .sidebar.is-collapsed .collapse-button span { display: none; }.sidebar.is-collapsed .sidebar-top { padding-right: 23px; padding-left: 23px; }.sidebar.is-collapsed .nav-item { justify-content: center; }.sidebar.is-collapsed .collapse-button { text-align: center; }
.app-main { min-width: 0; flex: 1; margin-left: 220px; transition: margin-left .18s; }.sidebar.is-collapsed + .app-main { margin-left: 70px; }.topbar { position: fixed; top: 0; right: 0; left: 220px; z-index: 14; display: flex; height: 60px; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 2px 12px rgba(11,35,64,.07); transition: left .18s; }.sidebar.is-collapsed + .app-main .topbar { left: 70px; }.topbar-left, .topbar-right { display: flex; align-items: center; }.topbar-left { gap: 13px; }.topbar-title { color: #33465b; font-size: 13px; font-weight: 650; }.topbar-right { gap: 15px; color: var(--muted); font-size: 11px; }.topbar-connection { display: inline-flex; gap: 7px; align-items: center; }.mobile-menu { position: relative; width: 28px; height: 28px; padding: 0; border: 0; color: #627387; background: transparent; font-size: 15px; }.mobile-menu:hover { color: var(--ink); }.user-menu { display: inline-flex; gap: 8px; align-items: center; padding: 0; border: 0; color: #354a61; background: none; font-size: 11px; }.user-avatar { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #2459b7; background: #dbe8ff; font-size: 9px; font-weight: 700; }.chevron { color: #8492a1; }.mobile-menu { display: none; }
.workspace { width: min(1480px, 100%); margin: 0 auto; padding: 96px 42px 60px; }.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }.page-heading h1 { margin: 0; color: var(--ink); font-size: 31px; font-weight: 720; letter-spacing: -.06em; }.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }.heading-actions { display: flex; gap: 8px; }.summary-bar { display: flex; align-items: center; min-height: 76px; margin-bottom: 18px; border: 1px solid var(--line); background: #fff; }.summary-bar > div { display: grid; gap: 6px; min-width: 150px; padding: 0 22px; border-right: 1px solid var(--line); }.summary-bar > div > span:first-child { color: var(--muted); font-size: 10px; }.summary-bar strong { color: var(--ink); font-size: 20px; font-weight: 720; }.summary-policy { display: flex !important; flex: 1; gap: 8px; align-items: center; justify-content: end; border-right: 0 !important; color: var(--green); font-size: 10px; }.section-block { overflow: hidden; border: 1px solid var(--line); background: #fff; }.section-heading { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; }.section-heading.compact { padding-bottom: 15px; }.section-heading h2 { margin: 0; color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: -.04em; }.section-caption { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }.count-label { color: var(--muted); font-size: 11px; }.filter-bar { display: flex; gap: 8px; align-items: center; padding: 0 20px 18px; }.filter-bar select, .search-field { height: 34px; border: 1px solid var(--line); border-radius: 3px; color: #536477; background: #fff; font-size: 11px; }.filter-bar select { min-width: 130px; padding: 0 25px 0 10px; }.search-field { display: flex; flex: 1 1 260px; max-width: 320px; align-items: center; gap: 7px; padding: 0 10px; }.search-field span { color: #6d7c8d; font-size: 17px; }.search-field input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }.search-field input::placeholder { color: #9ba7b3; }.filter-reset, .text-button { padding: 4px 6px; border: 0; color: var(--blue); background: transparent; font-size: 11px; }.filter-reset:hover, .text-button:hover { text-decoration: underline; }.table-frame { overflow-x: auto; border-top: 1px solid var(--line); }.no-top-border { border-top: 0; }.data-table { width: 100%; min-width: 850px; border-collapse: collapse; text-align: left; }.data-table th { padding: 12px 14px; color: #6c7a88; background: #f8fafc; font-size: 10px; font-weight: 650; white-space: nowrap; }.data-table td { padding: 13px 14px; border-top: 1px solid #e9edf2; color: #3c4b5c; font-size: 11px; white-space: nowrap; }.data-table tr:hover td { background: #fbfcfe; }.data-table td:first-child strong, .data-table td:first-child small { display: block; }.data-table td:first-child strong { color: #1c2a3a; font-size: 11px; font-weight: 700; }.data-table td:first-child small { margin-top: 4px; color: #8a96a3; font-size: 9px; }.actions-column { width: 160px; }.actions-cell { display: flex; gap: 6px; }.table-button { min-height: 27px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 3px; color: #5b6c80; background: #fff; font-size: 10px; }.table-button:hover { border-color: #b9c8d9; background: #f6f9fc; }.table-button.primary-action { color: var(--blue); border-color: #b7cef9; }.status-value { display: inline-flex; gap: 7px; align-items: center; font-size: 10px; font-weight: 650; }.status-value .status-dot { width: 7px; height: 7px; }.status-online, .status-succeeded { color: var(--green) !important; }.status-offline, .status-revoked, .status-failed, .status-expired { color: var(--red) !important; }.status-pending, .status-queued, .status-delivered, .status-running { color: var(--amber) !important; }.status-online .status-dot, .status-succeeded .status-dot { background: var(--green); }.status-offline .status-dot, .status-revoked .status-dot, .status-failed .status-dot, .status-expired .status-dot { background: var(--red); }.status-pending .status-dot, .status-queued .status-dot, .status-delivered .status-dot, .status-running .status-dot { background: var(--amber); }.table-empty { padding: 34px !important; color: #8c99a6 !important; text-align: center; }
.page-view { display: none; }.page-view.is-active { display: block; }.overview-sections { margin-top: 18px; }.split-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }.list-tabs { display: flex; gap: 20px; padding: 0 20px; border-bottom: 1px solid var(--line); }.list-tab { position: relative; padding: 0 0 11px; border: 0; color: var(--muted); background: none; font-size: 11px; }.list-tab.is-active { color: var(--blue); font-weight: 700; }.list-tab.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; content: ""; background: var(--blue); }.compact-table { min-width: 560px; }.compact-table th, .compact-table td { padding-right: 13px; padding-left: 13px; }.compact-table td { font-size: 10px; }.status-cell { font-weight: 650; }.app-footer { display: flex; justify-content: space-between; padding: 0 42px 24px; color: #8b98a5; font-size: 10px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(11,35,64,.35); }.modal { position: relative; width: min(440px, 100%); padding: 30px; border: 1px solid var(--line); background: #fff; box-shadow: 0 20px 55px rgba(11,35,64,.2); }.modal-close { position: absolute; top: 14px; right: 17px; padding: 0; border: 0; color: #738193; background: transparent; font-size: 22px; }.modal-kicker { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .08em; }.modal h2 { margin: 12px 0 8px; font-size: 22px; letter-spacing: -.055em; }.modal-description { margin: 0 0 23px; color: var(--muted); font-size: 11px; line-height: 1.7; }.modal .field { margin: 16px 0; }.credential-field { display: grid; gap: 7px; margin: 13px 0; }.credential-field > span { color: var(--muted); font-size: 10px; }.credential-field > div { display: flex; gap: 8px; align-items: center; }.credential-field code { min-width: 0; flex: 1; overflow: hidden; padding: 10px; border: 1px solid var(--line); color: #33465b; background: #f7f9fb; font-family: Consolas, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.secret-field code { color: #164a9d; background: var(--blue-soft); }.copy-button { padding: 8px 9px; border: 1px solid var(--line); border-radius: 3px; color: var(--blue); background: #fff; font-size: 10px; }.copy-button:hover { background: var(--blue-soft); }.credential-warning { padding: 10px; margin: 18px 0; color: var(--amber); background: var(--amber-soft); font-size: 10px; line-height: 1.6; }.action-list { display: grid; gap: 8px; }.action-row { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: #fff; text-align: left; }.action-row:hover { border-color: #abc4ef; background: #f7faff; }.action-icon { display: grid; width: 29px; height: 29px; place-items: center; color: var(--blue); background: var(--blue-soft); font-size: 15px; }.action-row strong, .action-row small { display: block; }.action-row strong { font-size: 11px; }.action-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }.toast { position: fixed; right: 25px; bottom: 25px; z-index: 20; padding: 11px 15px; border: 1px solid #b7d9c2; color: #1c6a3a; background: #f2fbf4; box-shadow: 0 8px 22px rgba(11,35,64,.12); font-size: 11px; }.toast.is-error { border-color: #ecc2bf; color: var(--red); background: var(--red-soft); }
@media (max-width: 1080px) { .workspace { padding-right: 25px; padding-left: 25px; }.summary-bar > div { min-width: 130px; padding: 0 15px; }.filter-bar { flex-wrap: wrap; }.search-field { max-width: none; } }
@media (max-width: 800px) { .sidebar { position: fixed; z-index: 15; transform: translateX(-100%); }.sidebar.is-open { transform: translateX(0); }.app-main, .sidebar.is-collapsed + .app-main { margin-left: 0; }.mobile-menu { display: inline-block; }.topbar, .sidebar.is-collapsed + .app-main .topbar { left: 0; padding: 0 18px; }.topbar-right { gap: 8px; }.topbar-connection { display: none; }.workspace { padding: 84px 16px 42px; }.page-heading { align-items: start; flex-direction: column; }.heading-actions { width: 100%; }.heading-actions .button { flex: 1; }.summary-bar { display: grid; grid-template-columns: repeat(2, 1fr); }.summary-bar > div { min-width: 0; min-height: 61px; padding: 12px 15px; border-bottom: 1px solid var(--line); }.summary-bar > div:nth-child(2) { border-right: 0; }.summary-policy { grid-column: 1 / -1; min-height: 45px !important; justify-content: start !important; border-bottom: 0 !important; }.split-sections { grid-template-columns: 1fr; }.app-footer { padding: 0 16px 18px; } }
@media (max-width: 560px) { .auth-screen { padding: 0; }.auth-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; }.auth-side { min-height: 215px; padding: 28px 24px; }.auth-side-copy { margin: 35px 0 0; }.auth-side-copy h1 { font-size: 30px; }.auth-side-copy p { display: none; }.auth-side-meta { margin-top: auto; }.auth-content { align-items: start; padding: 40px 24px; }.user-menu span:nth-child(2), .user-menu .chevron { display: none; }.page-heading h1 { font-size: 27px; }.filter-bar select { flex: 1; min-width: 0; }.data-table { min-width: 760px; }.modal { padding: 25px 20px; } }

#devices-table { min-width: 1260px; }
.hardware-cell { display: grid; gap: 3px; width: 420px; white-space: normal; }
.hardware-line { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px; line-height: 1.35; }
.hardware-line b { color: #7a8795; font-size: 9px; font-weight: 700; }
.hardware-line > span { min-width: 0; overflow: visible; color: #435366; font-size: 9px; overflow-wrap: anywhere; white-space: normal; word-break: break-word; }
.data-table td.notes-cell { max-width: 180px; overflow: hidden; line-height: 1.45; text-overflow: ellipsis; white-space: normal; }
.field textarea { width: 100%; resize: vertical; padding: 12px 13px; border: 1px solid var(--line); border-radius: 4px; outline: none; color: var(--ink); background: #fff; font-size: 13px; line-height: 1.6; transition: border-color .16s, box-shadow .16s; }
.field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,100,232,.1); }
.modal-queue { min-width: 0; width: min(900px, calc(100vw - 40px)); max-width: 100%; }
#action-modal-backdrop { z-index: 30; padding: 2.5vh 2.5vw; }
#action-modal-backdrop .modal { width: 100%; max-width: none; height: 100%; max-height: none; padding: 16px 24px 18px; overflow: auto; }
.operation-modal { display: flex; flex-direction: column; gap: 8px; }
.operation-modal-heading { display: flex; min-width: 0; align-items: center; justify-content: flex-start; gap: 12px; min-height: 24px; }
.operation-device-label { min-width: 0; max-width: min(60vw, 520px); overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 450; text-overflow: ellipsis; white-space: nowrap; }
.operation-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 16px; flex: 1 1 auto; min-height: 0; }
.screen-panel, .operation-actions-panel { min-width: 0; min-height: 0; border: 1px solid var(--line); background: #fff; }
.screen-panel { display: flex; flex-direction: column; }
.screen-panel-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-width: 0; align-items: center; gap: 12px; padding: 8px 10px 8px 13px; border-bottom: 1px solid var(--line); color: #46586c; font-size: 11px; font-weight: 700; }
.screen-heading-label, .screen-heading-actions { display: flex; min-width: 0; align-items: center; gap: 9px; }
.screen-heading-label { flex-wrap: wrap; gap: 3px 9px; }
.screen-heading-label small { color: #8996a4; font-size: 9px; font-weight: 450; }
.screen-heading-label small.is-error { color: var(--red); }
.screen-heading-actions { justify-content: end; white-space: nowrap; }
.screen-status { color: var(--green); font-size: 10px; font-weight: 500; }
.screen-control-hint { max-width: 220px; overflow: hidden; color: #7e8b99; font-size: 9px; font-weight: 450; text-overflow: ellipsis; white-space: nowrap; }
.screen-control-hint.is-error { color: var(--red); }
.screen-status.is-error { color: var(--red); }
.screen-control-toggle { min-height: 28px; padding: 5px 9px; border: 1px solid #b7cef9; border-radius: 3px; color: var(--blue); background: #fff; font-size: 10px; font-weight: 650; white-space: nowrap; }
.screen-control-toggle:hover:not(:disabled) { background: #f2f6ff; }
.screen-control-toggle.is-active { color: #fff; border-color: var(--blue); background: var(--blue); }
.screen-control-toggle:disabled { cursor: not-allowed; opacity: .48; }
.screen-stage { position: relative; display: grid; flex: 1 1 auto; min-height: 0; place-items: center; overflow: hidden; background: #071421; outline: none; }
.screen-stage.is-control-enabled { cursor: crosshair; }
.screen-stage.is-control-enabled:focus { box-shadow: inset 0 0 0 2px rgba(77, 153, 255, .8); }
.screen-preview-placeholder { max-width: min(80%, 390px); padding: 20px; color: #b9c9d7; font-size: 12px; line-height: 1.7; text-align: center; white-space: pre-line; }
.screen-preview-image { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.operation-actions-panel { padding: 14px; overflow: auto; }
@media (max-width: 800px) { .operation-layout { grid-template-columns: 1fr; grid-template-rows: minmax(260px, 1fr) auto; overflow: auto; }.screen-panel { min-height: 320px; }.operation-actions-panel { max-height: 250px; }.screen-privacy-note { display: none; } }
.tabbar { position: fixed; top: 60px; right: 0; left: 220px; z-index: 13; display: flex; gap: 2px; height: 42px; align-items: stretch; overflow-x: auto; padding: 0 16px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 2px 8px rgba(11,35,64,.06); scrollbar-width: thin; }
.sidebar.is-collapsed + .app-main .tabbar { left: 70px; }
.tabbar::-webkit-scrollbar { height: 4px; }
.tabbar::-webkit-scrollbar-thumb { background: #c9d2dc; }
.tab-item { position: relative; display: flex; flex: 0 0 auto; width: 132px; max-width: 220px; height: 42px; align-items: center; padding: 0 6px; border-right: 1px solid transparent; border-left: 1px solid transparent; color: #6a7888; background: transparent; }
.tab-item:hover { color: var(--ink); background: #fafbfd; }
.tab-item.is-active { border-right-color: var(--line); border-left-color: var(--line); color: var(--ink); background: #f4f6f8; box-shadow: inset 0 -2px 0 var(--blue); }
.tab-item:focus-within { outline: 2px solid rgba(31,100,232,.25); outline-offset: -2px; }
.tab-label { min-width: 0; flex: 1; overflow: hidden; padding: 0 6px; border: 0; color: inherit; background: transparent; font-size: 11px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.tab-close { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; padding: 0; border: 0; border-radius: 3px; color: #8b98a5; background: transparent; font-size: 15px; line-height: 1; }
.tab-close:hover:not(:disabled) { color: var(--red); background: #fcefed; }
.tab-close:disabled { cursor: default; opacity: .35; }
.tab-context-menu { position: fixed; z-index: 50; display: grid; min-width: 150px; gap: 2px; padding: 6px; border: 1px solid var(--line); background: #fff; box-shadow: 0 12px 28px rgba(11,35,64,.18); }
.tab-context-menu button { width: 100%; padding: 9px 11px; border: 0; border-radius: 3px; color: #3d5065; background: transparent; font-size: 11px; text-align: left; }
.tab-context-menu button:hover:not(:disabled) { color: var(--blue); background: var(--blue-soft); }
.tab-context-menu button:disabled { cursor: default; color: #aeb8c4; }
.tab-menu-divider { height: 1px; margin: 4px 0; background: var(--line); }
.device-context-menu { position: fixed; z-index: 60; display: grid; min-width: 190px; gap: 2px; padding: 7px; border: 1px solid var(--line); background: #fff; box-shadow: 0 12px 28px rgba(11,35,64,.18); }
.device-context-menu-heading { padding: 6px 9px 1px; overflow: hidden; color: #293e55; font-size: 11px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.device-context-menu-status { padding: 0 9px 6px; color: #83909e; font-size: 9px; }
.device-context-menu-divider { height: 1px; margin: 2px 0 3px; background: var(--line); }
.device-context-menu button { width: 100%; padding: 9px 10px; border: 0; border-radius: 3px; color: #3d5065; background: transparent; font-size: 11px; text-align: left; }
.device-context-menu button:hover:not(:disabled), .device-context-menu button:focus-visible { color: var(--blue); background: var(--blue-soft); outline: none; }
.device-context-menu button:disabled { cursor: default; color: #aeb8c4; }
.device-table-row { cursor: context-menu; }
.device-table-row:focus-visible { outline: 2px solid rgba(31,100,232,.28); outline-offset: -2px; }
.device-card { cursor: context-menu; }
.device-card-context-trigger { width: 100%; min-height: 34px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--blue); background: #fff; font-size: 11px; font-weight: 650; }
.device-card-context-trigger:hover, .device-card-context-trigger:focus-visible { border-color: #abc4ef; background: var(--blue-soft); outline: none; }
.device-table-context-trigger { display: inline-grid; width: 32px; height: 32px; place-items: center; padding: 0 0 6px; border: 1px solid transparent; border-radius: 4px; color: #60768d; background: transparent; font-size: 21px; line-height: 1; letter-spacing: 1px; }
.device-table-context-trigger:hover, .device-table-context-trigger:focus-visible { border-color: #b7cef9; color: var(--blue); background: var(--blue-soft); outline: none; }
.device-context-cell { width: 58px; text-align: center; }
#page-workspace { padding-top: 126px; }
@media (max-width: 800px) { .tabbar, .sidebar.is-collapsed + .app-main .tabbar { left: 0; padding: 0 8px; }.tab-item { width: 112px; max-width: 180px; }.tab-context-menu { min-width: 145px; }#page-workspace { padding-top: 124px; } }
.topbar-left { min-width: 0; flex: 1 1 auto; }
.topbar-right { flex: 0 0 auto; }
.tabbar { position: static; top: auto; right: auto; left: auto; z-index: auto; min-width: 0; flex: 1 1 auto; height: 60px; gap: 2px; overflow-x: auto; padding: 0; border: 0; box-shadow: none; background: transparent; }
.tab-item { height: 60px; }
#page-workspace { padding-top: 96px; }
@media (max-width: 800px) { .tabbar, .sidebar.is-collapsed + .app-main .tabbar { position: static; height: 60px; padding: 0; }#page-workspace { padding-top: 84px; } }

.screen-metrics { display: flex; min-width: 0; align-items: center; flex-wrap: nowrap; gap: 0; border-bottom: 0; background: transparent; }
.screen-metrics-inline { overflow: hidden; }
.screen-metric { display: inline-flex; min-width: 62px; gap: 6px; align-items: baseline; padding: 0 9px; border-right: 1px solid var(--line); white-space: nowrap; }
.screen-metric span { color: #7b8998; font-size: 9px; }
.screen-metric strong { color: var(--ink); font-size: 12px; font-weight: 720; white-space: nowrap; }
.screen-quality-control { display: flex; min-width: 190px; flex: 1 1 245px; gap: 7px; align-items: center; padding: 0 9px; color: #7b8998; font-size: 9px; white-space: nowrap; }
.screen-quality-control select { width: 100%; min-width: 0; min-height: 27px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 3px; outline: none; color: #43566a; background: #fff; font-size: 10px; }
.screen-quality-control select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,100,232,.1); }
.screen-input-mode-row { grid-column: 1 / -1; display: flex; min-width: 0; align-items: center; padding: 6px 9px 0; border-top: 1px solid var(--line); }
.screen-input-mode-control { display: flex; min-width: 270px; max-width: 520px; flex: 1 1 380px; gap: 7px; align-items: center; color: #7b8998; font-size: 9px; white-space: nowrap; }
.screen-input-mode-control select { width: 100%; min-width: 0; min-height: 27px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 3px; outline: none; color: #43566a; background: #fff; font-size: 10px; }
.screen-input-mode-control select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,100,232,.1); }
.screen-input-mode-control select:disabled { color: #7e8b99; background: #f7f9fb; }
.screen-popout-button { flex: 0 0 auto; align-self: center; min-height: 28px; margin: 0 0 0 6px; padding: 5px 10px; border: 1px solid #b7cef9; border-radius: 3px; color: var(--blue); background: #fff; font-size: 10px; font-weight: 650; white-space: nowrap; }
.screen-popout-button:hover:not(:disabled) { background: #f2f6ff; }
.screen-popout-button:disabled { cursor: not-allowed; opacity: .48; }
.screen-window-body { min-width: 320px; min-height: 100vh; color: #d6e1eb; background: #071421; }
.screen-window { display: flex; width: 100vw; height: 100vh; flex-direction: column; background: #071421; }
.screen-window-header { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 20px; color: #dce8f1; background: #0b2035; }
.screen-window-kicker { display: block; margin-bottom: 3px; color: #7fa6ca; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.screen-window-header h1 { max-width: 70vw; margin: 0; overflow: hidden; font-size: 16px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.screen-window-status { color: #83d0a0; font-size: 11px; white-space: nowrap; }
.screen-window-status.is-error { color: #f09a93; }
.screen-window-stage { position: relative; display: grid; min-height: 0; flex: 1 1 auto; place-items: center; overflow: hidden; background: #071421; }
.screen-window-image { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; object-position: center; }
.screen-window-placeholder { max-width: min(80vw, 520px); padding: 20px; color: #9fb4c6; font-size: 13px; line-height: 1.7; text-align: center; }
.screen-window-metrics { display: flex; min-height: 48px; align-items: center; gap: 0; padding: 0 8px; color: #b5c7d5; background: #0b2035; }
.screen-window-metrics span { display: inline-flex; min-width: 120px; gap: 8px; align-items: baseline; padding: 0 12px; border-right: 1px solid rgba(182, 205, 222, .18); font-size: 10px; }
.screen-window-metrics span:last-child { border-right: 0; }
.screen-window-metrics b { color: #7895ad; font-weight: 500; }
.screen-window-metrics strong { color: #e3edf4; font-size: 11px; font-weight: 650; }
@media (max-width: 800px) { .screen-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }.screen-quality-control { grid-column: 1 / -1; min-width: 0; border-top: 1px solid var(--line); }.screen-popout-button { grid-column: 1 / -1; margin: 7px 10px; }.screen-window-header { padding-right: 14px; padding-left: 14px; }.screen-window-status { font-size: 10px; }.screen-window-metrics { flex-wrap: wrap; min-height: 64px; padding: 8px 4px; }.screen-window-metrics span { min-width: 0; flex: 1 1 33%; justify-content: center; padding: 0 6px; } }

@media (max-width: 1100px) { .screen-panel-heading { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }.screen-metrics-inline { grid-column: 1; grid-row: 1; width: 100%; }.screen-heading-actions { grid-column: 2; grid-row: 1; } }
@media (max-width: 800px) { .operation-device-label { max-width: 100%; } }
@media (max-width: 800px) { .screen-panel-heading { display: flex; align-items: flex-start; flex-wrap: wrap; }.screen-heading-actions { order: 1; flex: 0 0 auto; }.screen-control-hint { max-width: 45vw; }.screen-metrics-inline { order: 2; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; overflow: visible; }.screen-metrics-inline .screen-metric { min-width: 0; padding: 0 8px; }.screen-metrics-inline .screen-quality-control { grid-column: 1 / -1; min-width: 0; padding: 8px 0 0; border-top: 1px solid var(--line); }.screen-metrics-inline .screen-popout-button { grid-column: 1 / -1; margin: 8px 0 0; }.screen-input-mode-row { order: 3; flex: 1 0 100%; min-width: 0; padding: 8px 0 0; }.screen-input-mode-control { min-width: 0; max-width: none; flex: 1 1 auto; } }

.collapse-button { display: inline-flex; gap: 8px; align-items: center; }
.collapse-icon { display: inline-block; width: 14px; flex: 0 0 14px; color: currentColor; font-size: 18px; line-height: 1; text-align: center; }
.sidebar.is-collapsed .collapse-button { justify-content: center; }
.sidebar.is-collapsed .collapse-button span.collapse-icon { display: inline-block; }

.tabbar { gap: 6px; align-items: center; height: 60px; padding: 0 4px; }
.tab-item { width: auto; min-width: 132px; height: 42px; align-self: center; margin: 0; padding: 0 5px; border: 1px solid transparent; border-radius: 7px; color: #6a7888; background: transparent; cursor: pointer; transition: border-color .16s, background .16s, color .16s, box-shadow .16s; }
.tab-item:hover { border-color: #dce4ed; color: var(--ink); background: #fafbfd; }
.tab-item.is-active { border-color: #d4deea; color: var(--ink); background: #fff; box-shadow: 0 3px 12px rgba(11,35,64,.08); }
.tab-item.is-active::after { position: absolute; right: 12px; bottom: -1px; left: 12px; height: 2px; border-radius: 2px; content: ""; background: var(--blue); }
.tab-item:focus-visible { outline: 2px solid rgba(31,100,232,.3); outline-offset: 1px; }
.tab-label { height: 100%; cursor: pointer; }
.user-menu .chevron { display: inline-block; width: 7px; height: 7px; margin: -3px 1px 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; color: #8492a1; transform: rotate(45deg); }
.network-ip-cell { color: #4e6680 !important; font-family: Consolas, "SFMono-Regular", monospace; font-size: 10px !important; }
#devices-table { min-width: 1360px; }
@media (max-width: 800px) { .tabbar { gap: 4px; padding: 0 2px; }.tab-item { min-width: 112px; width: auto; height: 42px; } }

.device-list-section { overflow: visible; }
.device-list-heading { padding-bottom: 14px; }
.device-list-heading-meta { display: flex; gap: 16px; align-items: center; }
.device-status-summary { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.device-status-chip { display: inline-flex; gap: 5px; align-items: center; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: #687789; background: #fafbfd; font-size: 10px; line-height: 1; white-space: nowrap; }
.device-status-chip strong { color: var(--ink); font-size: 11px; font-weight: 720; }
.device-status-chip .status-dot { width: 6px; height: 6px; }
.device-status-chip.status-online { border-color: #cde8d5; color: var(--green); background: #f4fbf5; }
.device-status-chip.status-online strong { color: var(--green); }
.device-status-chip.status-offline, .device-status-chip.status-revoked { border-color: #efd3d1; color: var(--red); background: #fff8f7; }
.device-status-chip.status-offline strong, .device-status-chip.status-revoked strong { color: var(--red); }
.device-status-chip.status-connecting { border-color: #cadcf7; color: var(--blue); background: #f5f8ff; }
.device-status-chip.status-connecting strong { color: var(--blue); }
.device-status-chip.status-sleeping, .device-status-chip.status-shutdown { border-color: #d8dee5; color: #657486; background: #f7f9fb; }
.device-status-chip.status-sleeping strong, .device-status-chip.status-shutdown strong { color: #4b5e72; }
.status-connecting { color: var(--blue) !important; }
.status-sleeping, .status-shutdown { color: #657486 !important; }
.status-connecting .status-dot { background: var(--blue); }
.status-sleeping .status-dot, .status-shutdown .status-dot { background: #7c8b99; }
.device-filter-bar { align-items: center; padding-bottom: 14px; }
.device-search-field { flex-basis: 320px; max-width: 360px; }
.device-filter-select { min-width: 150px !important; }
.filter-summary { min-width: 0; margin-left: auto; overflow: hidden; color: #8a96a3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.device-table-frame { border-top: 1px solid var(--line); }
#devices-table { min-width: 1280px; table-layout: fixed; }
#devices-table th:nth-child(1) { width: 165px; }
#devices-table th:nth-child(2) { width: 90px; }
#devices-table th:nth-child(3) { width: 125px; }
#devices-table th:nth-child(4) { width: 100px; }
#devices-table th:nth-child(5) { width: 125px; }
#devices-table th:nth-child(6) { width: 240px; }
#devices-table th:nth-child(7) { width: 75px; }
#devices-table th:nth-child(8) { width: 160px; }
#devices-table th:nth-child(9) { width: 145px; }
#devices-table th:nth-child(10) { width: 58px; }
#devices-table td { vertical-align: middle; }
#devices-table .device-name-cell { max-width: 190px; }
#devices-table .device-name-cell strong, #devices-table .device-name-cell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hardware-summary { max-width: 285px; overflow: hidden; color: #435366; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.device-type-cell { color: #435366 !important; font-weight: 650; }
#devices-table td.notes-cell { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-button.danger-action { color: var(--red); border-color: #ecc8c5; }
.table-button.danger-action:hover:not(:disabled) { background: var(--red-soft); }
.device-card-list { display: none; }
.device-list-empty { padding: 26px 8px; margin: 0; color: #8c99a6; font-size: 12px; text-align: center; }
#api-label { display: none; }

@media (max-width: 800px) {
  .device-list-heading { align-items: flex-start; gap: 12px; }
  .device-list-heading-meta { flex-direction: column; gap: 7px; align-items: flex-end; }
  .device-status-summary { justify-content: end; gap: 4px; }
  .device-status-chip { padding: 4px 6px; }
  .device-filter-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
  .device-search-field { grid-column: 1 / -1; width: 100%; max-width: none; }
  .device-filter-select { width: 100%; min-width: 0 !important; }
  .filter-reset { justify-self: start; min-height: 34px; }
  .filter-summary { grid-column: 1 / -1; width: 100%; margin-left: 0; padding-top: 1px; }
  .device-table-frame { display: none; }
  .device-card-list { display: grid; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid var(--line); background: #f8fafc; }
  .device-card { padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 2px 8px rgba(11,35,64,.04); }
  .device-card-heading { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
  .device-card-identity { min-width: 0; }
  .device-card-identity strong, .device-card-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .device-card-identity strong { color: var(--ink); font-size: 13px; font-weight: 720; }
  .device-card-identity small { margin-top: 4px; color: #8996a4; font-size: 10px; }
  .device-card-heading .status-value { flex: 0 0 auto; padding-top: 1px; font-size: 11px; }
  .device-card-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin-top: 13px; }
  .device-card-meta-item { display: grid; min-width: 0; gap: 4px; }
  .device-card-meta-item span { color: #8996a4; font-size: 9px; }
  .device-card-meta-item strong { min-width: 0; overflow: hidden; color: #34475c; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
  .device-card-meta-item.network-ip-cell strong { color: #3e5f86; font-family: Consolas, "SFMono-Regular", monospace; }
  .device-card-actions { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 12px; margin-top: 13px; border-top: 1px solid #edf0f3; }
.device-card-actions .device-card-context-trigger { flex: 1 1 auto; }
  .device-card-details { padding-top: 11px; margin-top: 12px; border-top: 1px solid #edf0f3; }
  .device-card-details summary { color: var(--blue); font-size: 11px; cursor: pointer; }
  .device-card-detail-grid { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 7px 10px; padding-top: 11px; margin: 0; }
  .device-card-detail-grid dt { color: #8996a4; font-size: 9px; }
  .device-card-detail-grid dd { min-width: 0; overflow-wrap: anywhere; margin: 0; color: #435366; font-size: 10px; line-height: 1.45; }
}

.operation-action-group { padding-top: 14px; }
.operation-action-group + .operation-action-group { margin-top: 14px; border-top: 1px solid var(--line); }
.operation-action-group-title { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px 8px; margin: 0; border: 0; color: #4a5d72; background: transparent; font: inherit; font-size: 10px; font-weight: 700; text-align: left; cursor: pointer; }
.operation-action-group-title:hover { color: var(--blue); }
.operation-action-group-title:focus-visible { outline: 2px solid rgba(31,100,232,.28); outline-offset: 3px; }
.action-group-title-text { flex: 0 0 auto; }
.action-group-title-meta { display: flex; min-width: 0; align-items: center; gap: 9px; margin-left: auto; }
.action-group-title-meta small { overflow: hidden; color: #9aa6b2; font-size: 9px; font-weight: 450; text-overflow: ellipsis; white-space: nowrap; }
.action-group-title-meta b { flex: 0 0 auto; color: #8190a0; font-size: 9px; font-weight: 600; }
.action-group-chevron { display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; border-right: 1.5px solid #758598; border-bottom: 1.5px solid #758598; font-style: normal; transform: rotate(45deg) translate(-1px, -1px); transition: transform .16s, border-color .16s; }
.operation-action-group-title:hover .action-group-chevron { border-color: var(--blue); }
.operation-action-group[data-expanded="false"] .action-group-chevron { transform: rotate(-45deg) translate(-1px, -1px); }
.operation-action-group[data-expanded="false"] .action-list, .operation-action-group[data-expanded="false"] .telegram-archives-panel, .operation-action-group[data-expanded="false"] .whatsapp-archives-panel { display: none; }
.action-row:disabled { cursor: not-allowed; opacity: .52; }
.action-row:disabled:hover { border-color: var(--line); background: #fff; }
.operation-actions-panel .action-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.operation-actions-panel .action-row { min-width: 0; grid-template-columns: auto minmax(0, 1fr) auto; }
.operation-actions-panel .action-row > span:nth-child(2) { min-width: 0; }
.operation-actions-panel .action-row strong, .operation-actions-panel .action-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operation-actions-panel .action-row[data-risk="high"] { border-color: #ecd9d7; }
.operation-actions-panel .action-row[data-risk="high"]:hover:not(:disabled) { border-color: #e5b7b2; background: #fff9f8; }
.operation-actions-panel .action-row[data-risk="high"] .action-icon { color: #b45a52; background: #fff0ee; }
.telegram-archives-panel, .whatsapp-archives-panel { margin-top: 8px; }
.telegram-archives-entry, .whatsapp-archives-entry { width: 100%; }
.telegram-archives-entry .telegram-archives-summary, .whatsapp-archives-entry .whatsapp-archives-summary { margin-top: 4px; }
.telegram-archive-item small { display: block; color: #82909f; font-size: 9px; }
.telegram-archives-summary, .whatsapp-archives-summary { margin: 0; color: #83909e; font-size: 9px; line-height: 1.45; }
.telegram-archives-summary.is-error, .whatsapp-archives-summary.is-error { color: var(--red); }
.telegram-archives-message { margin: 8px 0; color: #83909e; font-size: 9px; line-height: 1.45; }
.telegram-archives-list { display: grid; max-height: 180px; gap: 7px; overflow: auto; }
.telegram-archives-modal { width: min(820px, 100%); max-height: min(720px, calc(100vh - 40px)); overflow: auto; }
.telegram-archives-modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.telegram-archives-modal-heading .telegram-archives-message { flex: 1; margin: 0; }
.telegram-archives-modal .telegram-archives-list { max-height: min(520px, calc(100vh - 220px)); }
.telegram-archive-item { display: grid; gap: 3px; padding: 8px 9px; border: 1px solid #e0e7ef; background: #fff; }
.telegram-archive-item strong { overflow: hidden; color: #415c76; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.telegram-archive-item small:nth-of-type(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.telegram-archive-item .button { justify-self: start; margin-top: 3px; }
.telegram-archive-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 3px; }
.telegram-archive-actions .button { justify-self: auto; margin-top: 0; }
.button-danger { color: var(--red); border-color: #ecc2bf; background: #fff; }
.button-danger:hover { border-color: #d99b97; background: var(--red-soft); }
.telegram-archives-empty { margin: 0; color: #8996a4; font-size: 9px; }
.telegram-archives-empty.is-error { color: var(--red); }
.telegram-data-result-list { display: grid; gap: 8px; }
.telegram-data-result-item { display: grid; gap: 5px; padding: 10px; border: 1px solid #e0e7ef; background: #fff; }
.telegram-data-result-item strong { overflow-wrap: anywhere; color: #385979; font-family: Consolas, monospace; font-size: 10px; }
.telegram-data-result-item small { color: #82909f; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.telegram-data-result-item .button { justify-self: start; margin-top: 2px; }
.telegram-data-empty { margin: 0; color: #8996a4; }
.action-parameter-modal { width: min(540px, 100%); max-height: min(720px, calc(100vh - 40px)); overflow: auto; }
.action-parameter-guide { padding: 12px 13px; margin: 0 0 18px; border: 1px solid #cfe0fb; background: #f6f9ff; }
.action-parameter-guide h3 { margin: 0 0 8px; color: #315f9d; font-size: 11px; font-weight: 700; }
.action-parameter-guide ol { display: grid; gap: 6px; padding-left: 19px; margin: 0; color: #53677f; font-size: 10px; line-height: 1.55; }
.action-parameter-guide li { padding-left: 2px; overflow-wrap: anywhere; }
.action-parameter-field { margin: 13px 0; }
.action-parameter-field input, .action-parameter-field select { width: 100%; min-height: 38px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px; outline: none; color: var(--ink); background: #fff; font-size: 12px; }
.action-parameter-field input:focus, .action-parameter-field select:focus, .action-parameter-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,100,232,.1); }
.action-field-control { display: flex; gap: 8px; align-items: center; }
.action-field-control input { min-width: 0; flex: 1 1 auto; }
.action-path-picker-button { min-height: 38px; padding: 8px 13px; border: 1px solid #b7cef9; border-radius: 4px; color: var(--blue); background: #fff; font-size: 11px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.action-path-picker-button:hover { background: var(--blue-soft); }
.action-confirmation { display: flex; gap: 8px; align-items: flex-start; padding: 11px 12px; margin: 18px 0; border: 1px solid #edd4b0; color: #8b5c2f; background: #fff8ed; font-size: 10px; line-height: 1.55; }
.action-confirmation input { flex: 0 0 auto; margin-top: 2px; accent-color: var(--blue); }
#action-parameter-backdrop { z-index: 40; }
#telegram-archives-backdrop, #whatsapp-archives-backdrop { z-index: 35; }
#action-result-backdrop { z-index: 45; }
.action-result-modal { width: min(960px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: auto; }
.action-result-content { min-height: 80px; padding: 13px; border: 1px solid var(--line); background: #f7f9fb; color: #435366; font-size: 11px; line-height: 1.6; }
#keyboard-live-backdrop { z-index: 55; }
.keyboard-live-modal { width: min(1180px, calc(100vw - 40px)); height: min(820px, calc(100vh - 40px)); display: flex; flex-direction: column; overflow: hidden; }
.keyboard-live-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.keyboard-live-heading h2 { margin-bottom: 0; }
.keyboard-live-indicator { padding: 6px 10px; border-radius: 999px; color: #1c6a3a; background: #eaf7ee; font-size: 10px; font-weight: 700; }.keyboard-live-indicator[data-state="paused"] { color: #8a5a12; background: #fff5dd; }.keyboard-live-indicator[data-state="offline"] { color: var(--red); background: var(--red-soft); }
.keyboard-live-status { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; margin: 18px 0 10px; }.keyboard-live-status > div { padding: 9px 10px; border: 1px solid var(--line); background: #f8fafc; }.keyboard-live-status span,.keyboard-live-status strong { display:block; }.keyboard-live-status span { color: var(--muted); font-size: 9px; }.keyboard-live-status strong { margin-top:4px; font-size:11px; }.keyboard-live-status [data-tone="ok"] strong { color:#1c6a3a; }.keyboard-live-status [data-tone="warning"] strong { color:#8a5a12; }.keyboard-live-status [data-tone="danger"] strong { color:var(--red); }
.keyboard-live-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); background:#f7f9fb; }.keyboard-live-toolbar label { display:flex; align-items:center; gap:5px; color:var(--muted); font-size:10px; }.keyboard-live-toolbar input:not([type="checkbox"]),.keyboard-live-toolbar select { min-width:120px; padding:7px 8px; border:1px solid var(--line); background:#fff; font-size:10px; }
.keyboard-live-summary { padding: 9px 0; color:var(--muted); font-size:10px; }.keyboard-live-stream { min-height:0; flex:1; overflow:auto; border:1px solid var(--line); background:#f7f9fb; }
.keyboard-live-group { margin:10px; border:1px solid #dce5ef; background:#fff; }.keyboard-live-group-header { display:grid; grid-template-columns:minmax(100px,.8fr) minmax(140px,1.4fr) minmax(160px,1.8fr) auto; gap:10px; align-items:center; padding:9px 10px; border-left:3px solid var(--blue); background:#edf4ff; font-size:10px; }.keyboard-live-group-header span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#52677c; }.keyboard-live-group-header b { color:var(--blue); white-space:nowrap; }
.keyboard-live-table { width:100%; border-collapse:collapse; }.keyboard-live-table th,.keyboard-live-table td { padding:6px 10px; border-top:1px solid #edf0f3; font-size:10px; text-align:left; }.keyboard-live-table th { color:var(--muted); background:#fafbfd; }.keyboard-live-table th:first-child { width:180px; }
@media (max-width: 760px) { .keyboard-live-modal { width:calc(100vw - 20px); height:calc(100vh - 20px); padding:20px 14px; }.keyboard-live-status { grid-template-columns:repeat(2,minmax(0,1fr)); }.keyboard-live-toolbar > * { flex:1 1 130px; }.keyboard-live-group-header { grid-template-columns:1fr auto; }.keyboard-live-group-header span { grid-column:1 / -1; }.keyboard-live-table th:first-child { width:120px; } }
.action-result-pending { margin: 0; color: var(--muted); }
.action-result-error { padding: 9px 10px; margin: 0 0 10px; border: 1px solid #ecc2bf; color: var(--red); background: var(--red-soft); }
.action-result-json { max-height: 430px; padding: 10px 0 0; margin: 10px 0 0; overflow: auto; color: #33465b; font-family: Consolas, monospace; font-size: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.result-summary { padding: 10px 12px; margin-bottom: 12px; border-left: 3px solid var(--blue); color: #3f5770; background: #eef4ff; font-size: 11px; font-weight: 650; }
.result-summary-warning { border-left-color: var(--amber); color: #74520b; background: var(--amber-soft); }
.result-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; padding: 2px 0 4px; margin: 0; }
.result-info-grid dt { color: #83909e; font-size: 10px; }
.result-info-grid dd { min-width: 0; overflow-wrap: anywhere; margin: 0; color: #34485d; font-size: 11px; font-weight: 600; }
.result-info-section { grid-column: 1 / -1; padding-top: 5px; }
.result-info-section h4 { padding-top: 9px; margin: 0 0 7px; border-top: 1px solid #e4e9ef; color: #54687d; font-size: 10px; }
.result-section { margin-top: 15px; }
.result-section h3 { padding-top: 11px; margin: 0 0 8px; border-top: 1px solid #e0e6ed; color: #4a6077; font-size: 11px; }
.result-table-frame { overflow: auto; border: 1px solid #e1e7ee; background: #fff; }
.result-table { width: 100%; min-width: 560px; border-collapse: collapse; text-align: left; }
.result-table th { padding: 8px 10px; color: #768596; background: #f2f5f8; font-size: 10px; font-weight: 650; white-space: nowrap; }
.result-table td { padding: 8px 10px; border-top: 1px solid #edf0f3; color: #45586c; font-size: 10px; vertical-align: top; }
.result-table td:first-child { color: #2f4964; font-weight: 650; }
.result-output { display: grid; gap: 5px; padding: 10px 11px; margin-top: 14px; border: 1px solid #dfe6ed; color: #53677b; background: #fff; }
.result-output strong { font-size: 10px; }
.result-output pre { max-height: 180px; padding: 8px; margin: 0; overflow: auto; color: #34485d; background: #f7f9fb; font-family: Consolas, monospace; font-size: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.result-note { padding: 9px 10px; margin: 13px 0 0; color: #7d8995; background: #eef1f4; font-size: 10px; line-height: 1.55; }
.result-download-button { margin-top: 2px; }
.result-raw { margin-top: 15px; border-top: 1px solid #e0e6ed; color: #718091; font-size: 10px; }
.result-raw summary { padding: 11px 0 4px; cursor: pointer; }
.result-raw pre { max-height: 260px; padding: 9px; margin: 5px 0 0; overflow: auto; color: #526579; background: #fff; font-family: Consolas, monospace; font-size: 9px; white-space: pre-wrap; overflow-wrap: anywhere; }
#action-path-picker-backdrop { z-index: 50; }
.action-path-picker-modal { width: min(620px, 100%); max-height: min(720px, calc(100vh - 40px)); overflow: auto; }
.action-path-picker-toolbar { display: flex; gap: 8px; margin: -7px 0 12px; }
.action-path-picker-toolbar .button { flex: 0 0 auto; }
.action-path-picker-location { padding: 10px 12px; margin-bottom: 9px; border: 1px solid var(--line); color: #52657a; background: #f7f9fb; font-size: 11px; font-family: Consolas, monospace; overflow-wrap: anywhere; }
.action-path-picker-list { display: grid; max-height: 380px; gap: 7px; overflow: auto; }
.action-path-entry { display: grid; min-width: 0; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.action-path-entry:hover { border-color: #abc4ef; background: #f7faff; }
.action-path-entry strong, .action-path-entry small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-path-entry strong { font-size: 11px; font-weight: 650; }
.action-path-entry small { color: var(--muted); font-size: 10px; }
.action-path-entry-directory strong { color: #3d6699; }
.action-path-picker-empty { padding: 24px 10px; margin: 0; color: var(--muted); text-align: center; }
#file-manager-backdrop { z-index: 60; }
.file-manager-modal { width: min(1240px, calc(100vw - 32px)); height: min(860px, calc(100vh - 32px)); display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.file-manager-heading { display: flex; min-width: 0; align-items: end; justify-content: space-between; gap: 16px; }
.file-manager-heading h2 { margin-bottom: 0; }
.file-manager-device { max-width: 46%; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.file-manager-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--line); background: #f7f9fb; }
.file-manager-toolbar .button { flex: 0 0 auto; }
.file-manager-location { display: flex; min-width: 0; align-items: center; gap: 4px; min-height: 34px; padding: 7px 10px; border: 1px solid var(--line); color: #52657a; background: #fff; font-family: Consolas, monospace; font-size: 11px; overflow: auto; white-space: nowrap; }
.file-manager-breadcrumb { flex: 0 0 auto; padding: 2px 4px; border: 0; color: var(--blue); background: transparent; font: inherit; cursor: pointer; }
.file-manager-breadcrumb:hover { background: var(--blue-soft); }
.file-manager-breadcrumb-divider { color: #9aa7b4; }
.file-manager-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.file-manager-search { display: flex; min-width: 180px; max-width: 320px; flex: 1 1 260px; align-items: center; gap: 7px; height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 3px; color: #6d7c8d; background: #fff; font-size: 15px; }
.file-manager-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.file-manager-list-heading > span { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.file-manager-list { min-height: 180px; flex: 1 1 auto; overflow: auto; border: 1px solid var(--line); background: #f8fafc; }
.file-manager-root-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 9px; padding: 12px; }
.file-manager-root-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: #fff; text-align: left; }
.file-manager-root-card:hover { border-color: #abc4ef; background: #f7faff; }
.file-manager-root-icon { display: grid; width: 34px; height: 34px; place-items: center; color: var(--blue); background: var(--blue-soft); font-size: 19px; }
.file-manager-root-body { display: grid; min-width: 0; gap: 4px; }
.file-manager-root-body strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.file-manager-root-body small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.file-manager-root-arrow { color: var(--blue); font-size: 18px; }
.file-manager-table-frame { width: 100%; overflow: auto; }
.file-manager-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.file-manager-table th { padding: 9px 10px; color: #748393; background: #f2f5f8; font-size: 10px; font-weight: 650; white-space: nowrap; }
.file-manager-table td { padding: 8px 10px; border-top: 1px solid #edf0f3; color: #485a6c; font-size: 10px; vertical-align: middle; }
.file-manager-table tr.is-reparse { background: #fffaf0; }
.file-manager-name { display: inline-flex; min-width: 0; align-items: center; gap: 7px; padding: 3px 5px; border: 0; color: #3c5b7a; background: transparent; text-align: left; }
.file-manager-name:hover { color: var(--blue); background: var(--blue-soft); }
.file-manager-name:not(.is-directory) { cursor: default; }
.file-manager-name:not(.is-directory):hover { color: #3c5b7a; background: transparent; }
.file-manager-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-manager-entry-icon { flex: 0 0 auto; font-size: 14px; }
.file-manager-badge { display: inline-block; padding: 3px 5px; margin: 1px 3px 1px 0; color: #647587; background: #edf1f5; font-size: 8px; white-space: nowrap; }
.file-manager-badge.is-warning { color: #8b5c2f; background: var(--amber-soft); }
.file-manager-badge.is-danger { color: var(--red); background: var(--red-soft); }
.file-manager-empty { padding: 30px 12px; margin: 0; color: var(--muted); text-align: center; font-size: 11px; }
#file-manager-picker-backdrop { z-index: 70; }
.file-manager-picker-modal { width: min(760px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 32px)); display: flex; flex-direction: column; gap: 10px; }
.file-manager-picker-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border: 1px solid var(--line); background: #f7f9fb; }
.file-manager-picker-toolbar > span { margin-left: auto; color: var(--muted); font-size: 10px; }
.file-manager-picker-list { min-height: 200px; max-height: min(54vh, 500px); overflow: auto; border: 1px solid var(--line); background: #f8fafc; }
.file-manager-picker-entry { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; width: 100%; align-items: center; padding: 11px 13px; border: 0; border-bottom: 1px solid #e8edf2; color: var(--ink); background: #fff; text-align: left; }
.file-manager-picker-entry:last-child { border-bottom: 0; }
.file-manager-picker-entry:hover:not(:disabled) { color: var(--blue); background: var(--blue-soft); }
.file-manager-picker-entry strong, .file-manager-picker-entry small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-manager-picker-entry small { color: var(--muted); font-size: 9px; }
.file-manager-picker-entry:disabled { color: #9aa7b4; background: #f5f7f9; cursor: not-allowed; }
@media (max-width: 800px) {
  .operation-action-group-title { position: sticky; top: -14px; z-index: 1; padding: 5px 0 8px; background: #fff; }
  .operation-actions-panel .action-list { grid-template-columns: 1fr; }
  .action-group-title-meta small { max-width: 45vw; }
  .action-parameter-modal { max-height: calc(100vh - 28px); }
  .action-result-modal, .action-path-picker-modal { max-height: calc(100vh - 28px); }
  .result-info-grid { grid-template-columns: 1fr; }
  .action-path-picker-list { max-height: 300px; }
  .file-manager-modal { width: calc(100vw - 20px); height: calc(100vh - 20px); padding: 20px 14px; }
  .file-manager-heading { align-items: start; flex-direction: column; gap: 4px; }
  .file-manager-device { max-width: 100%; }
  .file-manager-toolbar .button { flex: 1 1 auto; }
  .file-manager-root-list { grid-template-columns: 1fr; padding: 8px; }
  .file-manager-picker-modal { width: calc(100vw - 20px); max-height: calc(100vh - 20px); padding: 20px 14px; }
  .file-manager-picker-toolbar > span { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .telegram-archives-modal-heading { align-items: stretch; flex-direction: column; gap: 8px; }
  .telegram-archives-modal-heading .button { align-self: flex-start; }
}

/* Keep the navigation compact and give the working area more room. */
.sidebar { flex-basis: 180px; width: 180px; }
.app-main { margin-left: 180px; }
.topbar { left: 180px; }
.workspace { width: min(1560px, 100%); padding-right: 24px; padding-left: 24px; }
@media (max-width: 800px) {
  .sidebar { flex-basis: 180px; width: 180px; }
  .app-main, .sidebar.is-collapsed + .app-main { margin-left: 0; }
  .topbar, .sidebar.is-collapsed + .app-main .topbar { left: 0; padding-right: 18px; padding-left: 18px; }
  .workspace { width: 100%; padding-right: 16px; padding-left: 16px; }
}

#process-manager-backdrop { z-index: 38; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.process-manager-modal { width: min(1180px, calc(100vw - 40px)); height: min(820px, calc(100vh - 40px)); display: flex; flex-direction: column; gap: 11px; overflow: hidden; }
.process-manager-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-right: 28px; }
.process-manager-heading h2 { margin-bottom: 3px; }
.process-manager-device { margin: 0; color: var(--muted); font-size: 10px; }
.process-manager-note { padding: 9px 11px; margin: 0; border: 1px solid #d9e6f8; color: #526b88; background: #f5f9ff; font-size: 10px; line-height: 1.55; }
.process-manager-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.process-manager-summary > div { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); background: #f8fafc; }
.process-manager-summary span, .process-manager-summary strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.process-manager-summary span { color: var(--muted); font-size: 9px; }
.process-manager-summary strong { margin-top: 4px; color: var(--ink); font-size: 12px; }
.process-manager-toolbar { display: flex; align-items: center; gap: 8px; }
.process-manager-search { display: block; min-width: 0; flex: 1 1 auto; }
.process-manager-search input, .process-manager-sort-label select { width: 100%; min-height: 34px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 3px; outline: 0; color: var(--ink); background: #fff; font-size: 10px; }
.process-manager-search input:focus, .process-manager-sort-label select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,100,232,.1); }
.process-manager-sort-label { display: flex; align-items: center; gap: 7px; flex: 0 0 152px; color: var(--muted); font-size: 10px; }
.process-manager-sort-label select { flex: 1 1 auto; min-width: 0; }
.process-manager-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 11px; min-height: 0; flex: 1 1 auto; }
.process-manager-table-frame { min-width: 0; min-height: 0; overflow: auto; border: 1px solid var(--line); background: #fff; }
.process-manager-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.process-manager-table th { padding: 10px 9px; color: #6c7a88; background: #f8fafc; font-size: 9px; font-weight: 650; white-space: nowrap; }
.process-manager-table td { padding: 9px; border-top: 1px solid #e9edf2; color: #3c4b5c; font-size: 10px; white-space: nowrap; }
.process-manager-table tbody tr { cursor: pointer; }
.process-manager-table tbody tr:hover td, .process-manager-table tbody tr.is-selected td { background: #f4f8ff; }
.process-manager-table tbody tr:focus-visible td { outline: 2px solid rgba(31,100,232,.28); outline-offset: -2px; }
.process-manager-process-cell { max-width: 300px; }
.process-manager-process-cell strong, .process-manager-process-cell small { display: block; overflow: hidden; text-overflow: ellipsis; }
.process-manager-process-cell strong { color: #1c2a3a; font-size: 10px; }
.process-manager-process-cell strong .process-manager-controlled-badge { display: inline-flex; margin-left: 6px; vertical-align: 1px; }
.process-manager-process-cell small { max-width: 280px; margin-top: 3px; color: #8a96a3; font-size: 9px; }
.process-manager-table .table-button { white-space: nowrap; }
.process-manager-protected { color: #8996a4; font-size: 9px; }
.process-manager-details { min-width: 0; min-height: 0; overflow: auto; padding: 12px; border: 1px solid var(--line); background: #f8fafc; }
.process-manager-detail-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.process-manager-detail-heading strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.process-manager-controlled-badge { display: inline-flex; flex: 0 0 auto; align-items: center; padding: 2px 5px; border-radius: 3px; color: #315f9d; background: #e9f1ff; font-size: 8px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.process-manager-detail-heading small { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.process-manager-detail-note { padding: 8px 9px; margin: 10px 0; color: #36704a; background: #eef9f1; font-size: 9px; line-height: 1.55; }
.process-manager-detail-note.is-warning { color: #8b5c2f; background: #fff8ed; }
.process-manager-details dl { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 7px 9px; margin: 0; }
.process-manager-details dt { color: var(--muted); font-size: 9px; }
.process-manager-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #3c4b5c; font-size: 9px; }
.process-manager-empty { padding: 28px 12px !important; color: #8c99a6 !important; text-align: center; white-space: normal !important; }
.process-manager-empty.is-error, .process-manager-message.is-error { color: var(--red) !important; }
.process-manager-message { margin: 0; min-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 800px) {
  .process-manager-modal { width: calc(100vw - 20px); height: calc(100vh - 20px); padding: 20px 14px; }
  .process-manager-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-manager-body { grid-template-columns: 1fr; grid-template-rows: minmax(190px, 1fr) auto; }
  .process-manager-details { min-height: 76px; max-height: 210px; }
}
@media (max-width: 560px) {
  .process-manager-heading { align-items: stretch; flex-direction: column; gap: 7px; }
  .process-manager-heading .button { align-self: flex-start; }
  .process-manager-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-manager-toolbar { align-items: stretch; flex-direction: column; }
  .process-manager-sort-label { flex-basis: auto; }
}
