/*
 * PentaMind v2 stylesheet
 * Source: /opt/pentamind/design_v2/extracted/login.css
 * Build: design_v2/build_css.py (font UUIDs -> /static/fonts/font__<8>.woff2,
 *        demo-hint rules stripped, ready for Django collectstatic).
 * DO NOT EDIT directly — re-run build_css.py after bundle updates.
 */

/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/font__f42b513c.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/font__a9ffce79.woff2") format('woff2');
  unicode-range: U+0000-00FF, 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;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/font__129cf16c.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/font__81079df2.woff2") format('woff2');
  unicode-range: U+0000-00FF, 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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/static/fonts/font__7fb447a9.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/static/fonts/font__bb36aeb0.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/static/fonts/font__9f15fcf8.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/static/fonts/font__6b11db75.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/static/fonts/font__d750d72e.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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/static/fonts/font__73af1d00.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/static/fonts/font__e3a50d47.woff2") format('woff2');
  unicode-range: U+0000-00FF, 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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/font__7fb447a9.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/font__bb36aeb0.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/font__9f15fcf8.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/font__6b11db75.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/font__d750d72e.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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/font__73af1d00.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/font__e3a50d47.woff2") format('woff2');
  unicode-range: U+0000-00FF, 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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/font__7fb447a9.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/font__bb36aeb0.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/font__9f15fcf8.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/font__6b11db75.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/font__d750d72e.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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/font__73af1d00.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/font__e3a50d47.woff2") format('woff2');
  unicode-range: U+0000-00FF, 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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/font__7fb447a9.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/font__bb36aeb0.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/font__9f15fcf8.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/font__6b11db75.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/font__d750d72e.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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/font__73af1d00.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/font__e3a50d47.woff2") format('woff2');
  unicode-range: U+0000-00FF, 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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/font__7fb447a9.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/font__bb36aeb0.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/font__9f15fcf8.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/font__6b11db75.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/font__d750d72e.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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/font__73af1d00.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/font__e3a50d47.woff2") format('woff2');
  unicode-range: U+0000-00FF, 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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/font__d55d0516.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/font__ff812e46.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/font__76a30b9d.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/font__a2c7a1be.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;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/font__e0109d38.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/font__6a3afe8e.woff2") format('woff2');
  unicode-range: U+0000-00FF, 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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/font__d55d0516.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/font__ff812e46.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/font__76a30b9d.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/font__a2c7a1be.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;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/font__e0109d38.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/font__6a3afe8e.woff2") format('woff2');
  unicode-range: U+0000-00FF, 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;
}




/* ========== bundle style ========== */

/* ==========================================================
   PentaMind — Penta Enerji AI Asistanı
   Design language: dark teal glassmorphism + Instrument Serif
   ========================================================== */

