:root{
  /* Cloudflare-style sidebar */
  --cf-bg:#FFFFFF; --cf-text:#36393A; --cf-icon:#6B6F76; --cf-muted:#888C92;
  --cf-hover:#F4F4F5; --cf-active:#E9E9EB; --cf-line:#E6E6E8; --cf-orange:#F6821F; --cf-search-b:#E2E2E4;
  /* board (Jira-ish) */
  --bg:#F4F5F7; --card:#FFFFFF; --ink:#172B4D; --ink-sub:#5E6C84; --ink-faint:#97A0AF;
  --line:#DFE1E6; --line-soft:#EBECF0; --hover:#EBECF0; --blue:#0052CC;
  --green:#36B37E; --red:#FF5630; --orange:#FF991F; --yellow:#FFC400; --teal:#00B8D9; --purple:#6554C0; --magenta:#E774BB;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Inter',-apple-system,system-ui,sans-serif;color:var(--ink);font-size:14px;line-height:1.42;-webkit-font-smoothing:antialiased;background:var(--bg)}
button{font-family:inherit;cursor:pointer}
a{color:inherit;text-decoration:none}
::selection{background:#DEEBFF}
input,select,textarea{font-family:inherit}

.app{display:grid;grid-template-columns:64px 264px 1fr;height:100vh}

/* ================= NARROW DARK RAIL ================= */
.rail{background:#0747A6;display:flex;flex-direction:column;align-items:center;padding:14px 0;gap:6px}
.rail .brand{width:40px;height:40px;display:grid;place-items:center;margin-bottom:14px}
.rail .brand svg{width:30px;height:30px;color:#fff}
.rail button{width:40px;height:40px;border-radius:6px;border:none;background:none;display:grid;place-items:center;color:#fff}
.rail button:hover{background:rgba(255,255,255,.18)}
.rail button svg{width:20px;height:20px}
.rail .sp{flex:1}

/* ================= CLOUDFLARE-STYLE SIDEBAR ================= */
.cf-side{background:var(--cf-bg);border-right:1px solid var(--cf-line);display:flex;flex-direction:column;overflow:hidden}
.cf-top{display:flex;align-items:center;gap:11px;padding:16px 16px 14px}
.cf-top .cf-avatar{width:38px;height:38px;border-radius:50%;background:var(--cf-orange);display:grid;place-items:center;flex-shrink:0;color:#fff;font-weight:600}
.cf-top .cf-avatar svg{width:22px;height:22px;color:#fff}
.cf-top .cf-user{min-width:0}
.cf-top .cf-user b{font-size:14px;font-weight:600;color:var(--cf-text);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cf-top .cf-user small{font-size:12px;color:var(--cf-muted);font-weight:500}

.cf-search-wrap{padding:0 12px 10px}
.cf-search{display:flex;align-items:center;gap:9px;border:1px solid var(--cf-search-b);border-radius:8px;padding:9px 11px;background:#fff}
.cf-search:focus-within{border-color:var(--cf-orange);box-shadow:0 0 0 2px rgba(246,130,31,.15)}
.cf-search svg{width:16px;height:16px;color:var(--cf-muted)}
.cf-search input{border:none;outline:none;background:none;flex:1;font-family:inherit;font-size:13.5px;color:var(--cf-text)}
.cf-search input::placeholder{color:var(--cf-muted)}

.cf-nav{flex:1;overflow-y:auto;padding:8px 12px 16px;border-top:1px solid var(--cf-line);margin-top:2px}
.cf-nav::-webkit-scrollbar{width:8px}
.cf-nav::-webkit-scrollbar-thumb{background:#D6D6D8;border-radius:4px}
.cf-nav::-webkit-scrollbar-track{background:transparent}

.cf-item{width:100%;display:flex;align-items:center;gap:12px;padding:9px 11px;border-radius:8px;border:none;background:none;color:var(--cf-text);font-family:inherit;font-size:14px;font-weight:500;text-align:left;margin-bottom:1px}
.cf-item:hover{background:var(--cf-hover)}
.cf-item.active{background:var(--cf-active);font-weight:600}
.cf-item .ic{width:18px;height:18px;flex-shrink:0;color:var(--cf-icon);display:grid;place-items:center}
.cf-item .ic svg{width:18px;height:18px;stroke-width:1.7}
.cf-item.active .ic{color:var(--cf-text)}
.cf-item .lbl{flex:1;white-space:nowrap}
.cf-badge{font-size:11px;font-weight:600;color:var(--cf-text);border:1px solid var(--cf-line);border-radius:11px;padding:1px 9px;background:#fff}

/* ---- collapsed (icon-only) state ---- */
.app.nav-collapsed{grid-template-columns:64px 68px 1fr}
.nav-collapsed .cf-top{justify-content:center;padding:16px 0 14px}
.nav-collapsed .cf-top .cf-user,.nav-collapsed .cf-search-wrap,.nav-collapsed .cf-item .lbl,
.nav-collapsed .cf-item .cf-badge{display:none}
.nav-collapsed .cf-top .cf-avatar{width:34px;height:34px}
.nav-collapsed .cf-nav{padding:8px 10px 16px}
.nav-collapsed .cf-item{justify-content:center;padding:10px 0;gap:0}
.nav-collapsed .cf-foot{display:flex;justify-content:center}
.nav-collapsed .cf-foot button svg{transform:scaleX(-1)}

.cf-foot{padding:10px 16px;border-top:1px solid var(--cf-line)}
.cf-foot button{width:30px;height:30px;border-radius:6px;border:none;background:none;display:grid;place-items:center;color:var(--cf-icon)}
.cf-foot button:hover{background:var(--cf-hover)}
.cf-foot svg{width:18px;height:18px}

/* ================= MAIN / BOARD ================= */
.main{display:flex;flex-direction:column;overflow:hidden;position:relative}
.topbar{padding:22px 32px 0;display:flex;align-items:flex-start;justify-content:space-between}
.topbar h1{font-size:24px;font-weight:600;letter-spacing:-.01em}
.crumb{font-size:12.5px;color:var(--ink-sub);margin-bottom:3px}
.topbar-r{display:flex;gap:8px;align-items:center}
.btn-ghost{background:#fff;border:1px solid var(--line);color:var(--ink);padding:7px 14px;border-radius:4px;font-weight:600;font-size:14px}
.btn-ghost:hover{background:var(--hover)}
.btn-primary{background:var(--blue);border:1px solid var(--blue);color:#fff;padding:7px 14px;border-radius:4px;font-weight:600;font-size:14px}
.btn-primary:hover{background:#0747A6}
.btn-icon{width:34px;height:34px;border-radius:4px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;color:var(--ink-sub);position:relative}
.btn-icon:hover{background:var(--hover)}
.btn-icon svg{width:18px;height:18px}

.toolbar{padding:16px 32px;display:flex;align-items:center;gap:14px}
.tsearch{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:4px;padding:7px 10px;width:200px}
.tsearch:focus-within{border-color:var(--blue);box-shadow:0 0 0 2px #DEEBFF}
.tsearch input{border:none;background:none;outline:none;width:100%;font-family:inherit;font-size:13px;color:var(--ink)}
.tsearch svg{width:15px;height:15px;color:var(--ink-faint)}
.facepile{display:flex;margin-left:4px}
.facepile .av{width:32px;height:32px;border-radius:50%;border:2px solid var(--bg);margin-left:-8px;display:grid;place-items:center;font-size:12px;font-weight:600;color:#fff}
.facepile .av:first-child{margin-left:0}
.facepile .more{background:#fff;color:var(--ink-sub);border:2px solid var(--bg);box-shadow:0 0 0 1px var(--line)}

.board{flex:1;display:flex;gap:8px;padding:4px 32px 32px;overflow-x:auto;overflow-y:hidden}
.col{flex:1 1 0;min-width:250px;background:var(--bg);border-radius:4px;display:flex;flex-direction:column;max-height:100%}
.col-head{padding:14px 14px 16px;display:flex;align-items:center;gap:8px}
.col-head .name{font-size:12px;font-weight:700;letter-spacing:.04em;color:var(--ink-sub);text-transform:uppercase}
.col-head .count{font-size:12px;font-weight:600;color:var(--ink-sub)}
.col-head.done .name{color:var(--green)}
.col-body{flex:1;overflow-y:auto;padding:3px 8px 8px;display:flex;flex-direction:column;gap:8px}
.col-body::-webkit-scrollbar{width:8px}
.col-body::-webkit-scrollbar-thumb{background:#C1C7D0;border-radius:4px}

.ticket{background:var(--card);border-radius:3px;padding:12px 14px 11px;box-shadow:0 1px 0 rgba(9,30,66,.18);cursor:grab;transition:box-shadow .1s,background .1s}
.ticket:hover{background:#FAFBFC}
.ticket.dragging{opacity:.5;cursor:grabbing}
.col-body.drag-over{background:#DEEBFF;border-radius:4px;outline:2px dashed #4C9AFF;outline-offset:-2px}
.ticket .title{font-size:14px;line-height:1.4;margin-bottom:11px;color:var(--ink)}
.ticket .lbl{display:inline-block;font-size:11px;font-weight:700;padding:2px 6px;border-radius:3px;margin-bottom:11px;letter-spacing:.02em}
.ticket .meta{display:flex;align-items:center;gap:8px}
.ticket .proj{font-size:11px;font-weight:600;color:var(--ink-sub);display:inline-flex;align-items:center;gap:5px}
.ticket .proj .dot{width:8px;height:8px;border-radius:2px;flex-shrink:0}
.prio{width:18px;height:18px;display:grid;place-items:center}
.prio svg{width:18px;height:18px}
.pts{width:20px;height:20px;border-radius:50%;background:#DFE1E6;color:var(--ink-sub);font-size:11px;font-weight:700;display:grid;place-items:center}
.pts.blocked{background:#FFEBE6}
.pts.blocked svg{width:13px;height:13px;color:var(--red)}
.ticket .key{margin-left:auto;font-size:12px;font-weight:600;color:var(--ink-faint);font-variant-numeric:tabular-nums}
.tkt-type{width:16px;height:16px;border-radius:3px;display:grid;place-items:center}
.tkt-type svg{width:11px;height:11px;color:#fff;stroke-width:2.6}
.type-story{background:var(--green)}
.type-task{background:var(--blue)}
.type-bug{background:var(--red)}
.l-yellow{background:var(--yellow);color:#172B4D}
.l-orange{background:var(--orange);color:#fff}
.l-teal{background:var(--teal);color:#fff}
.l-purple{background:var(--purple);color:#fff}
.l-magenta{background:var(--magenta);color:#fff}
.l-blue{background:var(--blue);color:#fff}
.l-green{background:var(--green);color:#fff}
.av-mini{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:600;color:#fff;flex-shrink:0}

/* ================= DETAY PANELİ ================= */
.detail-panel{position:absolute;inset:0;background:#fff;z-index:40;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .32s cubic-bezier(.4,0,.2,1);box-shadow:-12px 0 32px -12px rgba(9,30,66,.25)}
.detail-panel.open{transform:translateX(0)}
.dp-head{display:flex;align-items:center;gap:12px;padding:14px 24px;border-bottom:1px solid var(--line);flex-shrink:0}
.dp-head .dp-type{width:18px;height:18px;border-radius:4px;display:grid;place-items:center;flex-shrink:0}
.dp-head .dp-type svg{width:12px;height:12px;color:#fff;stroke-width:2.6}
.dp-head .dp-key{font-weight:600;color:var(--ink-sub);font-size:13px}
.dp-head .dp-actions{margin-left:auto;display:flex;gap:6px}
.dp-head .dp-actions button{width:32px;height:32px;border-radius:6px;border:none;background:none;display:grid;place-items:center;color:var(--ink-sub)}
.dp-head .dp-actions button:hover{background:var(--hover)}
.dp-head .dp-actions svg{width:18px;height:18px}
.dp-body{flex:1;overflow-y:auto;display:grid;grid-template-columns:1fr 320px;gap:0}
.dp-main{padding:24px 28px 40px;border-right:1px solid var(--line-soft);min-width:0}
.dp-side{padding:24px 22px;background:#FBFBFC}
.dp-title{font-size:23px;font-weight:600;letter-spacing:-.01em;margin-bottom:20px;line-height:1.3}
.dp-sec-t{font-size:13px;font-weight:700;color:var(--ink-sub);text-transform:uppercase;letter-spacing:.03em;margin:0 0 12px}
.dp-desc{font-size:14px;color:#42526E;line-height:1.6;margin-bottom:30px}
.dp-desc img{max-width:100%;border-radius:6px}

.audio{display:flex;align-items:center;gap:14px;background:#F4F5F7;border:1px solid var(--line);border-radius:12px;padding:14px 18px;margin-bottom:32px}
.audio .play{width:44px;height:44px;border-radius:50%;border:none;background:var(--blue);color:#fff;display:grid;place-items:center;flex-shrink:0;box-shadow:0 2px 8px -1px rgba(0,82,204,.45)}
.audio .play:hover{background:#0747A6}
.audio .play svg{width:20px;height:20px}
.audio .wave{flex:1;display:flex;align-items:center;gap:3px;height:34px}
.audio .wave i{flex:1;background:#C1C7D0;border-radius:2px;transition:background .2s}
.audio.playing .wave i{background:var(--blue);animation:eq .9s ease-in-out infinite alternate}
@keyframes eq{from{transform:scaleY(.4)}to{transform:scaleY(1)}}
.audio .time{font-size:13px;font-weight:600;color:var(--ink-sub);font-variant-numeric:tabular-nums;flex-shrink:0}

.gallery{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.gallery .thumb{aspect-ratio:1;border-radius:10px;overflow:hidden;cursor:pointer;position:relative;border:1px solid var(--line)}
.gallery .thumb img,.gallery .thumb .ph{width:100%;height:100%;object-fit:cover;display:block}
.gallery .thumb:hover{box-shadow:0 0 0 2px var(--blue)}
.gallery .add{aspect-ratio:1;border-radius:10px;border:2px dashed var(--line);display:grid;place-items:center;color:var(--ink-faint);cursor:pointer}
.gallery .add:hover{border-color:var(--blue);color:var(--blue)}
.gallery .add svg{width:26px;height:26px}

.dp-prop{margin-bottom:18px}
.dp-prop label{display:block;font-size:12px;font-weight:600;color:var(--ink-sub);margin-bottom:6px}
.dp-prop .val{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--ink)}
.dp-prop select,.dp-prop input{width:100%;border:1px solid var(--line);border-radius:4px;padding:7px 9px;font-size:13.5px;color:var(--ink);background:#fff}
.dp-prop select:focus,.dp-prop input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 2px #DEEBFF}
.dp-status{display:inline-flex;align-items:center;gap:6px;background:#DEEBFF;color:var(--blue);font-size:12px;font-weight:700;padding:5px 11px;border-radius:4px}
.dp-prop .av{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:600;color:#fff}
.dp-divider{height:1px;background:var(--line-soft);margin:20px 0}
.dp-meta-row{font-size:12.5px;color:var(--ink-sub);margin-bottom:7px}

/* yorumlar */
.comments{margin-top:34px}
.comment{display:flex;gap:12px;margin-bottom:18px}
.comment .c-body{flex:1;min-width:0}
.comment .c-head{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.comment .c-head b{font-size:13.5px}
.comment .c-head time{font-size:12px;color:var(--ink-faint)}
.comment .c-text{font-size:13.5px;color:#42526E;line-height:1.55}
.comment .c-actions{margin-top:5px;display:flex;gap:14px}
.comment .c-actions button{background:none;border:none;color:var(--ink-sub);font-size:12.5px;font-weight:600;padding:0}
.comment .c-actions button:hover{color:var(--blue)}
.comment.reply{margin-left:42px}
.comment-form{display:flex;gap:12px;align-items:flex-start;margin-top:14px}
.comment-form .cf-input{flex:1}
.comment-form textarea{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:13.5px;resize:vertical;min-height:64px}
.comment-form textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 2px #DEEBFF}

/* ================= LIGHTBOX ================= */
.lightbox{position:fixed;inset:0;z-index:100;background:rgba(9,20,40,.88);backdrop-filter:blur(4px);display:flex;flex-direction:column;opacity:0;pointer-events:none;transition:opacity .25s}
.lightbox.open{opacity:1;pointer-events:auto}
.lb-top{display:flex;align-items:center;justify-content:space-between;padding:18px 26px;color:#fff;flex-shrink:0}
.lb-top .lb-count{font-size:14px;font-weight:600;opacity:.85}
.lb-top button{width:40px;height:40px;border-radius:8px;border:none;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center}
.lb-top button:hover{background:rgba(255,255,255,.22)}
.lb-top svg{width:20px;height:20px}
.lb-stage{flex:1;display:flex;align-items:center;justify-content:center;gap:18px;padding:0 18px;min-height:0}
.lb-nav{width:48px;height:48px;border-radius:50%;border:none;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center;flex-shrink:0}
.lb-nav:hover{background:rgba(255,255,255,.25)}
.lb-nav svg{width:24px;height:24px}
.lb-img{max-width:calc(100% - 160px);max-height:100%;border-radius:8px;box-shadow:0 20px 60px -10px rgba(0,0,0,.6);object-fit:contain}
.lb-strip{display:flex;gap:8px;justify-content:center;padding:18px;flex-shrink:0;flex-wrap:wrap}
.lb-strip img{width:60px;height:60px;object-fit:cover;border-radius:6px;cursor:pointer;opacity:.5;transition:.15s;border:2px solid transparent}
.lb-strip img:hover{opacity:.85}
.lb-strip img.cur{opacity:1;border-color:#fff}

/* ================= LOGIN ================= */
.login-wrap{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#0747A6,#0052CC 60%,#172B4D)}
.login-card{width:380px;max-width:92vw;background:#fff;border-radius:14px;padding:36px 34px;box-shadow:0 24px 60px -20px rgba(9,30,66,.5)}
.login-brand{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.login-brand svg{width:34px;height:34px;color:var(--blue)}
.login-brand b{font-size:20px;font-weight:700}
.login-card h1{font-size:18px;font-weight:600;margin:18px 0 4px}
.login-card p.sub{font-size:13.5px;color:var(--ink-sub);margin-bottom:22px}
.field{margin-bottom:16px}
.field label{display:block;font-size:13px;font-weight:600;color:var(--ink-sub);margin-bottom:6px}
.field input{width:100%;border:1px solid var(--line);border-radius:8px;padding:11px 13px;font-size:14px}
.field input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px #DEEBFF}
.login-btn{width:100%;background:var(--blue);color:#fff;border:none;border-radius:8px;padding:12px;font-size:15px;font-weight:600;margin-top:6px}
.login-btn:hover{background:#0747A6}
.login-btn:disabled{opacity:.6;cursor:default}
.login-err{background:#FFEBE6;color:#BF2600;font-size:13px;padding:10px 12px;border-radius:8px;margin-bottom:16px;display:none}
.login-err.show{display:block}

/* ================= NOTIFICATIONS DROPDOWN ================= */
.notif-wrap{position:relative}
.notif-badge{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;border-radius:9px;background:var(--red);color:#fff;font-size:10px;font-weight:700;display:none;place-items:center;padding:0 4px}
.notif-badge.show{display:grid}
.notif-drop{position:absolute;top:42px;right:0;width:340px;max-height:440px;overflow-y:auto;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px -8px rgba(9,30,66,.3);z-index:60;display:none}
.notif-drop.open{display:block}
.notif-drop .nd-head{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;border-bottom:1px solid var(--line-soft)}
.notif-drop .nd-head b{font-size:14px}
.notif-drop .nd-head button{background:none;border:none;color:var(--blue);font-size:12.5px;font-weight:600}
.notif-item{display:flex;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line-soft);cursor:pointer}
.notif-item:hover{background:var(--cf-hover)}
.notif-item.unread{background:#F0F6FF}
.notif-item .ni-dot{width:8px;height:8px;border-radius:50%;background:var(--blue);margin-top:5px;flex-shrink:0;opacity:0}
.notif-item.unread .ni-dot{opacity:1}
.notif-item .ni-text{font-size:13px;color:var(--ink);line-height:1.4}
.notif-item .ni-time{font-size:11.5px;color:var(--ink-faint);margin-top:3px}
.notif-empty{padding:30px 16px;text-align:center;color:var(--ink-faint);font-size:13px}

/* ================= MODAL ================= */
.modal-back{position:fixed;inset:0;background:rgba(9,30,66,.54);z-index:80;display:none;align-items:flex-start;justify-content:center;padding:60px 16px;overflow-y:auto}
.modal-back.open{display:flex}
.modal{background:#fff;border-radius:12px;width:520px;max-width:100%;box-shadow:0 24px 60px -16px rgba(9,30,66,.5)}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--line-soft)}
.modal-head h3{font-size:17px;font-weight:600}
.modal-head .x{width:30px;height:30px;border:none;background:none;border-radius:6px;display:grid;place-items:center;color:var(--ink-sub)}
.modal-head .x:hover{background:var(--hover)}
.modal-body{padding:20px 22px}
.modal-foot{padding:14px 22px;border-top:1px solid var(--line-soft);display:flex;justify-content:flex-end;gap:10px}
.modal .field input,.modal .field select,.modal .field textarea{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:14px}
.modal .field input:focus,.modal .field select:focus,.modal .field textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px #DEEBFF}
.modal .ql-editor{min-height:120px}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:14px}

/* ================= TABLO (kullanıcılar) ================= */
.page-pad{padding:8px 32px 32px;overflow-y:auto;flex:1}
.tbl{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.tbl th{text-align:left;font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--ink-sub);padding:12px 16px;border-bottom:1px solid var(--line);background:#FAFBFC}
.tbl td{padding:12px 16px;border-bottom:1px solid var(--line-soft);font-size:13.5px}
.tbl tr:last-child td{border-bottom:none}
.pill{display:inline-block;font-size:11.5px;font-weight:600;padding:3px 10px;border-radius:20px}
.pill.on{background:#E3FCEF;color:#006644}
.pill.off{background:#FFEBE6;color:#BF2600}
.pill.admin{background:#DEEBFF;color:#0747A6}
.pill.user{background:#EBECF0;color:var(--ink-sub)}
.tbl-actions{display:flex;gap:6px}
.tbl-actions button{border:1px solid var(--line);background:#fff;border-radius:6px;padding:5px 9px;font-size:12.5px;font-weight:600;color:var(--ink-sub)}
.tbl-actions button:hover{background:var(--hover)}

/* ================= PROJE KARTLARI ================= */
.proj-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.proj-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px;cursor:pointer;transition:box-shadow .12s}
.proj-card:hover{box-shadow:0 6px 18px -8px rgba(9,30,66,.3)}
.proj-card .pc-top{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.proj-card .pc-key{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;color:#fff;font-weight:700;font-size:13px}
.proj-card h3{font-size:15px;font-weight:600}
.proj-card .pc-meta{font-size:12.5px;color:var(--ink-sub)}

/* ================= TIMELINE ================= */
.tl-wrap{padding:16px 32px 32px;overflow-x:auto;flex:1}
.tl-bars{display:flex;align-items:flex-end;gap:6px;height:300px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:10px;min-width:max-content}
.tl-day{display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer}
.tl-day .bar{width:30px;background:var(--blue);border-radius:4px 4px 0 0;min-height:3px;transition:background .12s;position:relative}
.tl-day:hover .bar{background:#0747A6}
.tl-day.sel .bar{background:var(--green)}
.tl-day .bar .cnt{position:absolute;top:-20px;left:50%;transform:translateX(-50%);font-size:11px;font-weight:700;color:var(--ink-sub)}
.tl-day .dlabel{font-size:10.5px;color:var(--ink-faint);writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}

/* ================= SKELETON LOADING ================= */
@keyframes skel-shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}
.skel{background:#E9EBEF;background-image:linear-gradient(90deg,#E9EBEF 0px,#F4F5F7 120px,#E9EBEF 240px);background-size:600px 100%;border-radius:4px;animation:skel-shimmer 1.2s ease-in-out infinite}
.skel-line{height:11px;margin-bottom:9px}
.skel-line.w40{width:40%}.skel-line.w55{width:55%}.skel-line.w70{width:70%}.skel-line.w90{width:90%}
.skel-card{background:var(--card);border-radius:3px;padding:12px 14px 13px;box-shadow:0 1px 0 rgba(9,30,66,.18)}
.skel-card .skel-meta{display:flex;align-items:center;gap:8px;margin-top:12px}
.skel-card .skel-chip{width:16px;height:16px;border-radius:3px}
.skel-card .skel-key{width:42px;height:11px;margin-left:auto}
.skel-circle{border-radius:50%}
.skel-row td{padding:14px 16px}
.skel-proj{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px}
.skel-proj .skel-top{display:flex;align-items:center;gap:10px;margin-bottom:14px}

/* ================= CONTEXT MENU (sağ tık) ================= */
.ctx-menu{position:fixed;z-index:300;min-width:170px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px -8px rgba(9,30,66,.3);padding:6px;display:none}
.ctx-menu.open{display:block}
.ctx-menu button{width:100%;display:flex;align-items:center;gap:10px;background:none;border:none;text-align:left;font-family:inherit;font-size:13.5px;font-weight:500;color:var(--ink);padding:9px 11px;border-radius:7px}
.ctx-menu button:hover{background:var(--cf-hover)}
.ctx-menu button svg{width:16px;height:16px;color:var(--ink-sub)}
.ctx-menu button.danger{color:var(--red)}
.ctx-menu button.danger svg{color:var(--red)}
.ctx-menu .ctx-sep{height:1px;background:var(--line-soft);margin:5px 0}

.empty-state{display:grid;place-items:center;text-align:center;color:var(--ink-faint);padding:60px 20px}
.empty-state svg{width:48px;height:48px;margin-bottom:14px;opacity:.5}
.spinner{width:34px;height:34px;border:3px solid var(--line);border-top-color:var(--blue);border-radius:50%;animation:spin .7s linear infinite;margin:40px auto}
@keyframes spin{to{transform:rotate(360deg)}}
.hidden{display:none !important}

.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);background:#172B4D;color:#fff;padding:12px 20px;border-radius:8px;font-size:13.5px;font-weight:500;box-shadow:0 10px 30px -8px rgba(9,30,66,.5);opacity:0;pointer-events:none;transition:.25s;z-index:200}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.toast.err{background:#BF2600}

@media(max-width:1080px){.dp-body{grid-template-columns:1fr}.dp-side{border-top:1px solid var(--line)}.gallery{grid-template-columns:repeat(4,1fr)}}
@media(max-width:900px){.app{grid-template-columns:1fr}.cf-side,.rail{display:none}}
