/* =====================================================================
   ProjectHub Europe - Ana Stil Dosyası
   Tasarım dili: "Soft Bento" — krem zemin, beyaz yuvarlak kartlar, pastel
   vurgular (lavanta, şeftali, nane, gök mavisi), koyu mürekkep düğmeler.
   Başlıklar Outfit, metin DM Sans. Tek dosya (build adımı yok).
   ===================================================================== */

:root {
    --brand: #6d5dfc;
    --brand-600: #5a49f0;
    --brand-700: #4936d8;
    --brand-soft: #efecff;
    --primary: var(--brand);

    --ink: #1c1b29;
    --ink-hover: #2e2c45;
    --lav: #ece8ff;
    --peach: #ffe6d9;
    --mint: #d8f5e9;
    --sky: #dcebff;

    --bg: #f7f5f1;
    --surface: #ffffff;
    --surface-2: #f7f6fa;
    --field: #f4f3f8;
    --border: #ecebf2;
    --border-strong: #dcdae6;

    --text: #1c1b29;
    --text-2: #5b5a6e;
    --text-3: #8f8da3;

    --sidebar-bg: rgba(255, 255, 255, .86);
    --sidebar-bg-2: #ffffff;
    --sidebar-text: #5b5a6e;
    --sidebar-text-dim: #9a98ad;
    --sidebar-active: #1c1b29;

    --radius: 22px;
    --radius-sm: 14px;
    --shadow-sm: 0 1px 2px rgba(28, 27, 41, .04), 0 12px 30px -26px rgba(28, 27, 41, .3);
    --shadow: 0 20px 44px -28px rgba(28, 27, 41, .4);
    --shadow-lg: 0 30px 70px -30px rgba(28, 27, 41, .45), 0 0 0 1px rgba(28, 27, 41, .05);

    --display: 'Outfit', 'DM Sans', system-ui, sans-serif;
    --sidebar-w: 256px;
    --gap: 14px;

    --green: #0f766e; --green-bg: #d8f5e9;
    --red: #c2255c;   --red-bg: #ffe4ec;
    --amber: #b45309; --amber-bg: #fff0d9;
    --blue: #1d5fd1;  --blue-bg: #dcebff;
    --indigo: #5b4ae6; --indigo-bg: #ece8ff;
    --teal: #0e7c72;  --teal-bg: #d5f4ef;
    --gray: #5b5a6e;  --gray-bg: #f1f0f5;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
/* Zemin html'de; body saydam kalır ki .app::before renk geçişi (z-index:-1) görünsün. */
html { background: var(--bg); }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; color: var(--text); font-family: var(--display); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.icon { display: inline-block; vertical-align: middle; flex: none; }

/* ---------------- App Shell ---------------- */
.app { display: flex; min-height: 100vh; }
/* Sayfanın üstünde hafif pastel renk geçişi (giriş sayfalarıyla aynı dil). */
.app::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(38% 34% at 22% 0%, rgba(236, 232, 255, .9), transparent 70%),
        radial-gradient(30% 30% at 96% 4%, rgba(255, 230, 217, .75), transparent 70%),
        radial-gradient(30% 34% at 96% 96%, rgba(216, 245, 233, .55), transparent 70%); }

/* Kenar çubuğu: kenarlardan ayrık, yuvarlak, yüzen beyaz panel */
.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--gap); left: var(--gap); bottom: var(--gap);
    z-index: 40;
    border: 1px solid rgba(28, 27, 41, .06);
    border-radius: 28px;
    box-shadow: 0 24px 50px -36px rgba(28, 27, 41, .45);
    transition: transform .25s ease;
}
.sidebar__brand {
    display: flex; align-items: center; gap: 10px;
    padding: 20px 20px 14px;
    color: var(--text); text-decoration: none;
}
.sidebar__brand:hover { text-decoration: none; }
.sidebar__logo {
    width: 36px; height: 36px; border-radius: 12px;
    background: var(--ink);
    display: grid; place-items: center;
    color: #fff; font-weight: 700; font-size: 16px;
}
.sidebar__brand .plogo { display: block; flex: none; }
.sidebar__title { font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--text); line-height: 1.1; letter-spacing: -.02em; }
.sidebar__subtitle { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sidebar-text-dim); margin-top: 2px; }