:root {
  --bg-0: #07131a;
  --bg-1: #0b1c25;
  --bg-2: #0f2731;
  --card: rgba(14, 34, 44, 0.72);
  --card-2: rgba(18, 42, 54, 0.6);
  --card-border: rgba(115, 176, 190, 0.14);
  --card-border-strong: rgba(115, 176, 190, 0.28);
  --ink: #e7f2f4;
  --ink-dim: #8fa7ad;
  --ink-mute: #5b7880;
  --ink-faint: #3d5a62;
  --accent: #73b0be;
  --accent-2: #9ccad4;
  --accent-deep: #3a7684;
  --accent-glow: rgba(115, 176, 190, 0.5);
  --danger: #e87a6b;
  --ok: #7dd3a2;
  --warn: #e8c46b;
  --ring: rgba(115, 176, 190, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }
body {
  font-family: "Inter", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }

/* ============= App shell ============= */
.app { position: fixed; inset: 0; overflow: hidden; }

/* ============= Animated background ============= */
.bg-layer {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(115,176,190,0.14), transparent 60%),
    radial-gradient(ellipse 70% 60% at 90% 100%, rgba(58,118,132,0.18), transparent 60%),
    linear-gradient(180deg, #061017 0%, #08151d 50%, #050c12 100%);
}
.grain {
  position: absolute; inset: -20%;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.5;
  pointer-events: none;
}
.flow, .orbit { display: none !important; }
.neural {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
  z-index: 1;
}
.neural-svg {
  width: 100%; height: 100%;
  max-width: 1600px;
  display: block;
}
.bg-calm .neural-svg { opacity: 0.35; }
.bg-calm .net-node g { animation: none !important; }
.bg-calm .net-node circle[opacity="0.5"] { animation: none !important; opacity: 0.25 !important; }
.bg-calm circle[fill="#9ccad4"][filter], .bg-calm circle[fill="#73b0be"][filter] { display: none; }
.bg-calm .net-hub circle[style*="hub-pulse"] { animation: none !important; opacity: 0.3 !important; }
.bg-calm .net-hub circle[style*="hub-rotate"] { animation-duration: 60s !important; }
.bg-calm .net-hub circle[style*="hub-rotate-r"] { animation-duration: 60s !important; }
@keyframes node-breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.45); opacity: 0; }
}
@keyframes node-drift-0 {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(60px, -40px); }
  40%  { transform: translate(-30px, 70px); }
  60%  { transform: translate(-80px, -20px); }
  80%  { transform: translate(40px, 50px); }
  100% { transform: translate(0, 0); }
}
@keyframes node-drift-1 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-70px, 50px); }
  50%  { transform: translate(80px, -30px); }
  75%  { transform: translate(20px, 80px); }
  100% { transform: translate(0, 0); }
}
@keyframes node-drift-2 {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(50px, 80px); }
  40%  { transform: translate(-60px, -50px); }
  60%  { transform: translate(80px, -40px); }
  80%  { transform: translate(-40px, 60px); }
  100% { transform: translate(0, 0); }
}
@keyframes node-drift-3 {
  0%   { transform: translate(0, 0); }
  30%  { transform: translate(-50px, -70px); }
  60%  { transform: translate(70px, 40px); }
  100% { transform: translate(0, 0); }
}
@keyframes hub-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 0.25; }
}
@keyframes hub-rotate {
  to { transform: rotate(360deg); }
}
@keyframes hub-rotate-r {
  to { transform: rotate(-360deg); }
}
.flow-disabled {
  position: absolute; inset: 0; opacity: 0.45;
  pointer-events: none;
}
.flow svg { width: 100%; height: 100%; display: block; }
.flow path {
  stroke: var(--accent);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 4 8;
  animation: flow-dash 14s linear infinite;
}
@keyframes flow-dash { to { stroke-dashoffset: -240; } }

.orbit {
  position: absolute;
  width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(115,176,190,0.08);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.orbit.o2 { width: 760px; height: 760px; border-color: rgba(115,176,190,0.05); }
.orbit.o3 { width: 1040px; height: 1040px; border-color: rgba(115,176,190,0.03); }

/* ============= Topbar ============= */
.topbar {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid rgba(115,176,190,0.06);
  background: linear-gradient(180deg, rgba(7,19,26,0.6), transparent);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 54px; height: 54px; border-radius: 13px;
  background: rgba(115,176,190,0.06);
  border: 1px solid var(--card-border);
  display: grid; place-items: center; overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.brand-mark img { width: 42px; height: 42px; object-fit: contain; }
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(115,176,190,0.2), transparent 70%);
  pointer-events: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .product {
  font-family: "Instrument Serif", serif;
  font-size: 26px; font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.brand-text .product em { color: var(--accent); font-style: italic; }
.brand-text .org {
  font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.18em;
  margin-top: 4px;
  font-weight: 600;
}

.top-actions { display: flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px; border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  color: var(--ink-dim);
  font-size: 12px; font-weight: 500;
  transition: all 0.15s ease;
}
.pill:hover { color: var(--ink); border-color: var(--card-border-strong); }
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  color: var(--ink-dim);
  display: grid; place-items: center;
  transition: all 0.15s ease;
}
.icon-btn:hover { color: var(--ink); border-color: var(--card-border-strong); background: rgba(115,176,190,0.06); }

.user-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  transition: all 0.15s;
}
.user-chip:hover { border-color: var(--card-border-strong); }
.user-chip .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
  color: #07131a;
  letter-spacing: 0.02em;
}
.user-chip .name { font-size: 12px; font-weight: 500; color: var(--ink-dim); }
.user-chip svg { color: var(--ink-mute); }

