.modalBackdropNew{position:fixed;inset:0;background:rgba(15,23,42,.32);backdrop-filter:blur(6px);display:grid;place-items:center;z-index:1000;padding:20px}.modalCardNew{width:min(760px,100%);max-height:min(90vh,900px);overflow:auto;border-radius:12px;border:0;background:#fff;box-shadow:0 28px 72px rgba(15,23,42,.16)}.modal-settings{width:min(1180px,calc(100vw - 48px));max-height:min(90dvh,calc(100vh - 40px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}.is-mobile .modal-ingest.modalCardNew,.is-mobile .modalCardNew.modal-ingest,.modal-ingest.modalCardNew,.modal-settings,.modalCardNew.modal-ingest{border-radius:12px}.modalFootNew,.modalHeadNew{padding:16px 20px;display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:0}.modalFootNew{border-top:0;border-bottom:0;justify-content:flex-end}.modalFootNew button{height:38px;border-radius:var(--button-radius);border:0;background:rgba(15,23,42,.06);color:var(--text-main);padding:0 10px;font-weight:500;cursor:pointer}.modalFootNew .primary{color:#fff;border:0;background:#5b6169;box-shadow:0 2px 8px rgba(15,23,42,.18)}.modalFootNew .danger{color:#fff;background:#b83248}.modalHeadNew h3{margin:0;font-size:20px;color:var(--text-main)}.modalHeadNew p{margin:4px 0 0;color:var(--text-muted);font-size:12px}.modalHeadNew button{width:34px;height:34px;border-radius:var(--button-radius);border:0;background:rgba(15,23,42,.06);font-size:20px;cursor:pointer}.modalHeadNew button:hover{background:rgba(91,97,105,.1)}.modalBodyNew{padding:18px 20px;display:grid;gap:12px}.modal-settings .modalBodyNew{min-height:0;overflow:auto;padding:16px 18px}.modal-settings .modalFootNew,.modal-settings .modalHeadNew{padding:14px 18px}.modalBodyNew label{font-size:13px;font-weight:500;color:var(--text-muted)}.modalBodyNew input,.modalBodyNew select,.modalBodyNew textarea,.settingCard input,.settingCard select{width:100%;border-radius:var(--control-radius);padding:10px 12px;border:var(--control-border);background:#fff}.modalBodyNew textarea{min-height:120px;resize:none}.ingestTargetSectionField{display:grid;grid-template-rows:auto auto;gap:4px;align-content:start;margin:0;padding:0}.ingestTargetSectionField label{display:block;margin:0;padding:0;line-height:1.25}.ingestTargetSectionField select{display:block;width:100%;margin:0}.is-mobile .modal-ingest .ingestTargetSectionField,.is-mobile .modal-ingest .ingestTargetSectionField label,.is-mobile .modal-ingest .ingestTargetSectionField select{margin:0;padding:0}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.chipsRow{display:flex;gap:8px;flex-wrap:wrap}.chipsRow button{border-radius:var(--button-radius);padding:8px 12px;font-size:13px;font-weight:500;border:0;background:rgba(15,23,42,.06);color:var(--text-main);cursor:pointer}.chipsRow button:hover{background:rgba(91,97,105,.1);color:#5b6169}.chipsRow span{border-radius:999px;padding:4px 10px;font-size:12px;border:0;background:rgba(15,23,42,.06);color:var(--text-muted)}.schemaFieldEditor,.schemaFieldRow{display:grid;gap:8px}.schemaFieldRow{grid-template-columns:minmax(0,1fr) auto;align-items:center}.ghostInline,.schemaFieldRow button{border:0;border-radius:var(--button-radius);background:rgba(15,23,42,.06);color:var(--text-main);cursor:pointer}.schemaFieldRow button{width:38px;height:38px;font-size:20px;line-height:1}.ghostInline{justify-self:start;padding:8px 12px;font-size:13px;font-weight:500}.settingCard{border-radius:12px;border:0;background:rgba(15,23,42,.04);padding:12px;display:grid;gap:8px}.settingCard strong{font-size:14px}.settingCard small{color:var(--text-muted);font-size:12px}.ingestCombineModeCard{border-radius:16px;border:0;background:rgba(15,23,42,.04);padding:12px;display:grid;gap:9px}.ingestCombineModeCard>strong{color:#182847;font-size:13px}.ingestCombineModeCard label{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start;border-radius:12px;border:0;background:hsla(0,0%,100%,.68);padding:10px;cursor:pointer}.ingestCombineModeCard label.active{background:rgba(239,246,255,.95)}.ingestCombineModeCard input{margin-top:2px}.ingestCombineModeCard span{display:grid;gap:3px}.ingestCombineModeCard b{color:#1b2b4d;font-size:13px}.ingestCombineModeCard small{color:#667592;font-size:12px;line-height:1.35}.mergeDocsList{border-radius:14px;border:0;background:hsla(0,0%,100%,.78);padding:12px;display:grid;gap:8px;max-height:220px;overflow:auto}.mergeDocsList>strong,.mergeSourceAction>strong{color:#172849;font-size:14px}.mergeDocsListItem{border-radius:12px;background:rgba(247,250,255,.86);padding:9px 10px;display:grid;gap:3px}.mergeDocsListItem span{color:#1f3156;font-size:13px;font-weight:800}.mergeDocsListItem small{color:#667592;font-size:12px}.mergeSourceAction{border-radius:16px;border:0;background:rgba(15,23,42,.04);padding:12px;display:grid;gap:9px}.mergeSourceAction label{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start;border-radius:12px;border:0;background:hsla(0,0%,100%,.68);padding:10px;cursor:pointer}.mergeSourceAction label.active{background:rgba(239,246,255,.95)}.mergeSourceAction input{margin-top:2px}.mergeSourceAction span{display:grid;gap:3px}.mergeSourceAction b{color:#1b2b4d;font-size:13px}.mergeSourceAction small{color:#667592;font-size:12px;line-height:1.35}.statsGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.statsGrid article{border-radius:12px;border:0;background:rgba(15,23,42,.04);padding:10px}.statsGrid strong{font-size:12px;color:var(--text-muted)}.statsGrid p{margin:6px 0 0;font-size:14px;font-weight:500}.settingsDashboard{height:auto;grid-template-columns:minmax(320px,.92fr) minmax(560px,1.35fr);grid-auto-rows:min-content;align-content:start}.settingsDashboard,.settingsZone{min-height:0;display:grid;gap:12px}.settingsZone{border-radius:14px;border:0;background:rgba(15,23,42,.04);padding:14px;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.72)}.settingsZone.locked{cursor:pointer;background:rgba(15,23,42,.05)}.settingsZoneHead{display:flex;align-items:start;justify-content:space-between;gap:12px}.settingsZoneHead strong{display:block;font-size:15px;color:var(--text-main)}.settingsStatusLine,.settingsZone small,.settingsZoneHead small{color:var(--text-muted);font-size:12px;line-height:1.35}.proInviteCard button,.settingsActionsRow button,.settingsSegment button,.settingsZoneHead button{height:36px;border-radius:var(--button-radius);border:0;background:rgba(15,23,42,.06);color:var(--text-main);padding:0 12px;cursor:pointer}.proInviteCard button,.settingsZoneHead button{color:#fff;border:0;background:#5b6169}.settingsPlanZone,.settingsRoutingZone{grid-column:1}.settingsCloudZone,.settingsModelsZone,.settingsRulesZone{grid-column:2}.planBadge{height:28px;border-radius:999px;display:inline-flex;align-items:center;padding:0 10px;font-size:12px;color:#5b6169;background:rgba(91,97,105,.1)}.planBadge.active{color:#fff;background:#1f7a52}.planBadge.off{color:#a83242;background:#fdf0f0}.settingsLicenseRow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.settingsLicenseRow label{display:grid;gap:6px;margin:0}.settingsLicenseRow label span{font-size:12px;font-weight:800;color:var(--text-muted)}.settingsLicenseRow input{height:44px;border-radius:var(--control-radius);border:var(--control-border);background:#fff;padding:0 12px;font:12px ui-monospace,SFMono-Regular,Menlo,monospace}.settingsLicenseRow button{height:44px;border-radius:var(--button-radius);border:0;background:rgba(15,23,42,.06);color:var(--text-main);font-weight:500;padding:0 14px;cursor:pointer}.settingsMetrics{display:grid;grid-template-columns:1fr;gap:8px}.settingsMetrics article{border-radius:10px;border:0;background:rgba(15,23,42,.04);padding:10px}.settingsMetrics span{display:block;color:var(--text-muted);font-size:12px;margin-bottom:4px}.settingsMetrics strong{font-size:18px;color:var(--text-main)}.proInviteCard{border-radius:12px;border:0;background:linear-gradient(180deg,#f5f6f8,#e6e8eb);padding:12px;display:grid;gap:8px}.proInviteCard strong{font-size:14px}.proInviteCard span{color:var(--text-muted);font-size:12px;line-height:1.4}.settingsSegment{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.settingsSegment button.active{color:#5b6169;background:rgba(91,97,105,.1);box-shadow:inset 0 0 0 1px rgba(91,97,105,.2)}.settingsSegment button.connected{color:#fff;background:#1f7a52;box-shadow:inset 0 0 0 1px rgba(31,122,82,.28)}.settingsProviderStateRow{display:flex;flex-wrap:wrap;gap:10px}.settingsProviderState{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--text-muted)}.settingsProviderState:before{content:"";width:7px;height:7px;border-radius:999px;background:#c04040}.settingsProviderState.ok{color:#1f7a52}.settingsProviderState.ok:before{background:#1f7a52}.settingsSyncProgress{height:8px;border-radius:999px;background:rgba(15,23,42,.08);overflow:hidden}.settingsSyncProgress span{display:block;height:100%;background:linear-gradient(90deg,#5b6169,#747a82);transition:width .25s ease}.settingsCloudGrid,.settingsModelGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.settingsRootDirections{display:grid;gap:10px}.settingsRootDirection{display:grid;gap:8px;padding:12px;border:0;border-radius:12px;background:rgba(15,23,42,.04)}.settingsRootDirection>input{width:100%;height:42px;border-radius:var(--control-radius);border:var(--control-border);background:#fff;padding:0 12px;color:var(--text-main);font-size:14px;font-weight:700}.settingsRootAdvanced{display:grid;gap:8px}.settingsRootAdvanced summary{width:fit-content;cursor:pointer;color:#5b6169;font-size:12px;font-weight:800}.settingsRootAdvanced[open]{padding-top:4px}.settingsRootAdvanced label{display:grid;gap:6px;margin-top:8px}.settingsRootAdvanced:not([open]) label{display:none}.settingsRootAdvanced span{color:var(--text-muted);font-size:12px}.settingsRootAdvanced input,.settingsRootAdvanced textarea{border-radius:var(--control-radius);border:var(--control-border);background:#fff;padding:10px 12px;color:var(--text-main)}.settingsRootAdvanced textarea{min-height:74px;resize:vertical}.settingsCloudGrid label,.settingsKeyRow label,.settingsModelGrid label{display:grid;gap:6px}.settingsCloudGrid span,.settingsKeyRow span,.settingsModelGrid span{color:var(--text-muted);font-size:12px}.settingsActionsRow{display:flex;flex-wrap:wrap;gap:8px}.settingsActionsRow button:disabled{opacity:.6;cursor:default}.settingsActionsRow button{min-height:40px;height:auto;line-height:1.2;text-align:center;white-space:normal;flex:1 1 190px;min-width:0}.settingsActionsRow button.dangerOutline,.settingsDangerItem button.dangerOutline{color:#a83242;background:#fff7f8;box-shadow:inset 0 0 0 1px rgba(184,50,72,.08)}.settingsActionsRow button.dangerOutline:hover:not(:disabled),.settingsDangerItem button.dangerOutline:hover:not(:disabled){color:#fff;background:#b83248}.settingsSecurityZone{grid-column:1/-1}.settingsDangerZone{display:grid;gap:10px;padding-top:12px;border-top:0}.settingsDangerHead{display:grid;gap:2px}.settingsDangerHead strong{color:#8f2638;font-size:14px}.settingsDangerList{display:grid;gap:0}.settingsDangerItem{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,240px);gap:12px;align-items:center;padding:10px 0;border-top:0}.settingsDangerItem:first-child{border-top:0}.settingsDangerItem strong{display:block;color:var(--text-main);font-size:13px;margin-bottom:3px}.settingsDangerItem button{min-height:40px;height:auto;border-radius:10px;padding:9px 12px;cursor:pointer}.settingsDangerStatus{white-space:pre-line}.settingsToggleRow{display:flex;align-items:center;gap:10px;min-height:36px;color:var(--text-main)}.settingsToggleRow input{width:16px;height:16px}.settingsSecurityBehaviorGrid,.settingsSecuritySetupGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.settingsSecurityBehaviorGrid label,.settingsSecuritySetupGrid label{display:grid;gap:6px}.settingsSecurityBehaviorGrid span,.settingsSecuritySetupGrid span{color:var(--text-muted);font-size:12px}.settingsRulesZone textarea{min-height:118px;height:100%;resize:none}.settingsPromptGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.settingsPromptGrid label{display:grid;gap:8px;min-width:0}.settingsPromptGrid textarea{min-height:180px;font-size:12px;line-height:1.45}.settingsModelsZone.locked input,.settingsRulesZone.locked textarea{color:#8390ad;background:rgba(246,249,255,.92)}.settingsKeyRow{display:grid}.settingsErrorLine{grid-column:1/-1;margin:0;color:#9b2f3d;font-size:13px}.appLockRoot{width:100%;height:100%;display:grid;place-items:center;padding:20px}.appLockCard{width:min(520px,100%);border-radius:20px;border:0;background:rgba(248,252,255,.97);box-shadow:0 24px 56px rgba(16,30,62,.22);padding:24px;display:grid;gap:14px}.appLockCard h1{margin:0;font-size:34px;color:#1a2749}.appLockCard p{margin:0;color:#596b93;line-height:1.45}.appLockCard label{display:grid;gap:8px;font-size:13px;color:#63759e}.appLockCard input{height:48px;border-radius:12px;border:1px solid rgba(214,224,243,.95);background:hsla(0,0%,100%,.96);padding:0 14px;color:#1d2b4d}.appLockCard button{min-height:46px;border-radius:12px;border:0;color:#fff;font-weight:700;cursor:pointer;background:linear-gradient(135deg,#4d72ff,#8238ff)}.appLockCard button.ghost{color:#475b83;border:0;background:#fff}.appLockCard button.danger{background:linear-gradient(135deg,#e85b73,#c63657)}.appLockError{color:#a52a3f;font-size:13px}.appLockHint{color:#6a7ca4;font-size:12px}.appLockResetConfirm{border-radius:12px;border:0;background:rgba(255,246,248,.98);padding:12px;display:grid;gap:10px}.appLockResetActions{display:flex;gap:8px;flex-wrap:wrap}.securityReauthCard{max-width:520px}.userActionCard{margin-top:10px;border-radius:14px;border:0;background:rgba(15,23,42,.04);box-shadow:none;padding:10px;display:grid;gap:8px}.userActionCard button{min-height:40px;border-radius:10px;border:0;background:hsla(0,0%,100%,.96);color:#455a84;font-weight:600;cursor:pointer}.userActionCard button.danger{color:#b3334d;background:rgba(255,243,246,.95)}.confirmText{margin:0;font-size:14px;line-height:1.45;white-space:pre-line}.reminderItem{width:100%;text-align:left;border-radius:14px;border:0;background:hsla(0,0%,100%,.82);padding:10px;cursor:pointer}.reminderItem strong{display:block;font-size:14px}.reminderItem small{color:var(--text-muted);font-size:12px}.uiLabWrap{display:grid;grid-template-columns:260px minmax(0,1fr);gap:14px}.uiLabMenu{border-radius:14px;border:0;background:hsla(0,0%,100%,.82);padding:12px;display:grid;gap:10px;align-content:start}.uiLabMenu p{margin:0;color:var(--text-muted);font-size:12px;line-height:1.4}.uiLabMenu details{border-radius:12px;border:0;background:#fff;padding:8px;display:grid;gap:8px}.uiLabMenu summary{cursor:pointer;color:#4f638d;font-size:13px;font-weight:500}.uiLabMenu button{width:100%;min-height:34px;border-radius:10px;border:0;background:#fff;color:#4d5c7d;text-align:left;padding:0 10px;font-size:13px;cursor:pointer}.uiLabMenu button.active{color:#3559f5;background:#eef3ff}.uiLabCanvas{border-radius:14px;border:0;background:rgba(247,251,255,.9);padding:14px;min-height:560px}.uiLabStageCenter{min-height:520px;display:grid;place-items:center}.uiLabStageRail{display:grid;place-items:start center}.uiLabStageRail .railNew,.uiLabStageRail .rightRailNew{width:min(460px,100%)}.imageLightbox{position:fixed;inset:0;z-index:1600;background:rgba(6,12,28,.78);display:grid;place-items:center;padding:24px;overflow:hidden}.imageLightboxInner{width:min(1280px,96vw);height:min(92vh,calc(var(--app-vh, 100dvh) - 48px));max-height:calc(var(--app-vh, 100dvh) - 48px);border-radius:18px;border:0;background:rgba(12,20,40,.9);box-shadow:0 24px 70px rgba(0,0,0,.45);overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr)}.imageLightboxHeader{height:52px;padding:0 14px 0 16px;border-bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#ecf3ff}.imageLightboxHeader strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.imageLightboxHeader button{width:30px;height:30px;border-radius:10px;border:0;background:hsla(0,0%,100%,.08);color:#f4f8ff;font-size:20px;line-height:1;cursor:pointer}.imageLightboxInner img{max-width:100%;max-height:calc(var(--app-vh, 100dvh) - 120px);width:auto;height:auto;object-fit:contain;display:block;background:#0a1326;place-self:center}.sourceLightboxInner{width:100vw;height:var(--app-vh,100dvh);max-height:var(--app-vh,100dvh);border-radius:0;background:var(--surface-strong);box-shadow:none}.sourceLightbox{padding:0;background:rgba(10,8,6,.72);backdrop-filter:blur(8px)}.sourceLightbox .imageLightboxHeader{min-height:64px;height:auto;padding:12px 16px;background:hsla(0,0%,100%,.96);color:var(--text-main)}.sourceLightbox .imageLightboxHeader strong{color:var(--text-main);font-size:16px;font-weight:500}.sourceLightbox .imageLightboxHeader button{background:var(--surface-strong);color:var(--text-main);height:var(--control-height);min-width:var(--control-height);border-radius:var(--control-radius);font-size:14px;font-weight:500}.sourceLightbox .imageLightboxHeader .sourceLightboxCloseButton{width:var(--control-height);padding:0;font-size:22px;line-height:1}.sourceLightboxActions{display:flex;align-items:center;gap:8px;min-width:0}.sourceLightboxActions span{color:var(--text-muted);font-size:12px}.sourceLightboxActions button{width:auto;min-width:var(--control-height);padding:0 12px}.sourcePager{display:flex;align-items:center;gap:6px;min-width:0}.sourceCurrentName,.sourcePager span{color:var(--text-muted);font-size:12px;white-space:nowrap}.sourcePager button:disabled{opacity:.45;cursor:not-allowed}.sourceCurrentName{max-width:220px;overflow:hidden;text-overflow:ellipsis}.sourcePartsLightbox{position:fixed;inset:0;z-index:1700;background:rgba(10,8,6,.72);backdrop-filter:blur(8px);display:grid;grid-template-rows:auto minmax(0,1fr)}.sourcePartsLightboxHeader{min-height:64px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:12px 16px;background:hsla(0,0%,100%,.96);border-bottom:0}.sourcePartsLightboxTitle{min-width:0;display:grid;gap:2px}.sourcePartsLightboxTitle strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-main)}.sourcePartsLightboxTitle small{color:var(--text-muted)}.sourcePartsLightboxNav{display:inline-flex;align-items:center;gap:8px}.sourcePartsLightboxNav span{color:var(--text-main);font-weight:800;font-size:13px;white-space:nowrap}.sourcePartsLightboxClose,.sourcePartsLightboxNav button{min-width:38px;height:38px;border-radius:12px;border:0;background:var(--surface-strong);color:var(--text-main);cursor:pointer;font-weight:900}.sourcePartsLightboxClose{font-size:22px;line-height:1}.sourcePartsLightboxNav button:disabled{opacity:.42;cursor:default}.sourcePartsLightboxBody{min-height:0;display:grid;place-items:center;padding:16px;overflow:hidden}.sourcePartsLightboxImage{display:block;max-width:100%;max-height:calc(var(--app-vh, 100dvh) - 104px);object-fit:contain;border-radius:14px}.sourcePartsLightboxFrame,.sourcePartsLightboxImage{background:#fff;box-shadow:0 18px 64px rgba(0,0,0,.28)}.sourcePartsLightboxFrame{width:min(1200px,100%);height:calc(var(--app-vh, 100dvh) - 104px);border:0;border-radius:14px}.sourcePartsLightboxText{width:min(960px,100%);max-height:calc(var(--app-vh, 100dvh) - 104px);overflow:auto;white-space:pre-wrap;color:var(--text-main);box-shadow:0 18px 64px rgba(0,0,0,.24)}.sourcePartsLightboxError,.sourcePartsLightboxText{border-radius:14px;background:var(--surface-strong);padding:18px}.sourcePartsLightboxError{border:0;color:var(--danger);box-shadow:0 18px 64px rgba(0,0,0,.18)}.sourcePreviewBody{min-height:0;display:grid;grid-template-columns:minmax(0,1fr);background:var(--main-bg)}.sourcePreviewBody.withPrompt.portrait{grid-template-columns:minmax(0,1fr) minmax(300px,360px)}.sourcePreviewBody.withPrompt.landscape,.sourcePreviewBody.withPrompt.unknown{grid-template-rows:minmax(0,1fr) auto}.sourcePreviewMedia{min-width:0;min-height:0;overflow:hidden;display:grid;place-items:center}.sourcePreviewMedia img{max-width:100%;max-height:calc(var(--app-vh, 100dvh) - 120px);width:auto;height:auto;object-fit:contain;display:block;background:var(--main-bg)}.sourceAiCopyPanel{min-width:0;min-height:0;padding:18px;border-left:0;background:#f4f6f8;color:var(--text-main);display:grid;gap:14px;align-content:start;overflow:auto}.sourcePreviewBody.withPrompt.landscape .sourceAiCopyPanel,.sourcePreviewBody.withPrompt.unknown .sourceAiCopyPanel{border-left:0;border-top:0;grid-template-columns:minmax(220px,.8fr) minmax(280px,1.2fr);align-items:start}.sourceAiCopyPanel strong{display:block;margin-bottom:6px;font-size:20px;font-weight:500;line-height:1.2}.sourceAiCopyPanel p,.sourceAiCopyPanel small{margin:0;color:var(--text-muted);font-size:14px;line-height:1.45}.sourceAiCopyPanel label{display:grid;gap:8px;min-width:0}.sourceAiCopyPanel label span{color:var(--text-main);font-size:14px;font-weight:500}.sourceAiCopyPanel textarea{width:100%;min-height:132px;resize:vertical;border-radius:var(--control-radius);border:var(--control-border);background:#fff;color:var(--text-main);padding:12px;font:inherit;font-size:14px;line-height:1.45}.sourceAiCopyButtons{display:flex;flex-wrap:wrap;gap:8px}.sourceAiCopyButtons button,.sourceAiCopyResult{border:0;min-height:var(--control-height);border-radius:var(--button-radius);background:rgba(15,23,42,.06);color:var(--text-main);padding:0 12px;font-weight:500;cursor:pointer}.sourceAiCopyButtons .primary{color:#fff;background:#5b6169;box-shadow:0 2px 8px rgba(15,23,42,.18)}.sourceAiCopyButtons .ghost{background:rgba(15,23,42,.06);color:var(--text-main)}.sourceAiCopyButtons button:disabled{cursor:not-allowed;opacity:.58}.sourceAiCopyStatus{color:#5b6169}.sourceAiCopyError{color:var(--danger)}.sourceAiCopyResult{text-align:left}.sourceFrame{width:100%;height:100%;border:0;background:#fff}.sourceTextPreview{margin:0;padding:22px;overflow:auto;background:#f8fbff;color:#14213f;white-space:pre-wrap;font:14px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace}.mobileRoot{height:var(--app-vh,100dvh);min-height:100svh;overflow:hidden;max-width:100%;position:relative;background:var(--app-bg)}.mobileDashboard,.mobileScreen{height:100%;border-radius:0;background:var(--main-bg);border:0;box-shadow:none;display:grid;gap:10px;grid-template-rows:auto auto auto minmax(0,1fr) auto;overflow:auto;padding:12px calc(12px + env(safe-area-inset-right)) calc(92px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));overscroll-behavior:contain}.mobileDashboard{grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}.mobileAppBar{display:flex;justify-content:space-between;align-items:center;flex-wrap:nowrap;gap:10px}.mobileBrand strong{display:block;font-size:21px;font-weight:500;line-height:1.05}.mobileBrand small{color:var(--text-muted);font-size:14px;white-space:nowrap}.mobileHeaderRight{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:6px;min-width:0}.mobileSettingsBtn{width:var(--control-height);height:var(--control-height);border-radius:var(--control-radius);border:0;background:var(--surface-strong);color:var(--text-main);line-height:1;display:grid;place-items:center;padding:0}.mobileIconSvg{display:block;width:22px;height:22px;color:currentColor;flex-shrink:0}.mobileGearIcon{width:24px;height:24px}.mobileBackIconSvg{width:23px;height:23px}.mobileHomeIconSvg{width:19px;height:19px}.mobileStatusChip{height:26px;min-width:38px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;padding:0 10px;font-size:12px;border:0;color:var(--text-muted);background:var(--surface-strong);white-space:nowrap}.mobileStatusChip.ok{color:#1f7a52;background:rgba(31,122,82,.1)}.mobileStatusChip.off{color:#c04040;background:#fdf0f0}.mobileHeroUpload{border:0;border-radius:var(--button-radius);min-height:128px;text-align:center;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;gap:12px;color:#fff;background:#5b6169;box-shadow:none}.mobileHeroIcon{width:28px;height:28px;flex:0 0 auto;color:currentColor}.mobileHeroUpload .heroTitle{font-size:17px;font-weight:500;line-height:1.2}.mobileQuickAdd{min-height:0;display:grid;grid-template-rows:minmax(16px,.9fr) auto auto auto minmax(16px,1.1fr);align-content:stretch;gap:12px}.mobileQuickAddHead{grid-row:2}.mobileQuickAddHead h1{margin:0;font-size:21px;font-weight:500;line-height:1.2}.mobileQuickAdd>.mobileHeroUpload{grid-row:3}.mobileQuickActions{grid-row:4;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mobileQuickActions button{min-height:76px;border-radius:var(--button-radius);border:0;background:rgba(15,23,42,.06);color:var(--text-main);padding:0 12px;display:inline-flex;align-items:center;justify-content:center;font:inherit;font-size:16px;font-weight:500}.mobileStatusPanel{min-width:0}.mobileStatusPanel .syncCard{margin-top:0;padding:12px 14px;gap:8px;border-radius:var(--inner-surface-radius);background:hsla(0,0%,100%,.72)}.mobileStatusPanel .syncHead{font-size:14px}.mobileStatusPanel .syncLine{min-width:0;font-size:13px}.mobileStatusPanel .syncLine span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobileSectionsBlock{min-height:0;border:0;border-radius:var(--inner-surface-radius);background:var(--surface);padding:var(--inner-surface-padding);display:grid;grid-template-rows:auto min-content;align-content:start;gap:8px}.mobileSectionsHead{display:flex;justify-content:space-between;align-items:center}.mobileSectionsHead button{border:0;height:var(--control-height);border-radius:var(--control-radius);background:rgba(15,23,42,.06);color:var(--text-main);padding:0 12px}.mobileSectionsQuick{min-height:0;max-height:260px;overflow:auto;display:grid;grid-auto-rows:min-content;align-content:start;gap:6px}.mobileSectionRow{min-height:var(--control-height);border:0;border-radius:var(--inner-surface-radius);background:#eef1f4;color:var(--text-main);padding:7px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;text-align:left;line-height:1.15}.mobileSectionRow span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500}.mobileSectionRow small{color:var(--text-muted);font-size:11px;white-space:nowrap}@media (max-width:360px){.mobileQuickActions{grid-template-columns:1fr}.mobileQuickAdd{grid-template-rows:minmax(8px,.6fr) auto auto auto minmax(8px,.8fr)}.mobileStatusPanel .syncLine span:first-child{white-space:normal}}.mobileEmpty{color:var(--text-muted);font-size:12px;padding:10px 2px}.mobileScreen{grid-template-rows:auto minmax(0,1fr) auto}.mobileScreenHead{display:grid;grid-template-columns:var(--control-height) minmax(0,1fr) auto;align-items:center;gap:8px}.mobileScreenHead strong{font-size:20px;font-weight:500}.mobileScreenHead button{min-height:var(--control-height);border-radius:var(--control-radius);border:0;background:var(--surface-strong);color:var(--text-main);padding:0 12px;display:inline-flex;align-items:center;justify-content:center}.mobileScreenBody{min-height:0;overflow:auto;display:grid;gap:8px;align-content:start;padding-bottom:calc(10px + env(safe-area-inset-bottom))}.mobileInput,.mobileTextarea{width:100%;border-radius:var(--control-radius);border:var(--control-border);background:var(--surface-strong);color:var(--text-main);padding:0 12px;font:inherit}.mobileInput{height:var(--control-height)}.mobileCountLine{padding-left:2px;color:var(--text-muted);font-size:12px;line-height:1.25}.mobileTextarea{min-height:96px;background:#fff;border-color:rgba(15,23,42,.16);box-shadow:none;resize:none;padding:10px 12px}.mobileFilesList,.mobileTaskList{display:grid;gap:8px}.mobileFileCard,.mobileTaskCard{border-radius:var(--inner-surface-radius);border:0;background:#eef1f4;box-shadow:none;padding:12px;text-align:left;display:grid;gap:6px}.mobileFileCard.kind-img,.mobileFileCard.kind-pdf,.mobileFileCard.kind-txt,.mobileTaskCard{background:#eef1f4}.mobileTaskActions{display:flex;flex-wrap:wrap;gap:8px}.mobileTaskActions button{border:0;border-radius:var(--button-radius);background:#fff;color:var(--text-main);min-height:34px;padding:0 10px;font-size:12px;font-weight:500}.mobileFileTop{display:flex;justify-content:space-between;align-items:center}.mobileFileCard.active{background:#fff;outline:2px solid #5b6169;outline-offset:-2px;box-shadow:0 8px 18px rgba(15,23,42,.08)}.mobileFileCard.active.kind-img,.mobileFileCard.active.kind-pdf,.mobileFileCard.active.kind-txt{background:#fff}.mobileFileThumb{height:116px;border-radius:var(--inner-surface-radius);object-fit:cover;width:100%}.mobileFileCard small,.mobileTaskCard small{color:var(--text-muted);font-size:12px}.mobileMessages{min-height:0;overflow:auto;display:grid;gap:8px}.mobileAnalyticsBody{grid-template-rows:minmax(0,1fr) auto auto}.mobileAnalyticsBody.hasAttachment{grid-template-rows:auto minmax(0,1fr) auto auto}.mobileAiAttachmentCard{grid-template-columns:minmax(0,1fr) auto}.mobileAiAttachmentsPanel .aiAttachmentList{max-height:140px}.mobileBottomNav{position:fixed;left:calc(10px + env(safe-area-inset-left));right:calc(10px + env(safe-area-inset-right));bottom:calc(8px + env(safe-area-inset-bottom));z-index:220;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:7px;border-radius:8px;border:0;background:hsla(0,0%,100%,.96);box-shadow:0 8px 22px rgba(15,23,42,.12);backdrop-filter:blur(16px)}.mobileBottomNav button{min-height:52px;border:0;border-radius:var(--control-radius);background:transparent;color:var(--text-muted);display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:0 5px;font-size:14px;font-weight:500;line-height:1.05;white-space:normal}.mobileBottomNav button span{display:block;max-width:100%;text-align:center}.mobileBottomNav button.active{color:#fff;background:#5b6169}.mobileAnalyticsBody .mobileActionRow{grid-template-columns:1fr}.mobileActionRow{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mobileActionRow button,.mobileDetailSheet>button{min-height:var(--control-height);border-radius:var(--button-radius);border:0;background:var(--surface-strong);color:var(--text-main);font-weight:500}.mobileActionRow button:disabled,.mobileDetailSheet>button:disabled{cursor:progress;color:var(--text-muted);background:rgba(15,23,42,.08)}.mobileActionRow .primary,.mobileDetailSheet>.primary{color:#fff;border:0;background:#5b6169}.mobileActionRow .danger{color:var(--danger);background:hsla(0,100%,98%,.94)}.mobileSourceLoadingNote{display:block;color:#315a8a;font-size:12px;line-height:1.35}.mobileSheetOverlay{position:fixed;inset:0;z-index:990;background:rgba(15,23,42,.32);display:grid;align-items:end}.mobileSheet{border-radius:12px 12px 0 0;background:var(--main-bg);border:0;box-shadow:0 -12px 30px rgba(15,23,42,.18);padding:12px;max-height:86vh;overflow:auto;display:grid;gap:10px}.mobileSheetHead{display:flex;justify-content:space-between;align-items:center}.mobileSheetHead strong{font-size:20px;font-weight:500}.mobileSheetHead button{width:var(--control-height);height:var(--control-height);border-radius:var(--control-radius);border:0;background:var(--surface-strong);color:var(--text-main)}.mobileSectionList{display:grid;gap:8px}.mobileSectionListRow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.mobileSectionListRow>button{min-height:var(--control-height);border-radius:var(--inner-surface-radius);border:0;background:#eef1f4;color:var(--text-main);display:flex;justify-content:space-between;align-items:center;padding:0 12px}.mobileSectionListRow>button small{color:var(--text-muted);font-size:12px;white-space:nowrap}.mobileSectionTools{display:flex;gap:6px}.mobileSectionTools button{width:var(--control-height);height:var(--control-height);border-radius:var(--control-radius);border:0;background:var(--surface-strong);color:var(--text-muted);display:grid;place-items:center}.mobileSheetActions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mobileSheetActions button{min-height:var(--control-height);border-radius:var(--button-radius);border:0;background:var(--surface-strong);color:var(--text-main);font-weight:500}.mobileDetailSheet .fileTextEditor,.mobileDetailSheet textarea{min-height:180px}.mobileDetailSheet input[type=date]{height:var(--control-height);border-radius:var(--control-radius);border:var(--control-border);background:var(--control-bg);color:var(--text-main);padding:0 12px;font:inherit}.mobileDetailSheet .mobileFileTextModeRow{margin-top:2px}.mobileDetailSheet .mobileFileTextModeRow button{min-height:34px}.mobileMarkdownDocument{min-height:180px;max-height:280px}.is-mobile .modalBackdropNew{padding:0;place-items:stretch;backdrop-filter:none}.is-mobile .modalCardNew{width:100%;max-width:100%;min-height:var(--app-vh,100dvh);height:var(--app-vh,100dvh);max-height:var(--app-vh,100dvh);border-radius:0;border:0;box-shadow:none;display:flex;flex-direction:column;overflow:hidden}.is-mobile .modal-settings{width:100%;max-width:100%;height:100%;max-height:100%;border-radius:0}.is-mobile .modal-settings .modalBodyNew{overflow:auto;padding-bottom:calc(22px + env(safe-area-inset-bottom))}.is-mobile .modalFootNew,.is-mobile .modalHeadNew{border-radius:0}.is-mobile .settingsDashboard{display:flex;flex-direction:column;height:auto;overflow:visible}.is-mobile .settingsActionsRow,.is-mobile .settingsCloudGrid,.is-mobile .settingsLicenseRow,.is-mobile .settingsModelGrid,.is-mobile .settingsSecurityBehaviorGrid,.is-mobile .settingsSecuritySetupGrid,.is-mobile .settingsSegment{grid-template-columns:1fr}.is-mobile .settingsDangerItem{grid-template-columns:1fr;align-items:stretch}.is-mobile .sourceLightbox{padding:0}.is-mobile .sourceLightboxInner{width:100%;height:var(--app-vh,100dvh);max-height:var(--app-vh,100dvh);border-radius:0;border:0}@media (max-width:860px){.sourceLightbox .imageLightboxHeader{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;justify-content:stretch;gap:8px;min-height:0;padding:10px 12px}.sourceLightbox .imageLightboxHeader strong{max-width:100%;font-size:15px;line-height:1.25}.sourceLightboxActions{width:100%;max-width:100%;justify-content:flex-end;flex-wrap:wrap;gap:6px}.sourceLightboxActions button{height:36px;min-width:36px;padding:0 10px;border-radius:var(--button-radius);font-size:13px}.sourceLightbox .imageLightboxHeader .sourceLightboxCloseButton{width:36px;height:36px;font-size:21px}.sourcePartsLightboxHeader{grid-template-columns:minmax(0,1fr) auto}.sourcePartsLightboxNav{grid-column:1/-1;justify-content:space-between}.sourcePartsLightboxClose,.sourcePartsLightboxNav button{min-width:44px;height:44px}.sourcePreviewBody.withPrompt.landscape,.sourcePreviewBody.withPrompt.portrait,.sourcePreviewBody.withPrompt.unknown{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}.sourcePreviewBody.withPrompt.landscape .sourceAiCopyPanel,.sourcePreviewBody.withPrompt.portrait .sourceAiCopyPanel,.sourcePreviewBody.withPrompt.unknown .sourceAiCopyPanel{border-left:0;border-top:0;grid-template-columns:minmax(0,1fr);max-height:42vh;padding:12px;gap:10px}.sourceAiCopyPanel strong{font-size:18px}.sourceAiCopyPanel label span,.sourceAiCopyPanel p,.sourceAiCopyPanel small{font-size:13px;line-height:1.35}.sourceAiCopyPanel textarea{min-height:92px;padding:10px}.sourceAiCopyButtons{display:grid;grid-template-columns:minmax(0,1fr) minmax(92px,auto)}.sourceAiCopyButtons button,.sourceAiCopyResult{min-height:36px;padding:0 10px}.sourceLightboxActions span{display:none}}.is-mobile .appLockRoot{padding:0}.is-mobile .appLockCard{width:100%;min-height:var(--app-vh,100dvh);border-radius:0;border:0;box-shadow:none;padding:18px}.is-mobile .settingsZone{min-height:auto;position:static}.is-mobile .modalBodyNew{flex:1 1 auto;min-height:0;overflow:auto}.is-mobile .modalFootNew{flex:0 0 auto;padding-bottom:calc(14px + env(safe-area-inset-bottom));padding-left:calc(18px + env(safe-area-inset-left));padding-right:calc(18px + env(safe-area-inset-right))}.is-mobile .modal-ingest .modalBodyNew{grid-template-rows:none;grid-auto-rows:min-content;align-content:start;gap:10px}.is-mobile .modal-ingest .modalBodyNew textarea{min-height:180px}@media (max-width:1800px){.tilesGrid{grid-template-columns:repeat(auto-fill,minmax(212px,236px));justify-content:start}.fileTileNew{max-width:236px}}@media (max-width:1480px){.appShellNew{grid-template-columns:286px minmax(0,1fr);gap:var(--layout-main-gap)}.settingsDashboard{grid-template-columns:1fr}.settingsCloudZone,.settingsModelsZone,.settingsPlanZone,.settingsRoutingZone,.settingsRulesZone{grid-column:auto}.settingsPromptGrid{grid-template-columns:1fr}.analyticsScreenNew,.filesScreen,.tasksScreenNew{grid-template-columns:minmax(640px,1fr) 420px;gap:var(--screen-gap)}.kanbanGrid{grid-template-columns:repeat(2,minmax(220px,1fr))}}@media (max-width:1220px){.appRoot{padding:0}.appShellNew{grid-template-columns:1fr;gap:0;min-height:100vh}.sidebarNew,.workspaceShell{border-radius:0}.analyticsScreenNew,.filesScreen,.tasksScreenNew{grid-template-columns:1fr}.tilesGrid{grid-template-columns:repeat(2,minmax(212px,1fr))}.chatInputRow,.tasksToolbarNew,.toolbarRow{grid-template-columns:1fr;height:auto}.tabsBar{height:auto;padding-top:8px;padding-bottom:8px;align-items:start;flex-direction:column}.modalsTools{width:100%}.grid2,.statsGrid,.uiLabWrap{grid-template-columns:1fr}}.richDocShell{min-height:0;height:100%;min-width:0;width:100%;max-width:100%;box-sizing:border-box;border:var(--control-border);border-radius:12px;background:#fff;display:flex;flex-direction:column;overflow:hidden}.richDocToolbar{display:flex;flex:0 0 auto;gap:4px;padding:8px 10px;border-bottom:0;background:#f3f5f7}.richDocToolbar button{width:30px;height:28px;border:0;background:rgba(15,23,42,.06);color:var(--text-main);border-radius:5px;padding:0;font-size:12px;font-weight:700;cursor:pointer}.richDocToolbar button.active{background:rgba(91,97,105,.1);color:#5b6169}.richDocEditor{flex:1 1 auto;min-height:0;overflow:auto;background:#fff}.richDocEditor,.richDocEditor>div{min-width:0;width:100%;max-width:100%}.richDocContent{min-height:100%;width:100%;max-width:100%;box-sizing:border-box;line-height:1.6;user-select:text;outline:none;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;color:var(--text-main);padding:18px}.richDocContent h1,.richDocContent h2,.richDocContent h3{margin:.7em 0 .35em;line-height:1.3}.richDocContent p{margin:.42em 0}.richDocContent ol,.richDocContent ul{margin:.45em 0 .45em 1.3em}.richDocContent blockquote{border-left:3px solid rgba(98,128,210,.4);margin:.65em 0;padding-left:10px;opacity:.92}.richDocContent table{width:100%;max-width:100%;table-layout:fixed;border-collapse:collapse;margin:.6em 0}.richDocContent td,.richDocContent th{border:1px solid rgba(202,213,234,.95);padding:6px 8px;vertical-align:top;overflow-wrap:anywhere}.richDocContent th{background:#f4f7fc;font-weight:600}.richDocSaveState{flex:0 0 auto;font-size:12px;color:var(--text-muted);padding:7px 10px;border-top:0;background:#f3f5f7}.richDocTableWrap{overflow:auto}.richDocContent .is-editor-empty:first-child:before{color:rgba(77,92,125,.52);content:attr(data-placeholder);float:left;height:0;pointer-events:none}.richDocShellReadOnly{flex:0 0 auto;height:min(320px,38vh)}.richDocShellReadOnly .richDocContent{background:#fafbfc}.currentStateEditor{display:grid;gap:10px;min-width:0;padding:14px 0;border-top:1px solid rgba(15,23,42,.12);border-bottom:1px solid rgba(15,23,42,.12)}.currentStateHeader{display:flex;align-items:center;justify-content:space-between;gap:12px}.currentStateHeader>div{display:grid;gap:3px}.currentStateHeader strong,.currentStateItem strong{font-size:14px;font-weight:600;line-height:1.35}.currentStateHeader span,.currentStateItem span{color:var(--text-muted);font-size:12px;line-height:1.35}.currentStateEditor button,.currentStateEditor input{box-sizing:border-box;min-width:0;min-height:34px;border:var(--control-border);border-radius:5px;background:var(--control-bg);color:var(--text-main);font:inherit}.currentStateEditor button{padding:0 12px;cursor:pointer}.currentStateEditor input{width:100%;padding:6px 9px}.currentStateEditor button:disabled{cursor:default;opacity:.5}.currentStateEditor button svg{width:17px;height:17px}.currentStateAddButton{display:inline-grid;width:34px;padding:0!important;place-items:center}.currentStateSearch{position:relative;display:block}.currentStateSearch svg{position:absolute;top:50%;left:10px;width:15px;height:15px;color:var(--text-muted);transform:translateY(-50%);pointer-events:none}.currentStateSearch input{padding-left:32px}.currentStateList{display:grid;gap:0}.currentStateItem{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;min-width:0;padding:9px 0;border-bottom:1px solid rgba(15,23,42,.08)}.currentStateItem:has(.currentStateCheck){grid-template-columns:24px minmax(0,1fr) auto}.currentStateItem:last-child{border-bottom:0}.currentStateItemText{display:grid;gap:2px;min-width:0}.currentStateItemText span,.currentStateItemText strong{overflow-wrap:anywhere}.currentStateFormActions,.currentStateItemActions{display:flex;gap:6px}.currentStateCheck,.currentStateFormActions button:not(.primary),.currentStateItemActions button{display:inline-grid;width:34px;min-height:34px;padding:0;place-items:center}.currentStateItemActions button{border-color:transparent;background:transparent;color:var(--text-muted)}.currentStateItemActions .danger{color:#b42318}.currentStateCheck{width:20px;min-height:20px!important;border-radius:4px!important}.currentStateCheck svg{width:14px!important;height:14px!important}.currentStateItem.isCompleted .currentStateItemText{opacity:.58;text-decoration:line-through}.currentStateAddForm,.currentStateEditForm{display:grid;gap:7px;padding:9px 0}.currentStateEditForm{border-bottom:1px solid rgba(15,23,42,.08)}.currentStateFormActions{justify-content:flex-end}.currentStateFormActions .primary{padding-inline:12px}.currentStateEmpty{color:var(--text-muted);font-size:13px;padding:10px 0}@media (max-width:720px){.currentStateItemActions{gap:2px}}.debugPanelOverlay{position:fixed;inset:0;background:rgba(7,12,20,.68);z-index:1200;display:flex;align-items:center;justify-content:center;padding:20px}.debugPanelCard{width:min(1200px,96vw);height:min(86vh,900px);background:#0f1522;color:#e7edf8;border:1px solid rgba(150,180,220,.35);border-radius:14px;display:flex;flex-direction:column;overflow:hidden}.debugPanelHead{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid rgba(140,170,210,.28)}.debugPanelHead button{background:transparent;border:1px solid rgba(160,190,230,.38);color:#e7edf8;border-radius:8px;width:28px;height:28px;cursor:pointer}.debugPanelTabs{display:none;gap:8px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid rgba(140,170,210,.2)}.debugPanelTabs button{border:1px solid rgba(140,170,210,.35);background:rgba(20,30,47,.9);color:#dce5f6;border-radius:8px;padding:6px 10px;font-size:12px;cursor:pointer}.debugPanelTabs button.active{background:rgba(72,122,255,.26);border-color:rgba(122,165,255,.68)}.debugPanelBody{display:none}.debugSimplePanel{flex:1;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:14px}.debugSimplePanel h4{margin:0;font-size:18px;color:#f2f6ff}.debugSimplePanel p{margin:0;color:#c9d5e8;line-height:1.45}.debugSimpleStats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.debugSimpleStats span{border:1px solid rgba(140,170,210,.24);border-radius:8px;padding:10px;background:rgba(17,24,38,.86);color:#dce5f6;font-size:13px}.debugSimpleMessage{border:1px solid rgba(122,165,255,.38);border-radius:8px;padding:10px;background:rgba(72,122,255,.14)}.debugSimpleActions{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto}.debugSimpleActions button{min-height:42px;border:1px solid rgba(140,170,210,.35);background:rgba(20,30,47,.9);color:#e7edf8;border-radius:8px;padding:10px 14px;font-size:14px;cursor:pointer}.debugSimpleActions button:first-child{background:#e7edf8;color:#101624}.debugSimpleActions button:disabled{cursor:not-allowed;opacity:.55}.debugGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.debugGrid article{border:1px solid rgba(140,170,210,.28);border-radius:10px;padding:10px;background:rgba(17,24,38,.86)}.debugGrid article h4,.debugSection h4{margin:0 0 8px;font-size:13px;color:#f2f6ff}.debugGrid article p,.debugSection p{margin:4px 0;font-size:12px;color:#d6e1f4}.debugGrid article label{display:block;margin:6px 0;font-size:12px}.debugWide{grid-column:1/-1}.debugSection{display:block}.debugTableWrap{width:100%;overflow:auto;border:1px solid rgba(140,170,210,.2);border-radius:10px;background:rgba(11,18,30,.76)}.debugTable{width:max-content;min-width:100%;border-collapse:collapse;font-size:12px}.debugTable td,.debugTable th{border-bottom:1px solid rgba(120,152,194,.2);padding:6px 8px;text-align:left;vertical-align:top}.debugTable th{position:sticky;top:0;background:rgba(18,28,44,.95);color:#f2f6ff;z-index:1}.debugWarnWarn{color:#ffd884}.debugWarnError{color:#ff9fa0}.debugDoctorActions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px}.debugDoctorActions button,.debugDoctorActions button:disabled{border:1px solid rgba(140,170,210,.35);background:rgba(20,30,47,.9);color:#dce5f6;border-radius:8px;padding:6px 10px;font-size:12px;cursor:pointer}.debugDoctorActions button:disabled{cursor:not-allowed;opacity:.5}.debugJson{max-height:360px;overflow:auto;border:1px solid rgba(140,170,210,.22);border-radius:10px;padding:10px;background:rgba(7,12,20,.82);color:#dce5f6;font-size:11px;line-height:1.45;white-space:pre-wrap}.debugPanelFoot{display:none}.debugPanelFoot button{border:1px solid rgba(140,170,210,.35);background:rgba(20,30,47,.9);color:#dce5f6;border-radius:8px;padding:6px 10px;font-size:12px;cursor:pointer}:root{--app-bg:#eef1f4;--main-bg:#f5f6f8;--surface:hsla(0,0%,100%,.97);--surface-strong:#fff;--surface-soft:rgba(247,248,250,.97);--border-soft:rgba(15,23,42,.12);--border-medium:rgba(15,23,42,.18);--text-main:#171a1f;--text-muted:#68707d;--accent:#5b6169;--accent-hover:#5b6169;--accent-light:#e6e8eb;--accent-2:#c47a3a;--success:#5b6169;--danger:#b84040;--warm-100:#fff;--warm-200:#f4f6f8;--warm-300:#e5e9ee;--warm-400:#c8ced6;--warm-500:#8d96a3;--sand:#d9dee5}