/* =====================================================================
   ProjectHub Europe - Ana Stil Dosyası
   Modern, responsive, tek dosya (build adımı yok).
   ===================================================================== */

:root {
    --brand: #4f46e5;
    --brand-600: #4338ca;
    --brand-700: #3730a3;
    --brand-soft: #eef2ff;

    --bg: #f4f6fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    --text: #0f172a;
    --text-2: #475569;
    --text-3: #94a3b8;

    --sidebar-bg: #0f172a;
    --sidebar-bg-2: #1e293b;
    --sidebar-text: #cbd5e1;
    --sidebar-text-dim: #64748b;
    --sidebar-active: #6366f1;

    --radius: 14px;
    --radius-sm: 9px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
    --shadow: 0 4px 14px rgba(15, 23, 42, .07);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, .16);

    --sidebar-w: 264px;

    --green: #16a34a; --green-bg:#dcfce7;
    --red: #dc2626;   --red-bg:#fee2e2;
    --amber:#d97706;  --amber-bg:#fef3c7;
    --blue:#2563eb;   --blue-bg:#dbeafe;
    --indigo:#4f46e5; --indigo-bg:#e0e7ff;
    --teal:#0d9488;   --teal-bg:#ccfbf1;
    --gray:#475569;   --gray-bg:#f1f5f9;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; color: var(--text); font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }
.icon { display: inline-block; vertical-align: middle; flex: none; }

/* ---------------- App Shell ---------------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--sidebar-bg), #111827);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 40;
    transition: transform .25s ease;
}
.sidebar__brand {
    display: flex; align-items: center; gap: 11px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar__logo {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #22d3ee);
    display: grid; place-items: center;
    color: #fff; font-weight: 800; font-size: 17px;
    box-shadow: 0 6px 16px rgba(99,102,241,.4);
}
.sidebar__title { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.1; }
.sidebar__subtitle { font-size: 11px; color: var(--sidebar-text-dim); }

.sidebar__project {
    margin: 14px 14px 6px;
    padding: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
}
.sidebar__project-name { color:#fff; font-weight:700; font-size:13.5px; }
.sidebar__project-meta { color: var(--sidebar-text-dim); font-size:11.5px; margin-top:2px; }

.sidebar__nav { flex: 1; overflow-y: auto; padding: 8px 12px 24px; }
.sidebar__nav::-webkit-scrollbar { width: 8px; }
.sidebar__nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 8px; }

.nav-group { margin-top: 14px; }
.nav-group__label {
    font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
    color: var(--sidebar-text-dim); font-weight: 700;
    padding: 4px 12px; margin-bottom: 2px;
}
.nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 12px; margin: 2px 0;
    border-radius: 9px;
    color: var(--sidebar-text);
    font-size: 13.5px; font-weight: 500;
    transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255,255,255,.07); color:#fff; text-decoration: none; }
.nav-item.active { background: var(--sidebar-active); color:#fff; box-shadow: 0 6px 16px rgba(99,102,241,.35); }
.nav-item .icon { opacity: .85; }
.nav-item.active .icon { opacity: 1; }

.sidebar__footer { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.07); }
.user-chip { display:flex; align-items:center; gap:10px; }
.user-chip__avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg,#6366f1,#22d3ee);
    color:#fff; font-weight:700; font-size:13px;
    display:grid; place-items:center; flex:none;
}
.user-chip__name { color:#fff; font-size:13px; font-weight:600; }
.user-chip__email { color: var(--sidebar-text-dim); font-size:11px; }

/* ---------------- Main ---------------- */
.main {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.topbar {
    position: sticky; top: 0; z-index: 30;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 12px 26px;
    display: flex; align-items: center; gap: 16px;
}
.topbar__toggle {
    display: none; background: none; border: none; cursor: pointer;
    color: var(--text-2); padding: 6px; border-radius: 8px;
}
.breadcrumb { display:flex; align-items:center; gap:7px; font-size:13px; color: var(--text-3); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-2); font-weight:500; }
.breadcrumb .sep { color: var(--text-3); display:flex; }
.breadcrumb .current { color: var(--text); font-weight:600; }
.topbar__spacer { flex: 1; }
.topbar__actions { display:flex; align-items:center; gap:10px; }

.content { padding: 26px; max-width: 1360px; width: 100%; margin: 0 auto; }

