/* Сергеич v15 — отдельное рабочее пространство без плавающих окон */
.kern-entry{position:relative;padding:30px 0;border-bottom:1px solid #253746;background:#0b1721;color:#fff;overflow:hidden}.kern-entry:before{content:"";position:absolute;width:520px;height:360px;right:12%;top:-230px;border-radius:50%;background:#234f73;filter:blur(90px);opacity:.4}.kern-entry-grid{position:relative;display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:22px}.kern-avatar{display:block;object-fit:cover;border-radius:10px;background:#1a2a36}.kern-avatar-lg{width:76px;height:76px;border:1px solid rgba(255,255,255,.24)}.kern-entry .label{color:#9eb2c2;margin:0 0 5px}.kern-entry h2{margin:0 0 7px;color:#fff;font-size:clamp(24px,2.5vw,34px)}.kern-entry p{margin:0;max-width:760px;color:rgba(255,255,255,.67)}.kern-entry .btn{position:relative;white-space:nowrap}.kern-product-link{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:11px;margin-top:16px;padding:10px;border-top:1px solid var(--line);color:var(--ink)}.kern-product-link:hover{background:#fff;text-decoration:none}.kern-product-link img{width:42px;height:42px;object-fit:cover;border-radius:7px}.kern-product-link b,.kern-product-link small{display:block}.kern-product-link b{font-size:13px}.kern-product-link small{margin-top:2px;color:var(--ink-3);font-size:11px}.kern-product-link i{font-style:normal;font-size:20px;color:var(--steel)}
.kern-page-body{background:#eef1f3}.kern-page-hero{padding:42px 0 30px;border-bottom:1px solid #d6dde2;background:#fff}.kern-page-profile{display:grid;grid-template-columns:104px minmax(0,1fr) auto;align-items:center;gap:24px}.kern-page-profile .kern-avatar{width:104px;height:104px;border-radius:14px}.kern-page-profile .label{margin:0 0 6px}.kern-page-profile h1{margin:0 0 8px;font-size:clamp(34px,5vw,58px);letter-spacing:-.04em}.kern-page-profile p{margin:0;max-width:670px;color:var(--ink-2);font-size:17px}.kern-state{align-self:start;display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid #cbd8cf;border-radius:8px;background:#f4faf6;color:#316148;font-size:12px;font-weight:700}.kern-state:before{content:"";width:7px;height:7px;border-radius:50%;background:#46a171}.kern-page-main{padding:30px 0 64px}.kern-workspace{display:grid;grid-template-columns:280px minmax(0,1fr);gap:22px;align-items:start}.kern-brief{position:sticky;top:94px;border:1px solid #d7dee3;border-radius:10px;background:#fff;padding:22px}.kern-brief h2{font-size:17px;margin:0 0 16px}.kern-brief ol{list-style:none;padding:0;margin:0}.kern-brief li{display:grid;grid-template-columns:28px 1fr;gap:10px;padding:13px 0;border-bottom:1px solid #e8edef;color:#4f5d66;font-size:13px}.kern-brief li:last-child{border-bottom:0}.kern-brief li span{width:28px;height:28px;display:grid;place-items:center;border-radius:6px;background:#132f47;color:#fff;font-size:11px;font-weight:800}.kern-brief b{display:block;color:#202a31;margin-bottom:2px}.kern-privacy{margin:18px 0 0;padding-top:16px;border-top:1px solid #e2e7ea;color:#6f7c85;font-size:11px;line-height:1.5}.kern-session{padding:0;min-height:520px;display:flex;flex-direction:column;border:1px solid #d4dce1;border-radius:12px;background:#fff;overflow:hidden}.kern-session-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:19px 22px;border-bottom:1px solid #e0e6e9;background:#f9fafb}.kern-session-head h2{font-size:18px;margin:0 0 3px}.kern-session-head p{margin:0;color:#75818a;font-size:12px}.kern-session-head a{font-size:12px;color:#5e6c76}.kern-log{flex:1;min-height:330px;max-height:560px;overflow:auto;padding:0 24px}.kern-turn{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;padding:22px 0;border-bottom:1px solid #e8edef}.kern-turn>img,.kern-user-mark{width:44px;height:44px;border-radius:8px;object-fit:cover}.kern-user-mark{display:grid;place-items:center;background:#e7edf1;color:#43535f;font-size:11px;font-weight:800}.kern-turn header{position:static;min-height:0;padding:0;border:0;background:none;backdrop-filter:none}.kern-turn header b{display:inline;margin-right:8px;font-size:14px}.kern-turn header span{font-size:11px;color:#7a8790}.kern-turn-text{padding-top:7px;color:#29363e;font-size:15px;line-height:1.58;white-space:pre-wrap}.kern-turn.user{background:#f8fafb;margin:0 -24px;padding-left:24px;padding-right:24px}.kern-options{display:flex;flex-wrap:wrap;gap:8px;padding:16px 0 22px;border-bottom:1px solid #e8edef}.kern-options button{min-height:40px;padding:8px 13px;border:1px solid #c6d2da;border-radius:7px;background:#fff;color:#24455e;font:inherit;font-size:13px;cursor:pointer}.kern-options button:hover{border-color:#2a587a;background:#f2f7fa}.kern-working{display:flex;align-items:center;gap:9px;padding:18px 0;color:#6c7982;font-size:13px}.kern-working img{width:32px;height:32px;border-radius:6px;object-fit:cover}.kern-working i{width:4px;height:4px;border-radius:50%;background:#6f7f8a;animation:kernPulse 1.1s infinite}.kern-working i:nth-last-child(2){animation-delay:.15s}.kern-working i:last-child{animation-delay:.3s}@keyframes kernPulse{0%,70%,100%{opacity:.25;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}.kern-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:18px 0;border-bottom:1px solid #e8edef}.kern-product{display:flex;flex-direction:column;justify-content:space-between;gap:14px;border:1px solid #d7e0e5;border-radius:9px;background:#fff;padding:15px}.kern-product span{font-size:10px;color:#7d8991;letter-spacing:.06em;text-transform:uppercase}.kern-product h3{font-size:15px;line-height:1.35;margin:4px 0 7px}.kern-product p{font-size:12px;line-height:1.45;color:#5e6d76;margin:0}.kern-product-actions{display:flex;gap:7px}.kern-product-actions a,.kern-product-actions button{min-height:38px;padding:8px 10px;border-radius:6px;font:inherit;font-size:12px;font-weight:700}.kern-product-actions a{display:inline-flex;align-items:center;border:1px solid #cad5dc;color:#273b49}.kern-product-actions button{border:1px solid #173b59;background:#173b59;color:#fff;cursor:pointer}.kern-draft{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:18px 0;padding:16px;border:1px solid #acc2d1;border-left:3px solid #214d70;border-radius:8px;background:#f8fbfc}.kern-draft b{display:block;margin-bottom:4px}.kern-draft p{margin:0;color:#65737d;font-size:12px}.kern-draft button{flex:0 0 auto;min-height:42px;padding:9px 13px;border:1px solid #173b59;border-radius:7px;background:#173b59;color:#fff;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.kern-compose{padding:16px 18px;border-top:1px solid #dce3e7;background:#f8fafb}.kern-compose-row{display:grid;grid-template-columns:1fr 50px;gap:9px}.kern-input{width:100%;min-height:50px;max-height:130px;resize:none;padding:13px 14px;border:1px solid #c6d2da;border-radius:8px;background:#fff;color:#24313a;font:inherit;font-size:15px}.kern-input:focus{outline:none;border-color:#315c7c;box-shadow:0 0 0 3px rgba(42,91,127,.1)}.kern-send{width:50px;height:50px;border:0;border-radius:8px;background:#173b59;color:#fff;font-size:20px;cursor:pointer}.kern-send:disabled{opacity:.45}.kern-compose small{display:block;margin-top:8px;color:#7b8790;font-size:10px}
@media(max-width:900px){.kern-entry-grid{grid-template-columns:64px 1fr}.kern-avatar-lg{width:64px;height:64px}.kern-entry .btn{grid-column:1/-1;width:100%;justify-content:center}.kern-page-profile{grid-template-columns:82px 1fr}.kern-page-profile .kern-avatar{width:82px;height:82px}.kern-state{grid-column:1/-1;justify-self:start}.kern-workspace{grid-template-columns:1fr}.kern-brief{position:static;display:none}.kern-session{min-height:calc(100vh - 250px)}}
@media(max-width:620px){.kern-entry{padding:24px 0}.kern-entry-grid{grid-template-columns:54px 1fr;gap:14px}.kern-avatar-lg{width:54px;height:54px}.kern-entry h2{font-size:23px}.kern-entry p{font-size:13px}.kern-page-hero{padding:25px 0 22px}.kern-page-profile{grid-template-columns:66px 1fr;gap:14px}.kern-page-profile .kern-avatar{width:66px;height:66px}.kern-page-profile h1{font-size:34px}.kern-page-profile p{grid-column:1/-1;font-size:14px}.kern-page-main{padding:14px 0 34px}.kern-session{border-radius:9px}.kern-session-head{padding:15px 16px}.kern-session-head a{display:none}.kern-log{padding:0 14px;max-height:none;min-height:480px}.kern-turn{grid-template-columns:38px 1fr;gap:10px;padding:17px 0}.kern-turn>img,.kern-user-mark{width:38px;height:38px}.kern-turn.user{margin:0 -14px;padding-left:14px;padding-right:14px}.kern-turn header span{display:block;margin-top:2px}.kern-results{grid-template-columns:1fr}.kern-draft{align-items:stretch;flex-direction:column}.kern-draft button{width:100%}.kern-compose{padding:12px}.kern-compose small{line-height:1.35}}@media(prefers-reduced-motion:reduce){.kern-working i{animation:none}}

.kern-session-actions{display:flex;align-items:center;gap:14px}.kern-session-actions button{border:0;background:transparent;color:#667680;font:inherit;font-size:12px;cursor:pointer;padding:0}.kern-session-actions button:hover{color:#173b59;text-decoration:underline}@media(max-width:620px){.kern-session-actions a{display:none}}
.kern-progress{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 22px;border-bottom:1px solid #dce3e7;background:#f4f7f9;color:#263944}.kern-progress-dot{width:9px;height:9px;border-radius:50%;background:#6f8492;box-shadow:0 0 0 4px rgba(111,132,146,.12)}.kern-progress b{display:block;font-size:13px}.kern-progress small{display:block;margin-top:2px;color:#6d7a83;font-size:11px;line-height:1.4}.kern-progress button{min-height:38px;padding:8px 13px;border:1px solid #173b59;border-radius:7px;background:#173b59;color:#fff;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.kern-progress[data-state="working"] .kern-progress-dot{background:#d39a33;box-shadow:0 0 0 4px rgba(211,154,51,.14)}.kern-progress[data-state="ready"]{background:#f2f8f4;border-bottom-color:#c8ddcf}.kern-progress[data-state="ready"] .kern-progress-dot{background:#3d9a68;box-shadow:0 0 0 4px rgba(61,154,104,.14)}.kern-progress[data-state="ready"] b{color:#245f40}@media(max-width:620px){.kern-progress{grid-template-columns:10px 1fr;padding:12px 16px}.kern-progress button{grid-column:1/-1;width:100%;margin-top:3px}}