/* ============= Auth screens (centered card) ============= */
.stage-auth {
  position: relative; z-index: 3;
  height: calc(100vh - 91px - 36px);
  display: grid;
  place-items: center;
  padding: 20px 32px 60px;
  overflow: auto;
}
.card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 -1px 0 rgba(0,0,0,0.4) inset;
  padding: 38px 38px 30px;
  position: relative;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(115,176,190,0.08), transparent 40%);
  pointer-events: none;
}
.card-watermark {
  position: absolute;
  top: 24px; left: 50%;
  transform: translateX(-50%);
  width: 220px; height: 220px;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 40px var(--accent-glow));
  z-index: 0;
}
.card-watermark img { width: 100%; height: 100%; object-fit: contain; }

.card-head { margin-bottom: 24px; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent-2);
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(115,176,190,0.09);
  border: 1px solid rgba(115,176,190,0.18);
}
.eyebrow .pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
.title {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.title em { color: var(--accent); font-style: italic; }
.sub {
  margin: 0; color: var(--ink-dim);
  font-size: 13.5px; line-height: 1.55;
  text-wrap: pretty;
}
.sub .ink { color: var(--ink); font-weight: 600; }

.ghost-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none;
  color: var(--ink-mute); font-size: 12px; font-weight: 500;
  padding: 0; margin: 0 0 18px;
  letter-spacing: 0.01em;
  transition: color 0.15s;
  cursor: pointer;
}
.ghost-back:hover { color: var(--accent-2); }

.field-label {
  display: block;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 600;
  margin-bottom: 10px;
}

.phone-field {
  display: flex; align-items: stretch;
  height: 54px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: all 0.18s ease;
}
.phone-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
  background: rgba(115,176,190,0.04);
}
.phone-field.err { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(232,122,107,0.2); }
.phone-field .cc {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 14px;
  font-size: 14px; font-weight: 500; color: var(--ink-dim);
  border-right: 1px solid var(--card-border);
  font-variant-numeric: tabular-nums;
  background: rgba(0,0,0,0.15);
}
.phone-field input {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  padding: 0 14px;
  color: var(--ink);
  font-size: 17px; font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.phone-field input::placeholder { color: var(--ink-faint); font-weight: 400; letter-spacing: 0.08em; }

.flag {
  width: 18px; height: 12px; border-radius: 2px; overflow: hidden;
  position: relative; display: inline-block;
  background: #e33a42;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}
.flag::before {
  content: ""; position: absolute;
  left: 4px; top: 2.5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #e33a42;
  box-shadow: inset 1.6px 0 0 #fff;
}
.flag::after {
  content: ""; position: absolute;
  left: 8px; top: 4px;
  width: 4px; height: 4px;
  background:
    linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%);
  background-size: 100% 50%, 100% 50%;
  background-repeat: no-repeat;
  background-position: top, bottom;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%;
  height: 54px; border-radius: 12px;
  border: none;
  font-size: 14.5px; font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.18s cubic-bezier(0.2,0.8,0.2,1);
  position: relative;
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #071017;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 -1px 0 rgba(0,0,0,0.2) inset,
    0 10px 30px rgba(115,176,190,0.22);
}
.btn.primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 -1px 0 rgba(0,0,0,0.2) inset,
    0 14px 36px rgba(115,176,190,0.32);
}
.btn.primary:not(:disabled):active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.loading { background: linear-gradient(180deg, #2a4953, #1a323a); color: var(--ink-dim); }

.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hint {
  margin-top: 18px;
  font-size: 11.5px; color: var(--ink-mute);
  display: flex; align-items: flex-start; gap: 6px;
  line-height: 1.5;
}
.hint svg { flex-shrink: 0; margin-top: 2px; }

.err-msg {
  margin: 8px 0 0;
  color: var(--danger); font-size: 12.5px; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.err-msg::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--danger); }

/* OTP grid */
.otp-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 18px;
}
.otp-row input {
  height: 60px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.02);
  color: var(--ink);
  text-align: center;
  font-size: 24px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: all 0.15s;
}
.otp-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
  background: rgba(115,176,190,0.06);
}
.otp-row input.filled { border-color: rgba(115,176,190,0.4); background: rgba(115,176,190,0.04); }
.otp-row.err input { border-color: var(--danger); }

