:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#252332;background:#fafafa;font-size:14px;font-synthesis:none;--accent:#eb5429;--soft:#fff0e9;--muted:#777381;--border:#e6e3eb;--green:#eaf6d9;--blue:#e9f1ff}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;color:inherit}button:disabled{opacity:.55;cursor:wait}a{color:var(--accent);text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #eb542950;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.035em;font-weight:600}h1{font-size:36px;margin-bottom:10px}h2{font-size:22px}h3{font-size:17px;line-height:1.35}p{line-height:1.65}input,textarea,select{border:1px solid var(--border);border-radius:8px;padding:11px 12px;background:#fff;color:#252332;max-width:100%;min-width:0}input:focus,textarea:focus,select:focus{outline:2px solid #eb542940;border-color:var(--accent)}textarea{resize:vertical;min-height:92px;line-height:1.6}label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:500}small{font-size:11px}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:.13em;color:#9b939f;text-transform:uppercase;font-weight:600}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:11px 16px;border-radius:8px;font-weight:500;transition:.15s}.primary{background:var(--accent);color:white;box-shadow:0 3px 8px #eb54291a}.primary:hover{background:#d94820}.secondary{border:1px solid var(--border);background:white}.secondary:hover{background:#f6f4f7}.small{font-size:12px;padding:8px 11px}.icon{width:19px;height:19px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.brand{display:flex;align-items:center;gap:10px;font-size:23px;letter-spacing:-.055em;font-weight:700}.brand-mark{width:34px;height:34px;border-radius:9px;background:var(--accent);color:white;display:grid;place-items:center;font-size:26px}.brand small{display:block;font-size:8px;letter-spacing:.2em;color:#9b939f;font-weight:500;margin-top:3px}.sidebar{position:fixed;inset:0 auto 0 0;width:218px;background:white;border-right:1px solid var(--border);padding:30px 18px;display:flex;flex-direction:column;z-index:10}.sidebar .brand{margin:0 8px 46px}.nav-label{font-size:9px;letter-spacing:.12em;color:#a09aa7;margin:0 13px 13px}.nav{display:grid;gap:6px}.nav button{display:flex;align-items:center;gap:11px;text-align:left;border-radius:8px;padding:12px;color:#77717f;font-size:13px}.nav button:hover{background:#f8f6fa}.nav button.active{background:var(--soft);color:var(--accent);font-weight:600}.nav-count{margin-left:auto;font-size:10px;opacity:.65}.sidebar-bottom{margin-top:auto}.sidebar-note{border:1px solid var(--border);border-radius:10px;padding:14px;font-size:11px;line-height:1.6;color:var(--muted);margin:25px 0}.user{padding:12px 5px 0;border-top:1px solid var(--border)}.avatar{width:32px;height:32px;border-radius:50%;background:#f2eff7;display:grid;place-items:center;font-weight:600;color:#7a6d91}.main{margin-left:218px;min-height:100vh}.topbar{height:70px;border-bottom:1px solid var(--border);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:15px;font-size:12px}.topbar .breadcrumb{color:#a19ba8}.topbar strong{font-weight:500;color:#55505f}.dot{width:6px;height:6px;background:#80a85c;border-radius:50%;display:inline-block;margin-right:6px}.content{max-width:1600px;margin:auto;padding:37px 38px 60px}.hero{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}.hero .eyebrow{margin-bottom:10px;color:var(--accent)}.hero p{margin:0;color:var(--muted);font-size:13px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:26px}.stat{background:#fff;border:1px solid var(--border);border-radius:10px;padding:20px 22px}.stat .value{font-size:30px;letter-spacing:-.06em;font-weight:600;margin:11px 0 5px}.stat .label{font-size:11px;color:#8f8798}.stat small{color:var(--muted)}.stat:first-child{border-color:#f1c9ba}.stat-icon{color:#b6afbe;float:right}.toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:22px 0;flex-wrap:wrap}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);width:100%;margin-bottom:4px}.tabs button{font-size:13px;color:var(--muted);padding:13px 15px;border-bottom:2px solid transparent}.tabs button.active{color:var(--accent);border-color:var(--accent)}.search{position:relative;flex:1;max-width:340px}.search input{width:100%;padding-left:38px}.search>.icon{position:absolute;left:12px;top:12px;color:#9b939f}.filter{min-width:156px;font-size:12px}.result-count{font-size:11px;color:var(--muted);margin:16px 0}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.card{position:relative;display:flex;flex-direction:column;border:1px solid var(--border);background:#fff;border-radius:11px;padding:21px;transition:border-color .15s,box-shadow .15s;min-width:0}.card:hover{border-color:#d6c6bd;box-shadow:0 4px 18px #30201a06}.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px;gap:8px}.project-icon{width:35px;height:35px;border-radius:9px;background:#f6f3f9;color:#8e7c9b;display:grid;place-items:center;font-weight:600}.card[data-category="Инфраструктура"] .project-icon{background:#eaf1ff;color:#6b8bbe}.card[data-category="Работа"] .project-icon{background:#fff0e9;color:#d27656}.card[data-category="Личное"] .project-icon{background:#f0f5e7;color:#85975f}.badge{font-size:10px;padding:5px 8px;border-radius:5px;background:#f0eef3;color:#82788e;font-weight:500;white-space:nowrap;display:inline-flex;align-items:center;gap:4px}.badge.live,.badge.done,.badge.verified{background:#eaf6d9;color:#557a31}.badge.testing,.badge.port_open{background:#fff4cc;color:#987929}.badge.development{background:#e9f1ff;color:#5c7eac}.badge.idea{background:#fff0e9;color:#c77150}.badge.paused,.badge.unavailable,.badge.closed{background:#f1eff4;color:#8b8494}.card h3{margin-bottom:10px}.card h3 button{font:inherit;letter-spacing:inherit;text-align:left;padding:0}.card-description{color:#77717f;font-size:12px;line-height:1.75;margin-bottom:17px;min-height:63px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.tags{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:17px}.tag{font-size:10px;border:1px solid #ece8f0;border-radius:4px;padding:4px 6px;color:#9b91a2}.card-footer{margin-top:auto;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #f0edf3;padding-top:14px;font-size:10px;color:#a096ab;gap:8px}.relation{margin-top:13px;font-size:10px;color:#b47962;display:flex;align-items:center;gap:6px;text-align:left;padding:0}.card-actions{display:flex;gap:6px;align-items:center}.icon-button{padding:5px;color:#9a91a4;border-radius:5px}.icon-button:hover{background:var(--soft);color:var(--accent)}.panel{border:1px solid var(--border);border-radius:11px;background:#fff;padding:24px;margin-bottom:20px}.note{border:1px solid #e7dfd1;border-radius:8px;background:#fffaf0;padding:14px 17px;font-size:12px;color:#8b7756;line-height:1.65;margin-bottom:20px}.hint{font-size:11px;color:#9b92a4;line-height:1.7}.empty{padding:70px 24px;text-align:center;border:1px dashed #ddd6e2;border-radius:12px;color:var(--muted);background:#fff}.empty h2{color:#514a5b}.kanban{display:flex;gap:16px;overflow:auto;padding-bottom:15px}.column{background:#f2f0f4;border-radius:10px;padding:13px;min-width:280px;flex:1}.column>h3{font-size:12px;color:#7a7085;padding:6px}.column .card{margin-bottom:12px;padding:16px}.column .card-description{min-height:0}.graph-wrap{overflow:auto;background:#fff;border:1px solid var(--border);border-radius:11px;background-image:radial-gradient(#ded8e4 .7px,transparent .7px);background-size:20px 20px}.graph{display:block;min-width:1000px;width:100%;height:auto}.graph .edge{fill:none;stroke:#cec7d7;stroke-width:1.4;opacity:.35}.graph .edge.active{stroke:#eb5429;stroke-width:2;opacity:.9}.graph .edge.potential{stroke-dasharray:5 5}.graph .node{cursor:pointer}.graph .node rect{fill:#fff;stroke:#e0d9e7;stroke-width:1}.graph .node.selected rect{stroke:#eb5429;stroke-width:2;fill:#fff7f2}.graph text{font-family:inherit;fill:#51475d;font-size:12px}.graph text.sub{font-size:10px;fill:#9b90a5}.legend{font-size:11px;display:flex;gap:22px;margin:15px 0;color:#91869d;flex-wrap:wrap}.legend-line{display:inline-block;width:25px;border-top:2px solid #b8aabe;vertical-align:middle;margin-right:7px}.legend-line.dashed{border-top-style:dashed}.link-list{display:grid;gap:10px;margin-top:20px}.link-row{border:1px solid var(--border);border-radius:8px;background:#fff;padding:16px;display:flex;justify-content:space-between;gap:20px;align-items:center}.link-row p{margin:7px 0 0;font-size:12px;color:var(--muted)}.timeline{overflow:auto}.timeline-row{display:grid;grid-template-columns:230px 1fr 150px;gap:20px;align-items:center;padding:15px 0;border-bottom:1px solid #f0edf3;min-width:700px}.timeline-row button{text-align:left;font-size:12px}.track{height:14px;border-radius:4px;background:#f6f3f8;position:relative}.bar{height:100%;position:absolute;border-radius:4px;background:#e8d7cb;min-width:5px}.bar.live{background:#ccdfaf}.bar.testing{background:#efe0a6}.time-label{font-size:10px;color:#988c9f}.device-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0 18px;font-size:11px;color:var(--muted)}.device-facts b{display:block;color:#665d70;font-weight:500;margin-top:5px}.ip{font-family:Consolas,monospace;letter-spacing:-.03em}.scan-meta{display:flex;gap:20px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-bottom:20px}.analysis-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.analysis-grid .panel{margin:0}.analysis-grid p{font-size:13px;color:var(--muted)}.step-number{font-size:11px;color:var(--accent);font-weight:600;margin-bottom:14px}.decision{border-left:3px solid #e9d5c9;padding:5px 20px;margin:24px 0}.decision p{white-space:pre-wrap;font-size:13px;color:var(--muted)}.import-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.import-grid .panel{display:flex;flex-direction:column;align-items:flex-start}.import-grid .panel button{margin-top:auto}.login{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;background:#fff}.login-story{background:#faf8f5;padding:55px 10%;display:flex;flex-direction:column;border-right:1px solid var(--border)}.login-story .brand{margin-bottom:100px}.login-story h1{font-size:48px;line-height:1.15;max-width:430px}.login-story>p{font-size:15px;color:#8c8195;max-width:400px}.login-features{display:grid;gap:18px;margin-top:40px}.login-features .icon{color:#c18367}.login-footer{margin-top:auto;padding-top:50px;font-size:11px;color:#a295a9}.login-form-area{display:grid;place-items:center;padding:45px}.login-form{width:100%;max-width:370px}.login-form h2{font-size:28px}.login-form>p{color:var(--muted);font-size:13px;margin-bottom:30px}.form-stack{display:grid;gap:18px}.error{font-size:12px;color:#bc4e3f;white-space:pre-wrap;line-height:1.6}.loading{display:grid;place-items:center;min-height:100vh;color:#a18c87}dialog{border:1px solid var(--border);border-radius:14px;padding:0;width:680px;max-width:calc(100% - 28px);max-height:90vh;box-shadow:0 18px 90px #33273822;color:inherit}dialog::backdrop{background:#30243d55;backdrop-filter:blur(2px)}.modal-head{padding:24px 26px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;gap:15px;align-items:center}.modal-head h2{margin:0;font-size:22px}.modal-body{padding:24px 26px;overflow-wrap:anywhere}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.span2{grid-column:1/-1}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.detail-section{border-bottom:1px solid #eee8f2;padding-bottom:18px;margin-bottom:18px}.detail-section:last-child{border:0}.detail-section h3{font-size:13px;color:#9d8ca5}.detail-section p{font-size:13px;white-space:pre-wrap}.details-meta{font-size:11px;color:#9b8da2;line-height:1.8}.source-text{white-space:pre-wrap;max-height:300px;overflow:auto;background:#faf8fc;border-radius:8px;padding:15px;font-size:12px;color:#81728b;line-height:1.7}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:#302a38;color:#fff;border-radius:9px;padding:12px 20px;font-size:12px;z-index:100;display:none;max-width:90%;line-height:1.6}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;color:#9a8ca3;font-size:10px;font-weight:500;padding:12px 8px;border-bottom:1px solid var(--border)}td{padding:15px 8px;border-bottom:1px solid #f1ecf5}.coverage{font-size:11px;line-height:1.7;color:#a298a8;margin-top:28px;max-width:1000px}.health-chip{display:flex;align-items:center;gap:6px;font-size:11px;color:#8d8296}.mobile-menu{display:none}.date-divider{font-size:12px;color:#a395ac;margin:24px 0 12px}.chat-source{font-size:9px;letter-spacing:.08em;color:#b1a2bd}.chat-card h3{font-size:15px;min-height:40px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:30px 0 18px}.section-heading h2{margin:0}.plain-link{padding:0;text-align:left;color:var(--accent);font-size:12px}.metric-note{margin:0 0 20px;font-size:12px;color:#96869d;line-height:1.7}
@media(min-width:1700px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1150px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:28px}.sidebar{width:190px;padding:26px 13px}.main{margin-left:190px}.topbar{padding:0 28px}.stats{gap:10px}.stat{padding:17px}.hero{align-items:flex-start}}@media(max-width:800px){.sidebar{width:70px;padding:20px 9px}.sidebar .brand{margin:0 8px 28px}.sidebar .brand>div:last-child,.sidebar .nav-label,.nav-text,.nav-count,.sidebar-note,.user-name,.sidebar-bottom .hint{display:none}.nav button{justify-content:center;padding:13px 10px}.sidebar .user{justify-content:center}.sidebar .user button{display:none}.main{margin-left:70px}.content{padding:25px 20px}.topbar{padding:0 20px}.hero h1{font-size:29px}.hero{flex-wrap:wrap}.stats{grid-template-columns:repeat(2,1fr)}.analysis-grid,.import-grid{grid-template-columns:1fr}.login{grid-template-columns:1fr}.login-story{display:none}.login-form-area{padding:30px}.topbar .health-chip{display:none}}@media(max-width:560px){.grid{grid-template-columns:1fr}.content{padding:22px 14px}.topbar{padding:0 14px;font-size:11px;height:60px}.topbar .today{display:none}.stats .stat{padding:16px}.stat .value{font-size:26px}.toolbar .search{max-width:none;flex-basis:100%}.toolbar .filter{min-width:0;flex:1}.hero .primary{width:100%}.tabs button{padding:12px 9px;font-size:12px}.form-grid{grid-template-columns:1fr}.span2{grid-column:auto}.modal-body,.modal-head{padding:20px}.link-row{flex-wrap:wrap}.hero h1{font-size:26px}.badge{font-size:9px}.panel{padding:19px}}

@media(max-width:800px){.sidebar .user{flex-direction:column;gap:8px}.sidebar .user button{display:inline-flex}}

.auth-onboarding{max-width:680px;margin:40px auto;padding:16px}.auth-onboarding .panel{padding:32px}.auth-onboarding h1{font-size:28px;margin-top:28px}.auth-onboarding li{margin:12px 0}.auth-qr{display:block;background:white;margin:24px auto}.auth-secret{display:block;overflow-wrap:anywhere;margin:16px 0;user-select:all}.auth-recovery{white-space:pre-wrap;user-select:all;line-height:1.8}.auth-onboarding button{margin:12px 8px 0 0}.auth-onboarding form{margin-top:24px}
