/* pys_module_themes_3_bloklar.css
 * ===========================================================================
 * KAYNAK: pys_module_themes.css satir 2352-3403 (bolundu: 2026-08-28)
 *
 * !! YUKLEME SIRASI KRITIK !!
 * Bu dosya ailesi (pys_module_themes_1..7) UC YERDE numara sirasiyla
 * yuklenmek ZORUNDA: web/index.html, web/yonetim/index.html ve
 * pys_motivation_system.js yazdirma penceresi. Dosya kronolojik bolundu:
 * sonraki parcalar oncekileri KASITLI eziyor. Sira bozulursa gorunum
 * sessizce bozulur (hata vermez).
 *
 * ICERIK: Tema renk bloklari (Alt-1 beyaz zemin), dokunma hedefi genisletme, A4 is listesi bolumleri, ortak hero band, tek header olcusu, themed shell kartlari, dashboard hero, profil sekmeleri, kronik rozeti
 * ===========================================================================
 */
/* ===== Tema: Renk Blokları (Alt-1) — beyaz zemin ===== */
.hcp-section {
    border: none;
    box-shadow: none;
    border-radius: 16px;
    background: #EEF2F6;
}
.hcp-section[data-section="bekliyor"]      { background: #E7F2FF; }
.hcp-section[data-section="devam"]         { background: #FFF3E0; }
.hcp-section[data-section="tamamlandi"]    { background: #E8F6ED; }
.hcp-section[data-section="tamamlanamadi"] { background: #FCEDED; }
.hcp-section[data-section="vazgecildi"]    { background: #EEF1F5; }
.hcp-section-head-wrap, .hcp-section-head { background: transparent; }
/* B2: bolum basligi renkli nokta aksani geri acildi (zemine gomulmesin). */
.hcp-section-title::before { display: inline-block; }
.hcp-section[data-section="bekliyor"] .hcp-section-title      { color: #1a63c4; }
.hcp-section[data-section="devam"] .hcp-section-title         { color: #B45309; }
.hcp-section[data-section="tamamlandi"] .hcp-section-title    { color: #15803D; }
.hcp-section[data-section="tamamlanamadi"] .hcp-section-title { color: #B42318; }
.hcp-section[data-section="vazgecildi"] .hcp-section-title    { color: #5A6C70; }
.hcp-section-body .hcp-item-row--compact {
    background: #fff;
    border: none;
    border-bottom: none;
    border-radius: 12px;
    padding: 11px 14px;
    box-shadow: 0 1px 2px rgba(15,23,42,0.05);
}
.hcp-section-body .hcp-item-row--compact:hover {
    box-shadow: 0 3px 12px rgba(15,23,42,0.09);
    border: none;
}

.hcp-btn-tik,
.hcp-status-indicator {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.hcp-surface-amber { background: var(--color-status-progress-bg); }
.hcp-surface-amber-soft { background: var(--color-status-progress-bg); }
.hcp-surface-info { background: var(--color-status-info-bg); }
.hcp-surface-violet { background: var(--color-status-muted-bg); }
.hcp-surface-neutral { background: #f8fafc; }
.hcp-notif-row--critical {
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: var(--color-status-danger-bg);
}
.hcp-row-status--completed { background: var(--color-status-success-bg); border-color: var(--color-status-success); }
.hcp-row-status--in-progress { background: var(--color-status-progress-bg); border-color: var(--color-status-warning); }
.hcp-row-status--not-completed { background: var(--color-status-danger-bg); border-color: var(--color-status-danger); }
.hcp-row-status--abandoned { background: #f8fafc; border-color: #e2e8f0; }

.hcp-status-indicator {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    background: transparent;
    border: 2px solid var(--status-color, #CBD5E1);
    color: var(--status-color, #64748B);
    font-size: 11px;
    transition: transform 0.12s, border-color 0.15s, color 0.15s;
    box-sizing: border-box;
}

.hcp-btn-tik {
    padding: 0;
    margin: 0;
    touch-action: manipulation;
    cursor: pointer;
    position: relative;
    z-index: 1;
}
/* Dokunma hedefi genişletme: görsel 26px kalır ama satır yüksekliği boyunca
   (dikeyde, yatay taşma yok) tıklanabilir — mobilde WCAG 2.5.5 (bulgu #3). */
.hcp-btn-tik::after {
    content: '';
    position: absolute;
    top: -9px;
    bottom: -9px;
    left: 0;
    right: 0;
}

.hcp-item-row-main .hcp-status-indicator {
    position: relative;
    z-index: 2;
}

.hcp-btn-tik:focus-visible,
.hcp-status-indicator:focus-visible {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}
.hcp-status-indicator svg { display: block; }
.hcp-status-indicator:hover { transform: scale(1.1); }
/* Durum renkleri tek kaynak: pys_hcp_control.css :root --hcp-status-* (ayni durum uc
   ayri tonla ciziliyordu; kural: kazanan ton en canli olan) */
.hcp-status-indicator[data-status="bekliyor"] { --status-color: var(--hcp-status-bekliyor, #2563EB); border-style: dashed; color: var(--hcp-status-bekliyor, #2563EB); }
.hcp-status-indicator[data-status="devam"] { --status-color: var(--hcp-status-devam, #F59E0B); }
.hcp-status-indicator[data-status="tamamlandi"] { --status-color: var(--hcp-status-tamamlandi, #15803D); }
.hcp-status-indicator[data-status="tamamlanamadi"] { --status-color: var(--hcp-status-tamamlanamadi, #EF4444); }
.hcp-status-indicator[data-status="vazgecildi"] { --status-color: var(--hcp-status-vazgecildi, #B85AE0); }
.hcp-status-indicator--locked {
    background: #FBFAF6;
    border: 2px solid #CBD5E1;
    color: #64748B;
    cursor: default;
}
.hcp-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    background: transparent;
    border: 2px solid var(--status-color, #CBD5E1);
}
.hcp-status-dot[data-status="bekliyor"] { --status-color: #3B82F6; border-style: dashed; }
.hcp-status-dot[data-status="devam"] { --status-color: #F59E0B; background: #F59E0B; border-color: #F59E0B; }
.hcp-status-dot[data-status="tamamlandi"] { --status-color: #059669; background: #059669; border-color: #059669; }
.hcp-status-dot[data-status="tamamlanamadi"] { --status-color: #EF4444; background: #EF4444; border-color: #EF4444; }
.hcp-status-dot[data-status="vazgecildi"] { --status-color: #8B5CF6; background: #8B5CF6; border-color: #8B5CF6; }
.hcp-item-row {
    box-shadow: inset 0 0 0 1px var(--row-accent, #CBD5E1);
    padding-left: 12px;
}

.hcp-status-pop {
    position: fixed;
    z-index: 420;
    background: #fff;
    min-width: 180px;
    padding: 4px;
    border: 0.5px solid var(--color-border-secondary);
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}
.hcp-status-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 13px;
    cursor: pointer;
    color: #1b2a2e;
}
.hcp-status-opt:hover { background: #FBFAF6; }

.hcp-cursor-tip {
  position: fixed;
  z-index: 400;
  max-width: 260px;
  padding: 7px 11px;
  border-radius: 8px;
  background: #1E293B;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

#hcp-shell-plan .hcp-btn-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748B;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
#hcp-shell-plan .hcp-btn-icon:hover { background: #F8FAFC; color: #1b2a2e; }
#hcp-shell-plan .hcp-btn-icon--danger:hover { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }
#hcp-shell-plan .hcp-btn-icon svg { display: block; }
#hcp-shell-plan .hcp-item-title--locked { cursor: not-allowed; }
#hcp-shell-plan .hcp-item-title--locked:hover { color: inherit; }


@media (prefers-reduced-motion: reduce) {
    .hcp-btn-tik.is-completing,
    .hcp-status-indicator.is-completing { animation: none; }
}

/* —— A4 İş listesi bölümleri —— */
#hcp-shell-plan .hcp-section-card {
    margin-top: 1rem;
    border-radius: var(--hcp-row-radius);
    border: 1px solid #CBD8E8;
    background: var(--color-background-primary, #fff);
    overflow: hidden;
    box-shadow: var(--hcp-card-shadow);
}
#hcp-shell-plan .hcp-section-card.mt-6 {
    margin-top: 1.5rem;
}
#hcp-shell-plan .hcp-section-card .hcp-section-head {
    padding: 0.6rem 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: none;
    background: linear-gradient(90deg, #EAF1FA 0%, #F6FAFE 100%);
    border-bottom: 1px solid #CBD8E8;
}
#hcp-shell-plan .hcp-section-head--bekleyen {
    color: #1D4ED8;
    background: linear-gradient(90deg, #DBEAFE 0%, #EFF6FF 100%);
    border-bottom-color: rgba(37, 99, 235, 0.2);
}
#hcp-shell-plan .hcp-section-head--devam {
    color: #B45309;
    background: linear-gradient(90deg, #FEF3C7 0%, #FFFBEB 100%);
    border-bottom-color: rgba(217, 119, 6, 0.22);
}
#hcp-shell-plan .hcp-section-head--tam {
    color: #047857;
    background: linear-gradient(90deg, #D1FAE5 0%, #ECFDF5 100%);
    border-bottom-color: rgba(5, 150, 105, 0.22);
}
#hcp-shell-plan .hcp-section-head--tmd {
    color: #B91C1C;
    background: linear-gradient(90deg, #FEE2E2 0%, #FEF2F2 100%);
    border-bottom-color: rgba(220, 38, 38, 0.2);
}
#hcp-shell-plan .hcp-section-head--vaz {
    color: #6D28D9;
    background: linear-gradient(90deg, #EDE9FE 0%, #F5F3FF 100%);
    border-bottom-color: rgba(124, 58, 237, 0.2);
}
#hcp-shell-plan .hcp-section-head--toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
#hcp-shell-plan .hcp-section-chevron {
    font-size: 0.625rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
#hcp-shell-plan .hcp-section-head--devam .hcp-section-chevron { color: var(--color-status-progress, #F59E0B); }
#hcp-shell-plan .hcp-section-head--tam .hcp-section-chevron { color: var(--color-status-success, #059669); }
#hcp-shell-plan .hcp-section-head--tmd .hcp-section-chevron { color: var(--color-status-danger, #EF4444); }
#hcp-shell-plan .hcp-section-head--vaz .hcp-section-chevron { color: var(--color-status-muted, #8B5CF6); }
#hcp-shell-plan details[open] .hcp-section-chevron {
    transform: rotate(180deg);
}
#hcp-shell-plan details.hcp-section-card > summary.hcp-section-head {
    border-bottom: none;
}
#hcp-shell-plan details.hcp-section-card[open] > summary.hcp-section-head {
    border-bottom: 1px solid #e2e8f0;
}
#hcp-shell-plan details.hcp-section-card > summary::-webkit-details-marker {
    display: none;
}
#hcp-shell-plan details.hcp-section-card > summary::marker {
    content: '';
}
#hcp-shell-plan .hcp-empty-section {
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-tertiary, #94a3b8);
}

@keyframes hcp-progress-complete {
    0%   { opacity: 1; }
    40%  { opacity: 0.6; box-shadow: 0 0 0 4px rgba(29, 158, 117, 0.15); }
    100% { opacity: 1; box-shadow: none; }
}

.hcp-progress-complete {
    animation: hcp-progress-complete 0.8s ease-out;
}

@keyframes pys-theme-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* —— Sayfa zemin tonları — tutarlılık için nötrlendi; tek tip ambient canvas (#ambient-bg) gösterilir —— */

/* —— Ortak hero band —— */
.pys-hero-band {
    position: relative;
    overflow: visible;
    border-radius: 1.25rem;
    color: #fff;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.22);
    background-size: 200% 200%;
    animation: pys-theme-shimmer 10s ease infinite;
    min-height: 4.25rem;
}
.pys-hero-band::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 88% 12%, rgba(255,255,255,0.35), transparent 42%);
}
.pys-hero-band__inner {
    position: relative;
    z-index: 1;
    padding: 0.85rem 1.25rem;
    overflow: visible;
    min-height: 4.25rem;
    display: flex;
    align-items: center;
}
@media (min-width: 640px) {
    .pys-hero-band__inner { padding: 0.95rem 1.5rem; }
}
.pys-hero-band__kicker {
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    opacity: 0.88;
    margin: 0 0 0.15rem;
}
.pys-hero-band__title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
@media (min-width: 768px) {
    .pys-hero-band__title { font-size: 1.5rem; }
}
.pys-hero-band__sub {
    font-size: 0.8125rem;
    opacity: 0.92;
    margin-top: 0.35rem;
    max-width: 36rem;
    line-height: 1.45;
}
.pys-hero-band__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
.pys-hero-band__actions .pys-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255,255,255,0.92);
    color: #0f172a;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.pys-hero-band__actions .pys-hero-btn:hover { filter: brightness(1.03); transform: translateY(-1px); }
.pys-hero-band__actions .pys-hero-btn--solid {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.82));
}
.pys-hero-band__actions .pys-hero-btn--ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: none;
}
.pys-hero-band__actions .pys-hero-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}
.pys-hero-band__actions .pys-hero-btn--icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    justify-content: center;
}
.pys-hero-band__actions .pys-hero-btn--solid {
    color: #0f172a;
}

/* ===== Buton sistemi (v2) — senaryo bazlı, tek kimlik =====
   Temel: .pys-btn + boyut (.pys-btn--sm/md/lg/icon) + tür (.pys-btn--primary/success/ai/submit/secondary/ghost/danger).
   Kural: 🐮 submit=plan teslimi (imza) · mavi=nötr ana · yeşil=onay/bitiş · mor=YZ · beyaz/şeffaf=ikincil · çerçeveli kırmızı=sil/geri. */
.pys-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    border: 1.5px solid transparent; border-radius: var(--pys-radius-md);
    cursor: pointer; font-weight: 600; font-family: var(--pys-font-display, inherit);
    line-height: 1; white-space: nowrap;
    transition: filter .15s ease, transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.pys-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.pys-btn:active { transform: translateY(0) scale(.98); }
.pys-btn:focus-visible { outline: none; box-shadow: var(--pys-focus-ring); }
.pys-btn:disabled, .pys-btn.is-disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.2); box-shadow: none; pointer-events: none; transform: none; }
.pys-btn--sm { height: 32px; padding: 0 13px; font-size: 12px; border-radius: var(--pys-radius-sm); }
.pys-btn--md { height: 40px; padding: 0 18px; font-size: 13px; }
.pys-btn--lg { height: 46px; padding: 0 22px; font-size: 14px; }
.pys-btn--icon { width: 38px; height: 38px; padding: 0; border-radius: var(--pys-radius-sm); gap: 0; }
.pys-btn--primary { background: linear-gradient(135deg,#2E8FFF,#1453B8); color:#fff; box-shadow: 0 2px 10px rgba(30,111,208,.32); }
.pys-btn--success { background: linear-gradient(135deg,#19C37D,#15803D); color:#fff; box-shadow: 0 2px 10px rgba(22,163,74,.32); }
.pys-btn--ai      { background: linear-gradient(135deg,#A855F7,#6D28D9); color:#fff; box-shadow: 0 2px 10px rgba(124,58,237,.32); }
.pys-btn--submit  { background: linear-gradient(135deg,#FF4747,#C20510); color:#fff; box-shadow: 0 3px 14px rgba(194,5,16,.40); font-weight: 700; border-radius: var(--pys-radius-lg); }
.pys-btn--secondary { background:#fff; border-color:#cdd5e3; color:#1b2a2e; }
.pys-btn--secondary:hover { background:#f3f6fb; filter:none; }
.pys-btn--ghost { background:transparent; color:#1a63c4; border-color:transparent; }
.pys-btn--ghost:hover { background:#eaf2fe; filter:none; transform:none; }
.pys-btn--danger { background:#fff; border-color:#F0A8A8; color:#C0392B; }
.pys-btn--danger:hover { background: linear-gradient(135deg,#F26A6A,#DC2626); border-color:transparent; color:#fff; }

/* Tüm iç modüller — tek header ölçüsü ve hiyerarşi */
.pys-module-header {
    margin-bottom: 1.25rem;
}
#main-app .pys-hero-band__title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}
@media (min-width: 768px) {
    #main-app .pys-hero-band__title { font-size: 1.5rem; }
}
#main-app .pys-hero-band__kicker {
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}
#main-app .pys-hero-band__icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.35rem;
}
.pys-module-subtabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    margin: 0;
}
#page-hcp > .glass-panel > .pys-module-subtabs {
    padding: 0.35rem 1rem 0.25rem;
}
.pys-module-subtabs [data-hcp-subtab] {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pys-module-subtabs [data-hcp-subtab].is-active {
    background: linear-gradient(135deg, var(--color-action-primary) 0%, var(--color-brand-kobalt) 55%, #0B2A50 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 14px rgba(46, 143, 255, 0.35);
}
.pys-module-subtabs [data-hcp-subtab].is-idle {
    color: #1b2a2e;
    border: 1px solid #cbd5e1;
    background: #fff;
}
.pys-module-subtabs [data-hcp-subtab].is-idle:hover {
    background: var(--color-status-pending-bg);
    border-color: var(--color-action-primary);
    color: #0e5a63;
}
.pys-hero-band__actions .das-personel-select {
    min-width: 11rem;
    max-width: 16rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.94);
    outline: none;
}
.pys-hero-band__actions .das-personel-select:focus {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

/* Modül gradientleri — doygun canlı tonlar */
.pys-hero-band--dashboard { background: linear-gradient(135deg, #6366F1 0%, #3730A3 100%); }
.pys-hero-band--hcp { background: linear-gradient(135deg, #2E8FFF 0%, #1453B8 100%); }
.pys-hero-band--kobalt { background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%); }
.pys-hero-band--violet { background: linear-gradient(135deg, #8B5CF6 0%, #5B21B6 100%); }
.pys-hero-band--calendar { background: linear-gradient(135deg, #FBA94C 0%, #C2410C 100%); }
.pys-hero-band--admin { background: linear-gradient(135deg, #C084FC 0%, #7E22CE 100%); }
.pys-hero-band--profile { background: linear-gradient(135deg, #38BDF8 0%, #0369A1 100%); }
.pys-hero-band--das { background: linear-gradient(135deg, #2DD4BF 0%, #0F766E 100%); }
.pys-hero-band--work_track { background: linear-gradient(135deg, #818CF8 0%, #3730A3 100%); }
.pys-hero-band--bip_prep { background: linear-gradient(135deg, #60A5FA 0%, #1A6FD4 100%); }
.pys-hero-band--bip_eval_summary { background: linear-gradient(135deg, #FCD34D 0%, #B45309 100%); }
.pys-hero-band--motivation { background: linear-gradient(135deg, #FBBF24 0%, #B45309 100%); }
.pys-hero-band--graph_gubir { background: linear-gradient(135deg, #5EEAD4 0%, #0D9488 100%); }
.pys-hero-band--supervision { background: linear-gradient(135deg, #A78BFA 0%, #6D28D9 100%); }
.pys-hero-band--eval_proto { background: linear-gradient(135deg, #7DD3FC 0%, #0369A1 100%); }
.pys-hero-band--family_eval { background: linear-gradient(135deg, #FB7185 0%, #BE123C 100%); }
.pys-hero-band--family_meet { background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%); }
.pys-hero-band--discipline { background: linear-gradient(135deg, #94A3B8 0%, #475569 100%); }
.pys-hero-band--health { background: linear-gradient(135deg, #34D399 0%, #059669 100%); }
.pys-hero-band--personnel_file { background: linear-gradient(135deg, #CBD5E1 0%, #64748B 100%); }
.pys-hero-band--events { background: linear-gradient(135deg, #FDBA74 0%, #EA580C 100%); }
.pys-hero-band--coach_tracking { background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%); }

/* Themed shell kartları */
.pys-themed-shell.glass-panel,
.pys-themed-shell .glass-panel.pys-module-page {
    border-color: rgba(63, 160, 236, 0.2);
    box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 16px 38px rgba(0,0,0,.09);
    background: rgba(255, 255, 255, 0.92);
}
[data-pys-theme="hcp"] .pys-themed-shell .glass-panel.pys-module-page {
    background: linear-gradient(165deg, #FFFFFF 0%, #EAF1FA 52%, #DDE8F4 100%);
    border-color: rgba(63, 160, 236, 0.25);
}
#page-hcp .glass-panel.pys-module-page {
    overflow: visible;
    padding-top: 14px;
}
.pys-hero-band__actions {
    overflow: visible;
}
[data-pys-theme="calendar"] .pys-themed-shell.glass-panel { border-color: rgba(249, 115, 22, 0.2); }
[data-pys-theme="admin"] .pys-themed-shell.glass-panel { border-color: rgba(124, 58, 237, 0.2); }
[data-pys-theme="profile"] .pys-themed-shell.glass-panel { border-color: rgba(2, 132, 199, 0.2); }
[data-pys-theme="das"] .pys-themed-shell.glass-panel { border-color: rgba(20, 184, 166, 0.2); }

/* Okunabilir yazı alanları — tüm modüllerde */
[data-pys-theme] .pys-input,
[data-pys-theme] .pys-field,
[data-pys-theme] .hcp-field {
    background: #fff !important;
    border: 2px solid rgba(148, 163, 184, 0.45) !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}
[data-pys-theme] .pys-input:focus,
[data-pys-theme] .pys-field:focus {
    border-color: var(--color-action-primary) !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2) !important;
}
[data-pys-theme="calendar"] .pys-input:focus { border-color: var(--color-warn-saturday) !important; box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2) !important; }
[data-pys-theme="admin"] .pys-input:focus { border-color: var(--color-role-manager) !important; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2) !important; }
[data-pys-theme="profile"] .pys-input:focus { border-color: #0284c7 !important; box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2) !important; }

[data-pys-theme] .pys-section-label {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: none;
    background: linear-gradient(90deg, #1E6FD0, #2E8FFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Dashboard hero — canlı */
.dash-v3-hero {
    background:
        radial-gradient(120% 130% at 0% 0%, rgba(56, 189, 248, 0.6), transparent 52%),
        radial-gradient(95% 85% at 100% 0%, rgba(129, 140, 248, 0.52), transparent 46%),
        radial-gradient(85% 75% at 50% 115%, rgba(45, 212, 191, 0.5), transparent 55%),
        linear-gradient(135deg, #bae6fd 0%, #c7d2fe 50%, #99f6e4 100%) !important;
    border: 1px solid rgba(2, 132, 199, 0.45) !important;
    box-shadow: 0 24px 56px rgba(46, 143, 255, 0.26), inset 0 1px 0 rgba(255,255,255,0.85) !important;
}
.dash-v3-launch-tile {
    border-width: 2px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}
.dash-v3-launch-tile--violet { background: linear-gradient(145deg, #c4b5fd, #7c3aed) !important; border-color: rgba(124, 58, 237, 0.5) !important; }
.dash-v3-launch-tile--sky { background: linear-gradient(145deg, #7dd3fc, #0284c7) !important; border-color: rgba(2, 132, 199, 0.5) !important; }
.dash-v3-launch-tile--emerald { background: linear-gradient(145deg, #6ee7b7, #059669) !important; border-color: rgba(5, 150, 105, 0.5) !important; }
.dash-v3-launch-tile--amber { background: linear-gradient(145deg, #fcd34d, #ea580c) !important; border-color: rgba(217, 119, 6, 0.5) !important; }

/* Modül brief üst kabuk */
#module-page-top.pys-module-brief-hero {
    border: none;
    padding: 0;
    overflow: visible;
    background: transparent;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}
#module-page-top .pys-module-brief-tabs {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), #fff);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.5rem 1rem 0.65rem;
}
#module-page-top .pys-app-tab--on {
    background: linear-gradient(135deg, var(--color-action-primary), var(--color-brand-kobalt)) !important;
    color: #fff !important;
}

/* Profil sekmeleri */
[data-pys-theme="profile"] .profile-subtab[data-active="true"],
[data-pys-theme="profile"] .profile-subtab.bg-slate-900 {
    background: linear-gradient(135deg, #0284c7, #3FA0EC) !important;
    border-color: transparent !important;
    color: #fff !important;
}

[data-pys-theme="dashboard"] #page-dashboard .glass-panel {
    background: linear-gradient(145deg, #ffffff 0%, #bae6fd 55%, #ddd6fe 100%);
    border-color: rgba(2, 132, 199, 0.3);
}

/* —— HÇP Kategori A —— */
.hcp-identity-line {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.01em;
}
html.pys-theme-dark .hcp-identity-line { color: #cbd5e1; }

.hcp-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.125rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.hcp-btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.hcp-btn-pill:hover { transform: translateY(-1px); filter: brightness(1.04); }
.hcp-btn-pill--ghost {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}
.hcp-btn-pill--ghost:hover { background: rgba(255, 255, 255, 0.26); }
.hcp-btn-pill--icon { width: 2.25rem; height: 2.25rem; padding: 0; }
.hcp-week-nav-label {
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
}
.hcp-btn-pill--primary {
    background: var(--color-action-primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
    border-color: rgba(255, 255, 255, 0.25);
}

#hcp-shell-plan .hcp-row-pending,
#hcp-shell-plan .hcp-row-done,
#hcp-shell-plan .hcp-row-closed {
    border-radius: var(--hcp-row-radius);
    box-shadow: var(--hcp-card-shadow);
}

#hcp-shell-plan .hcp-item-row--carryover {
    background: linear-gradient(90deg, rgba(237, 233, 254, 0.55) 0%, #fff 38%) !important;
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.35);
}
#hcp-shell-plan .hcp-carryover-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #6D28D9;
    background: #EDE9FE;
    border: 1px solid #C4B5FD;
    border-radius: 999px;
    padding: 2px 8px;
}
#hcp-shell-plan .hcp-carryover-badge i { font-size: 9px; }
/* Kronik (5+ hafta): liste başındaki şerit kalktığı için uyarıyı bu rozet taşıyor —
   ince mor çerçeve yerine dolu mor, satır taranırken gözden kaçmasın. */
#hcp-shell-plan .hcp-carryover-badge--chronic {
    color: #fff;
    background: #6D28D9;
    border-color: #5B21B6;
}

/* "Devam ediyor" sebebi rozeti — üç sebep üç renkte, Değerlendirme'deki
   .hcp-ctrl-reason paletiyle aynı (aynı bilgi, aynı renk kimliği). */
#hcp-shell-plan .hcp-progress-reason {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    padding: 2px 8px;
}
#hcp-shell-plan .hcp-progress-reason i { font-size: 9px; }
#hcp-shell-plan .hcp-progress-reason--planned_multi_week { color: #1F4F9E; background: #EEF4FF; border: 1px solid #C3D6F5; }
#hcp-shell-plan .hcp-progress-reason--external_block { color: #7C5A0A; background: #FFF6E5; border: 1px solid #EBD08A; }
#hcp-shell-plan .hcp-progress-reason--no_time { color: #9A3B1F; background: #FDEEEA; border: 1px solid #F0C0B0; }

/* Brief 04 — carry-forward devir seviyesine göre renk skalası (1-2 / 3-4 / 5+).
   Bileşik seçici (.hcp-item-row--carryover.hcp-item-row--carryover-N) tek-sınıflı
   temel kuralın !important'ını yenmek için daha yüksek specificity taşır. */
/* Devir seviyesi skalası — sarı/turuncu yerine COOL mor/indigo (Devir rozetiyle uyumlu).
   Escalation derinleşen mor tonlarıyla korunur: açık violet -> indigo -> derin indigo. */
/* Devir renk sinyali: yasak tek-yönlü kenar şeridi yerine mor iç halka + mor zemin gradyanı taşır. */
#hcp-shell-plan .hcp-item-row--carryover.hcp-item-row--carryover-1 {
    background: linear-gradient(90deg, #F5F3FF 0%, #fff 38%) !important; /* violet-50 */
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.30);
}
#hcp-shell-plan .hcp-item-row--carryover.hcp-item-row--carryover-3 {
    background: linear-gradient(90deg, #EDE9FE 0%, #fff 42%) !important; /* violet-100 */
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.38);
}
#hcp-shell-plan .hcp-item-row--carryover.hcp-item-row--carryover-5 {
    background: linear-gradient(90deg, #DDD6FE 0%, #fff 44%) !important; /* violet-200 */
    box-shadow: inset 0 0 0 1px rgba(109, 40, 217, 0.46);
}

#hcp-shell-plan .hcp-status-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.375rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 0.75rem;
}
#hcp-shell-plan .hcp-status-icon--pending { background: var(--color-status-pending-bg); color: var(--color-status-pending); }
#hcp-shell-plan .hcp-status-icon--progress { background: var(--color-status-progress-bg); color: var(--color-status-progress); }
#hcp-shell-plan .hcp-status-icon--success { background: var(--color-status-success-bg); color: var(--color-status-success); }
#hcp-shell-plan .hcp-status-icon--danger { background: var(--color-status-danger-bg); color: var(--color-status-danger); }
#hcp-shell-plan .hcp-status-icon--muted { background: var(--color-status-muted-bg); color: var(--color-status-muted); }

#hcp-shell-plan .hcp-section-icon {
    font-size: 0.75rem;
    margin-right: 0.35rem;
    vertical-align: -1px;
    opacity: 0.85;
}
#hcp-shell-plan .hcp-section-bekleyen .hcp-section-icon { color: var(--color-status-pending); }
#hcp-shell-plan .hcp-section-devam .hcp-section-icon { color: var(--color-status-progress); }
#hcp-shell-plan .hcp-section-tamamlanan .hcp-section-icon { color: var(--color-status-success); }
#hcp-shell-plan .hcp-section-not-completed .hcp-section-icon { color: var(--color-status-danger); }
#hcp-shell-plan .hcp-section-abandoned .hcp-section-icon { color: var(--color-status-muted); }

#hcp-shell-plan .hcp-section-not-completed .hcp-section-head,
#hcp-shell-plan .hcp-section-abandoned .hcp-section-head,
#hcp-shell-plan .hcp-section-head--collapsible {
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
}
#hcp-shell-plan .hcp-section-not-completed .hcp-section-head {
    background: linear-gradient(90deg, #FEE2E2, #FEF2F2);
    color: #B91C1C;
    border-bottom-color: rgba(220, 38, 38, 0.2);
}
#hcp-shell-plan .hcp-section-abandoned .hcp-section-head {
    background: linear-gradient(90deg, #EDE9FE, #F5F3FF);
    color: #6D28D9;
    border-bottom-color: rgba(124, 58, 237, 0.2);
}
#hcp-shell-plan .hcp-section-devam .hcp-section-head--collapsible {
    background: linear-gradient(90deg, #FEF3C7, #FFFBEB);
    color: #B45309;
    border-bottom-color: rgba(217, 119, 6, 0.22);
}
#hcp-shell-plan .hcp-section-tamamlanan .hcp-section-head--collapsible {
    background: linear-gradient(90deg, #D1FAE5, #ECFDF5);
    color: #047857;
    font-weight: 700;
    border-bottom-color: rgba(5, 150, 105, 0.22);
}
#hcp-shell-plan .hcp-section-devam.is-collapsed #hcp-devam-edenler,
#hcp-shell-plan .hcp-section-tamamlanan.is-collapsed #hcp-tamamlananlar,
#hcp-shell-plan .hcp-section-not-completed.is-collapsed #hcp-tamamlanamadi,
#hcp-shell-plan .hcp-section-abandoned.is-collapsed #hcp-vazgecildi { display: none; }
#hcp-shell-plan .hcp-section-card.is-collapsed .hcp-section-chevron { transform: rotate(180deg); }
#hcp-shell-plan .hcp-section-chevron { transition: transform 0.2s ease; }

#hcp-shell-plan .hcp-work-check--pending {
    border-color: var(--color-status-neutral);
    background: #fff;
}
#hcp-shell-plan .hcp-work-check--pending:hover { border-color: var(--color-action-primary); }
#hcp-shell-plan .hcp-work-check--complete-active,
#hcp-shell-plan .hcp-work-check--completed {
    background: var(--color-status-success);
    border-color: var(--color-status-success);
}
#hcp-shell-plan .hcp-work-check--progress {
    background: var(--color-status-progress-bg);
    border-color: var(--color-status-progress);
    color: #b45309;
}
#hcp-shell-plan .hcp-work-check--not-completed {
    background: var(--color-status-danger);
    border-color: var(--color-status-danger);
}
#hcp-shell-plan .hcp-work-check--abandoned {
    background: var(--color-status-muted);
    border-color: var(--color-status-muted);
}

#hcp-shell-plan .hcp-stats-strip {
    background: linear-gradient(135deg, #FFFFFF 0%, #E7F2FF 55%, #FBFAF6 100%);
    box-shadow: var(--hcp-card-shadow);
    border: 1px solid rgba(63, 160, 236, 0.2);
    border-radius: 14px;
}
#hcp-shell-plan .hcp-stats-strip__streak.is-active {
    background: linear-gradient(145deg, #FFF7ED, #FFEDD5);
    border-color: rgba(234, 88, 12, 0.35) !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.15);
}
#hcp-shell-plan .hcp-stats-strip__streak.is-active #hcp-seri,
#hcp-shell-plan #hcp-seri.hcp-seri--active {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: #c2410c;
}
#hcp-shell-plan .hcp-stats-strip__streak.is-active .hcp-stat-icon--fire {
    animation: hcp-streak-fire 1.2s ease-in-out infinite alternate;
}
#hcp-shell-plan .hcp-stats-strip__progress {
    background: transparent;
}
#hcp-shell-plan .hcp-progress-track {
    background: #e2e8f0;
}
@keyframes hcp-streak-fire {
    from { transform: scale(1); filter: brightness(1); }
    to { transform: scale(1.08); filter: brightness(1.12); }
}

#hcp-shell-plan .hcp-feedback-badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
    background: #EDE9FE;
    color: #6D28D9;
    border: 1px solid #C4B5FD;
    box-shadow: 0 1px 4px rgba(124, 58, 237, 0.12);
}
#hcp-shell-plan .hcp-feedback-badge:hover { background: #DDD6FE; }

html.pys-theme-dark #page-hcp .glass-panel.pys-module-page {
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.92));
    border-color: rgba(56, 189, 248, 0.25);
}
html.pys-theme-dark #hcp-shell-plan .hcp-row-pending,
html.pys-theme-dark #hcp-shell-plan .hcp-row-done,
html.pys-theme-dark #hcp-shell-plan .hcp-row-closed {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(51, 65, 85, 0.8);
}
html.pys-theme-dark #hcp-shell-plan .hcp-item-title { color: #e2e8f0; }
html.pys-theme-dark #hcp-shell-plan .hcp-quick-add {
    background: linear-gradient(180deg, rgba(12, 74, 110, 0.55) 0%, rgba(15, 23, 42, 0.92) 100%);
    border-color: #38BDF8;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.15);
}
html.pys-theme-dark #hcp-shell-plan .hcp-quick-add__label { color: #7DD3FC; }
html.pys-theme-dark #hcp-shell-plan .hcp-quick-add__input {
    background: rgba(15, 23, 42, 0.75);
    color: #e2e8f0;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}
html.pys-theme-dark #hcp-shell-plan .hcp-quick-add__unplanned { color: #cbd5e1; }
html.pys-theme-dark #hcp-shell-plan .hcp-work-area-chip {
    border-color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--wa-color) 70%, #0f172a),
        color-mix(in srgb, var(--wa-color) 55%, #000));
    color: #fff;
}
html.pys-theme-dark #hcp-shell-plan .hcp-work-area-chip:hover:not(.is-selected) {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--wa-color) 80%, #0f172a),
        color-mix(in srgb, var(--wa-color) 62%, #000));
    border-color: rgba(255, 255, 255, 0.28);
}
html.pys-theme-dark #hcp-shell-plan .hcp-work-area-chip.is-selected {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--wa-color) 85%, #0f172a),
        color-mix(in srgb, var(--wa-color) 65%, #000));
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.45);
    box-shadow:
        0 0 0 2px rgba(15, 23, 42, 0.95),
        0 0 0 4px var(--wa-color),
        0 4px 14px color-mix(in srgb, var(--wa-color) 50%, transparent);
    transform: translateY(-1px);
}
html.pys-theme-dark #hcp-shell-plan .hcp-plan-disi-chip {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(251, 191, 36, 0.45);
    color: #FCD34D;
}
html.pys-theme-dark #hcp-shell-plan .hcp-plan-disi-chip.is-active {
    background: rgba(245, 158, 11, 0.22);
    border-color: #F59E0B;
    color: #FDE68A;
}
html.pys-theme-dark #hcp-shell-plan .hcp-plan-disi-divider { background: #475569; }
html.pys-theme-dark #hcp-shell-plan .hcp-quick-add__areas-label { color: #94a3b8; }
html.pys-theme-dark #hcp-shell-plan .hcp-btn-primary {
    background: var(--color-action-primary);
}
@media (prefers-reduced-motion: reduce) {
    .pys-hero-band { animation: none; }
    #hcp-shell-plan .hcp-stats-strip__streak.is-active .hcp-stat-icon--fire { animation: none; }
}

/* —— C Gamification —— */
.hcp-streak-hint {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-left: 4px;
}
.hcp-streak-record {
    font-size: 11px;
    color: var(--color-text-tertiary);
    margin-left: 8px;
}
.hcp-streak--lv0 { color: var(--color-status-neutral); opacity: 0.85; }
.hcp-streak--lv0 .hcp-streak-flame { filter: grayscale(0.6); opacity: 0.5; }
.hcp-streak--lv1 { color: var(--color-status-warning); }
.hcp-streak--lv1.is-active { background: var(--color-status-progress-bg); border-radius: 8px; padding: 2px 6px; }
.hcp-streak--lv2 { color: var(--color-status-warning); font-weight: 600; }
.hcp-streak--lv3 { color: var(--color-deadline); font-weight: 700; }
.hcp-streak--lv4 {
    color: var(--color-deadline);
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-status-progress-bg), var(--color-status-success-bg));
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.25);
}
.hcp-progress-ring-wrap {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.hcp-progress-ring {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--color-status-neutral) 0deg, var(--color-status-neutral) 360deg);
}
.hcp-gamif-panel {
    margin: 0;
}
.hcp-gamif-shield-notice {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    background: var(--color-status-progress-bg);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #92400e;
}
.hcp-gamif-celebration {
    margin-bottom: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    background: var(--color-status-success-bg);
    border: 1px solid rgba(5, 150, 105, 0.25);
    color: #065f46;
}
.hcp-gamif-celebration--badge {
    background: var(--color-status-muted-bg);
    border-color: rgba(139, 92, 246, 0.25);
    color: #5b21b6;
}
.hcp-gamif-celebration.is-visible {
    animation: hcp-gamif-sweep-in 0.45s ease;
}
@keyframes hcp-gamif-sweep-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.hcp-strip2.hcp-gamif-sweep {
    animation: hcp-gamif-strip-sweep 0.55s ease;
}
@keyframes hcp-gamif-strip-sweep {
    0% { box-shadow: inset 0 0 0 0 rgba(5, 150, 105, 0); }
    40% { box-shadow: inset 120px 0 24px -24px rgba(5, 150, 105, 0.12); }
    100% { box-shadow: inset 0 0 0 0 rgba(5, 150, 105, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .hcp-gamif-celebration.is-visible,
    .hcp-strip2.hcp-gamif-sweep,
    .hcp-header-action-bar.hcp-gamif-sweep { animation: none; }
    .hcp-streak.is-active .hcp-streak-flame { animation: none; }
}

.hcp-plan-view-pane {
    padding: 0 1.25rem;
}
.hcp-plan-view-pane.hidden { display: none; }