.resend-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px;
  font-size: 12.5px;
}
.linkish {
  background: transparent; border: none;
  color: var(--accent-2); font-weight: 600;
  padding: 0; cursor: pointer;
  font-family: inherit; font-size: 12.5px;
}
.linkish:hover:not(:disabled) { color: var(--ink); }
.linkish:disabled, .linkish.dim { color: var(--ink-mute); cursor: default; font-weight: 500; }
.shake { animation: shk 0.4s; }
@keyframes shk { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

.fade-enter { animation: fadeUp 0.5s cubic-bezier(0.2,0.8,0.2,1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: none; } }

/* footer strip */
.footer {
  position: relative; z-index: 4;
  padding: 9px 32px;
  height: 36px; box-sizing: border-box;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--ink-mute);
  border-top: 1px solid rgba(255,255,255,0.04);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3));
}
.footer .addr { font-family: "JetBrains Mono", monospace; letter-spacing: 0.01em; font-size: 10.5px; flex: 1; min-width: 0; }
.footer .meta { display: flex; gap: 18px; align-items: center; flex-shrink: 0; }
.footer .meta .credit strong { color: var(--accent-2); font-weight: 600; }
.footer .meta .kvkk { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.footer .meta .kvkk:hover { color: #b8e0e6; }

/* ============= Chat layout ============= */
.chat-shell {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: 280px 1fr;
  height: calc(100vh - 91px - 36px);
  overflow: hidden;
}

/* ----- Sidebar ----- */
.sidebar {
  border-right: 1px solid var(--card-border);
  background: rgba(7, 17, 23, 0.6);
  backdrop-filter: blur(14px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.sidebar-head {
  padding: 16px 18px 12px;
}
.new-chat-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; height: 44px;
  padding: 0 14px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(115,176,190,0.14), rgba(115,176,190,0.06));
  border: 1px solid rgba(115,176,190,0.22);
  color: var(--ink);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.15s;
}
.new-chat-btn:hover {
  border-color: rgba(115,176,190,0.4);
  background: linear-gradient(180deg, rgba(115,176,190,0.2), rgba(115,176,190,0.08));
  transform: translateY(-1px);
}
.new-chat-btn .plus {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(115,176,190,0.2);
  display: grid; place-items: center;
  color: var(--accent-2);
}

.sidebar-search {
  padding: 0 18px 14px;
  position: relative;
}
.sidebar-search input {
  width: 100%; height: 36px;
  padding: 0 12px 0 34px;
  border-radius: 9px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  color: var(--ink);
  font-size: 12.5px;
  outline: none;
  transition: all 0.15s;
}
.sidebar-search input::placeholder { color: var(--ink-mute); }
.sidebar-search input:focus { border-color: var(--accent); background: rgba(115,176,190,0.04); }
.sidebar-search svg {
  position: absolute; left: 30px; top: 50%; transform: translateY(-50%);
  color: var(--ink-mute); pointer-events: none;
}

.history-scroll {
  flex: 1; overflow-y: auto;
  padding: 4px 10px 16px;
}
.history-group { margin-bottom: 14px; }
.history-group-label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 600;
  padding: 8px 10px 6px;
}
.history-item {
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  color: var(--ink-dim);
  font-size: 12.5px; font-weight: 500;
  text-align: left;
  line-height: 1.4;
  transition: all 0.12s;
  cursor: pointer;
  position: relative;
}
.history-item:hover {
  background: rgba(115,176,190,0.05);
  color: var(--ink);
}
.history-item.active {
  background: rgba(115,176,190,0.1);
  border-color: rgba(115,176,190,0.18);
  color: var(--ink);
}
.history-item.active::before {
  content: ""; position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 2px; border-radius: 2px;
  background: var(--accent);
}
.history-item .h-icon {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(115,176,190,0.08);
  display: grid; place-items: center;
  color: var(--accent-2);
  flex-shrink: 0;
  margin-top: 1px;
}
.history-item .h-body { flex: 1; min-width: 0; }
.history-item .h-title {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 500;
}
.history-item .h-meta {
  font-size: 10.5px; color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  font-family: "JetBrains Mono", monospace;
}

.sidebar-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--card-border);
  display: flex; flex-direction: column; gap: 10px;
}
.kb-card {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(115,176,190,0.05);
  border: 1px solid rgba(115,176,190,0.14);
}
.kb-card .kb-icon {
  width: 26px; height: 26px; border-radius: 7px;
  background: rgba(115,176,190,0.18);
  display: grid; place-items: center;
  color: var(--accent-2);
  flex-shrink: 0;
}
.kb-card .kb-text { flex: 1; }
.kb-card .kb-t { font-size: 11.5px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.kb-card .kb-s { font-size: 10.5px; color: var(--ink-mute); font-family: "JetBrains Mono", monospace; }

/* ----- Main chat ----- */
.chat-main {
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
}

.chat-scroll {
  flex: 1; overflow-y: auto;
  padding: 0;
}

/* Welcome (empty state) */
.welcome {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 40px 40px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.composer-hint {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.composer-hint svg { color: var(--accent-2); }
.mini-hub {
  display: grid; place-items: center;
  margin: 0 auto 22px;
  filter: drop-shadow(0 0 24px rgba(115,176,190,0.35));
}
.mini-hub svg { display: block; }
.welcome-orb { display: none; }
.welcome > h1 { margin-bottom: 28px; }
.welcome-orb-core {
  position: absolute; inset: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.4), transparent 50%),
    linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow:
    0 0 40px rgba(115,176,190,0.5),
    0 0 80px rgba(115,176,190,0.25),
    inset 0 -10px 20px rgba(0,0,0,0.3);
  animation: orb-breathe 4s ease-in-out infinite;
}
@keyframes orb-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(115,176,190,0.5), 0 0 80px rgba(115,176,190,0.25), inset 0 -10px 20px rgba(0,0,0,0.3); }
  50% { transform: scale(1.04); box-shadow: 0 0 50px rgba(115,176,190,0.7), 0 0 100px rgba(115,176,190,0.35), inset 0 -10px 20px rgba(0,0,0,0.3); }
}
.welcome-orb-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(115,176,190,0.18);
  animation: orb-spin 20s linear infinite;
}
.welcome-orb-ring::before, .welcome-orb-ring::after {
  content: ""; position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(115,176,190,0.12);
}
.welcome-orb-ring::before { inset: -10px; border-color: rgba(115,176,190,0.08); }
.welcome-orb-ring::after  { inset: -22px; border-color: rgba(115,176,190,0.04); }
@keyframes orb-spin { to { transform: rotate(360deg); } }
.welcome-orb-tick {
  position: absolute;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}