.sidebar__project {
    position: relative;
    margin: 4px 12px 4px;
    padding: 12px 14px 12px 16px;
    background: linear-gradient(150deg, var(--lav), #f6efff 60%, var(--peach));
    border-radius: 18px;
    overflow: hidden;
}
.sidebar__project:hover { text-decoration: none; filter: brightness(.98); }
.sidebar__project-name { color: var(--text); font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.sidebar__project-meta { color: var(--text-2); font-size: 12px; margin-top: 1px; }

.sidebar__nav { flex: 1; overflow-y: auto; padding: 4px 12px 18px; }
.sidebar__nav::-webkit-scrollbar { width: 8px; }
.sidebar__nav::-webkit-scrollbar-thumb { background: rgba(28, 27, 41, .1); border-radius: 8px; }

.nav-group { margin-top: 12px; }
.nav-group__label {
    font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em;
    color: var(--sidebar-text-dim); font-weight: 700;
    padding: 4px 12px; margin-bottom: 2px;
}
.nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 8px 12px; margin: 2px 0;
    border-radius: 14px;
    color: var(--sidebar-text);
    font-size: 14px; font-weight: 500;
    transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--field); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--sidebar-active); color: #fff; box-shadow: 0 12px 22px -14px rgba(28, 27, 41, .7); }
.nav-item .icon { opacity: .75; }
.nav-item:hover .icon, .nav-item.active .icon { opacity: 1; }

