:root{--app-bg:#eef3f7;--panel:#fff;--ink:#0f172a;--muted:#64748b;--line:#d7e1ea;--blue:#2563eb;--green:#0f766e;--teal:#0891b2;--amber:#d97706;--red:#dc2626;--indigo:#4f46e5;--shadow:0 14px 34px #0f172a12;color:var(--ink);background:var(--app-bg);letter-spacing:0;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:16px;line-height:1.45}*{box-sizing:border-box}html{background:var(--app-bg)}body{background:var(--app-bg);min-width:320px;min-height:100vh;margin:0}a{color:inherit}button,input,select,textarea{letter-spacing:0}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:2px;outline:3px solid #2563eb38}img{max-width:100%;display:block}#root{min-height:100vh}.app-shell{background:linear-gradient(180deg, #ffffffa3, #fff0), var(--app-bg);grid-template-columns:280px minmax(0,1fr);min-height:100vh;display:grid}.auth-screen{background:linear-gradient(135deg, #2563eb1a, #0f766e14), var(--app-bg);place-items:center;min-height:100vh;padding:24px;display:grid}.auth-panel{border:1px solid var(--line);background:var(--panel);border-radius:8px;gap:20px;width:min(100%,460px);padding:24px;display:grid;box-shadow:0 24px 70px #0f172a1f}.auth-brand{border-bottom:1px solid var(--line);padding-bottom:8px}.auth-copy h1{color:var(--ink);margin:4px 0 8px;font-size:30px;line-height:1.15}.auth-copy p{color:var(--muted);margin:0}.auth-form{gap:12px;display:grid}.auth-form label{color:var(--ink);gap:6px;font-size:13px;font-weight:700;display:grid}.auth-note{color:var(--muted);align-items:flex-start;gap:8px;font-size:13px;display:flex}.form-error{color:var(--red);margin:0;font-size:13px;font-weight:700}.sidebar{border-right:1px solid var(--line);z-index:20;background:#fbfdff;flex-direction:column;gap:18px;height:100vh;padding:18px;display:flex;position:sticky;top:0;overflow-y:auto;box-shadow:10px 0 28px #0f172a0a}.brand{align-items:center;gap:12px;min-height:48px;display:flex}.brand-mark,.metric-icon,.account-icon,.avatar{flex:none;place-items:center;display:inline-grid}.brand-mark{color:#fff;background:linear-gradient(135deg,#2563eb,#0f766e);border-radius:8px;width:44px;height:44px;box-shadow:0 12px 24px #2563eb29}.brand strong,.brand span{display:block}.brand strong{color:var(--ink);font-size:18px;line-height:1.2}.brand span,.topbar p,.section-title p,.panel-heading p,.metric-card p,.metric-card span,.entity-card span,.account-card p,.account-card span,.asset-card span,.muted,.list-row span,.goal-row span,.notice-row span,.utility-card p,.notification-card p{color:var(--muted)}.sidebar nav{gap:14px;display:grid}.nav-group{gap:4px;display:grid}.nav-group>span{color:#94a3b8;letter-spacing:.08em;text-transform:uppercase;padding:0 12px 4px;font-size:11px;font-weight:800}.sidebar nav button{width:100%;min-height:42px;color:var(--muted);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;padding:0 12px;font-size:14px;display:flex}.sidebar nav button:hover,.sidebar nav button.active{color:var(--ink);background:#eef5ff}.sidebar nav button.active{box-shadow:inset 3px 0 0 var(--blue)}.sidebar-user{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;margin-top:auto;padding-top:12px;display:flex}.sidebar-user strong,.sidebar-user span{display:block}.sidebar-user strong{color:var(--ink);font-size:14px}.sidebar-user span{color:var(--muted);font-size:12px}.workspace{min-width:0;padding:20px 22px 42px}.topbar{justify-content:space-between;align-items:center;gap:18px;min-height:72px;margin-bottom:16px;display:flex}.topbar h1{color:var(--ink);margin:0;font-size:28px;line-height:1.15}.topbar p{margin:0 0 4px;font-size:14px}.topbar-actions,.section-actions,.form-actions,.card-actions,.table-actions{align-items:center;gap:8px;display:flex}.view-stack{gap:18px;display:grid}.section-title{justify-content:space-between;align-items:flex-end;gap:16px;display:flex}.section-title h2{color:var(--ink);margin:0;font-size:24px;line-height:1.2}.section-title p{max-width:760px;margin:5px 0 0}.eyebrow{color:var(--blue);text-transform:uppercase;font-size:12px;font-weight:700}.metrics-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.metrics-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr))}.metric-card,.panel,.entity-card,.account-card,.asset-card,.table-panel,.form-panel,.utility-card,.notification-card{border:1px solid var(--line);background:var(--panel);box-shadow:var(--shadow);border-radius:8px}.metric-card{border-top:4px solid var(--blue);align-content:start;gap:8px;min-height:132px;padding:16px;display:grid}.metric-card.green{border-top-color:var(--green)}.metric-card.teal{border-top-color:var(--teal)}.metric-card.amber{border-top-color:var(--amber)}.metric-card.red{border-top-color:var(--red)}.metric-card.indigo{border-top-color:var(--indigo)}.metric-icon{width:36px;height:36px;color:var(--blue);background:#eef4ff;border-radius:8px}.metric-card.green .metric-icon{color:var(--green);background:#e9f7f2}.metric-card.teal .metric-icon{color:var(--teal);background:#e8f7fb}.metric-card.amber .metric-icon{color:var(--amber);background:#fff5df}.metric-card.red .metric-icon{color:var(--red);background:#fff0f0}.metric-card.indigo .metric-icon{color:var(--indigo);background:#eef0ff}.metric-card p,.metric-card strong,.metric-card span{margin:0}.metric-card strong{color:var(--ink);overflow-wrap:anywhere;font-size:23px;line-height:1.15}.metric-card span{font-size:13px}.dashboard-layout,.reports-grid,.ai-layout{grid-template-columns:minmax(0,1.55fr) minmax(320px,.8fr);gap:12px;display:grid}.three-column{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.panel{padding:16px}.panel-heading{justify-content:space-between;align-items:center;gap:12px;min-height:36px;margin-bottom:12px;display:flex}.panel-heading h3,.entity-card h3,.account-card h3,.asset-card h3,.utility-card h3,.notification-card h3{color:var(--ink);margin:0;font-size:17px;line-height:1.25}.chart-box{width:100%;height:320px}.chart-box.small{height:214px}.rank-list,.list-stack,.insight-list,.notification-list{gap:10px;display:grid}.rank-item,.list-row,.row-between{justify-content:space-between;align-items:center;gap:12px;display:flex}.rank-item{min-height:28px}.rank-item span{border-radius:999px;width:10px;height:10px}.rank-item strong,.list-row strong{color:var(--ink);flex:1}.rank-item em{color:var(--muted);font-style:normal;font-weight:700}.list-row,.notice-row,.goal-row{border:1px solid var(--line);background:#fbfcfd;border-radius:8px;min-height:54px;padding:10px}.list-row div,.notice-row div{gap:2px;display:grid}.notice-row{align-items:flex-start;gap:10px;display:flex}.progress-track{background:#e7edf3;border-radius:999px;width:100%;height:9px;overflow:hidden}.progress-fill{border-radius:inherit;background:var(--green);height:100%;display:block}.progress-fill.warn{background:var(--amber)}.progress-fill.danger{background:var(--red)}.progress-fill.info{background:var(--blue)}.pill{color:#475569;white-space:nowrap;background:#eef2f7;border-radius:999px;justify-content:center;align-items:center;min-height:26px;padding:0 10px;font-size:12px;font-weight:700;display:inline-flex}.pill.good{color:#0f766e;background:#e9f7f2}.pill.warn{color:#a16207;background:#fff5df}.pill.danger{color:#b91c1c;background:#fff0f0}.pill.info{color:#1d4ed8;background:#eef4ff}.form-panel{grid-template-columns:repeat(4,minmax(180px,1fr));gap:12px;padding:16px;display:grid}.entry-panel{border:1px solid var(--line);background:var(--panel);box-shadow:var(--shadow);border-radius:8px;gap:14px;padding:16px;display:grid}.entry-type-switch{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.entry-type-switch button{border:1px solid var(--line);min-height:44px;color:var(--ink);cursor:pointer;background:#fff;border-radius:8px;justify-content:center;align-items:center;gap:8px;font-weight:800;display:inline-flex}.entry-type-switch button.active:first-child{color:#991b1b;background:#fff0f0;border-color:#fecaca}.entry-type-switch button.active:last-child{color:#0f766e;background:#e9f7f2;border-color:#b9eadf}.entry-grid{grid-template-columns:1.35fr repeat(3,minmax(180px,1fr));gap:12px;display:grid}.entry-grid label{color:var(--ink);gap:6px;font-size:13px;font-weight:700;display:grid}.entry-amount input{min-height:52px;font-size:24px;font-weight:800}.form-panel label,.search-box{color:var(--ink);gap:6px;font-size:13px;font-weight:700;display:grid}.wide-field{grid-column:span 2}input,select,textarea{border:1px solid var(--line);width:100%;min-height:42px;color:var(--ink);font:inherit;box-sizing:border-box;background:#fff;border-radius:8px;outline:none;padding:0 11px;font-size:14px}textarea{resize:vertical;min-height:220px;padding:12px}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #2563eb24}.form-actions{flex-wrap:wrap;grid-column:1/-1;justify-content:flex-end}button{font:inherit}button:disabled{cursor:not-allowed;opacity:.58}.primary-button,.ghost-button,.icon-button,.file-button{cursor:pointer;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:0 14px;font-weight:700;display:inline-flex}.primary-button{color:#fff;background:var(--blue)}.primary-button:hover{background:#1d4ed8}.ghost-button,.file-button{color:var(--ink);border-color:var(--line);background:#fff}.ghost-button:hover,.file-button:hover,.icon-button:hover{background:#f3f7fb}.compact-button{min-width:112px}.icon-button{width:38px;height:38px;color:var(--ink);border-color:var(--line);background:#fff;padding:0}.icon-button.danger{color:var(--red)}.menu-button,.mobile-close{display:none}.entity-grid,.account-grid,.asset-grid,.utility-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.entity-card,.account-card,.utility-card{gap:12px;padding:16px;display:grid}.entity-card{align-content:start;min-height:216px;position:relative}.avatar{color:#fff;background:var(--green);border-radius:8px;width:44px;height:44px;font-weight:800}.entity-stat{gap:4px;display:grid}.entity-stat strong,.account-card strong,.asset-card strong,.insight-list strong{color:var(--ink);overflow-wrap:anywhere;font-size:21px;line-height:1.2}.card-actions{justify-content:flex-end;align-self:end}.account-card{grid-template-columns:auto minmax(0,1fr);align-items:start}.account-card .card-actions{grid-column:1/-1}.account-icon{width:44px;height:44px;color:var(--blue);background:#eef4ff;border-radius:8px}.asset-card{overflow:hidden}.asset-card img{aspect-ratio:16/9;object-fit:cover;background:#e7edf3;width:100%}.asset-card>div{gap:8px;padding:14px;display:grid}.asset-card .card-actions{padding:0 14px 14px}.table-panel{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:760px}th,td{border-bottom:1px solid var(--line);text-align:left;vertical-align:middle;padding:13px 14px}th{color:var(--muted);text-transform:uppercase;font-size:12px}td{color:var(--ink)}td span{color:var(--muted);font-size:13px;display:block}.amount-positive{color:var(--green);font-weight:800}.amount-negative{color:var(--red);font-weight:800}.mini-history{color:var(--muted);gap:4px;font-size:13px;display:grid}.reports-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.search-box{min-width:260px;position:relative}.search-box svg{color:var(--muted);position:absolute;bottom:12px;left:12px}.search-box input{padding-left:38px}.utility-card{align-content:start;min-height:180px}.utility-card svg{color:var(--blue)}.file-button{width:fit-content;position:relative}.field-tools{align-items:center;gap:8px;display:flex}.compact-file-button{min-height:34px;padding:0 10px;font-size:13px}.file-button input{opacity:0;cursor:pointer;position:absolute;inset:0}.ai-layout{grid-template-columns:minmax(0,1fr) minmax(320px,.85fr)}.integration-status-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.integration-status-card,.integration-panel,.telegram-group-card{border:1px solid var(--line);background:var(--panel);box-shadow:var(--shadow);border-radius:8px}.integration-status-card{align-items:flex-start;gap:12px;min-height:118px;padding:16px;display:flex}.integration-status-card p,.integration-status-card strong,.integration-status-card span,.subsection-heading h3,.subsection-heading p,.telegram-group-card h3,.telegram-group-card span,.system-message,.ai-test-answer,.helper-note{margin:0}.integration-status-card p,.telegram-group-card span,.subsection-heading p{color:var(--muted);font-size:13px}.integration-status-card strong{color:var(--ink);overflow-wrap:anywhere;margin:2px 0;font-size:18px;line-height:1.2;display:block}.status-icon{width:42px;height:42px;color:var(--blue);background:#eef4ff;border-radius:8px;flex:none;place-items:center;display:inline-grid}.status-icon.good{color:var(--green);background:#e9f7f2}.status-icon.warn{color:var(--amber);background:#fff5df}.status-icon.info{color:var(--blue);background:#eef4ff}.integration-layout{grid-template-columns:minmax(0,1.28fr) minmax(340px,.82fr);align-items:start;gap:14px;display:grid}.integration-column,.integration-form,.telegram-group-form,.telegram-groups-section{gap:14px;min-width:0;display:grid}.integration-panel{padding:16px}.integration-form-grid,.switch-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.integration-form label,.telegram-group-form label{color:var(--ink);gap:6px;font-size:13px;font-weight:700;display:grid}.field-label-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.inline-switch,.event-toggle,.mini-check{cursor:pointer;align-items:flex-start;gap:10px;display:flex!important}.inline-switch{border:1px solid var(--line);background:#f8fafc;border-radius:8px;min-height:72px;padding:12px}.inline-switch input,.event-toggle input,.mini-check input{width:18px;min-width:18px;height:18px;min-height:18px;accent-color:var(--blue);margin:2px 0 0;padding:0}.inline-switch span,.event-toggle span{gap:3px;min-width:0;display:grid}.inline-switch strong,.event-toggle strong,.mini-check span{color:var(--ink);font-size:14px;line-height:1.25}.inline-switch small,.event-toggle small{color:var(--muted);font-size:12px;line-height:1.35}.activation-list{gap:8px;display:grid}.activation-item{color:#92400e;background:#fffaf0;border:1px solid #f1d7a8;border-radius:8px;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:10px;padding:10px;display:grid}.activation-item.done{color:#0f766e;background:#f0fbf7;border-color:#b9eadf}.activation-item div{gap:2px;min-width:0;display:grid}.activation-item strong{color:var(--ink);font-size:14px;line-height:1.25}.activation-item span{color:var(--muted);font-size:12px;line-height:1.35}.subsection-heading{justify-content:space-between;align-items:flex-end;gap:12px;display:flex}.subsection-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.subsection-heading h3{color:var(--ink);font-size:17px;line-height:1.25}.event-checklist{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.event-checklist.compact{grid-template-columns:1fr;gap:8px}.event-toggle{border:1px solid var(--line);background:#fff;border-radius:8px;min-height:76px;padding:11px}.event-toggle:hover,.inline-switch:hover,.mini-check:hover{background:#f8fbff;border-color:#b9c9d8}.system-message,.ai-test-answer,.helper-note{border:1px solid var(--line);color:var(--ink);background:#f8fafc;border-radius:8px;padding:12px}.helper-note{color:var(--muted);font-size:13px;line-height:1.45}.system-message.success{color:#0f766e;background:#f0fbf7;border-color:#b9eadf}.system-message.warn{color:#92400e;background:#fffaf0;border-color:#f1d7a8}.summary-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.summary-list div{border:1px solid var(--line);background:#f8fafc;border-radius:8px;gap:4px;padding:12px;display:grid}.summary-list strong{color:var(--ink);font-size:23px;line-height:1.1}.summary-list span{color:var(--muted);font-size:12px}.telegram-group-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.telegram-group-card{gap:12px;padding:16px;display:grid}.telegram-group-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.telegram-group-head h3{color:var(--ink);overflow-wrap:anywhere;font-size:18px;line-height:1.2}.group-state-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.mini-check{border:1px solid var(--line);background:#f8fafc;border-radius:8px;align-items:center;min-height:42px;padding:9px 10px}.group-card-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.webhook-row{grid-template-columns:minmax(0,1fr) repeat(2,auto);gap:10px;display:grid}.preline{white-space:pre-line}.setup-guide{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;display:grid}.setup-guide article{border:1px solid var(--line);background:var(--panel);box-shadow:var(--shadow);border-radius:8px;align-content:start;gap:10px;padding:16px;display:grid}.setup-guide h3,.setup-guide p{margin:0}.setup-guide h3{color:var(--ink);font-size:16px}.setup-guide p{color:var(--muted);font-size:14px}.insight-list{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:12px}.insight-list div{border:1px solid var(--line);border-radius:8px;gap:6px;padding:12px;display:grid}.notification-list{grid-template-columns:repeat(2,minmax(0,1fr))}.notification-card{align-items:flex-start;gap:12px;padding:16px;display:flex}.notification-card svg{color:var(--blue);flex:none}.empty-state{min-height:140px;color:var(--muted);text-align:center;place-items:center;gap:8px;display:grid}.backdrop{display:none}@media (width<=1180px){.app-shell{grid-template-columns:250px minmax(0,1fr)}.metrics-grid,.metrics-grid.compact,.entity-grid,.account-grid,.asset-grid,.utility-grid,.integration-status-grid,.telegram-group-grid,.form-panel,.entry-grid,.setup-guide{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=920px){.app-shell{display:block}.sidebar{width:min(86vw,320px);transition:transform .2s;position:fixed;inset:0 auto 0 0;transform:translate(-105%)}.sidebar.open{transform:translate(0)}.backdrop{z-index:10;background:#0f172a6b;border:0;display:block;position:fixed;inset:0}.menu-button,.mobile-close{display:inline-flex}.mobile-close{margin-left:auto}.workspace{padding:14px 14px 32px}.topbar{align-items:flex-start}.topbar-actions{display:none}.section-title,.dashboard-layout,.reports-grid,.ai-layout,.integration-layout,.three-column{grid-template-columns:1fr}.section-title{align-items:start;display:grid}}@media (width<=640px){.topbar h1{font-size:23px}.section-title h2{font-size:21px}.metrics-grid,.metrics-grid.compact,.entity-grid,.account-grid,.asset-grid,.utility-grid,.integration-status-grid,.integration-form-grid,.switch-grid,.event-checklist,.telegram-group-grid,.group-state-row,.summary-list,.notification-list,.insight-list,.entry-grid,.form-panel,.webhook-row,.setup-guide{grid-template-columns:1fr}.wide-field{grid-column:auto}.metric-card{min-height:122px}.metric-card strong,.entity-stat strong,.account-card strong,.asset-card strong{font-size:19px}.chart-box{height:260px}.chart-box.small{height:210px}.form-actions{justify-content:stretch}.form-actions button,.section-actions,.section-actions button,.subsection-actions,.subsection-actions button,.search-box{width:100%}.subsection-heading,.subsection-actions{align-items:stretch}.field-label-row{flex-direction:column;align-items:flex-start}.activation-item{grid-template-columns:auto minmax(0,1fr)}.activation-item .pill{grid-column:2;justify-self:start}}