.welcome-orb-tick.t1 { top: -2px; left: 50%; transform: translateX(-50%); }
.welcome-orb-tick.t2 { right: -12px; top: 50%; transform: translateY(-50%); }
.welcome-orb-tick.t3 { bottom: -22px; left: 30%; opacity: 0.6; }

.welcome-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(115,176,190,0.08);
  border: 1px solid rgba(115,176,190,0.2);
  color: var(--accent-2);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase;
}
.welcome h1 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 14px;
}
.welcome h1 em { color: var(--accent); font-style: italic; }
.welcome .lead {
  color: var(--ink-dim);
  font-size: 15px; line-height: 1.55;
  max-width: 560px;
  margin: 0 0 36px;
  text-wrap: pretty;
}

.suggest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 28px;
}
.suggest {
  text-align: left;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: var(--card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: all 0.18s;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 140px;
  position: relative;
  overflow: hidden;
}
.suggest::after {
  content: ""; position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(115,176,190,0.06), transparent 50%);
  pointer-events: none;
}
.suggest:hover {
  border-color: rgba(115,176,190,0.32);
  transform: translateY(-2px);
  background: rgba(115,176,190,0.06);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.suggest .s-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: rgba(115,176,190,0.14);
  display: grid; place-items: center;
  color: var(--accent-2);
}
.suggest .s-tag {
  font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--accent-2);
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 2px;
}
.suggest .s-q {
  font-size: 14px; line-height: 1.4; color: var(--ink);
  font-weight: 500;
  text-wrap: pretty;
}
.suggest .s-go {
  margin-top: auto;
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.suggest:hover .s-go { color: var(--accent-2); }

.cap-strip {
  display: flex; gap: 22px;
  font-size: 11px; color: var(--ink-mute);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.cap-strip span { display: inline-flex; align-items: center; gap: 6px; }
.cap-strip svg { color: var(--accent); }

/* ----- Messages ----- */
.messages {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 40px 40px;
  display: flex; flex-direction: column; gap: 28px;
}
.msg { display: flex; gap: 14px; align-items: flex-start; }
.msg .avatar {
  width: 32px; height: 32px; border-radius: 9px;
  flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.03em;
}
.msg.user .avatar {
  background: linear-gradient(135deg, #3a5660, #1f3942);
  color: var(--ink);
  border: 1px solid var(--card-border);
}
.msg.ai .avatar {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #07131a;
  box-shadow: 0 4px 14px rgba(115,176,190,0.3);
  position: relative;
}
.msg.ai .avatar::after {
  content: ""; position: absolute; inset: 2px;
  border-radius: 7px;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.5), transparent 50%);
  pointer-events: none;
}
.msg .body { flex: 1; min-width: 0; }
.msg .meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  margin-bottom: 6px;
}
.msg .meta .who { font-weight: 600; color: var(--ink); }
.msg .meta .time {
  color: var(--ink-mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
}
.msg .meta .badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: 999px;
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(115,176,190,0.12);
  color: var(--accent-2);
  border: 1px solid rgba(115,176,190,0.18);
}

