@font-face{font-family:Golos Text;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/c105b29dc4e1ee2d-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Golos Text;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/ffe0837c71e69159-s.p.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Golos Text;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/b07dd69d3f271780-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Golos Text;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/401f9db361b6e189-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Golos Text;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/c105b29dc4e1ee2d-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Golos Text;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/ffe0837c71e69159-s.p.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Golos Text;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/b07dd69d3f271780-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Golos Text;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/401f9db361b6e189-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Golos Text;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/c105b29dc4e1ee2d-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Golos Text;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ffe0837c71e69159-s.p.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Golos Text;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/b07dd69d3f271780-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Golos Text;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/401f9db361b6e189-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Golos Text;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/c105b29dc4e1ee2d-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Golos Text;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/ffe0837c71e69159-s.p.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Golos Text;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/b07dd69d3f271780-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Golos Text;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/401f9db361b6e189-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Golos Text;font-style:normal;font-weight:800;font-display:swap;src:url(/_next/static/media/c105b29dc4e1ee2d-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Golos Text;font-style:normal;font-weight:800;font-display:swap;src:url(/_next/static/media/ffe0837c71e69159-s.p.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Golos Text;font-style:normal;font-weight:800;font-display:swap;src:url(/_next/static/media/b07dd69d3f271780-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Golos Text;font-style:normal;font-weight:800;font-display:swap;src:url(/_next/static/media/401f9db361b6e189-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Golos Text Fallback;src:local("Arial");ascent-override:90.27%;descent-override:20.26%;line-gap-override:0.00%;size-adjust:108.57%}.__className_cedeed{font-family:Golos Text,Golos Text Fallback,-apple-system,Segoe UI,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Noto Color Emoji;font-style:normal}@font-face{font-family:Cormorant Garamond;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/fd3893c623c32b6d-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Cormorant Garamond;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/ea896c3885e026c1-s.p.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Cormorant Garamond;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/024ead497118aa23-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Cormorant Garamond;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/e74f24ed7f0e4323-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Cormorant Garamond;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/e18f83c737786aa7-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Cormorant Garamond;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/fd3893c623c32b6d-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Cormorant Garamond;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/ea896c3885e026c1-s.p.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Cormorant Garamond;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/024ead497118aa23-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Cormorant Garamond;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/e74f24ed7f0e4323-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Cormorant Garamond;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/e18f83c737786aa7-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/393d45a2251e223a-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/8715d2ed531152f4-s.p.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/c48b38fe8bb532f3-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/48410f3df60da620-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/7b89a4fd5e90ede0-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/393d45a2251e223a-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/8715d2ed531152f4-s.p.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/c48b38fe8bb532f3-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/48410f3df60da620-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/7b89a4fd5e90ede0-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Cormorant Garamond Fallback;src:local("Times New Roman");ascent-override:95.27%;descent-override:29.59%;line-gap-override:0.00%;size-adjust:96.98%}.__className_5f59d8{font-family:Cormorant Garamond,Cormorant Garamond Fallback}.__variable_5f59d8{--font-serif:"Cormorant Garamond","Cormorant Garamond Fallback"}:root{--bg:#f6f4ed;--surface:#ffffff;--surface-hover:#fbfaf6;--border:#e9e5d8;--header-table:#f1eee2;--soft:#eceff4;--text:#1b1d22;--text-muted:#7f7f80;--accent:#5f4f4b;--accent-hover:#3d322f;--accent-soft:#f6f4ed;--accent-border:#e9e5d8;--bubble-user:#dfd8bd;--danger:#dc2626;--danger-soft:#fef2f2;--success:#16a34a;--success-soft:#f0fdf4;--warn:#d97706;--warn-soft:#fffbeb;--radius:12px;--radius-btn:8px;--radius-input:16px;--shadow-float:0 4px 20px rgba(28,27,41,0.12);--sidebar-w:280px;--panel-w:440px}*{box-sizing:border-box;margin:0;padding:0}body,html{height:100%}body{font-family:var(--font-golos),"Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji";font-size:16px;line-height:1.5;color:var(--text);background:var(--bg)}button{cursor:pointer}button,input,select,textarea{font:inherit;color:inherit}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}a.btn:hover,a.foot-row:hover{text-decoration:none}.auth-card h1,.chat-header h1,.hello-screen h1,.page-inner h1,.serif{font-family:var(--font-serif),"Cormorant Garamond",Georgia,serif;font-weight:700}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-thumb{background:rgba(27,29,34,.18);border-radius:99px}::-webkit-scrollbar-thumb:hover{background:rgba(27,29,34,.32)}::-webkit-scrollbar-track{background:transparent}*{scrollbar-width:thin;scrollbar-color:rgba(27,29,34,.22) transparent}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 16px;border-radius:var(--radius-btn);border:1px solid var(--border);background:var(--surface);color:var(--text);font-weight:500;transition:background .12s,border-color .12s;white-space:nowrap}.btn:hover{background:var(--surface-hover)}.btn:disabled{opacity:.55;cursor:default}.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}.btn-primary:hover{background:var(--accent-hover)}.btn-danger{color:var(--danger);border-color:#f3c6c6}.btn-danger:hover{background:var(--danger-soft)}.btn-sm{padding:5px 12px;font-size:14px;line-height:21px}.btn-ghost{border-color:transparent;background:transparent;color:var(--text-muted)}.btn-ghost:hover{background:var(--soft);color:var(--text)}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}.field label{font-size:14px;font-weight:500;color:var(--text-muted)}.field input,.field select,.field textarea{padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--accent)}.field-pair{display:grid;grid-template-columns:1fr 1fr;grid-gap:16px;gap:16px}.field-pair .field{min-width:0}.field-pair select{width:100%}.badge{display:inline-block;padding:2px 10px;border-radius:99px;font-size:14px;line-height:22px;font-weight:600;white-space:nowrap}.badge-ready{background:var(--success-soft);color:var(--success)}.badge-processing{background:var(--warn-soft);color:var(--warn)}.badge-error{background:var(--danger-soft);color:var(--danger)}.badge-neutral{background:var(--soft);color:var(--text-muted)}.badge-admin{background:var(--accent-soft);color:var(--accent)}.error-text{color:var(--danger);font-size:14px;margin:8px 0}.muted{color:var(--text-muted)}.small{font-size:14px}.auth-page{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:24px}.auth-logo{color:var(--text)}.auth-card{width:100%;max-width:400px;background:var(--surface);border-radius:24px;padding:32px}.auth-card h1{font-size:40px;line-height:44px;margin-bottom:0}.auth-card .subtitle{color:var(--text-muted);margin-bottom:24px}.auth-card>.field:first-child{margin-top:0}.auth-card .btn{width:100%;margin-top:4px}.auth-switch{margin-top:16px;text-align:center}.auth-remember,.auth-switch{font-size:14px;color:var(--text-muted)}.auth-remember{display:flex;gap:10px;align-items:flex-start;line-height:21px;margin:-4px 0 12px;cursor:pointer}.auth-remember input{flex:none;width:18px;height:18px;margin-top:1px;accent-color:var(--accent);cursor:pointer}.page-loading{min-height:100vh;display:flex;align-items:center;justify-content:center;color:var(--text-muted)}.app-shell{display:flex;height:100vh;overflow:hidden;padding:16px;position:relative}.sidebar-slot{width:calc(var(--sidebar-w) + 16px);flex-shrink:0;transition:width .3s ease}.sidebar-slot.collapsed{width:0}.sidebar{position:absolute;left:16px;top:16px;z-index:30;width:var(--sidebar-w);height:calc(100% - 32px);background:var(--surface);border-radius:24px;display:flex;flex-direction:column;padding:16px 0;overflow:hidden;transition:height .32s ease .06s,width .26s ease}.sidebar.collapsed{height:66px;width:120px;transition:height .32s ease,width .26s ease .24s}.sidebar .side-chats,.sidebar .side-nav,.sidebar .sidebar-foot{transition:opacity .18s ease}.sidebar .side-nav{transition-delay:.12s}.sidebar .side-chats{transition-delay:.18s}.sidebar .sidebar-foot{transition-delay:.24s}.sidebar.collapsed .sidebar-foot{opacity:0;transition-delay:0s}.sidebar.collapsed .side-chats{opacity:0;transition-delay:.05s}.sidebar.collapsed .side-nav{opacity:0;transition-delay:.12s}.sidebar.collapsed :is(.side-nav,.side-chats,.sidebar-foot){pointer-events:none}.sidebar-head{display:flex;align-items:center;gap:4px;padding:0 16px 16px;flex-shrink:0;transition:padding .32s ease}.sidebar.collapsed .sidebar-head{padding-bottom:0}.logo-link{display:flex;align-items:center;flex:1 1;min-width:0;color:var(--text)}.logo-link:hover{text-decoration:none}.logo{display:inline-flex;white-space:nowrap;font-family:var(--font-serif),"Cormorant Garamond",Georgia,serif;font-style:italic;font-weight:500;font-size:36px;line-height:34px}.logo-fold{display:inline-grid;grid-template-columns:1fr;transition:grid-template-columns .5s ease,opacity .36s ease .06s}.logo-fold>span{overflow:hidden;min-width:0;padding-right:.08em;margin-right:-.08em;padding-bottom:.2em;margin-bottom:-.2em}.sidebar.collapsed .logo-fold{grid-template-columns:0fr;opacity:0;transition:grid-template-columns .5s ease,opacity .3s ease}.side-nav{display:flex;flex-direction:column;gap:8px;padding:0 8px 8px;flex-shrink:0}.side-link{display:flex;align-items:center;gap:6px;height:44px;padding:0 4px;border-radius:var(--radius-btn);color:var(--text);font-size:16px;transition:background .15s ease}.side-link img{width:28px;height:28px;flex-shrink:0}a.side-link:hover{background:var(--bg);text-decoration:none}.side-link.active{background:var(--bg);font-weight:600}.side-chats{flex:1 1;min-height:0;display:flex;flex-direction:column;padding:20px 8px 0}.chats-label{font-size:14px;font-weight:500;color:var(--text-muted);padding:0 8px 4px}.chat-list{flex:1 1;overflow-y:auto}.chat-item{display:flex;align-items:center;border-radius:var(--radius-btn);color:var(--text);height:44px;margin-bottom:4px;position:relative}.chat-item a{flex:1 1;min-width:0;padding:0 7px 0 8px;color:inherit;line-height:44px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.chat-item a:hover{text-decoration:none}.chat-item.active,.chat-item:hover{background:var(--bg)}.chat-item.active a{font-weight:600}.chat-item .row-actions{position:absolute;right:0;top:0;bottom:0;display:flex;align-items:center;gap:2px;padding:0 6px 0 28px;background:linear-gradient(to right,rgba(246,244,237,0),var(--bg) 28px);border-radius:0 var(--radius-btn) var(--radius-btn) 0;opacity:0;pointer-events:none;transition:opacity .15s ease}.chat-item:hover .row-actions{opacity:1;pointer-events:auto}.icon-btn{border:none;background:transparent;color:var(--text-muted);padding:3px 5px;border-radius:var(--radius-btn);font-size:14px;line-height:1;display:inline-flex;align-items:center;justify-content:center;opacity:.56}.icon-btn:hover{color:var(--text)}.icon-btn img{display:block}.collapse-btn{display:inline-flex}.collapse-btn img{transition:transform .32s ease}.sidebar.collapsed .collapse-btn img{transform:rotate(180deg)}.sidebar-foot{border-top:1px solid var(--soft);padding:4px 16px 0;flex-shrink:0}.foot-row{display:flex;align-items:center;gap:6px;height:44px;color:var(--text);font-size:16px;padding:0 4px;border-radius:var(--radius-btn)}.foot-row .user-email{flex:1 1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.main-area{flex:1 1;display:flex;flex-direction:column}.chat-area,.main-area{min-width:0;position:relative}.chat-area{flex:1 1}.chat-scroll{position:absolute;inset:0;overflow-y:auto}.chat-header{position:absolute;top:0;left:0;right:0;z-index:10;padding:10px 0;min-height:64px;display:flex;align-items:center}.chat-header:before{content:"";position:absolute;inset:0 0 -56px 0;z-index:-1;background:linear-gradient(to bottom,var(--bg) 0,var(--bg) 62%,rgba(246,244,237,.85) 76%,rgba(246,244,237,0) 100%);pointer-events:none}.chat-header-inner{width:100%;max-width:820px;margin:0 auto;padding:0 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;transition:padding .3s ease}.sidebar-slot.collapsed~.main-area .chat-header-inner{padding-left:max(20px,calc(558px - 50vw))}.chat-header h1{font-size:32px;line-height:44px;flex:1 1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-header-actions{gap:8px;flex-shrink:0}.chat-header-actions,.menu-anchor{display:flex;position:relative}.btn-more{padding:0;width:42px;color:var(--text-muted)}.chat-header-actions .btn.btn-more{padding:0}.btn-more.active,.btn-more:hover{color:var(--text);background:var(--surface-hover)}.btn-more svg{display:block}.menu-popover{position:absolute;right:0;top:calc(100% + 10px);z-index:70;min-width:232px;background:var(--surface);border-radius:16px;box-shadow:0 12px 40px rgba(28,27,41,.18);padding:6px;animation:rise-in .2s ease;display:flex;flex-direction:column}.menu-item{display:flex;align-items:center;width:100%;padding:10px 12px;border:0;border-radius:10px;background:none;text-align:left;font-size:15px;line-height:22px;color:var(--text);white-space:nowrap;transition:background .12s ease}.menu-item:hover:not(:disabled){background:var(--bg)}.menu-item:disabled{opacity:.5;cursor:default}.popover-backdrop{position:fixed;inset:0;z-index:60}.share-popover{position:absolute;right:0;top:calc(100% + 10px);z-index:70;width:344px;background:var(--surface);border-radius:16px;box-shadow:0 12px 40px rgba(28,27,41,.18);padding:16px;animation:rise-in .2s ease;text-align:left;white-space:normal}.share-popover .popover-title{font-weight:600;margin-bottom:2px}.share-link-row{gap:8px;margin:12px 0}.copy-field,.share-link-row{display:flex;align-items:center}.copy-field{flex:1 1;min-width:0;gap:4px;height:42px;padding:0 6px 0 10px;border:1px solid var(--border);border-radius:8px;background:#fafbfd;transition:border-color .15s ease}.copy-field:focus-within{border-color:var(--accent)}.copy-field input{flex:1 1;min-width:0;border:none;outline:none;background:transparent;padding:0;font-size:14px;line-height:22px;color:var(--text-muted);text-overflow:ellipsis}.copy-field .icon-btn{padding:4px;flex-shrink:0}.copy-field.copied .icon-btn{color:var(--success);opacity:1}.modal-backdrop{position:fixed;inset:0;z-index:100;background:rgba(27,29,34,.35);display:flex;align-items:center;justify-content:center;animation:fade-in .15s ease}@keyframes fade-in{0%{opacity:0}}.modal{background:var(--surface);border-radius:16px;padding:20px;width:min(92vw,400px);animation:rise-in .22s ease}.modal h3{font-size:18px;line-height:28px;font-weight:600;margin-bottom:4px}.modal-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}.chat-messages{max-width:820px;margin:0 auto;padding:108px 20px 132px;display:flex;flex-direction:column;gap:20px}.msg{max-width:100%}.msg-user{align-self:flex-end;max-width:68%;background:var(--bubble-user);border-radius:12px 12px 2px 12px;white-space:pre-wrap}.msg-assistant,.msg-user{padding:12px 16px;overflow-wrap:break-word}.msg-assistant{align-self:flex-start;max-width:82%;background:var(--surface);border-radius:12px 12px 12px 2px}.msg-p{white-space:pre-wrap;margin:0 0 10px}.msg-h{font-weight:700;margin:4px 0 8px}.msg strong{font-weight:600}.msg-code{background:var(--soft);padding:1px 6px;border-radius:5px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:87%}.msg-list{margin:0 0 10px;padding-left:22px}.msg-list li{margin:4px 0}.msg-assistant>:last-child{margin-bottom:0}.msg-assistant.streaming:after{content:"▌";color:var(--accent);animation:blink 1s infinite}@keyframes blink{50%{opacity:0}}.cite-chip{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;margin:0 1px;border-radius:var(--radius-btn);border:none;background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:600;vertical-align:2px}.cite-chip:hover{background:#ece8db}.chat-input-wrap{position:absolute;left:0;right:0;bottom:0;z-index:10;padding:28px 20px 20px;background:linear-gradient(to top,var(--bg) 45%,rgba(246,244,237,0));pointer-events:none}.chat-input-shadow{max-width:820px;margin:0 auto;filter:drop-shadow(0 6px 12px rgba(28,27,41,.12));pointer-events:auto;transition:filter .2s ease}.chat-input-shadow:focus-within{filter:drop-shadow(0 8px 20px rgba(28,27,41,.18))}.chat-input{display:flex;gap:10px;align-items:flex-end;background:var(--surface);border-radius:var(--radius-input);padding:12px 12px 12px 20px}.chat-input textarea{flex:1 1;border:none;outline:none;resize:none;background:transparent;max-height:160px;padding:8px 0}.chat-input textarea::placeholder{color:rgba(27,29,34,.4)}.btn-send{width:40px;height:40px;flex-shrink:0;background:var(--accent);border:none;border-radius:var(--radius-btn);display:inline-flex;align-items:center;justify-content:center}.btn-send:hover{background:var(--accent-hover)}.btn-send:disabled{opacity:.45;cursor:default}.btn-send img{width:28px;height:28px}.hello-screen{flex:1 1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;gap:8px}.hello-screen h1{font-size:36px;line-height:42px;text-align:center}.hello-screen p{color:var(--text-muted);max-width:480px;text-align:center;margin-bottom:24px}.hello-screen .chat-input-shadow{width:100%;max-width:640px}.panel-slot{width:0;flex-shrink:0;position:relative;transition:width .28s ease}.panel-slot.open{width:calc(var(--panel-w) + 16px)}.panel-slot .source-panel{position:absolute;left:16px;top:0;height:100%}.source-panel{width:var(--panel-w);flex-shrink:0;background:var(--surface);border-radius:24px;display:flex;flex-direction:column;overflow:hidden}.source-panel-head{padding:16px;border-bottom:1px solid var(--soft);display:flex;gap:10px;align-items:flex-start}.source-panel-head .titles{flex:1 1;min-width:0}.source-panel-head .study-title{font-weight:600;font-size:16px;line-height:24px}.study-title-badge{margin-left:8px;vertical-align:2px;font-weight:500}.source-panel-head .file-line{font-size:14px;line-height:20px;color:var(--text-muted);margin-top:2px;overflow-wrap:break-word}.source-panel-body{flex:1 1;overflow-y:auto;display:flex;flex-direction:column}.source-panel-body iframe{border:none;width:100%;flex:1 1;min-height:400px}.source-panel-head .head-actions{display:flex;align-items:center;gap:2px;flex-shrink:0}.quote-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:5px 5px 0;margin-left:6px;border:none;border-radius:6px;background:var(--accent-soft);color:var(--accent);font-size:14px;font-weight:700;line-height:1;vertical-align:bottom;transition:background .15s ease,transform .15s ease,color .15s ease}.quote-toggle:hover{transform:scale(1.12)}.quote-toggle.on{background:var(--accent);color:#fff}.snippet-wrap{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .22s ease,opacity .18s ease}.snippet-wrap.open{grid-template-rows:1fr;opacity:1}.snippet-clip{overflow:hidden;min-height:0}.snippet-quote{margin:12px 16px;padding:10px 12px;border-left:3px solid var(--accent);background:var(--accent-soft);border-radius:0 8px 8px 0;font-size:13px;color:var(--accent);max-height:40vh;overflow-y:auto;white-space:pre-wrap}.deleted-source{padding:40px 24px;text-align:center;color:var(--text-muted)}.deleted-source .big{font-size:34px;margin-bottom:10px}.media-box{padding:12px 16px;position:-webkit-sticky;position:sticky;top:0;z-index:5;background:var(--surface);border-bottom:1px solid var(--soft);box-shadow:0 4px 12px rgba(0,0,0,.04)}.media-box video{width:100%;max-height:220px;border-radius:8px;background:#000}.media-box audio{width:100%}.transcript-list{padding:4px 16px 16px;display:flex;flex-direction:column;gap:2px}.transcript-seg{display:flex;gap:10px;padding:6px 8px;border-radius:8px;font-size:14px;line-height:22px;cursor:pointer;border:none;background:transparent;text-align:left}.transcript-seg:hover{background:var(--soft)}.transcript-seg.hl{background:var(--warn-soft)}.transcript-seg .tc{color:var(--accent);font-feature-settings:"tnum";font-variant-numeric:tabular-nums;flex-shrink:0;font-weight:600}.csv-wrap{overflow-x:auto;padding:12px 16px}.csv-wrap table{border-collapse:collapse;font-size:12.5px;width:100%}.csv-wrap td,.csv-wrap th{border:1px solid var(--border);padding:4px 8px;text-align:left;vertical-align:top}.csv-wrap th{background:var(--header-table);position:-webkit-sticky;position:sticky;top:0}.csv-wrap tr.hl td{background:var(--warn-soft)}.csv-wrap td.rownum,.csv-wrap th.rownum{color:var(--text-muted);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.page-wrap{flex:1 1;overflow-y:auto}.page-inner{max-width:960px;margin:0 auto;padding:28px 24px 60px}.page-inner h1{font-size:40px;line-height:48px;margin-bottom:6px}.tabs{display:flex;gap:12px;border-bottom:1px solid var(--border);margin-bottom:22px}.tabs a{padding:9px 0 11px;color:var(--text-muted);font-weight:600;font-size:16px;line-height:24px;border-bottom:2px solid transparent;margin-bottom:-1px}.tabs a:hover{text-decoration:none;color:var(--text)}.tabs a.active{color:var(--accent);border-bottom-color:var(--accent)}.tabs-sliding{position:relative}.tabs-sliding a.active{border-bottom-color:transparent}.tabs-bar{position:absolute;left:0;bottom:-1px;height:2px;background:var(--accent);border-radius:1px;transition:transform .28s cubic-bezier(.2,.7,.2,1),width .28s cubic-bezier(.2,.7,.2,1);pointer-events:none}.table{width:100%;border-collapse:separate;border-spacing:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.table td,.table th{padding:10px 14px;text-align:left;vertical-align:middle;border-bottom:1px solid var(--border);font-size:14px;line-height:21px}.table th{background:var(--header-table);color:var(--text-muted);font-size:12px;line-height:20px;font-weight:700}.table tbody tr:last-child td{border-bottom:none}.table td{height:63px}.table tr.clickable{cursor:pointer}.table tr.clickable:hover td{background:var(--surface-hover)}.table .row-tools{text-align:right;white-space:nowrap;width:1%}.row-tools .icon-btn{padding:4px}.row-tools .icon-btn+.icon-btn{margin-left:2px}.row-tools .icon-btn.danger{color:var(--danger)}.toolbar{display:flex;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}.toolbar .spacer{flex:1 1}.banner{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:var(--radius);margin-bottom:18px;font-size:14px}.banner-warn{background:var(--warn-soft);border:1px solid #f3e3c0;color:#92610a}.card{background:var(--surface);border-radius:var(--radius);padding:20px;margin-bottom:20px}.card h2{font-size:18px;line-height:28px;font-weight:600;margin-bottom:14px}.progress-track{height:8px;border-radius:99px;background:var(--soft);overflow:hidden;margin-top:10px}.progress-fill{height:100%;background:var(--accent);border-radius:99px;transition:width .2s}.file-picker{display:flex;flex-direction:column;gap:10px;align-items:flex-start}.file-pick-row{width:100%;border-radius:8px;padding:9px 11px;background:var(--bg)}.file-pick-info{display:flex;align-items:center;gap:10px;margin-bottom:6px}.file-pick-name{font-weight:600;font-size:14px;line-height:20px;flex:1 1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-pick-comment{width:100%;padding:9px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);outline:none;font-size:14px;line-height:22px}.file-pick-comment:focus{border-color:var(--accent)}.btn.disabled{opacity:.55;pointer-events:none}@media (max-width:1100px){:root{--panel-w:380px}}@media (max-width:900px){.app-shell{padding:0;gap:0}.sidebar{position:fixed;z-index:40;height:100%;left:0;top:0;border-radius:0 24px 24px 0;transform:translateX(-100%);transition:transform .2s ease;box-shadow:0 0 40px rgba(0,0,0,.15)}.sidebar.open{transform:translateX(0)}.sidebar-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.3);z-index:39}.menu-toggle{display:inline-flex!important;width:44px;height:44px;opacity:1}.menu-open{position:absolute;top:8px;left:8px;z-index:30}.sidebar .menu-toggle{margin:-8px -8px -8px 0}.collapse-btn,.sidebar-slot{display:none}.hello-screen{padding:72px 16px 24px}.hello-screen h1{font-size:30px;line-height:36px}.chat-header-inner,.sidebar-slot.collapsed~.main-area .chat-header-inner{padding-left:60px}.panel-slot,.panel-slot.open{width:0}.panel-slot .source-panel,.source-panel{position:fixed;z-index:50;right:0;left:auto;top:0;height:100%;width:min(100vw,440px);border-radius:0;box-shadow:0 0 40px rgba(0,0,0,.2)}}.menu-toggle{display:none}.btn{transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease,box-shadow .15s ease}.btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 3px 10px rgba(28,27,41,.1)}.btn:active:not(:disabled){transform:translateY(0) scale(.98);box-shadow:none}.btn-primary:hover:not(:disabled){box-shadow:0 4px 14px rgba(95,79,75,.35)}.btn-send{transition:background .15s ease,transform .15s ease,box-shadow .15s ease,opacity .15s ease}.btn-send:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 14px rgba(95,79,75,.3)}.btn-send:active:not(:disabled){transform:scale(.94)}.icon-btn{transition:background .15s ease,opacity .15s ease,transform .15s ease,color .15s ease}.icon-btn:hover{opacity:1;transform:scale(1.08)}.icon-btn:active{transform:scale(.92)}.cite-chip{transition:background .15s ease,transform .15s ease}.cite-chip:hover{transform:scale(1.15)}.chat-item,.foot-row{transition:background .15s ease}.transcript-seg{transition:background .12s ease,transform .12s ease}.transcript-seg:hover{transform:translateX(2px)}.table tr.clickable td{transition:background .12s ease}.tabs a{transition:color .15s ease,border-color .15s ease}@keyframes rise-in{0%{opacity:0;transform:translateY(10px)}}.msg{animation:rise-in .28s ease backwards}@keyframes panel-in{0%{opacity:0;transform:translateX(24px)}}.source-panel{animation:panel-in .28s ease}@keyframes panel-out{to{opacity:0;transform:translateX(24px)}}.source-panel.closing{animation:panel-out .2s ease forwards}.hello-screen>*{animation:rise-in .45s ease backwards}.hello-screen>:nth-child(2){animation-delay:.08s}.hello-screen>:nth-child(3){animation-delay:.16s}.page-inner{animation:rise-in .3s ease}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.01ms!important;transition-duration:.01ms!important}}.msg-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.msg-action-btn{border-color:var(--accent-soft);background:var(--accent-soft);color:var(--accent);font-weight:500}.msg-action-btn:hover:not(:disabled){background:var(--accent);border-color:var(--accent);color:#fff}.msg-action-client{background:var(--surface);border-color:var(--border);color:var(--text)}.msg-action-client:hover:not(:disabled){background:var(--soft);border-color:var(--border);color:var(--text)}.modal-wide{width:min(92vw,520px)}.meter{margin-bottom:18px}.meter:last-child{margin-bottom:0}.meter-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px;font-size:16px}.meter-title{font-weight:500}.meter-value{color:var(--text-muted);font-feature-settings:"tnum";font-variant-numeric:tabular-nums;text-align:right}.meter-bar{height:8px;border-radius:4px;background:var(--soft);overflow:hidden}.meter-bar>div{height:100%;border-radius:4px;background:var(--accent);transition:width .4s ease}.meter-bar.warn>div{background:var(--warn)}.meter-bar.full>div{background:var(--danger)}.meter-hint{margin-top:6px}.meter-total{margin-top:4px;font-size:16px}.plan-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px 16px;flex-wrap:wrap}.plan-card-head h2{margin-bottom:2px}.plan-card .tariff-pending{margin:14px 0 0}.plan-card .plan-residency{margin:10px 0 0}.invoices-table td{height:52px}.invoices-table .num{text-align:right;white-space:nowrap;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.modal.modal-tariffs{width:min(96vw,1100px);max-height:92vh;overflow-y:auto;padding:24px}.modal.modal-tariffs.narrow{width:min(92vw,640px)}.tariff-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.tariff-period{display:inline-flex;background:var(--soft);border-radius:10px;padding:3px;margin:4px 0 16px}.tariff-period button{border:0;background:none;padding:6px 14px;border-radius:8px;font-size:14px;color:var(--text-muted)}.tariff-period button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(28,27,41,.1)}.tariff-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));grid-gap:12px;gap:12px}.tariff-card{border:1px solid var(--border);border-radius:14px;padding:16px;display:flex;flex-direction:column;background:var(--surface)}.tariff-card.best{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}.tariff-card.current{background:var(--surface-hover)}.tariff-tag{align-self:flex-start;font-size:12px;line-height:18px;font-weight:600;color:var(--accent);background:var(--accent-soft);border:1px solid var(--accent-border);padding:1px 8px;border-radius:20px;margin-bottom:8px}.tariff-card h4{font-size:20px;line-height:26px;font-weight:600}.tariff-for{color:var(--text-muted);font-size:14px;line-height:20px;margin-top:2px;min-height:40px}.tariff-price{font-size:22px;line-height:28px;font-weight:600;margin:12px 0 10px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.tariff-price span{font-size:14px}.tariff-price small,.tariff-price span{font-weight:400;color:var(--text-muted)}.tariff-price small{display:block;font-size:13px;line-height:18px}.tariff-card ul{list-style:none;flex:1 1;margin-bottom:14px}.tariff-card li{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-top:1px solid var(--border);font-size:13.5px;line-height:19px}.tariff-card li span:first-child{color:var(--text-muted)}.tariff-card li span:last-child{text-align:right;font-weight:500}.tariff-card li.off span:last-child{color:var(--text-muted);font-weight:400}.tariff-pending{background:var(--warn-soft);color:#7c3d06;border-radius:10px;line-height:20px}.tariff-pending,.tariff-reason{padding:10px 12px;font-size:14px;margin-bottom:12px}.tariff-reason{background:var(--accent-soft);border:1px solid var(--accent-border);border-radius:10px}.tariff-note{margin-top:14px}.tariff-confirm,.tariff-sent{max-width:600px}.tariff-confirm p,.tariff-sent p{margin-bottom:12px;line-height:22px}.tariff-sent h4{font-size:18px;font-weight:600;margin-bottom:6px}b,strong{font-weight:600}@media (max-width:900px){.chat-header-actions{gap:6px}.chat-header-actions .btn{padding:6px 10px;font-size:14px}.chat-header-actions .btn.btn-more{width:40px}.chat-header h1{font-size:24px;line-height:32px}.page-inner{padding:64px 16px 48px}.tabs{overflow-x:auto;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tabs a{white-space:nowrap;flex-shrink:0}.table{display:block;overflow-x:auto}}.page-head{display:flex;align-items:flex-start;gap:12px 16px;flex-wrap:wrap;margin-bottom:20px}.page-head.catalog-head{align-items:baseline;flex-wrap:nowrap;margin-bottom:16px}.catalog-head h1{flex:1 1;min-width:0;margin-bottom:0;overflow-wrap:normal}.catalog-head .page-count{flex-shrink:0;text-align:right}.page-head .titles{flex:1 1 320px;min-width:0}.page-head h1{margin-bottom:4px;overflow-wrap:anywhere}.page-head .btn{flex-shrink:0}.back-link{display:inline-block;font-size:14px;color:var(--text-muted);margin-bottom:12px}.back-link:hover{color:var(--text);text-decoration:none}.catalog-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}.catalog-filters .chips{flex:1 1}.search-input{width:300px;max-width:100%;padding:9px 12px;height:44px;border:1px solid var(--border);border-radius:8px;background:var(--surface);outline:none}.search-input:focus{border-color:var(--accent)}.chips{display:flex;gap:6px;flex-wrap:wrap}.chip{display:inline-flex;align-items:center;height:40px;padding:0 12px;border-radius:99px;border:1px solid var(--surface);background:var(--surface);font-size:14px;line-height:21px;font-weight:500;transition:background .15s ease,border-color .15s ease,color .15s ease}.chip:hover{border-color:var(--border)}.chip .n{margin-left:6px;color:var(--text-muted);font-weight:400;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.chip.active{background:var(--text);border-color:var(--text);color:#fff}.chip.active .n{color:rgba(255,255,255,.7)}.study-list{display:flex;flex-direction:column;gap:10px}.study-row{display:block;padding:17px 19px;color:var(--text);background:var(--surface);border-radius:var(--radius);transition:box-shadow .15s ease}.study-row:hover{text-decoration:none;box-shadow:0 4px 16px rgba(28,27,41,.07)}.study-row-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.study-row h2{font-size:20px;font-weight:600;line-height:28px;overflow-wrap:anywhere}.study-row .badge{flex-shrink:0}.study-row-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:5px;font-size:14px;line-height:21px;color:var(--text-muted)}.study-row-desc{margin-top:8px;font-size:16px;line-height:24px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.empty-state{padding:40px 24px;text-align:center;background:var(--surface);border:1px dashed var(--border);border-radius:var(--radius)}.empty-state .empty-title{font-size:18px;line-height:28px;font-weight:600;margin-bottom:5px}.empty-state .muted{max-width:460px;margin:0 auto}.empty-state .btn{margin-top:16px}.study-meta{display:flex;align-items:center;gap:4px 14px;flex-wrap:wrap;font-size:16px;color:var(--text-muted)}.study-desc{white-space:pre-wrap;overflow-wrap:anywhere}.summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.summary-head h2{margin:0}.summary-disclaimer{margin-bottom:14px;padding:10px 14px;border-radius:10px;background:var(--warn-soft);font-size:14px;line-height:21px}.summary-progress{display:flex;align-items:center;gap:8px;color:var(--text-muted);margin-bottom:10px}.summary-lead{font-size:17px;line-height:26px;margin-bottom:12px}.summary-card h3{font-size:12px;line-height:20px;font-weight:600;text-transform:uppercase;letter-spacing:.38px;color:var(--text-muted);margin:18px 0 6px}.summary-findings{margin:0;padding-left:22px;display:grid;grid-gap:8px;gap:8px}.summary-findings>li{padding-left:2px}.summary-finding{all:unset;cursor:pointer;display:inline;line-height:24px;overflow-wrap:anywhere}.summary-finding:hover{color:var(--accent)}.summary-finding:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}.summary-refs{white-space:nowrap}.summary-ref{display:inline-block;margin-left:3px;padding:0 5px;border-radius:6px;background:var(--soft);color:var(--text-muted);font-size:12px;line-height:18px;vertical-align:1px}.summary-grounds{margin:6px 0 4px;padding-left:0;list-style:none;display:grid;grid-gap:6px;gap:6px;font-size:14px;line-height:21px}.summary-grounds>li{padding:8px 10px;border-radius:8px;background:var(--soft);overflow-wrap:anywhere}.summary-grounds .summary-ref{margin:0 4px 0 0;background:var(--surface)}.summary-quote{all:unset;cursor:pointer;display:block;margin-top:4px;font-style:italic;overflow-wrap:anywhere}.summary-quote:hover{color:var(--accent)}.summary-quote .muted{font-style:normal}.summary-list{margin:0;padding-left:20px;display:grid;grid-gap:4px;gap:4px}.summary-details{margin-top:14px}.summary-details>summary{cursor:pointer;color:var(--text-muted);font-size:14px}.summary-open{margin-top:8px}.summary-footer{margin-top:16px}.study-inventory{margin:-4px 0 14px;color:var(--text-muted);overflow-wrap:anywhere}.study-inventory-note{margin:-8px 0 14px}.file-group+.file-group{margin-top:18px}.file-group h3{font-size:12px;line-height:20px;font-weight:600;text-transform:uppercase;letter-spacing:.38px;color:var(--text-muted);margin-bottom:4px}.file-row{display:flex;align-items:center;gap:12px;margin:0 -10px;padding:0 10px;border-radius:8px;transition:background .12s ease}.file-row:hover{background:var(--surface-hover)}.file-row.active{background:var(--accent-soft)}.file-main{flex:1 1;min-width:0;padding:10px 0;display:flex;flex-direction:column;gap:2px;border:none;background:transparent;text-align:left}.file-name{font-weight:500;color:var(--accent);overflow-wrap:anywhere}.file-note{margin:0}.file-details,.file-note{font-size:14px;color:var(--text-muted)}.file-details{flex-shrink:0;white-space:nowrap}@media (min-width:901px) and (max-width:1280px){.sidebar-slot.collapsed~.main-area .page-inner{padding-top:88px}}@media (max-width:900px){.search-input{width:100%}.page-head.catalog-head{flex-wrap:wrap;row-gap:0}.catalog-head .page-count{flex-basis:100%;text-align:left}.field-pair{grid-template-columns:1fr;gap:0}.file-row{flex-wrap:wrap;row-gap:0}.file-main{flex-basis:100%;padding-bottom:2px}.file-details{padding-bottom:10px;flex:1 1}.file-row .icon-btn{margin-bottom:8px}}.case-line{display:inline-block;font-size:13px;color:var(--text-muted);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.case-id{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;letter-spacing:.02em;white-space:nowrap}.link-btn{background:none;border:0;padding:0;font:inherit;color:var(--text-muted);cursor:pointer;text-decoration:underline;text-underline-offset:3px}.link-btn:hover{color:var(--text)}.chat-error{display:flex;flex-direction:column;gap:4px}.chat-error .error-text{margin:0}.chat-error-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.msg-failed{opacity:.55;align-self:flex-end}.msg-report{margin-top:10px;font-size:13px}.msg-note{margin-top:12px;padding:8px 12px;border-radius:10px;background:var(--warn-soft);color:var(--text);font-size:13px;line-height:19px}.file-problem{display:flex;flex-direction:column;gap:2px;color:var(--danger);font-size:14px}.file-problem.retrying{color:var(--warn)}.file-problem .case-line{color:var(--text-muted)}.file-journal{margin-top:6px}.file-journal ol{list-style:none;margin:6px 0 0;padding:0;font-size:13px;display:grid;grid-gap:3px;gap:3px}.file-journal li{display:grid;grid-template-columns:auto 1fr;grid-gap:0 10px;gap:0 10px;line-height:18px}.file-journal li.bad .journal-step{color:var(--danger)}.file-journal .journal-time{color:var(--text-muted);white-space:nowrap;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.journal-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}.journal-toolbar input{min-width:280px}.incident-card .incident-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.incident-card p{margin:6px 0}pre.tech{background:var(--soft);border-radius:8px;padding:10px 12px;font-size:12px;overflow-x:auto;white-space:pre-wrap;word-break:break-word}.table.compact td{height:auto;padding-top:6px;padding-bottom:6px;font-size:13px}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;word-break:break-all}.input,.input-sm{border:1px solid var(--border);border-radius:var(--radius-input,12px);background:var(--surface);padding:9px 12px;font:inherit;font-size:14px;color:var(--text)}.input:focus{outline:none;border-color:var(--accent)}.check-row,.radio-row{display:flex;align-items:flex-start;gap:8px;font-size:14px;cursor:pointer}.check-row input,.radio-row input{margin-top:3px;width:auto;flex:none}.journal-table td:first-child,.journal-table td:nth-child(3){white-space:nowrap}.report-kinds{display:grid;grid-gap:6px;gap:6px;margin:10px 0 14px}.block{display:block}.reports{display:grid;grid-gap:12px;gap:12px}.report-item{border-top:1px solid var(--border);padding-top:12px}.report-item:first-child{border-top:0;padding-top:0}.report-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.report-item p{margin:6px 0 0}.report-reply{margin-top:8px;padding:8px 12px;background:var(--soft);border-radius:8px}.domain-current{font-size:18px;font-weight:600;margin-bottom:14px}.domain-row{display:flex;gap:10px;align-items:stretch;flex-wrap:wrap}.domain-input{flex:1 1;min-width:240px;max-width:480px;display:flex;align-items:center;border:1px solid var(--border);border-radius:8px;background:var(--surface);overflow:hidden}.domain-input:focus-within{border-color:var(--accent)}.domain-input input{flex:1 1;min-width:0;border:0;outline:none;padding:10px 12px;background:transparent}.domain-input span{padding:0 12px;color:var(--text-muted);white-space:nowrap}.domain-check{min-height:22px;margin:6px 0 8px;font-size:14px}.domain-check.ok{color:var(--success)}.domain-check.bad{color:var(--danger)}.domain-note{border-radius:10px;padding:10px 12px;font-size:14px;line-height:21px;background:var(--soft);margin-bottom:12px}.domain-note.ok{background:var(--success-soft);color:#14532d}.domain-note.err{background:var(--danger-soft);color:#9f1c1c}.spinner-inline{display:inline-block;width:12px;height:12px;border:2px solid;border-right:2px solid transparent;border-radius:50%;animation:spin .7s linear infinite;vertical-align:-1px;margin-right:4px}@keyframes spin{to{transform:rotate(1turn)}}.section-head{font-size:18px;line-height:28px;font-weight:600;margin:8px 0 12px}