    :root{
      --bg: #f5f7fb;
      --panel: #ffffff;
      --muted: #6b7280;
      --text: #111827;
      --line: #e5e7eb;

      --accent: #ff5a1f;
      --accent-2: #ff6b35;

      --sidebar-w: 290px;
      --topbar-h: 72px;

      --shadow-sm: 0 6px 22px rgba(17,24,39,.08);
      --shadow-md: 0 14px 40px rgba(17,24,39,.10);

      --radius: 18px;

      --soft: #f3f6fb;
      --soft2: #fafbfe;
    }

    html, body { height: 100%; }
    body{
      background: var(--bg);
      color: var(--text);
      overflow: hidden;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    }

    /* Shell */
    .shell{
      height: 100vh;
      display: grid;
      grid-template-columns: var(--sidebar-w) 1fr;
      grid-template-rows: var(--topbar-h) 1fr;
      grid-template-areas:
        "sidebar topbar"
        "sidebar main";
    }

    /* Sidebar */
    .sidebar{
      grid-area: sidebar;
      background: #fff;
      border-right: 1px solid var(--line);
      overflow: auto;
    }
    .sidebar::-webkit-scrollbar{ width: 10px; }
    .sidebar::-webkit-scrollbar-thumb{ background: #d7dbe4; border-radius: 999px; }
    .sidebar::-webkit-scrollbar-track{ background: transparent; }

    .brand{
      height: var(--topbar-h);
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 18px;
      border-bottom: 1px solid var(--line);
      position: sticky;
      top: 0;
      background: #fff;
      z-index: 2;
    }
    .brand-logo{
      width: 44px; height: 44px;
      border-radius: 12px;
      background: radial-gradient(18px 18px at 30% 35%, #fff2, transparent 55%),
                  linear-gradient(135deg, var(--accent), var(--accent-2));
      color: #fff;
      display: grid;
      place-items: center;
      font-weight: 900;
      font-size: 22px;
      box-shadow: 0 10px 24px rgba(255,90,31,.22);
      flex: 0 0 auto;
    }
    .brand-name{
      font-size: 22px;
      font-weight: 800;
      letter-spacing: .2px;
      color: var(--accent);
      white-space: nowrap;
    }









    .side-group{ padding: 14px 10px 6px; }
    .side-heading{
      font-size: 13px;
      color: var(--muted);
      padding: 10px 10px 6px;
      margin-top: 4px;
    }

    .side-link{
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 12px;
      border-radius: 12px;
      color: #111827;
      text-decoration: none;
      font-weight: 600;
      user-select: none;
    }
    .side-link .bi{
      opacity: .88;
      font-size: 18px;
      width: 22px;
      text-align: center;
      flex: 0 0 auto;
    }
    .side-link:hover{ background: #f3f5f9; }
    .side-link.collapsed .chev{ transform: rotate(-90deg); }
    .chev{
      margin-left: auto;
      transition: transform .18s ease;
      opacity: .65;
      flex: 0 0 auto;
    }

    .sub-links{
      padding-left: 40px;
      padding-right: 8px;
      display: grid;
      gap: 6px;
      margin-top: 6px;
      margin-bottom: 8px;
    }
    .sub-links a{
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 12px;
      color: #111827;
      text-decoration: none;
      font-weight: 600;
      opacity: .95;
    }
    .sub-links a:hover{ background: #f3f5f9; }
    .sub-links a.active{
      background: rgba(255,90,31,.10);
      outline: 1px solid rgba(255,90,31,.25);
      color: var(--accent);
    }
    
    
    
    
.side-item{
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-item .side-link{
  flex: 1;                 /* link zabiera całą szerokość */
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 0;        /* żeby toggle nie wchodził w link */
}

/* przycisk strzałki */
.side-toggle{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}


.side-toggle:hover{
  background: #f4f6fa;
  border-color: #eef0f6;
}

.side-toggle .chev{
  transition: transform .15s ease;
  margin: 0;
  opacity: .75;
}

/* obrót chevrona gdy rozwinięte */
.side-toggle[aria-expanded="true"] .chev{
  transform: rotate(180deg);
  opacity: 1;
}    
    
    
    
    
    
    
    
    

    /* Topbar */
    .topbar{
      grid-area: topbar;
      background: #fff;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 0 18px;
      position: sticky;
      top: 0;
      z-index: 3;
    }
    .burger{
      width: 44px;
      height: 44px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: #fff;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
    }
    .burger:hover{ background: #f3f5f9; }
    .top-search{
      position: relative;
      flex: 1;
      max-width: 640px;
    }
    .top-search input{
      width: 100%;
      height: 44px;
      border-radius: 12px;
      border: 1px solid var(--line);
      padding: 0 44px 0 14px;
      outline: none;
      background: #fff;
    }
    .top-search .bi-search{
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      opacity: .6;
    }

    .btn-buy{
      background: var(--accent);
      border: 0;
      color: #fff;
      font-weight: 800;
      padding: 12px 20px;
      border-radius: 10px;
      box-shadow: 0 12px 26px rgba(255,90,31,.22);
      flex: 0 0 auto;
    }
    .btn-buy:hover{ background: #ff4b14; }

    /* Main */
    .main{
      grid-area: main;
      overflow: auto;
      padding: 22px;
    }
    .main::-webkit-scrollbar{ width: 12px; }
    .main::-webkit-scrollbar-thumb{ background: #d7dbe4; border-radius: 999px; }
    .main::-webkit-scrollbar-track{ background: transparent; }

    .page{ max-width: 1260px; margin: 0 auto; }

    .card-soft{
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--panel);
      box-shadow: var(--shadow-sm);
    }

    /* Topics card */
    .topics-card{ padding: 16px; position: sticky; top: calc(var(--topbar-h) + 22px); }
    .topics-title{
      font-weight: 900;
      font-size: 22px;
      margin: 6px 6px 14px;
    }
    .topic-btn{
      width: 100%;
      text-align: left;
      padding: 16px 16px;
      border-radius: 12px;
      border: 1px solid transparent;
      background: #f4f6fa;
      font-weight: 800;
      color: #111827;
      display: flex;
      align-items: center;
      justify-content: space-between;
      user-select: none;
    }
    .topic-btn:hover{ background: #eef2f7; }
    .topic-btn.active{
      background: #fff;
      border-color: rgba(255,90,31,.55);
      box-shadow: 0 10px 24px rgba(17,24,39,.08);
      color: var(--accent);
    }

    /* Content section shell (right) */
    .content-card{
      border-radius: var(--radius);
      background: #fff;
      border: 1px solid var(--line);
      box-shadow: var(--shadow-md);
      overflow: hidden;
      position: relative;
    }
    .content-head{
      padding: 18px 20px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      background: #fff;
    }
    .content-head h2{
      margin: 0;
      font-weight: 950;
      letter-spacing: -0.01em;
    }
    .head-actions .btn-ic{
      width: 40px; height: 40px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: #fff;
      display: inline-grid;
      place-items: center;
    }
    .head-actions .btn-ic:hover{ background: #f3f5f9; }

    .content-body{ padding: 20px; background: var(--soft2); }
    .content-body p{
      color: #374151;
      font-size: 16px;
      line-height: 1.8;
      margin-bottom: 16px;
    }

.content-body-screenshots{ padding: 20px; background: var(--soft2); }

    /* INTRO block like screenshot */
    .intro-box{
      background: var(--soft);
      border: 1px solid var(--line);
      border-radius: 22px;
      padding: 22px;
      box-shadow: 0 10px 26px rgba(17,24,39,.06);
    }
    .kv{
      display: grid;
      grid-template-columns: 170px 1fr;
      gap: 12px 18px;
      font-size: 20px;
      align-items: start;
    }
    .kv .k{
      font-weight: 900;
      color: #111827;
    }
    .kv .v{
      color: #111827;
      opacity: .92;
      font-weight: 500;
    }
    .big-title{
      font-size: 56px;
      font-weight: 950;
      letter-spacing: -0.03em;
      margin: 18px 0 8px;
    }
    .leadish{
      font-size: 20px;
      color: #374151;
      line-height: 1.9;
    }

    /* Feature cards grid */
    .feature-grid{
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 18px;
    }
    .feature{
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 16px;
      box-shadow: 0 10px 28px rgba(17,24,39,.06);
      padding: 18px 14px 16px;
      text-align: center;
      min-height: 150px;
      display: grid;
      place-items: center;
      gap: 10px;
    }
    .feature .ico{
      width: 58px; height: 58px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      background: #f4f6ff;
      border: 1px solid #e7eaf3;
      font-size: 28px;
    }
    .feature .label{
      font-weight: 800;
      color: #111827;
      line-height: 1.25;
    }

    /* File tree (fixed + checkboxes) */
    .tree{
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 14px 14px;
      box-shadow: 0 10px 28px rgba(17,24,39,.06);
    }
    .tree ul{
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .tree li{
      position: relative;
      padding-left: 26px;
      margin: 8px 0;
    }
    /* lines drawn behind content so they don't block clicks */
    .tree li::before{
      content: "";
      position: absolute;
      left: 12px;
      top: -10px;
      bottom: -10px;
      width: 1px;
      background: #e6e9f2;
      z-index: 0;
      pointer-events: none;
    }
    .tree li::after{
      content: "";
      position: absolute;
      left: 12px;
      top: 16px;
      width: 14px;
      height: 1px;
      background: #e6e9f2;
      z-index: 0;
      pointer-events: none;
    }
    .tree li:last-child::before{ bottom: 16px; }

    details.tree-node{ position: relative; z-index: 1; } /* clickable above lines */
    details.tree-node > summary{
      list-style: none;
      cursor: pointer;
      user-select: none;
    }
    details.tree-node > summary::-webkit-details-marker{ display:none; }

    .trow{
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 8px 10px;
      border-radius: 12px;
      border: 1px solid transparent;
      background: transparent;
      color: #111827;
      font-weight: 700;
    }
    .trow:hover{
      background: #f3f5f9;
      border-color: #eef0f6;
    }

    /* toggle triangle */
    .toggle{
      color: #9ca3af;
      width: 16px;
      display: inline-grid;
      place-items: center;
      transition: transform .15s ease;
      font-size: 14px;
    }
    details.tree-node[open] > summary .toggle{ transform: rotate(90deg); }

    /* checkbox styling (keep native but aligned) */
    .tree input[type="checkbox"]{
      width: 18px;
      height: 18px;
      margin: 0 2px 0 0;
      accent-color: var(--accent);
    }

    .node-ico{
      font-size: 18px;
      color: var(--accent);
      width: 18px;
      text-align: center;
    }
    .hint{
      font-weight: 700;
      color: #6b7280;
      margin-left: 8px;
      font-size: 12px;
    }

    /* Attachments table */
    .table-card{
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 10px 28px rgba(17,24,39,.06);
    }
    .table-card .table{ margin: 0; vertical-align: middle; }
    .table-card thead th{
      background: #f4f6fa;
      border-bottom: 1px solid var(--line) !important;
      font-weight: 900;
      color: #111827;
      white-space: nowrap;
    }
    .tag{
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid #e7eaf3;
      background: #f7f8fc;
      font-weight: 800;
      font-size: 12px;
      color: #374151;
    }
    .tag.ok{ background: rgba(16,185,129,.10); border-color: rgba(16,185,129,.25); color: #0f766e; }
    .tag.warn{ background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.28); color: #92400e; }

    /* Sections toggling */
    .section{ display: none; }
    .section.active{ display: block; }

    /* Fullscreen panel mode */
    .content-card.is-fullscreen{
      position: fixed;
      inset: 18px;
      z-index: 2000;
      border-radius: 20px;
      box-shadow: 0 30px 90px rgba(0,0,0,.22);
    }
    .content-card.is-fullscreen .content-body{
      height: calc(100vh - 18px - 18px - 74px);
      overflow: auto;
    }
    .backdrop{
      position: fixed;
      inset: 0;
      background: rgba(17,24,39,.20);
      backdrop-filter: blur(3px);
      z-index: 1999;
      display: none;
    }
    .backdrop.show{ display: block; }

    /* Responsive */
    @media (max-width: 1200px){
      .feature-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .big-title{ font-size: 46px; }
      .kv{ grid-template-columns: 150px 1fr; font-size: 18px; }
    }
    @media (max-width: 992px){
      :root{ --sidebar-w: 86px; }
      .brand-name{ display:none; }
      .side-link span, .side-heading, .sub-links{ display:none !important; }
      .topics-card{ position: static; }
      .feature-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .big-title{ font-size: 40px; }
    }
    @media (max-width: 576px){
      .top-search{ display:none; }
      .feature-grid{ grid-template-columns: 1fr; }
      .kv{ grid-template-columns: 1fr; font-size: 18px; }
      .big-title{ font-size: 34px; }
    }

    /* Optional: collapse sidebar via body class */
    body.sidebar-collapsed{ --sidebar-w: 86px; }
    body.sidebar-collapsed .brand-name,
    body.sidebar-collapsed .side-link span,
    body.sidebar-collapsed .side-heading,
    body.sidebar-collapsed .sub-links{ display:none !important; }
    
    
    
    
    
    
    
    
    
    
    
/* --- Section Controls (insert between sections) --- */
.section-controls{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 14px 0;
  border-radius: 16px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(17,24,39,.06);
  backdrop-filter: blur(6px);
}

.section-controls .label{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #111827;
  padding: 8px 10px;
  border-radius: 14px;
  background: #f4f6fa;
  border: 1px solid #eef0f6;
  user-select: none;
}

.section-controls .label .dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(255,90,31,.9);
  box-shadow: 0 8px 16px rgba(255,90,31,.18);
}

.section-controls .actions{
  margin-left: auto;
  display: inline-flex;
  gap: 10px;
}

.sc-btn{
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  font-weight: 900;
  color: #111827;
  user-select: none;
}

.sc-btn:hover{ background: #f3f5f9; }
.sc-btn:active{ transform: translateY(1px); }

.sc-btn .bi{
  font-size: 18px;
  opacity: .85;
}

.sc-btn.sc-danger{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.06);
  color: #b91c1c;
}

.sc-btn.sc-danger:hover{
  background: rgba(239,68,68,.10);
}

.sc-btn.sc-ghost{
  background: #f4f6fa;
  border-color: #eef0f6;
}

.sc-btn:disabled{
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

/* nice separators when inserted between sections */
.section-divider{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17,24,39,.10), transparent);
  margin: 10px 0;
  border-radius: 999px;
}













/* --- Topbar action toolbar (Vue-friendly, no JS actions) --- */
.top-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto; /* push to right */
  flex-wrap: wrap;
}

.top-action{
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #111827;
  user-select: none;
  box-shadow: 0 10px 24px rgba(17,24,39,.06);
  text-decoration: none;
}

.top-action:hover{ background: #f3f5f9; }
.top-action:active{ transform: translateY(1px); }
.top-action .bi{ font-size: 18px; opacity: .9; }

/* Variants */
.top-action.primary{
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 26px rgba(255,90,31,.22);
}
.top-action.primary:hover{ background: #ff4b14; }

.top-action.soft{
  background: #f4f6fa;
  border-color: #eef0f6;
}
.top-action.soft:hover{ background: #eef2f7; }

.top-action.danger{
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.22);
  color: #b91c1c;
}
.top-action.danger:hover{ background: rgba(239,68,68,.12); }

/* Icon-only button */
.top-action.icon-only{
  width: 46px;
  padding: 0;
  justify-content: center;
}
.top-action.icon-only .label{ display: none; }

/* Optional divider between groups */
.top-actions .divider{
  width: 1px;
  height: 28px;
  background: rgba(17,24,39,.12);
  border-radius: 999px;
  margin: 0 2px;
}

/* Responsive: on narrow screens hide labels (keeps icons) */
@media (max-width: 900px){
  .top-action .label{ display:none; }
  .top-action{ width: 46px; padding: 0; justify-content:center; }
}

    









/* --- Breadcrumb (above topics + content) --- */
.breadcrumb-bar{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(17,24,39,.06);
  backdrop-filter: blur(6px);
}

.breadcrumb{
  margin: 0;
  font-weight: 800;
}
.breadcrumb a{
  color: #111827;
  text-decoration: none;
  opacity: .85;
}
.breadcrumb a:hover{ opacity: 1; text-decoration: underline; }
.breadcrumb .active{
  color: var(--accent);
  font-weight: 900;
}

.bcrumb-icon{
  width: 40px; height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

/* --- Subdocuments component --- */
.subdocs-card{
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.subdocs-head{
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}

.subdocs-title{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  font-size: 18px;
  margin: 0;
}

.subdocs-title .badge-pill{
  font-size: 12px;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #e7eaf3;
  background: #f7f8fc;
  color: #374151;
}

.subdocs-body{
  padding: 14px;
  background: var(--soft2);
}

.subdoc-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17,24,39,.06);
  text-decoration: none;
  color: #111827;
}

.subdoc-item:hover{
  border-color: rgba(255,90,31,.25);
  box-shadow: 0 14px 32px rgba(17,24,39,.08);
}

.subdoc-ico{
  width: 44px; height: 44px;
  border-radius: 16px;
  border: 1px solid #e7eaf3;
  background: #f4f6ff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.subdoc-main{
  min-width: 0;
  flex: 1;
}

.subdoc-name{
  font-weight: 950;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subdoc-meta{
  margin-top: 4px;
  font-size: 13px;
  color: #6b7280;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.subdoc-path{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: #f4f6fa;
  border: 1px solid #eef0f6;
  padding: 2px 8px;
  border-radius: 999px;
}

.subdoc-actions{
  display: inline-flex;
  gap: 8px;
  flex: 0 0 auto;
}

.subdoc-actions .btn-ic{
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-grid;
  place-items: center;
}
.subdoc-actions .btn-ic:hover{ background:#f3f5f9; }

/* Compact grid option (if you want multiple columns) */
.subdocs-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 1200px){
  .subdocs-grid.cols-2{
    grid-template-columns: 1fr 1fr;
  }
}





/* --- Full width mode (hide Topics column) --- */
.page.fullwidth .topics-col{ display:none !important; }
.page.fullwidth .content-col{
  flex: 0 0 100%;
  max-width: 100%;
}

/* --- Documents list (hub) --- */
.docs-hub{
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.docs-hub-head{
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}

.docs-hub-head h2{
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.docs-hub-tools{
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-search{
  position: relative;
  width: 360px;
  max-width: 45vw;
}
.hub-search input{
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 44px 0 14px;
  outline: none;
  background: #fff;
}
.hub-search .bi-search{
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .55;
}

.hub-filter{
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
  font-weight: 900;
}

/* body */
.docs-hub-body{
  padding: 18px;
  background: var(--soft2);
}

.docs-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 992px){
  .docs-grid.cols-2{ grid-template-columns: 1fr 1fr; }
}

.doc-item{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17,24,39,.06);
  text-decoration: none;
  color: #111827;
}

.doc-item:hover{
  border-color: rgba(255,90,31,.25);
  box-shadow: 0 14px 32px rgba(17,24,39,.08);
}

.doc-ico{
  width: 52px; height: 52px;
  border-radius: 18px;
  border: 1px solid #e7eaf3;
  background: #f4f6ff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.doc-main{ min-width:0; flex:1; }

.doc-title{
  margin: 0;
  font-weight: 950;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #111827;
  text-decoration: none;
}


.doc-desc{
  margin: 6px 0 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.doc-meta{
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.doc-meta .pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e7eaf3;
  background: #f7f8fc;
  font-weight: 900;
  font-size: 12px;
  color: #374151;
}

.doc-meta .pill.path{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: #f4f6fa;
  border-color: #eef0f6;
}

.doc-meta .pill a {
    text-decoration: none;
    color: #374151;
}

.doc-actions{
  display: inline-flex;
  gap: 8px;
  flex: 0 0 auto;
}

.doc-actions .btn-ic{
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-grid;
  place-items: center;
}
.doc-actions .btn-ic:hover{ background:#f3f5f9; }

@media (max-width: 576px){
  .hub-search{ display:none; }
  .doc-actions{ display:none; } /* na mobile mniej szumu */
}






/* --- Small Modal (1/4 page) --- */
.modal-backdrop-soft{
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,.22);
  backdrop-filter: blur(4px);
  z-index: 2500;
  display: none;
}
.modal-backdrop-soft.show{ display: block; }

.small-modal{
  position: fixed;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 36px));
  z-index: 2501;
  display: none;
}

.small-modal.show{ display: block; }

.small-modal-card{
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0,0,0,.20);
  overflow: hidden;
}

.small-modal-head{
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}

.small-modal-title{
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.01em;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.small-modal-close{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
}
.small-modal-close:hover{ background: #f3f5f9; }

.small-modal-body{
  padding: 16px;
  background: var(--soft2);
}

.small-modal-body label{
  font-weight: 900;
  color: #111827;
  margin-bottom: 8px;
}

.small-modal-input{
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 12px;
  outline: none;
  background: #fff;
  font-weight: 700;
}
.small-modal-input:focus{
  border-color: rgba(255,90,31,.45);
  box-shadow: 0 0 0 .2rem rgba(255,90,31,.10);
}

.small-modal-help{
  margin-top: 10px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.small-modal-foot{
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Buttons aligned with your system */
.modal-btn{
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.modal-btn:hover{ background: #f3f5f9; }

.modal-btn.primary{
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 26px rgba(255,90,31,.22);
}
.modal-btn.primary:hover{ background: #ff4b14; }

.modal-btn.soft{
  background: #f4f6fa;
  border-color: #eef0f6;
}
.modal-btn.soft:hover{ background: #eef2f7; }











/* --- Settings / Permissions panel --- */
.settings-card{
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.settings-head{
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}
.settings-head h2{
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.settings-body{
  padding: 18px;
  background: var(--soft2);
}

.settings-section{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(17,24,39,.06);
  overflow: hidden;
  margin-bottom: 14px;
}
.settings-section:last-child{ margin-bottom: 0; }

.settings-section .sec-head{
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
}
.settings-section .sec-title{
  margin: 0;
  font-weight: 950;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-section .sec-desc{
  padding: 12px 16px 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.settings-section .sec-body{
  padding: 14px 16px 16px;
}

.form-check.settings-check{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: #fff;
}
.form-check.settings-check:hover{
  background: #f4f6fa;
  border-color: #eef0f6;
}
.form-check.settings-check .form-check-input{
  width: 20px;
  height: 20px;
  margin-top: 0;
  accent-color: var(--accent);
}
.form-check.settings-check .form-check-label{
  font-weight: 900;
  color: #111827;
}
.form-check.settings-check small{
  display: block;
  margin-top: 4px;
  font-weight: 700;
  color: #6b7280;
}

/* Permission list */
.perm-toolbar{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.perm-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 950;
}
.perm-chip:hover{ background: #f3f5f9; }

.perm-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 992px){
  .perm-list.cols-2{ grid-template-columns: 1fr 1fr; }
}

.perm-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17,24,39,.06);
}
.perm-item:hover{
  border-color: rgba(255,90,31,.20);
}

.perm-item .form-check-input{
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.perm-meta{
  min-width: 0;
  flex: 1;
}
.perm-name{
  margin: 0;
  font-weight: 950;
  line-height: 1.2;
}
.perm-note{
  margin-top: 4px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.perm-badges{
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}












/* --- Upload / Dropzone view (matches your cards) --- */

.upload-content{
  width: 100%;
  max-width: 560px;
  margin: 0 auto;         /* klucz: centrowanie */
  text-align: center;     /* wycentruje tekst + ikonę */
  display: flex;
  flex-direction: column;
  align-items: center;    /* klucz: centrowanie ikon/bloków */
}

.upload-card{
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.upload-head{
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}
.upload-head h2{
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.upload-body{
  padding: 18px;
  background: var(--soft2);
}

.upload-hint{
  border-radius: 16px;
  border: 1px solid rgba(245,158,11,.28);
  background: rgba(245,158,11,.14);
  padding: 14px 16px;
  font-weight: 900;
  color: #6b4f00;
  box-shadow: 0 10px 24px rgba(17,24,39,.05);
  margin-bottom: 14px;
}

/* Drop area shell */
.upload-drop{
  border-radius: 18px;
  border: 2px dashed rgba(17,24,39,.22);
  background: rgba(255,255,255,.75);
  box-shadow: 0 18px 44px rgba(17,24,39,.08);
  padding: 22px;
}

.upload-drop-inner{
  border-radius: 16px;
  border: 1px solid rgba(17,24,39,.14);
  background: rgba(255,255,255,.70);
  padding: 34px 16px;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 260px;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

/* Icon bubble */
.upload-ico{
  width: 78px;
  height: 78px;
  border-radius: 26px;
  border: 1px solid rgba(17,24,39,.12);
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px rgba(17,24,39,.10);
  margin-bottom: 14px;
}
.upload-ico i{
  font-size: 34px;
  color: #111827;
}

/* Typography */
.upload-title{
  margin: 0;
  font-weight: 950;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: #111827;
}
.upload-sub{
  margin-top: 10px;
  color: #6b7280;
  font-weight: 800;
  line-height: 1.6;
}

/* CTA */
.upload-cta{
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,90,31,.35);
  background: rgba(255,90,31,.08);
  color: var(--accent);
  font-weight: 950;
}
.upload-cta:hover{ background: rgba(255,90,31,.12); }

/* Dragover state (toggle class on wrapper) */
.upload-drop.is-dragover{
  border-color: rgba(255,90,31,.55);
}
.upload-drop.is-dragover .upload-drop-inner{
  border-color: rgba(255,90,31,.45);
  box-shadow: 0 0 0 .25rem rgba(255,90,31,.10), 0 18px 44px rgba(17,24,39,.08);
  transform: translateY(-1px);
}

/* --- Dropzone overrides (optional, keeps default but nice) --- */
.dropzone{
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
.dropzone .dz-message{
  margin: 0 !important;
}
.dropzone .dz-preview{
  margin: 10px !important;
}
.dropzone .dz-preview .dz-details{
  border-radius: 14px !important;
}








#fileTree ul li{
  display: flex;
  align-items: center;
  gap: 12px;
}

#fileTree ul li .bi-trash{
  margin-left: auto;           /* <--- to wypycha na prawo */
}

#fileTree ul li{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
}

#fileTree ul li:hover{
  background: #f4f6fa;
}

#fileTree ul li .trash-btn{
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
}

#fileTree ul li .trash-btn:hover{
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.25);
  color: #b91c1c;
}





/* --- Tagbar under results --- */
.tagbar{
  margin-top: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 44px rgba(17,24,39,.08);
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.tagbar-head{
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tagbar-title{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: #111827;
}

.tagbar-title .bi{
  opacity: .8;
  font-size: 18px;
}

.tagbar-count{
  font-size: 12px;
  font-weight: 950;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e7eaf3;
  background: #f7f8fc;
  color: #374151;
}

.tagbar-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tagbar-btn{
  height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tagbar-btn:hover{ background: #f3f5f9; }

/* body */
.tagbar-body{
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* chip like in result tags but more "filter" */
.tagchip{
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e7eaf3;
  background: #fff;
  font-weight: 950;
  color: #111827;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(17,24,39,.06);
}

.tagchip .bi{
  opacity: .75;
  font-size: 14px;
}

.tagchip-count{
  font-size: 12px;
  font-weight: 950;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #eef0f6;
  background: #f4f6fa;
  color: #374151;
}

.tagchip:hover{
  border-color: rgba(255,90,31,.22);
  background: rgba(255,90,31,.04);
}

/* selected */
.tagchip.active{
  border-color: rgba(255,90,31,.35);
  background: rgba(255,90,31,.10);
  color: var(--accent);
}
.tagchip.active .tagchip-count{
  border-color: rgba(255,90,31,.25);
  background: rgba(255,90,31,.10);
  color: var(--accent);
}

/* mobile: horizontal scroll for chips (nicer) */
@media (max-width: 768px){
  .tagbar-body{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }
  .tagbar-body::-webkit-scrollbar{ height: 10px; }
  .tagbar-body::-webkit-scrollbar-thumb{
    background: rgba(17,24,39,.12);
    border-radius: 999px;
  }
}

















/* --- Process Board (3 columns of live nodes) --- */
.proc-board{
  margin-top: 10px;
}

.proc-grid1{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.proc-grid2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);;
  gap: 14px;
}

.proc-grid3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);;
  gap: 14px;
}

.proc-grid4{
  display: grid;
  grid-template-columns: repeat(4, 1fr);;
  gap: 14px;
}

/*
@media (min-width: 992px){
  .proc-grid{ grid-template-columns: repeat(3, 1fr); }
}
*/

.proc-col{
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 44px rgba(17,24,39,.08);
  overflow: hidden;
}

.proc-col-head{
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
}

.proc-col-title{
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.proc-col-count{
  font-size: 12px;
  font-weight: 950;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e7eaf3;
  background: #f7f8fc;
  color: #374151;
}

.proc-col-body{
  padding: 14px;
  background: var(--soft2);
  display: grid;
  gap: 12px;
  max-height: 520px;             /* w razie długiej listy */
  overflow: auto;
}

/* Node card */
.node-card{
  border-radius: 18px;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17,24,39,.08);
  overflow: hidden;
}

.node-card:hover{
  border-color: rgba(255,90,31,.18);
}

.node-head{
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}

.node-title{
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.node-title .id{
  opacity: .65;
  font-weight: 950;
}

.node-sub{
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 800;
  line-height: 1.45;
}

.node-actions{
  display: inline-flex;
  gap: 8px;
  flex: 0 0 auto;
}

.node-actions .btn-ic{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
}
.node-actions .btn-ic:hover{ background:#f3f5f9; }

.node-body{
  padding: 12px 14px;
  background: #fff;
}

.node-kv{
  display: grid;
  gap: 10px;
}

.kv{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: start;
}

.kv-key{
  font-size: 12px;
  font-weight: 950;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-top: 4px;
}

.kv-val{
  font-weight: 900;
  color: #111827;
  line-height: 1.5;
  word-break: break-word;
}

.kv-code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-weight: 800;
  font-size: 12px;
  border-radius: 14px;
  border: 1px solid #eef0f6;
  background: #f7f8fc;
  padding: 10px 12px;
  line-height: 1.5;
  max-height: 120px;
  overflow: auto;
}

.node-foot{
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.node-badges{
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e7eaf3;
  background: #f7f8fc;
  font-weight: 950;
  font-size: 12px;
  color: #374151;
}

.pill.running{
  border-color: rgba(255,90,31,.28);
  background: rgba(255,90,31,.10);
  color: var(--accent);
}
.pill.ok{
  border-color: rgba(16,185,129,.28);
  background: rgba(16,185,129,.10);
  color: #059669;
}
.pill.wait{
  border-color: rgba(245,158,11,.28);
  background: rgba(245,158,11,.12);
  color: #b45309;
}

/* highlight for currently selected node */
.node-card.is-active{
  border-color: rgba(255,90,31,.40);
  box-shadow: 0 0 0 .25rem rgba(255,90,31,.10), 0 12px 28px rgba(17,24,39,.08);
}


















/* --- Kanban board --- */
.kanban{
  margin-top: 10px;
}

.kanban-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.kanban-title{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: #111827;
}

.kanban-actions{
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kbtn{
  height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.kbtn:hover{ background: #f3f5f9; }

.kanban-row{
  display: grid;
  gap: 14px;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.kanban-row::-webkit-scrollbar{ height: 10px; }
.kanban-row::-webkit-scrollbar-thumb{
  background: rgba(17,24,39,.12);
  border-radius: 999px;
}

/* Column */
.kcol{
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 44px rgba(17,24,39,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.kcol-head{
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kcol-title{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  letter-spacing: -0.01em;
  margin: 0;
}

.kcount{
  font-size: 12px;
  font-weight: 950;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e7eaf3;
  background: #f7f8fc;
  color: #374151;
}

.kcol-body{
  padding: 14px;
  background: var(--soft2);
  display: grid;
  gap: 12px;
  align-content: start;
  flex: 1;
}

/* drop visual */
.kcol-body.is-drop{
  outline: 3px solid rgba(255,90,31,.22);
  outline-offset: -8px;
  border-radius: 18px;
}

/* Card */
.kcard{
  border-radius: 18px;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17,24,39,.08);
  overflow: hidden;
  cursor: grab;
}
.kcard:active{ cursor: grabbing; }
.kcard:hover{ border-color: rgba(255,90,31,.18); }

.kcard.is-dragging{
  opacity: .65;
  transform: rotate(-.3deg);
}

.kcard-head{
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.kcard-title{
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.01em;
  line-height: 1.2 !important;
  color: #111827;
}

.kcard-desc{
  margin-top: 6px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
}

.kcard-actions{
  display: inline-flex;
  gap: 8px;
  flex: 0 0 auto;
}

.kic{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
}
.kic:hover{ background:#f3f5f9; }

.kcard-body{ padding: 12px 14px; }

.kmeta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kpill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e7eaf3;
  background: #f7f8fc;
  font-weight: 950;
  font-size: 12px;
  color: #374151;
}

.kpill.prio-high{
  border-color: rgba(239,68,68,.25);
  background: rgba(239,68,68,.10);
  color: #b91c1c;
}
.kpill.prio-med{
  border-color: rgba(245,158,11,.28);
  background: rgba(245,158,11,.12);
  color: #b45309;
}
.kpill.prio-low{
  border-color: rgba(16,185,129,.28);
  background: rgba(16,185,129,.10);
  color: #059669;
}

.kcard-foot{
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kassignee{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kavatar{
  width: 30px;
  height: 30px;
  border-radius: 12px;
  border: 1px solid #e7eaf3;
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 950;
  color: #111827;
}

.kdate{
  font-size: 12px;
  font-weight: 900;
  color: #6b7280;
}




.klist{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* FLIP */
.kflip-move{
  transition: transform .25s cubic-bezier(.2,.7,.3,1);
}

.kflip-enter-active,
.kflip-leave-active{
  transition: opacity .15s ease, transform .15s ease;
}

.kflip-enter,
.kflip-leave-to{
  opacity: 0;
  transform: translateY(6px);
}
















:root{
  --accent: #ff5a1f;
  --line: rgba(17,24,39,.10);
  --soft: rgba(17,24,39,.04);
}

/* Card wrapper (jak Tags) */
.tu-card{
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 50px rgba(17,24,39,.08);
  overflow: hidden;
}

.tu-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 22px 22px;
  border-bottom: 1px solid var(--line);
}

.tu-title{
  margin:0;
  font-weight: 950;
  letter-spacing: -.02em;
  font-size: 48px; /* dopasuj do “Tags” */
  line-height: 1;
}

.tu-card-body{
  padding: 22px 22px 26px;
}

/* Icon button (jak expand) */
.tu-icbtn{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  display:grid;
  place-items:center;
}
.tu-icbtn:hover{
  border-color: rgba(255,90,31,.25);
  box-shadow: 0 10px 22px rgba(17,24,39,.06);
}
.tu-icbtn i{ font-size: 18px; }

/* Compose */
.tu-comment-compose{
  display:flex;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(17,24,39,.02);
  margin-bottom: 18px;
}

.tu-avatar{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  font-weight: 950;
  letter-spacing: -.02em;
  color:#111827;
  background: rgba(255,90,31,.10);
  border: 1px solid rgba(255,90,31,.20);
  flex: 0 0 auto;
}
.tu-avatar-soft{
  background: rgba(17,24,39,.03);
  border: 1px solid var(--line);
  color:#111827;
}

.tu-compose-main{ flex:1; }

.tu-textarea{
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  font-weight: 800;
}
.tu-textarea:focus{
  border-color: rgba(255,90,31,.35);
  box-shadow: 0 0 0 .25rem rgba(255,90,31,.10);
}

.tu-compose-actions{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tu-compose-hint{
  color:#6b7280;
  font-weight: 800;
  font-size: 13px;
  display:flex;
  align-items:center;
  gap:8px;
}
.tu-compose-hint i{ color: var(--accent); }

.tu-btn-accent{
  border-radius: 16px;
  padding: 10px 16px;
  font-weight: 950;
  color:#fff;
  background: var(--accent);
  border: 1px solid rgba(255,90,31,.35);
  box-shadow: 0 12px 26px rgba(255,90,31,.18);
}
.tu-btn-accent:hover{ filter: brightness(.97); color:#fff; }
.tu-btn-accent:disabled{
  background: #e5e7eb;
  color: #9ca3af;
  border-color: #e5e7eb;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.tu-btn-ghost{
  border-radius: 16px;
  padding: 10px 14px;
  font-weight: 950;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  color:#111827;
}
.tu-btn-ghost:hover{
  border-color: rgba(255,90,31,.20);
}

/* List */
.tu-comments-list{
  display:flex;
  flex-direction:column;
  gap: 14px;
}

.tu-comment{
  display:flex;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.88);
}

.tu-comment-main{ flex:1; min-width:0; }

.tu-comment-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.tu-comment-meta{
  display:flex;
  align-items:center;
  gap: 8px;
  min-width: 0;
}

.tu-author{
  font-weight: 950;
  color:#111827;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 260px;
}
.tu-dot{ color:#9ca3af; font-weight: 900; }
.tu-date{ color:#6b7280; font-weight: 850; font-size: 13px; }

.tu-comment-text{
  color:#374151;
  font-weight: 800;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* Small action icons */
.tu-comment-actions{ display:flex; gap: 8px; }
.tu-icbtn-sm{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.8);
  display:grid;
  place-items:center;
}
.tu-icbtn-sm:hover{
  border-color: rgba(255,90,31,.25);
}
.tu-icbtn-sm i{ font-size: 16px; }




















:root{
  --accent:#ff5a1f;
  --line: rgba(17,24,39,.10);
  --soft: rgba(17,24,39,.04);
  --text:#111827;
  --muted:#6b7280;
}

/* modal shell */
.tu-task-modal{
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  box-shadow: 0 30px 90px rgba(17,24,39,.22);
  overflow: hidden;
}

.tu-task-modal,
.modal-content {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
}

/* header */
.tu-modal-head{
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  background: rgba(255,255,255,.88);
}

.tu-modal-title{
  display:flex;
  align-items:center;
  gap: 12px;
  font-weight: 950;
  color: var(--text);
}
.tu-modal-title i{
  color: var(--accent);
  font-size: 18px;
}
.tu-modal-title__main{
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -.01em;
}
.tu-modal-title__sub{
  font-size: 12px;
  font-weight: 850;
  color: var(--muted);
  margin-top: 1px;
}

.tu-modal-body{ padding: 16px 18px 18px; }

.tu-modal-foot{
  border-top: 1px solid var(--line);
  padding: 14px 18px;
  background: rgba(17,24,39,.015);
}

/* icon button */
.tu-icbtn{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  display:grid;
  place-items:center;
}
.tu-icbtn:hover{ border-color: rgba(255,90,31,.22); }
.tu-icbtn i{ font-size: 18px; }

/* label + input */
.tu-label{
  display:block;
  font-weight: 900;
  color: var(--muted);
  margin: 2px 0 8px;
}

.tu-input-wrap{
  display:flex;
  align-items:center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255,255,255,.92);
}
.tu-input-wrap:focus-within{
  border-color: rgba(255,90,31,.35);
  box-shadow: 0 0 0 .25rem rgba(255,90,31,.10);
}
.tu-input-wrap i{ color:#9ca3af; font-size: 18px; }
.tu-input{
  width:100%;
  border:0;
  outline:0;
  background: transparent;
  font-weight: 900;
  color: var(--text);
}

/* tabs (bootstrap nav-tabs -> TraceUp style) */
.tu-tabs{
  border-bottom: 0;
  padding: 6px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  gap: 6px;
}

.tu-tabs .nav-link{
  border: 1px solid transparent !important;
  border-radius: 16px !important;
  height: 44px;
  padding: 0 14px;
  display:inline-flex;
  align-items:center;
  gap: 6px;

  font-weight: 950;
  color: var(--text);
  background: transparent;
}

.tu-tabs .nav-link i{ color: rgba(17,24,39,.55); }
.tu-tabs .nav-link:hover{
  background: rgba(17,24,39,.03);
  border-color: rgba(17,24,39,.06) !important;
}
.tu-tabs .nav-link.active{
  background: rgba(255,90,31,.10) !important;
  border-color: rgba(255,90,31,.35) !important;
  color: var(--accent) !important;
  box-shadow: 0 10px 22px rgba(17,24,39,.06);
}
.tu-tabs .nav-link.active i{ color: var(--accent); }

.tu-pill{
  height: 22px;
  min-width: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  font-weight: 950;
  color: rgba(17,24,39,.70);
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.92);
}

/* buttons */
.tu-btn{
  border-radius: 16px;
  padding: 10px 14px;
  font-weight: 950;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  color: var(--text);
}
.tu-btn:hover{ border-color: rgba(255,90,31,.22); }

.tu-btn-ghost{ background: rgba(255,255,255,.85); }
.tu-btn-accent{
  background: var(--accent);
  color:#fff;
  border-color: rgba(255,90,31,.35);
  box-shadow: 0 12px 26px rgba(255,90,31,.18);
}
.tu-btn-accent:hover{ filter: brightness(.97); color:#fff; }

/* block */
.tu-block{
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.90);
  overflow:hidden;
}

.tu-block-head{
  padding: 14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(17,24,39,.015);
}

.tu-block-title{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 950;
  color: var(--text);
}
.tu-block-title i{ color: var(--accent); }
.tu-muted{
  color: var(--muted);
  font-weight: 850;
  font-size: 13px;
}
.tu-block-foot{ padding: 10px 14px 14px; }

/* hr inside blocks */
.tu-hr{
  border:0;
  border-top:1px solid var(--line);
  margin: 14px 0;
}

/* ===== CHECKLIST ===== */
.tu-checklist{
  padding: 10px 10px 8px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

/* row */
.tu-check{
  position: relative;
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.08);
  background: rgba(255,255,255,.88);
  cursor:pointer;
}
.tu-check:hover{
  border-color: rgba(255,90,31,.20);
  box-shadow: 0 10px 24px rgba(17,24,39,.06);
}

/* hide native checkbox */
.tu-check__box{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

/* custom checkbox */
.tu-check__ui{
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid rgba(17,24,39,.22);
  background: #fff;
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}
.tu-check__box:checked + .tu-check__ui{
  border-color: rgba(255,90,31,.65);
  background: rgba(255,90,31,.10);
}
.tu-check__box:checked + .tu-check__ui::after{
  content: "";
  width: 10px;
  height: 6px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
  margin-top: -1px;
}

/* text */
.tu-check__text{
  font-weight: 900;
  color: var(--text);
  line-height: 1.25;
  flex: 1 1 auto;
}
.tu-check__box:checked ~ .tu-check__text{
  color: rgba(17,24,39,.45);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(17,24,39,.25);
}

/* meta */
.tu-check__meta{
  color: rgba(17,24,39,.25);
  width: 30px;
  display:flex;
  justify-content:center;
  flex: 0 0 auto;
}
.tu-check__meta .bi{ font-size: 16px; }

/* ===== COMMENTS PREMIUM ===== */
.tu-compose{
  display:flex;
  gap: 12px;
  padding: 14px;
}

.tu-compose-main{ flex:1; }

.tu-textarea{
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  font-weight: 850;
}
.tu-textarea:focus{
  border-color: rgba(255,90,31,.35);
  box-shadow: 0 0 0 .25rem rgba(255,90,31,.10);
}

.tu-compose-actions{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tu-comment-list{
  padding: 0 14px 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.tu-comment{
  display:flex;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.08);
  background: rgba(255,255,255,.92);
}

.tu-comment-body{ flex:1; min-width:0; }

.tu-comment-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  margin-bottom: 6px;
}

.tu-comment-who{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width:0;
}

.tu-comment-author{
  font-weight: 950;
  color: var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 280px;
}

.tu-badge-date{
  font-size: 12px;
  font-weight: 950;
  color: rgba(17,24,39,.70);
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(17,24,39,.03);
  padding: 4px 10px;
  border-radius: 999px;
  white-space:nowrap;
}

.tu-comment-text{
  font-weight: 850;
  color: rgba(17,24,39,.88);
  line-height: 1.45;

  /* premium: max 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* avatars */
.tu-avatar{
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  font-weight: 950;
  letter-spacing: -.02em;
  flex: 0 0 auto;
}
.tu-avatar--accent{
  color: var(--accent);
  background: rgba(255,90,31,.10);
  border: 1px solid rgba(255,90,31,.22);
}
.tu-avatar--soft{
  color: var(--text);
  background: rgba(17,24,39,.03);
  border: 1px solid rgba(17,24,39,.10);
}

/* small icon buttons */
.tu-icbtn-sm{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  display:grid;
  place-items:center;
}
.tu-icbtn-sm:hover{ border-color: rgba(255,90,31,.22); }
.tu-icbtn-sm i{ font-size: 16px; }
.tu-comment-actions{ display:flex; gap: 8px; }

/* ===== UPLOAD ===== */
.tu-drop{
  margin: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px dashed rgba(17,24,39,.20);
  background: rgba(17,24,39,.02);
  text-align:center;
}
.tu-drop-ico{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  margin: 0 auto 10px;
  display:grid;
  place-items:center;
  background: rgba(255,90,31,.10);
  border: 1px solid rgba(255,90,31,.22);
}
.tu-drop-ico i{ color: var(--accent); font-size: 24px; }
.tu-drop-title{ font-weight: 950; color: var(--text); }

.tu-files{
  padding: 0 14px 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.tu-file{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.08);
  background: rgba(255,255,255,.92);
}
.tu-file-left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.tu-file-ico{ font-size: 20px; color: var(--accent); }
.tu-file-link{
  font-weight: 950;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.tu-file-link:hover{ color: var(--accent); }
.tu-file-actions{ display:flex; gap: 8px; }

/* WYPYCHA X DO PRAWEJ */
.tu-modal-head{
  justify-content: space-between;
}

.tu-close{
  margin-left: auto;
}

/* FOOTER */
.tu-modal-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
}

/* LEWA / PRAWA */
.tu-footer-left{
  display: flex;
  align-items: center;
}

.tu-footer-right{
  display: flex;
  gap: 12px;
}

/* PRZYCISK USUŃ */
.tu-btn-delete{
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  color: #dc2626;
  border: 1px solid #fecaca;
  background: #fff;
}

.tu-btn-delete:hover{
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.tu-btn-delete i{
  margin-right: 6px;
}


/* responsive tweaks */
@media (max-width: 640px){
  .tu-comment-author{ max-width: 160px; }
  .tu-tabs .nav-link{ padding: 0 10px; }
}
















    /* --- Modal wrapper (DMS-style) --- */
    .dms-overlay{
      position: fixed;
      inset: 0;
      background: rgba(15,23,42,0.35);
      backdrop-filter: blur(6px);
      z-index: 99999;
      display: none;
      align-items: stretch;
      justify-content: center;
      padding: 18px;
    }
    .dms-modal{
      width: min(1320px, 100%);
      height: 100%;
      background:#fff;
      border:1px solid #e3e8f0;
      border-radius: 18px;
      box-shadow: 0 24px 70px rgba(15,23,42,.25);
      display:flex;
      flex-direction: column;
      overflow: hidden;
    }
    .dms-modal-header{
      display:flex;
      align-items:center;
      justify-content: space-between;
      padding: 12px 14px;
      border-bottom:1px solid #e3e8f0;
      background:#fff;
    }
    .dms-title{
      display:flex; align-items:center; gap:10px;
      font-weight:700;
      color:#0f172a;
    }
    .badge-soft{
      background: rgba(255,90,31,.12);
      color:#ff5a1f;
      border: 1px solid rgba(255,90,31,.30);
      border-radius: 999px;
      padding: 4px 10px;
      font-size: 12px;
      font-weight: 700;
    }
    .dms-actions{ display:flex; align-items:center; gap:10px; }
    .dms-modal-body{
      flex: 1 1 auto;
      background:#f5f7fb;
      position: relative;
    }
    .dms-modal-body iframe{
      width:100%;
      height:100%;
      border:0;
      display:block;
      background:#f5f7fb;
    }











/* ===== COLOR PICKER (VISIBLE) ===== */

.tu-color-section{
  padding: 16px 24px 6px;
}

.tu-color-label{
  font-weight: 800;
  display:flex;
  align-items:center;
  gap:10px;
  color:#111827;
  margin-bottom: 10px;
}

.tu-color-grid--big{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}

/* label wrapper */
.tu-color-item{
  cursor:pointer;
  position:relative;
  display:inline-flex;
}

/* hide radio */
.tu-color-item input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

/* big swatch (pill) */
.tu-swatch{
  width: 44px;
  height: 16px;
  border-radius: 12px;

  background: var(--c);
  border: 2px solid rgba(17,24,39,.18);

  /* make light colors visible */
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0)),
    linear-gradient(0deg, rgba(17,24,39,.03), rgba(17,24,39,.03));

  box-shadow:
    0 8px 20px rgba(17,24,39,.08),
    inset 0 0 0 1px rgba(255,255,255,.35);

  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.tu-color-item:hover .tu-swatch{
  transform: translateY(-1px);
  box-shadow:
    0 12px 26px rgba(17,24,39,.12),
    inset 0 0 0 1px rgba(255,255,255,.45);
  border-color: rgba(255,90,31,.35);
}

/* selected: strong ring + check */
.tu-color-item input:checked + .tu-swatch{
  border-color: rgba(255,90,31,.55);
  box-shadow:
    0 0 0 4px rgba(255,90,31,.18),
    0 14px 30px rgba(17,24,39,.14),
    inset 0 0 0 1px rgba(255,255,255,.45);
}

.tu-color-item input:checked + .tu-swatch::after{
  content:"";
  position:absolute;
  width: 10px;
  height: 6px;
  border-left: 3px solid #ff5a1f;
  border-bottom: 3px solid #ff5a1f;
  transform: rotate(-45deg);
  right: 14px;
  top: 2px;
}

/* make ::after work on swatch */
.tu-swatch{ position: relative; }


/* ===== KANBAN CARD TYPOGRAPHY (premium) ===== */

.kcard{
  color:#111827;
}

/* head layout: ważne dla ellipsis w flex */
.kcard-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.kcard-head > div:first-child{
  min-width:0; /* kluczowe dla ellipsis w środku */
  flex:1 1 auto;
}


/* body text */
.kmeta{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.kmeta-text{
  font-size:14px;
  font-weight:750;
  line-height:1.45;
  color: rgba(17,24,39,.92);
  min-width:0; /* dla clamp/ellipsis */
}

/* pills area */
.kmeta-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

/* ===== ELLIPSIS HELPERS ===== */

.ellipsis-1{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
}

.ellipsis-2{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

.ellipsis-3{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}


/* ===== TASK HEADER (clean & premium) ===== */

.tu-taskhead{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-bottom: 16px;
}

/* ===== TITLE ===== */

.tu-task-title-wrap{
  display:flex;
  align-items:center;
  gap:14px;

  padding:16px 18px;
  border-radius:20px;
  border:1px solid rgba(17,24,39,.12);
  background:#fff;

  transition: border-color .12s ease, box-shadow .12s ease;
}

.tu-task-title-wrap:focus-within{
  border-color: rgba(255,90,31,.45);
  box-shadow: 0 0 0 .25rem rgba(255,90,31,.12);
}

.tu-task-title-ico{
  font-size:20px;
  color: rgba(17,24,39,.45);
  flex:0 0 auto;
}

.tu-task-title{
  width:100%;
  border:0;
  outline:0;
  background:transparent;

  font-size:20px;
  font-weight:900;
  letter-spacing:-0.01em;
  color:#111827;
}

/* ===== DESCRIPTION ===== */

.tu-task-desc-wrap{
  padding:14px 18px;
  border-radius:20px;
  border:1px solid rgba(17,24,39,.10);
  background: rgba(17,24,39,.02);

  transition: border-color .12s ease, box-shadow .12s ease;
}

.tu-task-desc-wrap:focus-within{
  border-color: rgba(255,90,31,.35);
  box-shadow: 0 0 0 .25rem rgba(255,90,31,.08);
}

.tu-task-desc{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  resize: vertical;

  font-size:14px;
  font-weight:700;
  line-height:1.5;
  color: rgba(17,24,39,.88);

  min-height:80px;
}

/* placeholder subtelniejszy */
.tu-task-title::placeholder,
.tu-task-desc::placeholder{
  color: rgba(17,24,39,.35);
  font-weight:700;
}







/* =========================
   MODAL FOOTER LAYOUT
========================= */

.kmodal-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
  background: #ffffff;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

/* left block */
.kfooter-left {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* right block */
.kfooter-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* =========================
   MOVE BLOCK
========================= */

.kmove {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto; /* ← to przesuwa Move w prawo */
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(16, 24, 40, 0.10);
  background: rgba(248, 250, 252, 0.9);
  transition: all .2s ease;
}

.kmove:hover {
  border-color: rgba(255, 90, 31, 0.35);
  background: rgba(255, 90, 31, 0.05);
}

.kmove-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  font-size: 14px;
}

.kmove-label i {
  font-size: 16px;
  opacity: 0.75;
}

/* =========================
   SELECT
========================= */

.kmove-select {
  width: 220px;
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 40, 0.15);
  padding: 10px 14px;
  font-weight: 600;
  background: #fff;
  transition: all .2s ease;
  box-shadow: none;
}

.kmove-select:focus {
  border-color: rgba(255, 90, 31, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(255, 90, 31, 0.15);
}

/* =========================
   BUTTONS
========================= */

.kbtn {
  border-radius: 18px;
  padding: 10px 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  transition: all .2s ease;
  font-size: 14px;
}

/* primary (OK) */
.kbtn-primary {
  background: #0b63f6;
  color: #fff;
}

.kbtn-primary:hover {
  background: #084fc7;
}

/* cancel */
.kbtn-ghost {
  background: #f3f4f6;
  color: #111827;
}

.kbtn-ghost:hover {
  background: #e5e7eb;
}

/* delete / archive */
.kbtn-danger-outline {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.kbtn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* disabled */
.kbtn:disabled {
  background: #e5e7eb !important;
  border-color: #e5e7eb !important;
  color: #9ca3af !important;
  cursor: not-allowed;
}