.msg .text {
  color: var(--ink);
  font-size: 14.5px; line-height: 1.6;
  text-wrap: pretty;
}
.msg .text p { margin: 0 0 10px; }
.msg .text p:last-child { margin-bottom: 0; }
.msg .text strong { color: var(--ink); font-weight: 600; }
.msg .text .cite {
  display: inline-block;
  vertical-align: super;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(115,176,190,0.14);
  border: 1px solid rgba(115,176,190,0.22);
  border-radius: 5px;
  padding: 1px 5px;
  margin: 0 1px;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  line-height: 1.2;
  transition: all 0.12s;
}
.msg .text .cite:hover { background: rgba(115,176,190,0.28); color: var(--ink); }

.msg.user .text {
  background: rgba(255,255,255,0.04);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  color: var(--ink-dim);
  font-size: 14px;
}

/* AI answer card with table */
.ans-table {
  margin: 14px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: rgba(7,17,23,0.5);
  backdrop-filter: blur(8px);
}
.ans-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ans-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 600;
  border-bottom: 1px solid var(--card-border);
  background: rgba(115,176,190,0.04);
}
.ans-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ans-table tr:last-child td { border-bottom: none; }
.ans-table .num { font-family: "JetBrains Mono", monospace; color: var(--accent-2); }
.ans-table .status-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500;
}
.ans-table .status-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 6px var(--ok);
}
.ans-table .status-dot.warn::before { background: var(--warn); box-shadow: 0 0 6px var(--warn); }

