.product-name .motion{color:#1667d9}.product-name .id{color:#0b7e78}.brand-copy{display:flex;flex-direction:column;line-height:1.15}.brand-copy strong{font-size:20px;letter-spacing:.1px}.brand-copy small{margin-top:4px;color:var(--muted);font-size:11px;font-weight:500}.about-subtitle{margin-top:-10px;color:var(--muted);font-size:13px}.university-credit{display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;align-items:center;margin-top:24px;padding-top:18px;border-top:1px solid var(--line);text-align:left}.university-credit>a{display:block;padding:4px;background:#fff;border-radius:10px}.university-credit img{display:block;width:104px;height:auto;max-height:78px;object-fit:contain}.university-credit div{display:grid;gap:5px;font-size:12px;line-height:1.35;color:#405365}.university-credit span{display:block}.university-credit div a{display:inline;padding:0;background:transparent;border-radius:0;color:var(--blue);text-decoration:none;font-weight:600}.university-credit div a:hover{text-decoration:underline}
.info-dialog h2.product-name{margin-top:18px}.info-dialog h2.product-name .motion,.info-dialog h2.product-name .id{font-size:25px}
button:not(.tab):not(.icon-button){min-height:40px;padding:8px 14px;border:1px solid #bfd0dc;border-radius:8px;background:#fff;color:#24384a;font-weight:500;cursor:pointer;transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s,transform .08s}button:not(.tab):not(.icon-button):hover:not(:disabled){border-color:#8aaac0;background:#eef5fa;box-shadow:0 2px 8px #21486618}button:not(.tab):not(.icon-button):active:not(:disabled){transform:translateY(1px);box-shadow:none}button:not(.tab):not(.icon-button):focus-visible{outline:3px solid #1667d92b;outline-offset:2px}button:disabled{opacity:.45;cursor:not-allowed}.primary-action,#startBatch{border-color:var(--blue)!important;background:var(--blue)!important;color:#fff!important}.primary-action:hover:not(:disabled),#startBatch:hover:not(:disabled){border-color:#0f56ba!important;background:#0f5fc9!important}.tab-panel>button{display:block;width:100%;margin:0 0 9px}.batch-toolbar button{margin:0}.menu-popover button{min-height:0;border:0;background:transparent;font-weight:400;box-shadow:none}.menu-popover button:hover:not(:disabled){border:0;background:#edf4fa;box-shadow:none}.icon-button{display:grid;place-items:center;padding:0}.project-actions .danger{border-color:#e4bcbc!important;color:#a62e2e!important}.project-actions .danger:hover:not(:disabled){background:#fff0f0!important;border-color:#d99393!important}
.primary-action{border:0;border-radius:8px;background:var(--blue);color:#fff;padding:10px 14px;margin-bottom:14px;cursor:pointer}.primary-action:disabled{opacity:.4}.batch-toolbar .primary-action{margin:0}
.workspace,.chart-area{min-height:0}.chart-area{overflow:hidden}#chart{display:block;min-width:0!important;min-height:0!important;max-width:100%;max-height:100%;contain:size layout paint}
.server-list button{display:block;width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.server-list button strong{display:block;max-width:100%;white-space:normal;overflow:visible;text-overflow:clip}.server-list button small{color:var(--muted)}
.project-dialog .server-list{display:block;align-content:start;grid-auto-rows:max-content}

.batch-dialog{width:min(1500px,96vw);height:min(780px,92vh);padding:20px;border:0;border-radius:18px;color:#1d2d3d}
.batch-dialog::backdrop{background:#26384a99;backdrop-filter:blur(2px)}
.batch-dialog[open]{display:flex;flex-direction:column;gap:14px}
.batch-dialog .dialog-head h2{margin:0 0 5px}.batch-dialog .dialog-head p{margin:0;color:#647587}
.batch-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.batch-toolbar #batchSummary{margin-left:auto;color:#5f7080}
.batch-table-wrap{min-height:0;flex:1;overflow:auto;border:1px solid #ccdae6;border-radius:12px;background:#fff}
.batch-table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}
.batch-table th{position:sticky;top:0;z-index:1;background:#e7f0f7;color:#24425a;text-align:left;padding:10px;border-bottom:1px solid #bfd0de}
.batch-table td{padding:9px 10px;border-bottom:1px solid #e1e8ee;vertical-align:middle}
.batch-table tr:last-child td{border-bottom:0}.batch-table tr.is-error{background:#fff4f2}.batch-table tr.is-done{background:#f4fbf7}
.batch-table .file-cell{max-width:250px;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.batch-table .status-cell{max-width:260px;overflow:hidden;text-overflow:ellipsis}.batch-table button{padding:6px 10px}
.batch-table th.batch-inertia,.batch-table td.batch-inertia{background:#eaf3fb;box-shadow:inset 3px 0 #2878b8}.batch-table th.batch-resistance,.batch-table td.batch-resistance{background:#fff4e5;box-shadow:inset 3px 0 #d28516}.batch-table th.batch-coefficient,.batch-table td.batch-coefficient{background:#e8f6f3;box-shadow:inset 3px 0 #0b7e78}.batch-table th.batch-quality,.batch-table td.batch-quality{background:#f2effb;box-shadow:inset 3px 0 #7655b5}.batch-table td.batch-inertia,.batch-table td.batch-resistance,.batch-table td.batch-coefficient,.batch-table td.batch-quality{font-weight:650}
.batch-footer{display:grid;grid-template-columns:minmax(180px,360px) 1fr;gap:12px;align-items:center;color:#5c6d7d}.batch-footer progress{width:100%}
@media(max-width:800px){.batch-dialog{padding:14px}.batch-toolbar #batchSummary{width:100%;margin-left:0}.batch-footer{grid-template-columns:1fr}}
#chart{cursor:ew-resize;touch-action:none}.start-note{margin-top:12px!important}.start-note+#detectStart{margin-top:0}
.tab-panel .check-label{display:flex;align-items:center;gap:9px}.tab-panel .check-label input{width:18px;height:18px;margin:0;flex:0 0 auto}
.result-assumption{margin-top:10px;padding:10px 12px;border-radius:8px;background:#eaf3f7;color:#496273;font-size:12px;line-height:1.4}
.result-body>div.result-inertia{background:#eaf3fb;box-shadow:inset 4px 0 #2878b8}.result-body>div.result-resistance{background:#fff4e5;box-shadow:inset 4px 0 #d28516}.result-body>div.result-coefficient{background:#e8f6f3;box-shadow:inset 4px 0 #0b7e78}.result-body>div.result-quality{background:#f2effb;box-shadow:inset 4px 0 #7655b5}.result-body>div.result-inertia span:first-child,.result-body>div.result-resistance span:first-child,.result-body>div.result-coefficient span:first-child,.result-body>div.result-quality span:first-child{font-weight:650}
.camera-correction{margin:18px 0;padding:14px;border:1px solid #bfd4df;border-radius:10px;background:#f4fafb}.camera-correction legend{padding:0 7px;color:#315e70;font-weight:700}.camera-correction label{margin-bottom:10px}.camera-correction button{width:100%;padding:8px}.correction-values{display:flex;gap:18px;margin-top:12px;color:#496273}.correction-diagnosis{margin-top:10px;font-size:12px;line-height:1.4;color:#526b78}.legend .raw{border-color:#8eb7d8}
.project-dialog{width:min(920px,94vw);height:min(760px,90vh);padding:0 24px 20px;overflow:hidden}.project-dialog .dialog-head{padding-bottom:8px}.project-toolbar{display:grid;grid-template-columns:170px minmax(190px,1fr) 170px auto;gap:10px;margin-bottom:12px}.project-toolbar input,.project-toolbar select,.project-toolbar button{height:40px;border:1px solid var(--line);border-radius:8px;padding:7px 10px;background:#fff}.project-dialog>.primary-action{margin:0 0 12px}.project-dialog .server-list{height:calc(100% - 228px);overflow:auto;border:1px solid var(--line);border-radius:10px;background:#fff}.project-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line)}.project-row:last-child{border-bottom:0}.project-row:hover{background:#f5f9fc}.project-main{min-width:0}.project-main strong{display:block;overflow-wrap:anywhere}.project-main small{display:block;color:var(--muted);margin-top:5px}.project-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.project-actions button{width:auto;display:inline-block;border:1px solid #cbd6df;background:#fff;border-radius:7px;padding:7px 9px;white-space:nowrap;cursor:pointer}.project-actions button:hover{background:#eaf2f8}.project-actions .danger{color:#a62e2e}.project-pager{display:flex;align-items:center;justify-content:center;gap:16px;padding-top:14px}.project-pager button{border:1px solid var(--line);background:#fff;border-radius:7px;padding:7px 12px}.project-pager button:disabled{opacity:.4}@media(max-width:750px){.project-toolbar{grid-template-columns:1fr}.project-dialog{padding:0 12px 12px}.project-dialog .server-list{height:calc(100% - 300px)}.project-row{grid-template-columns:1fr}.project-actions{justify-content:flex-start}}

/* Авторизация */
.menu-command{align-self:stretch;border:0!important;border-radius:0!important;background:transparent!important;padding:0 14px!important;font:inherit!important;font-weight:400!important;box-shadow:none!important;color:inherit!important;cursor:pointer}.menu-command:hover{background:#edf3f8!important}.menu-command.is-authorized{font-weight:600!important}.auth-dialog{width:min(460px,92vw);padding:0;border:0;border-radius:16px;overflow:hidden}.auth-dialog[open]{display:block}.auth-dialog-head{padding:24px 26px 10px}.auth-dialog-head h2{margin:0 0 6px}.auth-dialog-head p{margin:0;color:var(--muted);line-height:1.45}.auth-form{display:grid;gap:16px;padding:12px 26px 26px}.auth-form label{display:grid;gap:7px;font-size:13px;font-weight:600}.auth-form input{width:100%;height:42px;box-sizing:border-box;border:1px solid #bfcad4;border-radius:8px;background:#fff;padding:8px 11px;font:inherit}.auth-form input:focus{outline:3px solid #1768d527;border-color:var(--blue)}.auth-actions{display:flex;gap:10px;justify-content:flex-start;padding-top:2px}.auth-error{padding:10px 12px;border-radius:8px;background:#fff0f0;color:#9d2d2d;font-size:13px}.auth-status{color:#315a57}.readonly-note{padding:10px 12px;border-radius:8px;background:#eef5fa;color:#486173;font-size:13px;margin-bottom:12px}

/* Mobile layout ---------------------------------------------------------- */
.mobile-menu-toggle{display:none}

@media(max-width:700px) and (hover:none) and (pointer:coarse){
  html,body{height:auto;min-height:100%;overflow-x:hidden}
  body{min-height:100dvh}
  .appbar{height:60px;padding:0 max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));gap:10px;position:sticky;top:0;z-index:50}
  .brand{min-width:0;gap:8px;flex:1}.brand-mark{width:34px;height:34px;border-radius:10px;font-size:21px}.brand-copy{min-width:0}.product-name{font-size:17px}.brand-copy small{display:none}
  .mobile-menu-toggle{display:flex!important;align-items:center;gap:7px;min-height:42px!important;padding:7px 10px!important;white-space:nowrap}.mobile-menu-label{font-size:13px}
  .menu{display:none;position:fixed;z-index:60;top:60px;right:8px;left:8px;max-height:calc(100dvh - 70px);overflow:auto;padding:7px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);align-self:auto}
  .menu.mobile-open{display:block}
  .menu details,.menu>.menu-command{display:block;width:100%;height:auto}
  .menu summary,.menu-command{width:100%;min-height:46px!important;padding:12px 14px!important;text-align:left;border-radius:8px!important}
  .menu details[open] summary,.menu-command:hover{background:#edf3f8!important}
  .menu-popover{position:static;top:auto;left:auto;min-width:0;width:100%;border:0;border-radius:8px;box-shadow:none;padding:2px 4px 7px 14px;background:#f7f9fb}
  .menu-popover button,.menu-popover a{min-height:44px;padding:10px 11px;align-items:center;white-space:normal}
  .menu-popover kbd{display:none}

  .workspace{display:flex;flex-direction:column;height:auto;min-height:calc(100dvh - 60px)}
  .sidebar{height:auto;overflow:visible;border-right:0;order:1}
  .tabs{position:sticky;top:60px;z-index:20;height:52px;padding:6px 4px 0;box-shadow:0 1px 0 var(--line)}
  .tab{min-width:0;padding:7px 3px;font-size:12px;line-height:1.15}
  .tab-panel{height:auto;max-height:none;padding:16px;overflow:visible}
  .tab-panel label{margin-bottom:15px}
  .tab-panel input,.tab-panel select{min-height:44px;height:44px;font-size:16px}
  .tab-panel>button{min-height:46px}
  .table-panel{padding:0}.table-wrap{height:auto;max-height:62dvh;overflow:auto;overscroll-behavior:contain}
  #tab-data th:first-child,#tab-data td:first-child{position:sticky;left:0;z-index:2;background:#fff}
  #tab-data th:first-child{z-index:4;background:#deebf4}
  #tab-data tbody tr:nth-child(even) td:first-child{background:#f7f9fb}

  .chart-area{order:2;height:62dvh;min-height:420px;padding:16px 12px 0;overflow:hidden;grid-template-rows:auto minmax(0,1fr) 34px}
  .chart-header{display:block}.chart-header h1{font-size:17px}.chart-header p{margin-bottom:8px}.legend{flex-wrap:wrap;gap:7px 14px;margin-bottom:8px;font-size:11px}.legend i{width:20px}
  #chart{min-height:300px!important;touch-action:none}
  .statusbar{gap:8px}.statusbar span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.statusbar progress{width:110px;flex:0 0 auto}

  .result-head,.result-body>div{grid-template-columns:minmax(0,1.55fr) .9fr .65fr}.result-head span,.result-body span{padding:8px 5px;font-size:11px;overflow-wrap:anywhere;min-width:0}.result-assumption{font-size:12px;line-height:1.4}

  dialog{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
  .auth-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.auth-dialog-head{padding:20px 18px 8px}.auth-form{padding:10px 18px 20px}.auth-form input{height:44px;font-size:16px}.auth-actions{flex-wrap:wrap}.auth-actions button{min-height:44px}
  .dialog-head{gap:10px}.dialog-head h2{font-size:19px}.dialog-head p{font-size:13px;line-height:1.4}
  .info-dialog{width:calc(100vw - 24px);padding:20px}.animation-dialog{width:calc(100vw - 16px);padding:0 12px 12px}.animation-dialog canvas{height:min(52dvh,420px)}.animation-readout{gap:16px;flex-wrap:wrap;font-size:13px}.animation-controls{grid-template-columns:1fr auto}.animation-controls input{grid-column:1/-1;grid-row:2}

  .batch-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);padding:12px;gap:10px}.batch-dialog .dialog-head{padding:5px 0 8px}.batch-toolbar{display:grid;grid-template-columns:1fr;gap:8px}.batch-toolbar button{width:100%;min-height:44px}.batch-toolbar #batchSummary{width:auto;margin:2px 0 0}.batch-table-wrap{min-height:0;overflow:auto;overscroll-behavior:contain}.batch-table{font-size:11px}.batch-table th,.batch-table td{padding:7px 6px}.batch-footer{grid-template-columns:1fr;gap:6px}.batch-footer progress{width:100%}

  .project-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);padding:0 12px 12px}.project-dialog[open]{display:flex;flex-direction:column}.project-dialog .dialog-head{flex:0 0 auto}.project-toolbar{grid-template-columns:1fr;flex:0 0 auto}.project-toolbar input,.project-toolbar select,.project-toolbar button{height:44px;font-size:16px}.project-dialog>.primary-action{flex:0 0 auto}.project-dialog .server-list{height:auto!important;min-height:0;flex:1;overflow:auto}.project-row{grid-template-columns:1fr;padding:11px}.project-actions{justify-content:flex-start}.project-actions button{min-height:42px}.project-pager{flex:0 0 auto;padding-top:10px;gap:8px;flex-wrap:wrap}
}

@media(max-width:420px){
  .mobile-menu-label{display:none}.mobile-menu-toggle{width:44px!important;justify-content:center;padding:7px!important;font-size:20px!important}
  .chart-area{height:58dvh;min-height:380px}.tabs{height:50px}.tab-panel{padding:14px 12px}.result-head,.result-body>div{grid-template-columns:minmax(0,1.5fr) .95fr .65fr}
}

.data-report-action{padding:10px 16px;border-bottom:1px solid var(--line)}
.results-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.results-heading h2{margin:0}
.results-heading button{flex-shrink:0}