.page-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; }
.page-head .subtitle { color: var(--text-2); font-size: 14px; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 15px; border-radius: 10px;
    border: 1px solid transparent; cursor: pointer;
    font-size: 13.5px; font-weight: 600; font-family: inherit;
    transition: all .15s; white-space: nowrap; text-decoration: none;
    background: var(--surface); color: var(--text);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color:#fff; box-shadow: 0 6px 16px rgba(79,70,229,.28); }
.btn-primary:hover { background: var(--brand-600); }
.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--red); color:#fff; }
.btn-danger:hover { filter: brightness(.94); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------------- Cards ---------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.card__head {
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.card__head h3 { margin: 0; font-size: 15.5px; }
.card__body { padding: 20px; }
.card__body.tight { padding: 0; }

/* Stat cards */
.stats-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat {
    background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
    padding: 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat__icon {
    width: 42px; height: 42px; border-radius: 11px; display:grid; place-items:center; margin-bottom: 12px;
}
.stat__value { font-size: 27px; font-weight: 800; line-height: 1; color: var(--text); }
.stat__label { color: var(--text-2); font-size: 13px; margin-top: 6px; }
.stat__sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* Dashboard grid */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-main { grid-template-columns: 2fr 1fr; align-items: start; }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
    text-align: left; padding: 11px 16px; color: var(--text-2);
    font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em;
    border-bottom: 1px solid var(--border); background: var(--surface-2);
    white-space: nowrap;
}
table.data td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data td .muted { color: var(--text-3); font-size: 12.5px; }

/* ---------------- Badges / chips ---------------- */
.badge {
    display: inline-flex; align-items:center; gap:5px;
    padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge.gray   { background: var(--gray-bg);   color: var(--gray); }
.badge.blue   { background: var(--blue-bg);   color: var(--blue); }
.badge.indigo { background: var(--indigo-bg); color: var(--indigo); }
.badge.amber  { background: var(--amber-bg);  color: var(--amber); }
.badge.green  { background: var(--green-bg);  color: var(--green); }
.badge.teal   { background: var(--teal-bg);   color: var(--teal); }
.badge.red    { background: var(--red-bg);    color: var(--red); }
.dot { width: 7px; height:7px; border-radius: 50%; background: currentColor; }

.chip { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:8px; background: var(--surface-2); border:1px solid var(--border); font-size:12.5px; color: var(--text-2); }

/* Progress */
.progress { height: 8px; background: var(--gray-bg); border-radius: 999px; overflow: hidden; min-width: 90px; }
.progress__bar { height: 100%; background: linear-gradient(90deg, var(--brand), #22d3ee); border-radius: 999px; transition: width .4s; }
.progress-label { display:flex; align-items:center; gap:8px; }
.progress-label span { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 34px; }

/* Avatars */
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#6366f1,#22d3ee); color:#fff; font-size:11.5px; font-weight:700; display:grid; place-items:center; flex:none; }
.avatar.sm { width: 24px; height:24px; font-size:10px; }
.avatar-stack { display:flex; }
.avatar-stack .avatar { margin-left: -8px; border: 2px solid var(--surface); }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* ---------------- Forms ---------------- */
.form-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group.col-span-2 { grid-column: 1 / -1; }
label.form-label { display:block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
label.form-label .req { color: var(--red); }
.input, .select, .textarea {
    width: 100%; padding: 10px 12px; font-size: 14px; font-family: inherit;
    border: 1px solid var(--border-strong); border-radius: 10px;
    background: var(--surface); color: var(--text); transition: border .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.textarea { min-height: 96px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.form-actions { display:flex; gap:10px; margin-top: 8px; }

/* Toggle switch */
.switch { position: relative; display:inline-block; width: 42px; height: 24px; }
.switch input { opacity:0; width:0; height:0; }
.switch .slider { position:absolute; inset:0; background: var(--border-strong); border-radius:999px; transition:.2s; cursor:pointer; }
.switch .slider::before { content:''; position:absolute; height:18px; width:18px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.2s; box-shadow:0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::before { transform: translateX(18px); }

/* ---------------- Flash ---------------- */
.flash-wrap { position: fixed; top: 16px; right: 16px; z-index: 100; display:flex; flex-direction:column; gap:10px; max-width: 380px; }
.flash {
    padding: 13px 16px; border-radius: 12px; box-shadow: var(--shadow-lg);
    display:flex; align-items:flex-start; gap:10px; font-size: 13.5px; font-weight: 500;
    animation: slideIn .3s ease; background:#fff; border:1px solid var(--border); color: var(--text);
}
.flash.success { border-left: 4px solid var(--green); }
.flash.error   { border-left: 4px solid var(--red); }
.flash.warning { border-left: 4px solid var(--amber); }
.flash.info    { border-left: 4px solid var(--blue); }
.flash button { margin-left:auto; background:none; border:none; cursor:pointer; color: var(--text-3); font-size:16px; line-height:1; }
@keyframes slideIn { from { transform: translateX(30px); opacity:0; } to { transform:none; opacity:1; } }

/* ---------------- Auth ---------------- */
.auth {
    min-height: 100vh; display:grid; grid-template-columns: 1fr 1fr;
}
.auth__side {
    background: linear-gradient(150deg, #312e81, #4f46e5 55%, #0ea5e9);
    color:#fff; padding: 56px; display:flex; flex-direction:column; justify-content:space-between;
    position: relative; overflow:hidden;
}
.auth__side::after { content:''; position:absolute; width:420px; height:420px; right:-120px; bottom:-140px; background:rgba(255,255,255,.08); border-radius:50%; }
.auth__brand { display:flex; align-items:center; gap:12px; font-weight:800; font-size:20px; }
.auth__brand .sidebar__logo { width:44px; height:44px; }
.auth__headline { font-size: 34px; font-weight:800; line-height:1.15; margin-bottom: 14px; }
.auth__list { list-style:none; padding:0; margin: 22px 0 0; }
.auth__list li { display:flex; gap:10px; align-items:flex-start; margin-bottom: 14px; color: rgba(255,255,255,.92); }
.auth__list .tick { background: rgba(255,255,255,.2); border-radius:8px; padding:4px; display:grid; place-items:center; }
.auth__main { display:flex; align-items:center; justify-content:center; padding: 40px; background: var(--bg); }
.auth__card { width:100%; max-width: 420px; }
.auth__card h1 { font-size: 26px; }
.auth__card .subtitle { color: var(--text-2); margin-bottom: 26px; }
.auth__demo { margin-top: 20px; padding: 13px 15px; background: var(--brand-soft); border:1px dashed #c7d2fe; border-radius: 12px; font-size: 12.5px; color: var(--brand-700); }
.auth__footer { text-align:center; margin-top: 20px; color: var(--text-2); font-size: 13.5px; }

/* ---------------- Wizard ---------------- */
.wizard-steps { display:flex; gap:8px; margin-bottom: 26px; flex-wrap:wrap; }
.wizard-step { display:flex; align-items:center; gap:10px; padding: 10px 16px; border-radius: 12px; background: var(--surface); border:1px solid var(--border); color: var(--text-3); font-weight:600; font-size:13px; }
.wizard-step.active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.wizard-step.done { color: var(--green); border-color: var(--green-bg); }
.wizard-step .num { width:24px; height:24px; border-radius:50%; background: var(--gray-bg); display:grid; place-items:center; font-size:12px; }
.wizard-step.active .num { background: var(--brand); color:#fff; }
.wizard-step.done .num { background: var(--green); color:#fff; }

.template-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap:14px; }
.template-card { border:2px solid var(--border); border-radius: 14px; padding: 18px; cursor:pointer; transition: all .15s; background: var(--surface); position:relative; }
.template-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.template-card input { position:absolute; opacity:0; }
.template-card.selected { border-color: var(--brand); background: var(--brand-soft); }
.template-card__cat { font-size:11px; text-transform:uppercase; letter-spacing:.05em; color: var(--brand); font-weight:700; }
.template-card__name { font-size: 16px; font-weight:700; margin: 6px 0; }
.template-card__desc { font-size: 12.5px; color: var(--text-2); }

/* ---------------- Misc ---------------- */
.muted { color: var(--text-3); }
.text-sm { font-size: 13px; }
.mt-0 { margin-top:0; } .mb-0 { margin-bottom:0; }
.flex { display:flex; } .items-center { align-items:center; } .gap-2 { gap:8px; } .gap-3 { gap:12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }

.empty {
    text-align:center; padding: 46px 20px; color: var(--text-3);
}
.empty .icon { opacity:.4; margin-bottom: 10px; }
.empty h3 { color: var(--text-2); font-weight:600; }

.filter-bar { display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 18px; }
.filter-pill { padding: 7px 14px; border-radius: 999px; background: var(--surface); border:1px solid var(--border); font-size: 13px; color: var(--text-2); font-weight:500; cursor:pointer; }
.filter-pill:hover { border-color: var(--brand); text-decoration:none; color: var(--brand); }
.filter-pill.active { background: var(--brand); color:#fff; border-color: var(--brand); }
.filter-pill .count { opacity:.7; margin-left:4px; }

.section-title { font-size: 13px; text-transform: uppercase; letter-spacing:.05em; color: var(--text-3); font-weight:700; margin: 26px 0 12px; }

.list-row { display:flex; align-items:center; gap:12px; padding: 12px 0; border-bottom:1px solid var(--border); }
.list-row:last-child { border-bottom:none; }
.list-row__main { flex:1; min-width:0; }
.list-row__title { font-weight:600; color: var(--text); }
.list-row__meta { font-size:12.5px; color: var(--text-3); }

.activity { position:relative; padding-left: 24px; }
.activity::before { content:''; position:absolute; left:6px; top:6px; bottom:6px; width:2px; background: var(--border); }
.activity__item { position:relative; padding: 8px 0; }
.activity__item::before { content:''; position:absolute; left:-22px; top:13px; width:9px; height:9px; border-radius:50%; background: var(--brand); border:2px solid var(--surface); }
.activity__text { font-size:13px; }
.activity__time { font-size:11.5px; color: var(--text-3); }

.kv { display:grid; grid-template-columns: 150px 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--text-2); font-weight:500; }
.kv dd { margin:0; color: var(--text); font-weight:600; }

.folder-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap:12px; }
.folder-card { display:flex; align-items:center; gap:12px; padding:14px; border:1px solid var(--border); border-radius:12px; background: var(--surface); transition: all .15s; }
.folder-card:hover { border-color: var(--brand); box-shadow: var(--shadow); text-decoration:none; }
.folder-card .icon { color: var(--amber); }
.folder-card__name { font-weight:600; font-size:13.5px; color: var(--text); }
.folder-card__count { font-size:12px; color: var(--text-3); }

.tag-inactive { opacity:.5; }

.divider { height:1px; background: var(--border); margin: 18px 0; border: none; }

.risk-meter { display:flex; gap:4px; align-items:center; }
.risk-bar { width:26px; height:8px; border-radius:3px; background: var(--gray-bg); }
.risk-bar.on { background: var(--amber); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
    .grid-main, .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .auth { grid-template-columns: 1fr; }
    .auth__side { display:none; }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: none; }
    .main { margin-left: 0; }
    .topbar__toggle { display: inline-flex; }
    .content { padding: 18px; }
    .stats-grid { grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); }
    .backdrop { position: fixed; inset:0; background: rgba(15,23,42,.5); z-index:35; }
}

/* ---- Dosyalar: klasör menüleri, toplu işlemler ---- */
.folder-item { position: relative; }
.folder-item .folder-card { padding-right: 44px; height: 100%; }
.folder-item__menu { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); }
.folder-card__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 290px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); }
.menu__panel .form-label { font-size: 12px; margin-bottom: 4px; }
.input-sm { padding: 6px 10px; font-size: 13px; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.table-wrap.has-menus { overflow: visible; }
@media (max-width: 900px) {
    .table-wrap.has-menus { overflow-x: auto; }
    /* Dar ekranda menü, tablo kaydırmasından etkilenmeyen alt panel olarak açılır. */
    .menu__panel { position: fixed; left: 16px; right: 16px; bottom: 16px; top: auto; width: auto; }
}

/* ---- Zaman çizelgesi renkleri (Takvim + Gantt ortak) ---- */
.tl-wp          { --tl: var(--indigo); --tl-bg: var(--indigo-bg); }
.tl-task        { --tl: var(--blue);   --tl-bg: var(--blue-bg); }
.tl-event       { --tl: var(--teal);   --tl-bg: var(--teal-bg); }
.tl-milestone   { --tl: var(--amber);  --tl-bg: var(--amber-bg); }
.tl-deliverable { --tl: var(--green);  --tl-bg: var(--green-bg); }
.is-overdue     { --tl: var(--red);    --tl-bg: var(--red-bg); }
.cal-dot { display:inline-block; width:9px; height:9px; border-radius:50%; background: var(--tl); flex-shrink:0; }

/* ---- Takvim ---- */
.cal-toolbar { flex-wrap: wrap; }
.cal-filters { display:flex; flex-wrap:wrap; gap:6px 14px; margin:0; }
.cal-filter { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color: var(--text-2); cursor:pointer; }
.cal-scroll { overflow-x: auto; }
.cal-grid { display:grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); min-width: 770px; }
.cal-weekday { padding:8px 10px; font-size:12px; font-weight:600; color: var(--text-3); text-transform: uppercase; border-bottom:1px solid var(--border); }
.cal-day { min-height: 112px; padding:6px; border-right:1px solid var(--border); border-bottom:1px solid var(--border); display:flex; flex-direction:column; gap:3px; min-width:0; }
.cal-day:nth-child(7n) { border-right: none; }
.cal-day.is-weekend { background: var(--surface-2); }
.cal-day.is-other { background: var(--surface-2); }
.cal-day.is-other .cal-day__num { color: var(--text-3); }
.cal-day__head { display:flex; justify-content:space-between; align-items:center; }
.cal-day__num { font-size:12.5px; font-weight:600; width:24px; height:24px; display:grid; place-items:center; border-radius:50%; }
.cal-day.is-today .cal-day__num { background: var(--brand); color:#fff; }
.cal-day__add { opacity:0; font-weight:700; color: var(--text-3); padding:0 6px; border-radius:6px; }
.cal-day:hover .cal-day__add { opacity:1; }
.cal-day__add:hover { background: var(--brand-soft); color: var(--brand); text-decoration:none; }
.cal-chip { display:block; padding:2px 7px; border-radius:6px; font-size:11.5px; line-height:1.5; background: var(--tl-bg); color: var(--tl); border-left:3px solid var(--tl); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cal-chip:hover { text-decoration:none; filter: brightness(.96); }
.cal-chip.is-done { opacity:.6; text-decoration: line-through; }
.cal-more summary { font-size:11.5px; color: var(--text-2); cursor:pointer; list-style:none; padding:0 4px; }
.cal-more[open] { display:flex; flex-direction:column; gap:3px; }
.agenda__day { display:flex; gap:16px; padding:12px 20px; border-bottom:1px solid var(--border); }
.agenda__day:last-child { border-bottom:none; }
.agenda__day.is-today { background: var(--brand-soft); }
.agenda__date { width:44px; text-align:center; flex-shrink:0; }
.agenda__num { font-size:20px; font-weight:700; line-height:1.1; }
.agenda__items { display:flex; flex-direction:column; gap:6px; min-width:0; flex:1; }
.agenda__item { display:flex; align-items:center; gap:8px; flex-wrap:wrap; color: var(--text); font-size:13.5px; }
.agenda__item:hover { text-decoration:none; color: var(--brand); }
.agenda__type { font-size:11.5px; color: var(--text-3); min-width:92px; }
.agenda__title { font-weight:600; }

/* ---- Gantt ---- */
.segmented { display:inline-flex; border:1px solid var(--border); border-radius:9px; overflow:hidden; }
.segmented a { padding:6px 12px; font-size:12.5px; color: var(--text-2); border-right:1px solid var(--border); }
.segmented a:last-child { border-right:none; }
.segmented a.active { background: var(--brand); color:#fff; }
.segmented a:hover { text-decoration:none; }
.gantt-legend { display:flex; flex-wrap:wrap; gap:6px 18px; font-size:12.5px; color: var(--text-2); margin-bottom:12px; align-items:center; }
.gantt-legend span { display:inline-flex; align-items:center; gap:6px; }
.gantt-legend__bar { display:inline-block; width:22px; height:9px; border-radius:4px; background: var(--tl); }
.gantt-legend__mk { display:inline-block; width:10px; height:10px; background: var(--tl); }
.gantt-legend__mk.tl-milestone { transform: rotate(45deg); }
.gantt { --label-w: 300px; padding:0; overflow:hidden; }
.gantt__scroll { overflow:auto; max-height: 72vh; }
.gantt__inner { width: calc(var(--label-w) + var(--gantt-w)); position:relative; }
.gantt__row { display:flex; min-height:34px; border-bottom:1px solid var(--border); }
.gantt__row.is-hidden { display:none; }
.gantt__label { position:sticky; left:0; z-index:3; width: var(--label-w); flex-shrink:0; display:flex; align-items:center; gap:8px; padding:0 12px; background: var(--surface); border-right:1px solid var(--border); font-size:13px; min-width:0; }
.gantt__label--child { padding-left:38px; }
.gantt__name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; min-width:0; color: var(--text); }
.gantt__meta { font-size:11.5px; color: var(--text-3); white-space:nowrap; }
.gantt__group .gantt__label, .gantt__group { background: var(--surface-2); }
.gantt__toggle { border:none; background:none; cursor:pointer; color: var(--text-2); width:18px; padding:0; font-size:13px; transition: transform .15s; }
.gantt__toggle[aria-expanded="false"] { transform: rotate(-90deg); }
.gantt__toggle:disabled { visibility:hidden; }
.gantt__track { position:relative; width: var(--gantt-w); flex-shrink:0; }
.gantt__head { position:sticky; top:0; z-index:5; background: var(--surface); min-height:52px; }
.gantt__corner { font-size:12px; font-weight:600; color: var(--text-3); text-transform:uppercase; z-index:6; }
.gantt__band { position:absolute; height:26px; line-height:26px; padding:0 6px; font-size:11.5px; color: var(--text-2); border-left:1px solid var(--border); overflow:hidden; white-space:nowrap; box-sizing:border-box; }
.gantt__band--top { top:0; font-weight:600; border-bottom:1px solid var(--border); }
.gantt__band--bottom { top:26px; text-align:center; padding:0 2px; }
.gantt__body { position:relative; }
.gantt__lines { position:absolute; top:0; bottom:0; left: var(--label-w); width: var(--gantt-w); pointer-events:none; z-index:1; }
.gantt__vline { position:absolute; top:0; bottom:0; border-left:1px solid var(--border); opacity:.7; }
.gantt__pline { position:absolute; top:0; bottom:0; border-left:2px dashed var(--border-strong); }
.gantt__today { position:absolute; top:0; bottom:0; border-left:2px solid var(--red); }
.gantt__today em { position:absolute; top:2px; left:4px; font-size:10.5px; font-style:normal; color: var(--red); font-weight:600; background: var(--surface); padding:0 3px; border-radius:4px; }
.gantt__row > .gantt__track { z-index:2; }
.gantt-bar { position:absolute; top:8px; height:18px; border-radius:6px; background: var(--tl-bg); border:1px solid var(--tl); overflow:hidden; display:flex; align-items:center; }
.gantt-bar:hover { text-decoration:none; box-shadow: var(--shadow); }
.gantt-bar__fill { position:absolute; left:0; top:0; bottom:0; background: var(--tl); opacity:.35; }
.gantt-bar__text { position:relative; padding:0 6px; font-size:11px; font-weight:600; color: var(--tl); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gantt__group .gantt-bar { top:7px; height:20px; background: var(--tl); }
.gantt__group .gantt-bar__fill { background:#fff; opacity:.25; }
.gantt__group .gantt-bar__text { color:#fff; }
.gantt-bar.is-done { opacity:.6; }
.gantt-marker { position:absolute; top:11px; width:12px; height:12px; margin-left:-6px; background: var(--tl); border:2px solid var(--surface); box-shadow: 0 0 0 1px var(--tl); }
.gantt-marker.tl-milestone { transform: rotate(45deg); }
.gantt-marker__text { position:absolute; top:9px; font-size:11px; color: var(--text-2); white-space:nowrap; pointer-events:none; }
.gantt-nodate { position:sticky; left: calc(var(--label-w) + 8px); display:inline-block; margin-top:9px; font-size:11.5px; color: var(--text-3); font-style:italic; }
@media (max-width: 700px) { .gantt { --label-w: 170px; } .gantt__label--child { padding-left:20px; } }
/* Yıl/ay etiketi yatay kaydırmada görünür kalsın. */
.gantt__band--top { overflow: visible; clip-path: inset(0); } /* clip-path kırpar ama sticky'yi bozmaz */
.gantt__band--top span { position: sticky; left: calc(var(--label-w) + 6px); }

/* ---- Tartışmalar ---- */
.nav-item__badge { margin-left:auto; min-width:20px; padding:1px 7px; border-radius:999px; background: var(--brand); color:#fff; font-size:11px; font-weight:700; text-align:center; }
.topic-table tr.is-unread .topic-title { font-weight:700; }
.topic-table tr.is-unread td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.topic-title { color: var(--text); font-weight:600; }
.recipient-list { display:flex; flex-direction:column; gap:8px; max-height: 480px; overflow:auto; }
.recipient { display:flex; align-items:center; gap:10px; padding:6px 8px; border-radius:10px; cursor:pointer; }
.recipient:hover { background: var(--surface-2); }
.post { margin-bottom:14px; }
.post.is-new { box-shadow: 0 0 0 2px var(--indigo-bg), var(--shadow-sm); border-color: #c7d2fe; }
.post__head { display:flex; align-items:center; gap:12px; padding:14px 18px 0; }
.post__body { padding:12px 18px 16px 66px; color: var(--text); line-height:1.65; word-break: break-word; }
.post__body a { word-break: break-all; }
@media (max-width: 700px) { .post__body { padding-left:18px; } }

/* ---- Yaygınlaştırma ---- */
.diss-filters { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0; }
.diss-filters .select, .diss-filters .input { width:auto; }
.type-bar { margin-bottom:10px; }
.type-bar .progress { margin-top:4px; }
.kv { display:grid; grid-template-columns: 140px 1fr; gap:8px 16px; margin:0; font-size:14px; }
.kv dt { color: var(--text-3); font-weight:600; font-size:12.5px; }
.kv dd { margin:0; min-width:0; }
.check-list { display:grid; grid-template-columns: 1fr 1fr; gap:6px 10px; font-size:13px; }
.check-list label { display:flex; align-items:center; gap:6px; cursor:pointer; }
.evidence-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap:8px; margin-bottom:10px; }
.evidence-grid img { width:100%; aspect-ratio: 4/3; object-fit:cover; border-radius:10px; border:1px solid var(--border); display:block; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } .check-list { grid-template-columns: 1fr; } }

/* ---- Timesheet ızgarası ---- */
.ts-scroll { overflow-x: auto; }
.ts-grid { border-collapse: separate; border-spacing: 0; font-size: 12.5px; min-width: 100%; }
.ts-grid th, .ts-grid td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 0; text-align: center; height: 34px; }
.ts-grid thead th { background: var(--surface-2); font-weight: 600; color: var(--text-2); min-width: 38px; line-height: 1.1; padding: 4px 0; }
.ts-grid thead th small { display: block; font-size: 10px; color: var(--text-3); font-weight: 500; }
.ts-grid .ts-sticky { position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left; padding: 0 12px; min-width: 150px; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ts-grid thead .ts-sticky { background: var(--surface-2); }
.ts-grid .is-weekend { background: var(--surface-2); }
.ts-grid th.is-overlap { box-shadow: inset 0 -3px 0 var(--amber); }
.ts-grid input { width: 100%; min-width: 38px; height: 33px; border: 0; background: transparent; text-align: center; font: inherit; color: var(--text); }
.ts-grid input:focus { outline: 2px solid var(--brand); outline-offset: -2px; background: var(--brand-soft); }
.ts-grid tfoot td, .ts-grid tfoot th { font-weight: 700; background: var(--surface-2); }
.ts-grid .ts-total { min-width: 64px; font-weight: 700; background: var(--surface-2); }
.ts-grid td.is-over { color: var(--red); background: var(--red-bg); }
.data tr.row-group td { background: var(--surface-2); }

/* ---- Bütçe ---- */
.budget-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.budget-table tr.is-focus td { background: var(--brand-soft); }
.budget-table tfoot th { background: var(--surface-2); text-align: left; }
.budget-table tfoot th.num { text-align: right; }
.meter-row { display: flex; align-items: center; gap: 8px; }
.meter { flex: 1; display: flex; gap: 2px; height: 8px; background: var(--gray-bg); border-radius: 999px; overflow: hidden; min-width: 90px; }
.meter__fill { height: 100%; border-radius: 999px; background: var(--brand); }
.meter__fill.is-green { background: var(--green); }
.meter__fill.is-amber { background: var(--amber); }
.meter__fill.is-red { background: var(--red); }
.meter__fill.is-neutral { background: var(--text-3); }
.meter__pending { height: 100%; border-radius: 999px; background: var(--brand); opacity: .3; }
.meter__pct { font-size: 12.5px; font-weight: 600; min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.pace { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pace .meter { margin-top: 6px; height: 10px; }
.budget-grid td input { min-width: 108px; text-align: right; padding: 0 8px; }
.budget-grid td { min-width: 108px; text-align: right; padding: 0 8px; font-variant-numeric: tabular-nums; }
.budget-grid thead th { white-space: normal; min-width: 108px; padding: 6px 8px; font-size: 11.5px; }
.budget-grid .ts-total { min-width: 120px; text-align: right; padding: 0 10px; }
@media (max-width: 700px) { .pace { grid-template-columns: 1fr; } }

/* ---- Anket yanıt sayfası ---- */
.survey-page { min-height: 100vh; padding: 32px 16px; background: linear-gradient(160deg, var(--brand-soft), var(--bg) 40%); }
.survey-card { max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 32px; }
.survey-card h1 { font-size: 24px; margin: 6px 0 10px; }
.survey-card__brand { font-size: 12.5px; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.survey-intro { color: var(--text-2); }
.survey-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.survey-foot { max-width: 720px; margin: 16px auto 0; font-size: 11.5px; color: var(--text-3); text-align: center; }
.sq { border: 1px solid var(--border); border-radius: 14px; padding: 18px 18px 16px; margin: 16px 0; min-width: 0; }
.sq.has-error { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }
.sq__title { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 12px; line-height: 1.45; }
.sq__num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 12px; margin-right: 4px; }
.sq__error { color: var(--red); font-size: 13px; margin-top: 8px; font-weight: 500; }
.sq__choices { display: flex; flex-direction: column; gap: 8px; }
.sq__choices.is-inline { flex-direction: row; flex-wrap: wrap; }
.choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.choice:hover { border-color: var(--brand); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.scale-row { display: flex; flex-wrap: wrap; gap: 6px; }
.scale-opt input { position: absolute; opacity: 0; pointer-events: none; }
.scale-opt span { display: grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; font-weight: 600; cursor: pointer; }
.scale-opt input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.scale-opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.scale-labels { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-3); margin-top: 8px; }
.survey-done { text-align: center; padding: 20px 0; }
.survey-done__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green-bg); color: var(--green); margin-bottom: 8px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .survey-card { padding: 20px; } }

/* ---- Anket sonuçları ve oluşturucu ---- */
.rbars { display: flex; flex-direction: column; gap: 8px; }
.rbar { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 92px; align-items: center; gap: 12px; font-size: 13.5px; }
.rbar__label { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.rbar__track { height: 10px; background: var(--gray-bg); border-radius: 999px; overflow: hidden; }
.rbar__fill { display: block; height: 100%; background: var(--brand); border-radius: 999px; min-width: 0; }
.rbar__val { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; color: var(--text); white-space: nowrap; }
.result-avg { font-size: 30px; font-weight: 800; line-height: 1; color: var(--text); }
.text-answers { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; }
.text-answers li { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.text-answers li:last-child { border-bottom: none; }
.plain-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 600px) { .rbar { grid-template-columns: 1fr 80px; } .rbar__track { grid-column: 1 / -1; grid-row: 2; } }

/* ---- Toplantı planlayıcı ---- */
.date-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.date-quick .input { width: auto; }
.poll-grid thead th { min-width: 84px; padding: 6px 4px; line-height: 1.2; }
.poll-grid .poll-day { display: block; font-size: 13px; color: var(--text); font-weight: 700; }
.poll-grid .poll-flag { display: block; color: var(--brand); font-weight: 700; }
.poll-grid th.is-best, .poll-grid td.is-best { background: var(--brand-soft); }
.poll-grid th.is-decided { box-shadow: inset 0 -3px 0 var(--green); }
.poll-grid tr.is-me th.ts-sticky { color: var(--brand); }
.poll-grid tfoot td { font-variant-numeric: tabular-nums; }
.vote-picker { display: inline-flex; gap: 2px; padding: 3px; }
.vote-opt input { position: absolute; opacity: 0; pointer-events: none; }
.vote-opt span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--text-3); cursor: pointer; background: var(--surface); }
.vote-opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }
.vote-yes input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.vote-maybe input:checked + span { background: var(--amber); border-color: var(--amber); color: #fff; }
.vote-no input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.vote-cell { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-weight: 700; font-size: 12px; }
.vote-cell.vote-yes { background: var(--green-bg); color: var(--green); }
.vote-cell.vote-maybe { background: var(--amber-bg); color: var(--amber); }
.vote-cell.vote-no { background: var(--red-bg); color: var(--red); }
.best-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.best-item { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.best-item.is-best { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.best-item__rank { font-size: 12px; font-weight: 700; color: var(--brand); }
.best-item__date { font-size: 16px; font-weight: 700; margin: 2px 0 4px; color: var(--text); }
.decided-card { border-color: var(--green); background: var(--green-bg); }
.decided-date { font-size: 20px; font-weight: 800; color: var(--text); }

/* ---- Raporlama ---- */
.readiness { list-style: none; margin: 0; padding: 0; }
.readiness__item { display: grid; grid-template-columns: 96px 120px 1fr auto; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.readiness__item:last-child { border-bottom: none; }
.readiness__area { font-weight: 600; font-size: 13.5px; color: var(--text); }
.readiness__text { font-size: 13.5px; color: var(--text-2); }
@media (max-width: 700px) { .readiness__item { grid-template-columns: auto 1fr; } .readiness__text { grid-column: 1 / -1; } }

/* ---- Risk ---- */
:root { --orange: #c2410c; --orange-bg: #ffedd5; }
.lvl-low      { --lvl: var(--green);  --lvl-bg: var(--green-bg); }
.lvl-medium   { --lvl: var(--amber);  --lvl-bg: var(--amber-bg); }
.lvl-high     { --lvl: var(--orange); --lvl-bg: var(--orange-bg); }
.lvl-critical { --lvl: var(--red);    --lvl-bg: var(--red-bg); }
.risk-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--lvl-bg); color: var(--lvl); white-space: nowrap; }
.risk-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--lvl); margin-right: 6px; vertical-align: middle; }
.stat-link { text-decoration: none; color: inherit; }
.stat-link:hover { text-decoration: none; box-shadow: var(--shadow); }
.risk-matrix { display: grid; grid-template-columns: 22px repeat(5, 1fr); gap: 3px; align-items: stretch; position: relative; padding-left: 18px; }
.risk-matrix__ylabel { position: absolute; left: -26px; top: 45%; transform: rotate(-90deg); font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.risk-matrix__xlabel { grid-column: 2 / -1; text-align: center; font-size: 11.5px; color: var(--text-3); }
.risk-matrix__axis { display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--text-2); }
.risk-cell { aspect-ratio: 1 / 1; min-height: 44px; border-radius: 8px; background: var(--lvl-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--lvl); border: 2px solid transparent; line-height: 1.1; padding: 2px; overflow: hidden; }
.risk-cell:hover { text-decoration: none; border-color: var(--lvl); }
.risk-cell.has-risk { background: var(--lvl); color: #fff; }
.risk-cell.is-selected { border-color: var(--text); }
.risk-cell strong { font-size: 16px; }
.risk-cell small { font-size: 10px; text-align: center; word-break: break-all; }
.risk-cell__score { opacity: .55; }
.risk-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; margin-top: 12px; color: var(--text-2); }
.action-row { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.action-add { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; margin: 0; background: var(--surface-2); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }

/* ---- Kalite kontrol listesi ---- */
.qc-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid var(--border); margin: 0; }
.qc-item.state-done { background: var(--green-bg); }
.qc-item.state-na { background: var(--surface-2); }
.qc-item.state-na .qc-item__text { color: var(--text-3); text-decoration: line-through; }
.qc-item__num { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); font-size: 12px; font-weight: 700; }
.qc-item.state-done .qc-item__num { background: var(--green); border-color: var(--green); color: #fff; }
.qc-item__body { flex: 1; min-width: 0; }
.qc-item__text { font-weight: 500; }
.qc-item__note { margin-top: 6px; max-width: 520px; background: transparent; }
.qc-item__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) { .qc-item { flex-wrap: wrap; } .qc-item__actions { width: 100%; justify-content: flex-start; } }

/* ---- Galeri ---- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.album-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; }
.album-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.album-card__cover { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.album-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-card__empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--text-3); font-size: 13px; }
.album-card__count { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(15, 23, 42, .72); color: #fff; font-size: 12px; font-weight: 600; }
.album-card__body { padding: 12px 14px 14px; }
.album-card__title { font-weight: 600; margin-bottom: 2px; overflow-wrap: anywhere; }

.g-upload { margin-bottom: 18px; }
.g-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; border: 2px dashed var(--border-strong); border-radius: var(--radius); margin: 0; text-align: center; cursor: pointer; color: var(--text-2); transition: background .15s, border-color .15s; }
.g-drop:hover, .g-drop.is-over { background: var(--brand-soft); border-color: var(--brand); color: var(--text); }
.g-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.g-progress { padding: 12px 20px 16px; }
.g-errors { margin: 6px 0 0; padding-left: 18px; color: var(--red); font-size: 13px; }

.g-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.photo { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.photo__thumb { display: block; aspect-ratio: 1; background: var(--surface-2); }
.photo__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s; }
.photo__thumb:hover img { opacity: .88; }
.photo__check { position: absolute; top: 8px; left: 8px; z-index: 2; width: 20px; height: 20px; accent-color: var(--brand); opacity: .55; cursor: pointer; }
.photo:hover .photo__check, .photo__check:checked, .photo__check:focus-visible { opacity: 1; }
.photo:has(.photo__check:checked) { outline: 3px solid var(--brand); outline-offset: -3px; }
.photo__badge { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(15, 23, 42, .72); color: #fff; font-size: 11px; font-weight: 600; }
.photo__caption { padding: 7px 10px; font-size: 12.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: #0b0d14; color: #e2e8f0; }
.lightbox[hidden] { display: none; }
.lightbox__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; flex-wrap: wrap; }
.lightbox__count { font-variant-numeric: tabular-nums; font-size: 14px; color: #cbd5e1; }
.lb-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; background: rgba(255, 255, 255, .06); color: #f1f5f9; font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; }
.lb-btn:hover { background: rgba(255, 255, 255, .16); text-decoration: none; color: #fff; }
.lb-btn.is-on { background: #4f46e5; border-color: #6366f1; }
.lightbox__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 64px; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; transition: opacity .2s; }
.lightbox__stage img.is-loading { opacity: .35; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 72px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
.lb-nav:hover { background: rgba(255, 255, 255, .2); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lightbox__caption { padding: 10px 18px 16px; text-align: center; min-height: 58px; }
.lightbox__caption [data-lb-caption] { font-size: 15px; color: #f8fafc; }
.lightbox__meta { font-size: 12px; color: #94a3b8; margin-top: 3px; }
.lightbox__edit { display: flex; gap: 8px; max-width: 640px; margin: 8px auto 0; }
.lightbox__edit .input { flex: 1; }
@media (max-width: 700px) {
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
    .lightbox__stage { padding: 0 8px; }
    .lb-nav { width: 38px; height: 56px; font-size: 30px; background: rgba(0, 0, 0, .35); }
}.lightbox [hidden] { display: none !important; }

/* ---- Paketler ve abonelik ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.owned-list { list-style: none; margin: 0; padding: 0; }
.owned-list li { padding: 10px 20px; border-bottom: 1px solid var(--border); }
.owned-list li:last-child { border-bottom: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.plan-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px 22px; box-shadow: var(--shadow-sm); }
.plan-card.is-current { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.plan-card__tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.plan-card__name { margin: 0 0 6px; font-size: 21px; text-align: center; }
.plan-card__desc { margin: 0; min-height: 60px; color: var(--text-2); font-size: 13.5px; text-align: center; line-height: 1.5; }
.plan-card__price { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 16px 0 18px; border-bottom: 2px dashed var(--border); }
.plan-card__price strong { font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.plan-card__price span { color: var(--text-2); }
.plan-card__features { list-style: none; margin: 16px 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; flex: 1; }
.plan-card__features li { display: flex; gap: 10px; align-items: flex-start; }
.plan-card__features li.no { color: var(--text-3); }
.plan-card__mark { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 800; background: var(--text); color: #fff; }
.plan-card__features li.no .plan-card__mark { background: transparent; color: var(--red); border: 1.5px solid var(--red); }
.plan-pick { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan-pick legend { grid-column: 1 / -1; width: 100%; margin-bottom: 6px; }
.plan-pick > p { grid-column: 1 / -1; }
.plan-opt { position: relative; display: block; margin: 0; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt__body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s, background .15s; }
.plan-opt:hover .plan-opt__body { border-color: var(--border-strong); }
.plan-opt input:checked + .plan-opt__body { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.plan-opt input:focus-visible + .plan-opt__body { outline: 2px solid var(--brand); outline-offset: 2px; }
.plan-opt__name { font-weight: 700; font-size: 14px; }
.plan-opt__price { font-size: 13px; color: var(--text); }
.plan-opt__spec { font-size: 12px; color: var(--text-2); }
.usage { margin-top: 14px; }
.usage__head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.pricing { max-width: 1180px; margin: 0 auto; padding: 22px 16px 48px; }
.pricing__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 34px; }
.pricing__head { text-align: center; margin-bottom: 34px; }
.pricing__head h1 { margin: 0 0 8px; font-size: 32px; }
.plan-edit td { vertical-align: top; }
@media (max-width: 420px) { .plan-pick { grid-template-columns: 1fr; } }
/* ---- Aylık / yıllık faturalama ---- */
.cycle-month [data-cycle="year"], .cycle-year [data-cycle="month"] { display: none !important; }
.cycle-toggle { display: flex; justify-content: center; gap: 4px; width: fit-content; margin: 0 auto 26px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.cycle-toggle label { position: relative; margin: 0; cursor: pointer; }
.cycle-toggle input { position: absolute; opacity: 0; }
.cycle-toggle span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.cycle-toggle em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--green-bg); color: var(--green); }
.cycle-toggle input:checked + span { background: var(--brand); color: #fff; }
.cycle-toggle input:checked + span em { background: rgba(255, 255, 255, .22); color: #fff; }
.cycle-toggle input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.plan-card__note { min-height: 20px; margin-top: 8px; text-align: center; font-size: 12.5px; color: var(--text-2); }
.plan-card__price { border-bottom: 0; padding-bottom: 0; }
.plan-card__note { padding-bottom: 16px; border-bottom: 2px dashed var(--border); }
.plan-pick .cycle-toggle { grid-column: 1 / -1; margin: 0 0 4px; width: 100%; }
.plan-pick .cycle-toggle label { flex: 1; text-align: center; }
.plan-pick .cycle-toggle span { width: 100%; justify-content: center; padding: 7px 10px; font-size: 13px; }
.stripe-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
/* ---- Kurullar ---- */
.text-warn { color: var(--amber); font-weight: 600; }
.board-tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 7px; background: var(--bc, #475569); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; vertical-align: middle; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.board-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--bc, #475569); border-radius: var(--radius); color: var(--text); box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; }
.board-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.board-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.board-card__name { font-weight: 700; font-size: 16px; }
.board-card__kv { display: grid; grid-template-columns: 80px 1fr; gap: 4px 10px; margin: 0; font-size: 13px; }
.board-card__kv dt { color: var(--text-3); font-weight: 600; }
.board-card__kv dd { margin: 0; min-width: 0; }
.board-card__foot { display: flex; gap: 14px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 12.5px; }
.board-card__foot span { display: inline-flex; align-items: center; gap: 4px; }
.board-role-box { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.member-group { border-bottom: 1px solid var(--border); }
.member-group:last-child { border-bottom: 0; }
.member-group__head { padding: 10px 20px 4px; font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 6px 20px; font-size: 14px; }
.flow-steps { display: flex; list-style: none; margin: 0 0 18px; padding: 0; gap: 6px; flex-wrap: wrap; counter-reset: none; }
.flow-steps li { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: 13px; color: var(--text-2); }
.flow-steps li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); font-size: 11.5px; font-weight: 700; }
.flow-steps li.done { color: var(--text); }
.flow-steps li.done span { background: var(--green); border-color: var(--green); color: #fff; }
.flow-steps li.current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); color: var(--text); font-weight: 600; }
.flow-steps li.current span { background: var(--brand); border-color: var(--brand); color: #fff; }
.subtask { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.subtask:last-child { border-bottom: 0; }
.subtask__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.subtask__note { margin-top: 6px; padding: 6px 10px; border-left: 3px solid var(--amber); background: var(--amber-bg); border-radius: 0 6px 6px 0; }
.subtask__form { grid-column: 1 / -1; font-size: 13px; }
.subtask__form summary { cursor: pointer; color: var(--brand); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.review-row { padding: 8px 0; border-bottom: 1px solid var(--border); }
.review-row:last-of-type { border-bottom: 0; }
@media (max-width: 700px) { .subtask { grid-template-columns: 1fr; } .subtask__side { align-items: flex-start; } }
/* ---- Etkinlikler ---- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.doc-tile { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--brand); }
.doc-tile:hover { border-color: var(--brand); background: var(--brand-soft); }
.doc-tile span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc-tile strong { color: var(--text); }
.doc-tile small { color: var(--text-2); font-size: 12px; }
.agenda-row { display: flex; align-items: flex-start; gap: 14px; padding: 10px 20px; border-top: 1px solid var(--border); }
.agenda-row__time { min-width: 92px; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-2); }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) 2fr 32px; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.hbar__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar__track { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.hbar__fill { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.hbar__val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.diet-pick { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.diet-pick label { display: inline-flex; gap: 6px; align-items: center; }
.scale-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.impact-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; }
.impact-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.sw-pre { background: #0d9488; }
.sw-post { background: #4f46e5; }
.impact-row { display: grid; grid-template-columns: minmax(0, 1.2fr) 2fr 110px; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.impact-row__label { font-size: 14px; }
.impact-row__bars { display: flex; flex-direction: column; gap: 4px; }
.ibar { display: flex; align-items: center; gap: 8px; }
.ibar__fill { display: block; height: 12px; border-radius: 0 4px 4px 0; min-width: 2px; }
.ibar__val { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.impact-row__delta { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; color: var(--text-2); }
.impact-row__delta.up { color: var(--green); }
.impact-row__delta.down { color: var(--red); }
.events-table td { vertical-align: top; }
@media (max-width: 700px) { .impact-row { grid-template-columns: 1fr; } .impact-row__delta { text-align: left; } }
/* ---- KPI ve uyum ---- */
.kpi-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-2); }
.kpi-legend span { display: inline-flex; align-items: center; gap: 6px; }
.kpi-sw { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
.kpi-sw--fill { background: var(--brand); }
.kpi-sw--mark { width: 3px; height: 14px; border-radius: 1px; background: var(--text); }
.kpi-row { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.kpi-row:last-child { border-bottom: 0; }
.kpi-row__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.kpi-bar { position: relative; height: 14px; margin: 10px 0 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.kpi-bar__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; min-width: 3px; }
.kpi-bar__fill.is-green { background: var(--green); }
.kpi-bar__fill.is-blue { background: var(--blue); }
.kpi-bar__fill.is-amber { background: var(--amber); }
.kpi-bar__fill.is-red { background: var(--red); }
.kpi-bar__fill.is-gray { background: var(--text-3); }
.kpi-bar__mark { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; border-radius: 1px; background: var(--text); box-shadow: 0 0 0 2px var(--surface); }
.kpi-row__nums { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.kpi-row__more { margin-top: 6px; font-size: 13px; }
.kpi-row__more summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.alert-row { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; padding: 12px 20px; border-bottom: 1px solid var(--border); border-left: 4px solid transparent; }
.alert-row.is-critical { border-left-color: var(--red); background: color-mix(in srgb, var(--red-bg) 45%, transparent); }
.alert-row.is-warning { border-left-color: var(--amber); }
.alert-row__main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.alert-row__msg { font-weight: 600; overflow-wrap: anywhere; }
.rule-row { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.rule-row.status-suggest { background: var(--brand-soft); }
.rule-row.status-off { opacity: .6; }
.rule-row__src { margin-top: 4px; font-style: italic; overflow-wrap: anywhere; }
@media (max-width: 700px) { .alert-row, .rule-row { flex-direction: column; } }
/* ---- Efor, kapasite ve saat aralıkları ---- */
.cap-bar { position: relative; display: flex; gap: 2px; height: 16px; margin: 12px 0 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); overflow: visible; }
.cap-bar__seg { display: block; height: 100%; }
.cap-bar__seg:first-child { border-radius: 5px 0 0 5px; }
.cap-bar__mark { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--amber); box-shadow: 0 0 0 2px var(--surface); }
.cap-bar__mark.is-full { background: var(--red); }
.cap-seg-0 { background: #4f46e5; }
.cap-seg-1 { background: #0d9488; }
.cap-seg-2 { background: #d97706; }
.cap-seg-3 { background: #be185d; }
.cap-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text-2); }
.cap-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cap-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.ts-grid td.is-slot { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.effort-table td { vertical-align: top; }
.effort-state { white-space: nowrap; }
.cap-cell { min-width: 92px; text-align: center; font-variant-numeric: tabular-nums; }
.cap-cell .meter { margin-top: 4px; }.text-red { color: var(--red); font-weight: 600; }