/* Source cards */
.sources {
  margin-top: 16px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(7, 17, 23, 0.4);
  overflow: hidden;
}
.sources-head {
  padding: 11px 14px;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 600;
  border-bottom: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: space-between;
}
.sources-head .count {
  background: rgba(115,176,190,0.14);
  color: var(--accent-2);
  padding: 2px 8px; border-radius: 999px;
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0;
}
.source-list { display: flex; flex-direction: column; }
.source-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  cursor: pointer;
  transition: background 0.12s;
}
.source-item:last-child { border-bottom: none; }
.source-item:hover { background: rgba(115,176,190,0.04); }
.source-item .src-num {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(115,176,190,0.14);
  color: var(--accent-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.source-item .src-body { flex: 1; min-width: 0; }
.source-item .src-t {
  font-size: 12.5px; color: var(--ink); font-weight: 500;
  line-height: 1.35;
  margin-bottom: 3px;
}
.source-item .src-meta {
  font-size: 10.5px; color: var(--ink-mute);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  display: flex; gap: 10px; align-items: center;
}
.source-item .src-meta .sep { opacity: 0.5; }
.source-item .src-arrow { color: var(--ink-mute); flex-shrink: 0; margin-top: 4px; }
.source-item:hover .src-arrow { color: var(--accent-2); }

/* Tool calls / actions row under AI message */
.msg-actions {
  display: flex; gap: 6px;
  margin-top: 12px;
}
.action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 10px;
  border-radius: 7px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  color: var(--ink-mute);
  font-size: 11px; font-weight: 500;
  transition: all 0.12s;
}
.action-btn:hover { color: var(--ink); border-color: var(--card-border-strong); background: rgba(115,176,190,0.06); }

/* Thinking / typing animation */
.thinking {
  display: flex; align-items: flex-start; gap: 14px;
}
.thinking .body {
  flex: 1;
  background: rgba(7,17,23,0.5);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px 18px;
}
.thinking-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.thinking-pulse {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), var(--accent-deep));
  box-shadow: 0 0 12px var(--accent-glow);
  animation: think-pulse 1.4s ease-in-out infinite;
}
@keyframes think-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}
.think-steps {
  display: flex; flex-direction: column; gap: 9px;
}
.think-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
  color: var(--ink-mute);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: step-in 0.4s ease-out forwards;
}
.think-step.s1 { animation-delay: 0.1s; }
.think-step.s2 { animation-delay: 1.0s; }
.think-step.s3 { animation-delay: 2.0s; }
.think-step.s4 { animation-delay: 3.0s; }
@keyframes step-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.think-step .step-icon {
  width: 18px; height: 18px; border-radius: 5px;
  background: rgba(115,176,190,0.1);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--ink-mute);
}
.think-step.done { color: var(--ink-dim); }
.think-step.done .step-icon {
  background: rgba(125,211,162,0.12);
  color: var(--ok);
}
.think-step.active { color: var(--ink); }
.think-step.active .step-icon {
  background: rgba(115,176,190,0.2);
  color: var(--accent-2);
}
.think-step.active .step-icon svg {
  animation: spin 0.9s linear infinite;
}
.think-step .ellipsis {
  display: inline-flex; gap: 3px; margin-left: 4px;
}
.think-step .ellipsis i {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--accent);
  animation: dot-fade 1.2s ease-in-out infinite;
}
.think-step .ellipsis i:nth-child(2) { animation-delay: 0.15s; }
.think-step .ellipsis i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-fade {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* ============= Composer ============= */
.composer-wrap {
  border-top: 1px solid var(--card-border);
  background: linear-gradient(180deg, transparent, rgba(7,17,23,0.7));
  padding: 16px 40px 24px;
  position: relative;
  z-index: 2;
}
.composer-wrap::before {
  content: "";
  position: absolute;
  top: -40px; left: 0; right: 0; height: 40px;
  background: linear-gradient(180deg, transparent, var(--bg-0));
  pointer-events: none;
}
.composer {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 4px;
  transition: all 0.15s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring), 0 8px 32px rgba(0,0,0,0.4);
}
.composer textarea {
  width: 100%;
  min-height: 56px;
  max-height: 240px;
  padding: 16px 16px 8px;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.5;
  resize: none;
  outline: none;
}
.composer textarea::placeholder { color: var(--ink-mute); }
.composer-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px 6px 14px;
}
.composer-tools { display: flex; gap: 4px; }
.tool-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px;
  border-radius: 8px;
  color: var(--ink-mute);
  font-size: 11.5px; font-weight: 500;
  transition: all 0.12s;
}
.tool-btn:hover { color: var(--ink); background: rgba(115,176,190,0.06); }
.tool-btn .kbd {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  color: var(--ink-mute);
}

