*{box-sizing:border-box}
html,body{margin:0;height:100%}
@media (min-width:801px){html{zoom:.8}}
body{background:#f6f3ec;font-family:'Golos Text',system-ui,-apple-system,'Segoe UI',sans-serif;color:#1f1f24;overflow:hidden}
.top{height:56px;display:flex;align-items:center;gap:16px;padding:0 24px}
.top h1{font-size:20px;margin:0}
.status{font-size:14px;color:#2e9064}
.status.bad{color:#c0392b;font-weight:700}
.scroll{position:absolute;top:56px;left:0;right:0;bottom:0;overflow:auto;padding:0 24px 32px}

.grid{position:relative;display:grid;grid-template-columns:200px repeat(6,280px);width:max-content;background:#fff;border:1px solid #e8e3d8;border-radius:16px;overflow:hidden}
.gh{padding:18px 8px 16px;text-align:center;display:flex;flex-direction:column;gap:3px;border-bottom:1px solid #e8e3d8}
.gh b{font-size:19px}.gh span{font-size:14px;color:#6b6b75}
.gl{padding:24px 16px 24px 24px;font-size:19px;font-weight:700;border-right:1px solid #e8e3d8;border-top:1px solid #ece8df;min-height:130px}
.gc{padding:16px 14px;display:flex;flex-direction:column;justify-content:center;gap:16px;border-top:1px solid #ece8df;min-height:120px}
.gc.lane{border-top:1px dashed #e3ded2}
.gh.first{border-right:1px solid #e8e3d8}

.card{position:relative;z-index:2;display:block;width:252px;text-align:left;font:inherit;color:inherit;padding:14px 16px;border:2px solid;border-radius:12px;background:#fff;cursor:pointer;transition:box-shadow .15s,transform .15s}
.card:hover{transform:translateY(-1px);box-shadow:0 4px 14px rgba(0,0,0,.08)}
.card.sel{box-shadow:0 0 0 5px rgba(61,98,204,.22)}
.card .q{display:block;font-size:14px;line-height:21px;font-style:italic;color:#3b3b44;padding-bottom:9px;margin-bottom:9px;border-bottom:1px solid rgba(0,0,0,.1)}
.card .t{display:block;font-size:17px;line-height:23px;font-weight:700}
.card .s{display:block;margin-top:3px;font-size:13px;line-height:19px;color:#666670}
.card .has{position:absolute;top:8px;right:8px;width:9px;height:9px;border-radius:50%;background:#3d62cc}
.arrows{position:absolute;inset:0;pointer-events:none;z-index:1;overflow:visible}

.dim{position:fixed;inset:0;background:rgba(40,36,30,.28);z-index:10}
.panel{position:fixed;top:0;right:0;bottom:0;width:50vw;min-width:560px;background:#fff;box-shadow:-18px 0 40px rgba(0,0,0,.18);z-index:11;display:flex;flex-direction:column;transform:translateX(105%);transition:transform .22s ease;overflow:auto}
.panel.open{transform:none}
.ph{padding:22px 28px 18px;border-bottom:1px solid #ece8df;display:flex;gap:20px;align-items:flex-start}
.ph-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.tags{display:flex;gap:6px;flex-wrap:wrap}
.tag{font-size:13px;font-weight:700;border-radius:14px;padding:4px 10px;border:1px solid}
input,textarea{font:inherit;color:inherit;border:1px solid transparent;border-radius:8px;background:transparent;padding:4px 8px;margin-left:-8px;width:100%}
input:hover,textarea:hover{border-color:#e3ded2}
input:focus,textarea:focus{outline:none;border-color:#9fb3e6;background:#fff}
.f-title{font-size:26px;font-weight:700}
.f-sub{font-size:15px;color:#666670}
.linkrow,.leadrow{display:flex;align-items:center;gap:8px;font-size:15px}
.linkicon{color:#2f55c4;margin-left:2px}
.f-link{color:#2f55c4}
.open-link{font-size:14px;color:#fff;background:#3d62cc;border-radius:8px;padding:5px 10px;text-decoration:none;white-space:nowrap}
.leadrow span{white-space:nowrap;color:#1d8155;font-weight:700;font-size:14px}
.f-quote{font-style:italic;color:#3b3b44;font-size:15px;resize:none}
.close{width:44px;height:44px;flex:none;border-radius:10px;border:1px solid #e3ded2;background:#fff;font-size:26px;color:#6b6b75;cursor:pointer}
.close:hover{background:#f6f3ec}
.cols{display:grid;grid-template-columns:1fr 1fr;flex:1}
.ch.first{display:none}
.ch{font-size:16px;font-weight:700;padding:14px 20px;border-bottom:1px solid #ece8df;display:flex;align-items:center;gap:10px}
.ch small{font-weight:400;color:#6b6b75;font-size:13px}
.k{background:#fbf6ec}.c{background:#f2f5fc;border-left:1px solid #ece8df}
.dot{width:12px;height:12px;border-radius:50%}
.rl{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:12px 20px;background:#faf9f6;border-bottom:1px solid #ece8df;font-size:16px;font-weight:700;color:#3b3b44;line-height:22px}
.rl .n{display:flex;width:28px;height:28px;border-radius:50%;background:#1f1f24;color:#fff;align-items:center;justify-content:center;font-size:15px}
.cell{padding:14px 20px;border-bottom:1px solid #ece8df}
.cell textarea{min-height:120px;resize:none;font-size:15px;line-height:22px;margin-left:-8px}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.chip{font:inherit;font-size:13px;padding:5px 11px;border-radius:14px;border:1px solid #cfd6e6;color:#4a5570;background:#fff;cursor:pointer;min-height:32px}
.chip.on{background:#3d62cc;border-color:#3d62cc;color:#fff;font-weight:700}

.shots-wrap{padding:14px 28px 16px;border-bottom:1px solid #ece8df}
.shots-wrap.drag{background:#f2f5fc}
.shots-head{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}
.shots-head b{font-size:16px}.shots-head small{color:#6b6b75;font-size:13px}
.add-shot{margin-left:auto;font-size:14px;font-weight:700;color:#3d62cc;border:1px solid #cfd6e6;border-radius:8px;padding:6px 12px;cursor:pointer;background:#fff}
.add-shot:hover{background:#f2f5fc}
.shots{display:flex;gap:12px;overflow-x:auto;padding-bottom:4px}
.shot{flex:none;width:150px;display:flex;flex-direction:column;gap:4px;position:relative}
.shot img{width:150px;height:266px;object-fit:cover;border-radius:10px;border:1px solid #e3ded2;cursor:zoom-in;background:#f6f3ec}
.shot input{margin-left:0;padding:2px 6px;border-color:transparent}
.shot input:hover{border-color:#e3ded2}
.shot .tm{width:auto;max-width:64px;margin-top:6px;font-size:13px;font-weight:700;color:#fff;background:#1f1f24;border-radius:6px;padding:2px 8px;font-variant-numeric:tabular-nums}
.shot .tm:focus{background:#fff;color:#1f1f24}
.shot .nm{font-size:15px;font-weight:700;line-height:20px}
.shot .nt{font-size:13px;color:#666670;line-height:18px}
.shot .del{position:absolute;top:6px;right:6px;width:28px;height:28px;border-radius:50%;border:none;background:rgba(0,0,0,.55);color:#fff;font-size:17px;cursor:pointer;line-height:28px}
.shot.loading img{opacity:.4}
.shots-hint{font-size:12px;color:#8a8a94;margin-top:6px}
.shots:empty::before{content:"Пока нет скриншотов";color:#8a8a94;font-size:14px;padding:18px 0}
.lb{position:fixed;inset:0;z-index:30;background:rgba(20,18,15,.85);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;cursor:zoom-out;padding:24px}
.lb[hidden]{display:none}
.lb img{max-width:100%;max-height:calc(100% - 50px);border-radius:10px}
.lb-cap{color:#fff;font-size:16px}

@media (max-width:800px){
  .shots-wrap{padding:12px 16px}
  .panel{width:100vw;min-width:0}
  .scroll{padding:0 12px 24px}
  .cols{grid-template-columns:1fr}
  .ch{display:none}
  .cell::before{display:block;font-size:12px;font-weight:700;color:#6b6b75;margin-bottom:4px}
  .cell.k::before{content:"Мои слова"}
  .cell.c::before{content:"Разбор Клода"}
  .c{border-left:none}
  .ph{padding:16px}
  .f-title{font-size:21px}
}