.sidebar__footer { padding: 10px 12px 14px; border-top: 1px solid var(--border); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; background: var(--field); }
.user-chip__avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--lav);
    color: var(--brand-700); font-weight: 700; font-size: 12.5px;
    display: grid; place-items: center; flex: none;
}
.user-chip__name { color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip__email { color: var(--sidebar-text-dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .btn-ghost:hover { background: #fff; color: var(--text) !important; }

/* ---------------- Main ---------------- */
.main {
    flex: 1;
    margin-left: calc(var(--sidebar-w) + var(--gap));
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.topbar {
    position: sticky; top: var(--gap); z-index: 30;
    margin: var(--gap) var(--gap) 0;
    padding: 8px 10px 8px 18px;
    background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border: 1px solid rgba(28, 27, 41, .06);
    border-radius: 22px;
    box-shadow: 0 14px 34px -28px rgba(28, 27, 41, .4);
    display: flex; align-items: center; gap: 16px;
}
.topbar__toggle {
    display: none; background: var(--field); border: none; cursor: pointer;
    color: var(--text); padding: 8px; border-radius: 12px;
}
.breadcrumb { display:flex; align-items:center; gap:7px; font-size:13.5px; color: var(--text-3); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-2); font-weight:500; }
.breadcrumb a:hover { color: var(--text); text-decoration: none; }
.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:8px; }

.content { padding: 24px var(--gap) 40px calc(var(--gap) + 10px); max-width: 1400px; width: 100%; margin: 0 auto; }

.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; letter-spacing: -.025em; margin-bottom: .2em; }
.page-head .subtitle { color: var(--text-2); font-size: 14.5px; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 999px;
    border: 1px solid transparent; cursor: pointer;
    font-size: 13.5px; font-weight: 600; font-family: inherit; line-height: 1.2;
    transition: background .15s, border-color .15s, box-shadow .15s, transform .15s, color .15s; white-space: nowrap; text-decoration: none;
    background: var(--surface); color: var(--text);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color:#fff; box-shadow: 0 12px 22px -14px rgba(28, 27, 41, .7); }
.btn-primary:hover { background: var(--ink-hover); transform: translateY(-1px); }
.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { background: var(--surface); border-color: #c4c1d4; box-shadow: 0 10px 20px -16px rgba(28, 27, 41, .45); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--field); color: var(--text); }
.btn-danger { background: var(--red); color:#fff; }
.btn-danger:hover { filter: brightness(.94); }
.btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: 999px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------------- Cards ---------------- */
.card {
    background: var(--surface);
    border: 1px solid rgba(28, 27, 41, .06);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.card__head {
    padding: 16px 22px; border-bottom: 1px solid var(--border);
    display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.card__head h3 { margin: 0; font-size: 17px; }
.card__body { padding: 22px; }
.card__body.tight { padding: 0; }

/* Stat cards */
.stats-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat {
    background: var(--surface); border: 1px solid rgba(28, 27, 41, .06); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat__icon {
    width: 44px; height: 44px; border-radius: 14px; display:grid; place-items:center; margin-bottom: 14px;
}
.stat__value { font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--text); }
.stat__label { color: var(--text-2); font-size: 13.5px; margin-top: 6px; }
.stat__sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* Dashboard grid */
.grid { display: grid; gap: 16px; }
.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 18px; color: var(--text-3);
    font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
    border-bottom: 1px solid var(--border); background: #fbfafd;
    white-space: nowrap;
}
table.data td { padding: 13px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: #faf9fd; }
table.data td .muted { color: var(--text-3); font-size: 12.5px; }
/* Kartın yuvarlak köşelerinde tablo arka planı taşmasın (kart overflow:hidden değil; açılır menüler kesilmesin). */
.card > .table-wrap:first-child,
.card > .card__body.tight:first-child > .table-wrap:first-child { border-top-left-radius: calc(var(--radius) - 1px); border-top-right-radius: calc(var(--radius) - 1px); }
.card > .table-wrap:last-child,
.card > .card__body.tight:last-child > .table-wrap:last-child { border-bottom-left-radius: calc(var(--radius) - 1px); border-bottom-right-radius: calc(var(--radius) - 1px); }

/* ---------------- Badges / chips ---------------- */
.badge {
    display: inline-flex; align-items:center; gap:5px;
    padding: 4px 11px; 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 11px; border-radius:999px; background: var(--field); border:1px solid transparent; 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), #e26fa5); 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: var(--lav); color: var(--brand-700); 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: 11px 14px; font-size: 14px; font-family: inherit;
    border: 1.5px solid transparent; border-radius: 14px;
    background-color: var(--field); color: var(--text); transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.input::placeholder, .textarea::placeholder { color: #a9a7b9; }
.input:hover, .select:hover, .textarea:hover { background-color: #efedf5; }
.input:focus, .select:focus, .textarea:focus {
    outline: none; background-color: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(109, 93, 252, .12);
}
.input:disabled, .select:disabled, .textarea:disabled { opacity: .65; cursor: not-allowed; }
/* Kart içindeki gri alanlarda doldurulmuş alanlar kaybolmasın. */
.bulk-bar .input, .bulk-bar .select, .action-add .input, .action-add .select, .stripe-box .input, .stripe-box .select { background-color: #fff; border-color: var(--border); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }
.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(--ink); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------------- Flash ---------------- */
.flash-wrap { position: fixed; top: 84px; right: 20px; z-index: 100; display:flex; flex-direction:column; gap:10px; max-width: 380px; }
.flash {
    padding: 13px 16px; border-radius: 18px; box-shadow: inset 4px 0 0 var(--brand), 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: 0; color: var(--text);
}
.flash.success { box-shadow: inset 4px 0 0 #10b981, var(--shadow-lg); }
.flash.error   { box-shadow: inset 4px 0 0 #f43f5e, var(--shadow-lg); }
.flash.warning { box-shadow: inset 4px 0 0 #f59e0b, var(--shadow-lg); }
.flash.info    { box-shadow: inset 4px 0 0 var(--brand), var(--shadow-lg); }
.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:first-child { box-sizing: content-box; width: 30px; height: 30px; padding: 14px; border-radius: 18px; background: var(--lav); color: var(--brand-700); opacity: 1; margin-bottom: 14px; }
.empty h3 { color: var(--text); font-weight:600; font-size: 17px; }

.filter-bar { display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 18px; }
.filter-pill { padding: 7px 15px; border-radius: 999px; background: var(--surface); border:1px solid var(--border); font-size: 13px; color: var(--text-2); font-weight:500; cursor:pointer; transition: background .15s, color .15s, border-color .15s; }
.filter-pill:hover { border-color: var(--border-strong); text-decoration:none; color: var(--text); }
.filter-pill.active { background: var(--ink); color:#fff; border-color: var(--ink); }
.filter-pill .count { opacity:.7; margin-left:4px; }

.section-title { font-size: 11.5px; text-transform: uppercase; letter-spacing:.12em; 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:18px; background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s; }
.folder-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-1px); text-decoration:none; }
.folder-card .icon { box-sizing: content-box; padding: 8px; border-radius: 12px; background: var(--peach); color: #b4532a; }
.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) {
    :root { --gap: 10px; }
    .sidebar { transform: translateX(calc(-100% - 2 * var(--gap))); box-shadow: var(--shadow-lg); background: #fff; }
    .sidebar.open { transform: none; }
    .main { margin-left: 0; }
    .topbar { padding-left: 8px; gap: 10px; }
    .topbar__toggle { display: inline-flex; }
    /* Dar ekranda sayfa yolu yalnızca bulunulan sayfayı tek satırda gösterir. */
    .breadcrumb { flex: 1; min-width: 0; flex-wrap: nowrap; }
    .breadcrumb > :not(.current) { display: none; }
    .breadcrumb .current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topbar__spacer { display: none; }
    .content { padding: 18px var(--gap) 32px; }
    .page-head h1 { font-size: 25px; }
    .stats-grid { grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); }
    .backdrop { position: fixed; inset:0; background: rgba(28, 27, 41, .35); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); 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; }
/* İlerleme kaydırıcısı: 0/25/50/75/100 etiketleri ve çentikleri (başparmak 18px; etiketler başparmak merkezine hizalı) */
.pstep { --thumb: 18px; position: relative; padding-top: 4px; }
.pstep__scale { position: relative; height: 30px; margin: 0 calc(var(--thumb) / 2); }
.pstep__mark { position: absolute; left: calc(var(--p) * 1%); bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0 4px; border: 0; background: none; font: 700 13px/1 inherit; font-family: inherit; color: var(--text-2); cursor: pointer; font-variant-numeric: tabular-nums; }
.pstep__mark::after { content: ''; width: 2px; height: 8px; border-radius: 1px; background: var(--border-strong, #cbd5e1); }
.pstep__mark:hover { color: var(--text); }
.pstep__mark.is-active { color: var(--brand); }
.pstep__mark.is-active::after { background: var(--brand); }
.pstep__mark:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.pstep input[type=range] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: var(--thumb); margin: 2px 0 0; background: transparent; cursor: pointer; }
.pstep input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--brand) var(--fill, 0%), var(--border) var(--fill, 0%)); }
.pstep input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--brand) var(--fill, 0%), var(--border) var(--fill, 0%)); }
.pstep input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: var(--thumb); height: var(--thumb); margin-top: -6px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.pstep input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.pstep input[type=range]:focus-visible { outline: none; }
.pstep input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--brand-soft); }

/* Gantt altı: gecikmişler / yaklaşanlar */
.due-lists .card__head { flex-wrap: wrap; gap: 8px; }
.due-lists .card__head h3 { display: flex; align-items: center; gap: 8px; }
.due-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.due-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.due-item:last-child { border-bottom: 0; }
.due-item .cal-dot { margin-top: 6px; }
.due-item__main { flex: 1; min-width: 0; }
.due-item__main a { font-weight: 600; color: var(--text); word-break: break-word; }
.due-item__meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.due-item__when { text-align: right; font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.due-item__when span { display: block; color: var(--text-2); }
.due-item.is-late .due-item__when span { color: var(--red); font-weight: 600; }
.due-item.is-soon .due-item__when span { color: var(--amber); font-weight: 600; }
@media (max-width: 900px) { .due-lists { grid-template-columns: 1fr; } }

/* ---- 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 { position: relative; } /* gizli radyolar kaydırma kutusundan taşıp sayfayı genişletmesin */
.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); }
/* Doodle tarzı saat dilimi üretici */
.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2, var(--surface)); }
.seg__opt { position: relative; margin: 0; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg__opt span { display: inline-block; padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.seg__opt input:checked + span { background: var(--brand); color: #fff; }
.seg__opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }
.slot-windows { display: grid; gap: 6px; margin-bottom: 6px; }
.slot-window { display: flex; align-items: center; gap: 6px; }
.slot-window .input { width: auto; }
.slot-preview { margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
.slot-preview .chip { margin: 2px 3px 0 0; font-variant-numeric: tabular-nums; }
.slot-preview.is-error { color: var(--red); }
.slot-day { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.slot-day__head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.slot-day__list { display: flex; flex-wrap: wrap; gap: 6px; }
.slot-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; cursor: pointer; font-variant-numeric: tabular-nums; }
.slot-chip:has(input:checked) { border-color: var(--red); background: var(--red-bg, #fef2f2); text-decoration: line-through; }
.slot-chip.is-locked { opacity: .65; cursor: not-allowed; }
.slot-chip small { color: var(--text-3); }
.meeting-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.meeting-link a.link-url { word-break: break-all; font-size: 13px; }
.poll-grid thead th.is-day-start { border-left: 2px solid var(--border-strong, var(--border)); }

/* ---- 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; }

/* ---- Bildirim zili ve açılır panel ---- */
.notif-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 34px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-2); transition: background .15s, border-color .15s; }
.notif-btn:hover, details.notif-menu[open] > .notif-btn { background: var(--surface-2); border-color: var(--primary, #4f46e5); color: var(--primary, #4f46e5); }
.notif-btn:focus-visible { outline: 2px solid var(--primary, #4f46e5); outline-offset: 2px; }
.notif-btn__count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.notif-panel { width: 360px; padding: 8px; max-height: min(70vh, 520px); overflow-y: auto; }
.notif-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.notif-panel__link { background: none; border: 0; padding: 0; color: var(--primary, #4f46e5); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.notif-panel__link:hover { text-decoration: underline; }
.notif-item { display: flex; gap: 10px; padding: 9px 8px; border-radius: 8px; text-decoration: none; color: inherit; }
.notif-item:hover { background: var(--surface-2); }
.notif-item__dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: transparent; }
.notif-item.is-unread .notif-item__dot { background: var(--primary, #4f46e5); }
.notif-item__body { display: flex; flex-direction: column; min-width: 0; }
.notif-item__msg { font-size: 13.5px; line-height: 1.35; color: var(--text-2); overflow-wrap: anywhere; }
.notif-item.is-unread .notif-item__msg { color: var(--text); font-weight: 600; }
.notif-item__meta { font-size: 11.5px; color: var(--text-3, #94a3b8); margin-top: 2px; }
.notif-panel__all { display: block; text-align: center; padding: 10px 8px 6px; margin-top: 4px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 600; }

/* =====================================================================
   Soft Bento uyum katmanı — sayfaya özel bileşenler
   (ortak değişkenler yukarıda; burada yalnızca biçim farkları var)
   ===================================================================== */
.sidebar__project-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .7); }

/* Sayfa içi uyarılar (toast olmayan .flash) daha hafif gölgeli */
.content .flash:not(.flash-wrap .flash) { box-shadow: inset 4px 0 0 var(--brand), var(--shadow-sm); border: 1px solid rgba(28, 27, 41, .06); animation: none; }
.content .flash.success:not(.flash-wrap .flash) { box-shadow: inset 4px 0 0 #10b981, var(--shadow-sm); background: #f3fcf8; }
.content .flash.error:not(.flash-wrap .flash) { box-shadow: inset 4px 0 0 #f43f5e, var(--shadow-sm); background: #fff6f8; }
.content .flash.warning:not(.flash-wrap .flash) { box-shadow: inset 4px 0 0 #f59e0b, var(--shadow-sm); background: #fffaf0; }
.content .flash.info:not(.flash-wrap .flash) { box-shadow: inset 4px 0 0 var(--brand), var(--shadow-sm); background: #f8f7ff; }

/* Açılır menüler ve bildirim paneli */
.menu__panel { border-radius: 20px; border-color: rgba(28, 27, 41, .06); padding: 16px; }
.notif-btn { width: 40px; height: 40px; border: 0; border-radius: 14px; background: var(--field); color: var(--text); }
.notif-btn:hover, details.notif-menu[open] > .notif-btn { background: var(--lav); color: var(--brand-700); border-color: transparent; }
.notif-btn__count { top: -4px; right: -4px; background: #e26fa5; box-shadow: 0 0 0 2px #fff; }
.notif-panel { padding: 8px; border-radius: 22px; }
.notif-item { border-radius: 14px; }
.notif-item:hover { background: var(--field); }

/* Parçalı seçiciler (Gantt görünümü, saat dilimi, faturalama dönemi) */
.segmented { gap: 2px; padding: 4px; border: 0; border-radius: 999px; background: var(--field); overflow: visible; }
.segmented a { padding: 6px 14px; border: 0; border-radius: 999px; font-weight: 600; }
.segmented a:hover { color: var(--text); }
.segmented a.active { background: var(--ink); color: #fff; }
.seg { padding: 4px; border: 0; border-radius: 999px; background: var(--field); }
.seg__opt span { border-radius: 999px; padding: 6px 14px; }
.seg__opt input:checked + span { background: var(--ink); }
.cycle-toggle { border: 0; background: var(--field); box-shadow: none; }
.cycle-toggle input:checked + span { background: var(--ink); }
.cycle-toggle em { background: var(--mint); color: var(--green); }

/* Paket kartları (Aboneliğim) */
.plan-grid { gap: 14px; }
.plan-card { border-radius: 26px; border-color: rgba(28, 27, 41, .06); padding: 28px 22px 22px; }
.plan-card:nth-child(4n+2) { background: var(--sky); }
.plan-card:nth-child(4n+3) { background: var(--lav); }
.plan-card:nth-child(4n+4) { background: var(--peach); }
.plan-card.is-current { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink), var(--shadow); }
.plan-card__tag { background: var(--ink); }
.plan-card__name { font-size: 22px; }
.plan-card__price strong { font-family: var(--display); font-weight: 600; letter-spacing: -.04em; }
.plan-card__note { border-bottom-color: rgba(28, 27, 41, .1); }
.plan-card__mark { background: rgba(255, 255, 255, .85); color: var(--text); }
.plan-card:nth-child(4n+1) .plan-card__mark { background: var(--field); }
.plan-card__features li.no .plan-card__mark { background: transparent; color: var(--text-3); border-color: var(--text-3); }
.plan-opt__body { border-radius: 16px; background: var(--field); border-color: transparent; }
.plan-opt:hover .plan-opt__body { border-color: var(--border-strong); }
.plan-opt input:checked + .plan-opt__body { border-color: var(--ink); background: var(--lav); box-shadow: none; }
.stripe-box { border-radius: 18px; border-color: transparent; background: var(--lav); }

/* Kurullar, akış adımları, belge kutuları */
.board-card { border-color: rgba(28, 27, 41, .06); }
.flow-steps li { border-radius: 999px; border-color: transparent; background: var(--field); }
.flow-steps li.current { border-color: transparent; background: var(--ink); color: #fff; box-shadow: none; }
.flow-steps li.current span { background: var(--surface); border-color: var(--surface); color: var(--text); }
.flow-steps li.done span { background: var(--green); }
.doc-tile { border-radius: 16px; }
.doc-tile:hover { border-color: var(--border-strong); background: var(--lav); text-decoration: none; }
.best-item, .slot-day { border-radius: 16px; }
.board-role-box { border-radius: 18px; border-color: transparent; background: var(--field); }
.template-card { border-radius: 20px; border-width: 1.5px; }
.template-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.template-card.selected { border-color: var(--ink); background: var(--lav); }
.template-card__cat { color: var(--brand-700); }
.wizard-step { border-radius: 999px; }
.wizard-step.active { border-color: var(--ink); color: var(--text); background: var(--lav); }
.wizard-step.active .num { background: var(--ink); }

/* Galeri, anket ve diğer kutular */
.g-drop { border-radius: 22px; border-color: var(--border-strong); background: rgba(255, 255, 255, .6); }
.g-toolbar { border-radius: 18px; border-color: rgba(28, 27, 41, .06); }
.photo { border-radius: 16px; }
.album-card { border-color: rgba(28, 27, 41, .06); }
.lb-btn.is-on { background: var(--brand); border-color: var(--brand); }
.choice { border-radius: 14px; }
.scale-opt span { border-radius: 14px; }
.scale-opt input:checked + span { background: var(--ink); border-color: var(--ink); }
.sq { border-radius: 20px; }
.survey-page { background: radial-gradient(40% 40% at 10% 0%, var(--lav), transparent 70%), radial-gradient(35% 35% at 95% 5%, var(--peach), transparent 70%), var(--bg); }
.survey-card { border-radius: 28px; border-color: rgba(28, 27, 41, .06); box-shadow: var(--shadow-lg); }
.sw-post, .cap-seg-0 { background: var(--brand); }
.kpi-bar, .cap-bar { border-color: transparent; background: var(--field); }
.risk-cell { border-radius: 12px; }
.qc-item__num { border-color: var(--border-strong); }
.bulk-bar { background: #fbfafd; }
.action-add { background: #fbfafd; }
.agenda__day.is-today { background: var(--lav); }
.cal-day.is-today .cal-day__num { background: var(--ink); }
.cal-weekday { font-size: 11px; letter-spacing: .08em; }
.gantt__today { border-left-color: #e26fa5; }
.gantt__today em { color: #c2255c; }
.timeline li::before { border-color: var(--brand); }
.activity__item::before { background: var(--brand); box-shadow: 0 0 0 3px var(--lav); border: 0; }
.list-row__title { font-weight: 600; }
hr.divider, .divider { background: var(--border); }

/* =====================================================================
   Gece modu (data-theme="dark") — head.php sayfa çizilmeden uygular.
   Aynı Soft Bento dili: koyu mürekkep zemin, hafif yükseltilmiş yüzeyler,
   pastellerin koyu tonları; seçili/birincil öğeler mor.
   ===================================================================== */
:root[data-theme="dark"] {
    color-scheme: dark;
    --brand: #9a8cff; --brand-600: #ab9fff; --brand-700: #c3baff; --brand-soft: #262145;
    --ink: #6d5dfc; --ink-hover: #7c6dfd;
    --lav: #29244a; --peach: #3a2b29; --mint: #16342e; --sky: #1c2a44;
    --bg: #121119; --surface: #1b1a26; --surface-2: #211f2e; --field: #262537;
    --border: rgba(255, 255, 255, .07); --border-strong: rgba(255, 255, 255, .14);
    --text: #ecebf4; --text-2: #b5b3c9; --text-3: #85839b;
    --sidebar-bg: rgba(27, 26, 38, .88); --sidebar-bg-2: #1b1a26;
    --sidebar-text: #b5b3c9; --sidebar-text-dim: #75738c; --sidebar-active: #6d5dfc;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 30px -26px rgba(0, 0, 0, .9);
    --shadow: 0 20px 44px -28px rgba(0, 0, 0, .9);
    --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .06);
    --green: #5fd3b4; --green-bg: #16342e;
    --red: #ff8fb1;   --red-bg: #3f1f2c;
    --amber: #f6c36b; --amber-bg: #372c18;
    --blue: #8fbcff;  --blue-bg: #1c2a44;
    --indigo: #b9adff; --indigo-bg: #29244a;
    --teal: #5ed6c8;  --teal-bg: #153532;
    --gray: #c4c2d6;  --gray-bg: #29283a;
    --orange: #ffad7a; --orange-bg: #3a2b29;
}
[data-theme="dark"] .app::before {
    background:
        radial-gradient(38% 34% at 22% 0%, rgba(109, 93, 252, .16), transparent 70%),
        radial-gradient(30% 30% at 96% 4%, rgba(226, 111, 165, .1), transparent 70%),
        radial-gradient(30% 34% at 96% 96%, rgba(45, 212, 191, .07), transparent 70%);
}
[data-theme="dark"] .sidebar,
[data-theme="dark"] .topbar,
[data-theme="dark"] .card,
[data-theme="dark"] .stat,
[data-theme="dark"] .menu__panel,
[data-theme="dark"] .plan-card,
[data-theme="dark"] .board-card,
[data-theme="dark"] .g-toolbar,
[data-theme="dark"] .album-card,
[data-theme="dark"] .survey-card { border-color: rgba(255, 255, 255, .07); }
[data-theme="dark"] .topbar { background: rgba(27, 26, 38, .8); }
[data-theme="dark"] .sidebar__nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); }
[data-theme="dark"] .sidebar__project { background: linear-gradient(150deg, #2b2650, #272240 60%, #362a31); }
[data-theme="dark"] .sidebar__project-dot { box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); }
[data-theme="dark"] .user-chip .btn-ghost:hover { background: var(--surface); }
[data-theme="dark"] table.data th { background: var(--surface-2); }
[data-theme="dark"] table.data tbody tr:hover { background: rgba(255, 255, 255, .03); }
[data-theme="dark"] .bulk-bar, [data-theme="dark"] .action-add { background: var(--surface-2); }
[data-theme="dark"] .input::placeholder, [data-theme="dark"] .textarea::placeholder { color: #6f6d86; }
[data-theme="dark"] .input:hover, [data-theme="dark"] .select:hover, [data-theme="dark"] .textarea:hover { background-color: #2b2a3d; }
[data-theme="dark"] .input:focus, [data-theme="dark"] .select:focus, [data-theme="dark"] .textarea:focus { background-color: var(--surface); box-shadow: 0 0 0 4px rgba(154, 140, 255, .16); }
[data-theme="dark"] .bulk-bar .input, [data-theme="dark"] .bulk-bar .select, [data-theme="dark"] .action-add .input, [data-theme="dark"] .action-add .select,
[data-theme="dark"] .stripe-box .input, [data-theme="dark"] .stripe-box .select { background-color: var(--surface); }
[data-theme="dark"] .btn-outline:hover { border-color: rgba(255, 255, 255, .26); }
[data-theme="dark"] .btn-danger { background: #d6406e; }
[data-theme="dark"] .flash { background: var(--surface); }
[data-theme="dark"] .content .flash.success:not(.flash-wrap .flash) { background: #15302a; }
[data-theme="dark"] .content .flash.error:not(.flash-wrap .flash) { background: #33202a; }
[data-theme="dark"] .content .flash.warning:not(.flash-wrap .flash) { background: #322a1b; }
[data-theme="dark"] .content .flash.info:not(.flash-wrap .flash) { background: #221f3d; }
[data-theme="dark"] .notif-btn__count { box-shadow: 0 0 0 2px var(--surface); }
[data-theme="dark"] .nav-item__badge { background: var(--ink); }
[data-theme="dark"] .plan-card__mark { background: rgba(255, 255, 255, .1); }
[data-theme="dark"] .g-drop { background: rgba(255, 255, 255, .03); }
[data-theme="dark"] .folder-card .icon { color: #ffb38a; }
[data-theme="dark"] .post.is-new { border-color: var(--brand); }
/* Açık renkli durum zeminlerinde koyu yazı (koyu temada durum renkleri açık tondur). */
[data-theme="dark"] .risk-cell.has-risk,
[data-theme="dark"] .vote-yes input:checked + span,
[data-theme="dark"] .vote-maybe input:checked + span,
[data-theme="dark"] .vote-no input:checked + span,
[data-theme="dark"] .qc-item.state-done .qc-item__num,
[data-theme="dark"] .flow-steps li.done span,
[data-theme="dark"] .gantt__group .gantt-bar__text { color: #16151f; }
[data-theme="dark"] .qc-item.state-done { background: rgba(95, 211, 180, .08); }
[data-theme="dark"] .alert-row.is-critical { background: rgba(255, 143, 177, .07); }

/* Tema anahtarı (üst çubuk) */
.theme-btn .theme-btn__sun, [data-theme="dark"] .theme-btn .theme-btn__moon { display: none; }
[data-theme="dark"] .theme-btn .theme-btn__sun { display: inline-flex; }
.theme-btn__moon, .theme-btn__sun { display: inline-flex; }
.theme-btn { cursor: pointer; font: inherit; }
/* Logo koyu zeminde kaybolmasın */
[data-theme="dark"] .plogo > rect { fill: #302a5c; }

/* ---- Dil seçici (açılır menü) ---- */
.langsw { position: relative; }
.langsw > summary { list-style: none; cursor: pointer; }
.langsw > summary::-webkit-details-marker { display: none; }
.langsw__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 14px; background: var(--field); color: var(--text); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.langsw__btn:hover, .langsw[open] > .langsw__btn { background: var(--lav); color: var(--brand-700); }
.langsw__btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.langsw__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 190px; padding: 6px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
[dir="rtl"] .langsw__menu { right: auto; left: 0; }
.langsw__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--text); font-size: 14px; font-weight: 500; }
.langsw__item:hover { background: var(--field); text-decoration: none; }
.langsw__item small { color: var(--text-3); font-weight: 700; font-size: 11px; letter-spacing: .06em; }
.langsw__item.is-active { background: var(--lav); color: var(--brand-700); font-weight: 600; }
.langsw-float { position: fixed; top: 14px; right: 14px; z-index: 50; }
[dir="rtl"] .langsw-float { right: auto; left: 14px; }
/* ProjectXai yazı markası: X mor, ai degrade */
.bword .bx, .bword .bai { font-weight: inherit; }
.bword .bx { color: #6d5dfc; }
.bword .bai { background: linear-gradient(90deg, #6d5dfc, #e26fa5); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .bword .bx { color: #9a8cff; }