.send-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #07131a;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 -1px 0 rgba(0,0,0,0.2) inset,
    0 6px 18px rgba(115,176,190,0.25);
  transition: all 0.15s;
}
.send-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 -1px 0 rgba(0,0,0,0.2) inset,
    0 8px 22px rgba(115,176,190,0.35);
}
.send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(115,176,190,0.18);
  color: var(--ink-mute);
  box-shadow: none;
}

.composer-meta {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 820px;
  margin: 8px auto 0;
  font-size: 10.5px; color: var(--ink-mute);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}
.composer-meta .lhs { display: flex; gap: 16px; }
.composer-meta .rhs { display: flex; gap: 12px; align-items: center; }
.composer-meta .kbd {
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  color: var(--ink-mute);
  margin: 0 2px;
}

/* ============= Scrollbar ============= */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(115,176,190,0.18); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(115,176,190,0.32); }

/* Sidebar backdrop — hidden by default, only used on mobile */
.sidebar-backdrop { display: none; }
.menu-btn { display: none; }

/* ============= Responsive ============= */
@media (max-width: 1100px) {
  .suggest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .chat-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 78px; bottom: 0;
    width: 280px;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1);
    box-shadow: 0 0 80px rgba(0,0,0,0.5);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop {
    display: block;
    position: fixed; inset: 0; z-index: 49;
    background: rgba(0,0,0,0.5);
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s;
  }
  .sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
  .menu-btn { display: grid !important; }
}

@media (max-width: 720px) {
  .topbar { padding: 14px 18px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-mark img { width: 30px; height: 30px; }
  .brand-text .product { font-size: 18px; }
  .brand-text .org { font-size: 9px; letter-spacing: 0.18em; }
  .top-actions .pill { display: none; }
  .top-actions .icon-btn.theme { display: none; }

  .stage-auth { padding: 18px 16px 40px; }
  .card { padding: 28px 22px; border-radius: 18px; }
  .title { font-size: 32px; }
  .otp-row { gap: 6px; }
  .otp-row input { height: 52px; font-size: 20px; }
  .footer { flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px 18px; }

  .welcome { padding: 32px 20px 20px; }
  .welcome h1 { font-size: 36px; }
  .welcome .lead { font-size: 13.5px; }
  .welcome-orb { width: 90px; height: 90px; margin-bottom: 22px; }
  .suggest-grid { grid-template-columns: 1fr; gap: 10px; }
  .suggest { min-height: auto; padding: 14px; }
  .cap-strip { flex-wrap: wrap; gap: 12px; font-size: 10px; }

  .messages { padding: 18px 16px 24px; gap: 22px; }
  .msg .text { font-size: 13.5px; }
  .composer-wrap { padding: 12px 16px 18px; }
  .composer-meta { padding: 0 4px; flex-wrap: wrap; gap: 4px; }
}

/* ===== Django additions (no bundle counterpart) ===== */
.history-empty {
  padding: 16px 20px;
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
  text-align: center;
}
