/* ============================================================================
   BG PRO — yeni arayüz: yönetim kabuğu, Bugün ekranı, arama, hızlı işlem,
   bildirim merkezi, kişi 360° paneli. bg-theme.css'ten sonra yüklenir.
   ============================================================================ */

/* ---------- Kabuk ---------- */
.bg-shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.bg-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  border-right: 1px solid var(--border); padding: 20px 14px 16px;
  display: flex; flex-direction: column; gap: 2px; background: var(--plane);
}
.bg-side .brand { display: flex; align-items: center; padding: 4px 10px 20px; color: var(--ink-primary); }
.bg-qa-btn {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 14px; border: 0;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; cursor: pointer;
  margin-bottom: 6px; transition: transform .4s var(--e-out);
}
.bg-qa-btn:hover { transform: translateY(-1px); }
.bg-qa-btn kbd, .bg-search-btn kbd { margin-left: auto; font: inherit; font-size: 11px; opacity: .6; border: 1px solid currentColor; border-radius: 6px; padding: 0 6px; }
.bg-search-btn {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-muted); font: inherit; margin-bottom: 14px;
}
.bg-nav { position: relative; display: flex; flex-direction: column; gap: 1px; z-index: 0; }
.bg-nav .pill { position: absolute; left: 0; right: 0; border-radius: 12px; background: var(--surface-2); z-index: -1; transition: top .5s var(--e-out), height .5s var(--e-out), opacity .3s; }
.bg-nav button {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: none; border-radius: 12px;
  color: var(--ink-secondary); font: inherit; font-size: 14.5px; cursor: pointer; text-align: left; transition: color .25s;
}
.bg-nav button:hover { color: var(--ink-primary); }
.bg-nav button.on { color: var(--ink-primary); font-weight: 600; }
.bg-nav .cnt, .bg-dot {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 99px; font-size: 11px; font-weight: 700;
  background: var(--critical); color: #fff; display: inline-grid; place-items: center;
}
.bg-side .foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 12px; }
.bg-side .foot button {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: none; border-radius: 12px;
  color: var(--ink-secondary); font: inherit; font-size: 14px; cursor: pointer; text-align: left;
}
.bg-side .foot button:hover { background: var(--surface-2); color: var(--ink-primary); }
.bg-me { display: flex; align-items: center; gap: 10px; padding: 14px 12px 4px; border-top: 1px solid var(--border); margin-top: 8px; }
.bg-av { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.bg-me small { display: block; color: var(--ink-muted); font-size: 12px; }

.bg-main { min-width: 0; display: flex; flex-direction: column; }
.bg-main > main.content { max-width: 1120px; padding: 28px 32px 60px; }
.bg-main .bg-mtop { display: none; }
.bg-mbar { display: none; }

@media (max-width: 899px) {
  .bg-shell { grid-template-columns: 1fr; }
  .bg-side { display: none; }
  .bg-main > main.content { padding: 14px 16px 120px; }
  .bg-main .bg-mtop {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    position: sticky; top: 0; z-index: 20; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
    background: var(--backdrop); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border);
  }
  .bg-mtop .acts { display: flex; gap: 6px; }
  .bg-ibtn { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); background: none; color: var(--ink-primary); display: grid; place-items: center; cursor: pointer; }
  .bg-ibtn .bg-dot { position: absolute; top: -4px; right: -4px; margin: 0; }
  .bg-mbar {
    display: flex; position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 30;
    background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.45);
    padding: 7px; justify-content: space-around; align-items: center;
  }
  .bg-mbar button {
    display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: 11px; color: var(--ink-muted); padding: 6px 10px; border-radius: 14px; min-width: 58px;
  }
  .bg-mbar button.on { color: var(--ink-primary); background: var(--surface-2); }
  .bg-mbar .bg-fab {
    width: 58px; height: 58px; min-width: 58px; border-radius: 50%; padding: 0; margin-top: -26px; justify-content: center;
    background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 24px -10px rgba(0,0,0,.55); position: relative;
    touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  }
  .fab { bottom: 104px !important; }
}
.bg-fab .ring { position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; transform: scale(.85); pointer-events: none; }
.bg-fab.holding .ring { animation: bgHold .45s linear forwards; }
@keyframes bgHold { to { opacity: 1; transform: scale(1); } }

/* ---------- Bugün ---------- */
.td-eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.td-hello { font-size: clamp(32px, 4vw, 52px); font-weight: 300; letter-spacing: -.025em; line-height: 1.05; margin-top: 6px; }
.td-hello .ln { display: block; overflow: hidden; }
.td-hello .ln span { display: inline-block; transform: translateY(105%); animation: tdRise 1s var(--e-out) forwards; }
.td-hello .ln:nth-child(2) span { animation-delay: .08s; }
@keyframes tdRise { to { transform: none; } }
.td-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.td-top .acts { display: flex; gap: 8px; }
.td-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; white-space: nowrap;
  border: 1px solid var(--border-strong); background: none; color: var(--ink-primary); font: inherit; font-weight: 500; font-size: 14px; cursor: pointer;
  transition: transform .35s var(--e-out), border-color .3s;
}
.td-btn:hover { border-color: var(--ink-primary); }
.td-btn:active { transform: scale(.97); }
.td-btn.p { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.td-btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.td-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.td-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-1); }
.td-kpi .l { font-size: 13px; color: var(--ink-muted); }
.td-kpi .v { font-size: 26px; font-weight: 500; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.td-kpi .d { font-size: 12.5px; color: var(--ink-muted); margin-top: 4px; }
.td-kpi .d.up { color: var(--good); } .td-kpi .d.dn { color: var(--critical); }
.td-two { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; margin-top: 18px; }
.td-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
.td-card .hd { padding: 18px 20px 10px; display: flex; align-items: center; gap: 8px; }
.td-card .hd h3 { font-size: 16px; font-weight: 600; }
.td-card .hd small { margin-left: auto; color: var(--ink-muted); font-size: 13px; }
.td-att { list-style: none; margin: 0; padding: 0; }
.td-att li {
  display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--border); cursor: pointer;
  transition: background .3s, opacity .5s var(--e-out), transform .5s var(--e-out);
}
.td-att li:first-child { border-top: 0; }
.td-att li:hover { background: var(--surface-2); }
.td-att .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.ic-c { background: var(--critical-wash); color: var(--critical); } .ic-w { background: var(--warning-wash); color: var(--warning); }
.ic-g { background: var(--good-wash); color: var(--good); } .ic-n { background: var(--surface-2); color: var(--ink-secondary); }
.td-att .t { font-weight: 500; font-size: 14.5px; }
.td-att .s { font-size: 13px; color: var(--ink-muted); }
.td-att .a { margin-left: auto; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 500; font-variant-numeric: tabular-nums; }
.td-empty { padding: 26px 20px; color: var(--ink-muted); font-size: 14px; text-align: center; }
.td-cf { padding: 18px 20px 16px; position: relative; }
.td-cf svg { width: 100%; height: auto; display: block; margin-top: 8px; overflow: visible; }
.td-cf .legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-muted); margin-top: 6px; }
.td-cf .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.td-cf .bar { transform-origin: bottom; transform: scaleY(0); transform-box: fill-box; transition: transform 1s var(--e-out); }
.td-cf.drawn .bar { transform: none; }
.td-cf .line { stroke-dasharray: 1600; stroke-dashoffset: 1600; transition: stroke-dashoffset 1.8s cubic-bezier(.65,0,.35,1) .3s; }
.td-cf.drawn .line { stroke-dashoffset: 0; }
.td-tip { position: absolute; pointer-events: none; background: var(--ink-primary); color: var(--plane); font-size: 12px; padding: 6px 9px; border-radius: 8px; opacity: 0; transition: opacity .2s; white-space: nowrap; z-index: 5; top: 40px; }
.td-sec { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; margin: 36px 0 14px; display: flex; align-items: center; }
.td-sec a { margin-left: auto; text-transform: none; letter-spacing: 0; color: var(--ink-secondary); cursor: pointer; font-size: 13px; }
.td-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.td-pc { cursor: pointer; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-1); transition: transform .6s var(--e-out), box-shadow .6s var(--e-out); display: flex; flex-direction: column; gap: 14px; }
.td-pc:hover { transform: translateY(-3px); box-shadow: 0 24px 46px -26px rgba(20,20,20,.45); }
.td-pc .top { display: flex; align-items: flex-start; gap: 12px; }
.td-pc h4 { font-size: 15px; font-weight: 600; line-height: 1.25; }
.td-pc small { color: var(--ink-muted); font-size: 12.5px; }
.td-pc .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-muted); }
.td-pc .row b { color: var(--ink-primary); font-weight: 500; font-variant-numeric: tabular-nums; }
.td-ring { margin-left: auto; width: 44px; height: 44px; flex: none; position: relative; }
.td-ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.td-ring circle { fill: none; stroke-width: 3.4; }
.td-ring .bg { stroke: var(--surface-3); }
.td-ring .fg { stroke: var(--ink-primary); stroke-linecap: round; stroke-dasharray: 113; stroke-dashoffset: 113; transition: stroke-dashoffset 1.4s var(--e-out) .2s; }
.td-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.td-reps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.td-rep { padding: 16px; cursor: pointer; }
.td-rep .who { display: flex; align-items: center; gap: 10px; }
.td-rep .who small { display: block; color: var(--ink-muted); font-size: 12px; }
.td-rep p { margin: 10px 0 0; font-size: 14px; color: var(--ink-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.td-rep .thumbs { display: flex; gap: 6px; margin-top: 10px; }
.td-rep .thumbs img { width: 54px; height: 54px; object-fit: cover; border-radius: 9px; }
.td-flag { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--critical); background: var(--critical-wash); padding: 3px 9px; border-radius: 99px; margin-top: 10px; }
.td-rv { opacity: 0; transform: translateY(14px); }
.td-rv.in { opacity: 1; transform: none; transition: opacity .9s var(--e-out), transform .9s var(--e-out); }

@media (max-width: 899px) {
  .td-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .td-kpi { padding: 14px; } .td-kpi .v { font-size: 21px; }
  .td-two { grid-template-columns: 1fr; }
  .td-att li { padding: 12px 14px; gap: 12px; } .td-att .a svg { display: none !important; } .td-att .a { font-size: 13.5px; } .td-att .t { font-size: 14px; }
  .td-hello { font-size: 36px; }
}

/* ---------- Ortak katman: perde ---------- */
.bg-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(20,20,20,.28); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .4s var(--e-out); }
.bg-scrim.on { opacity: 1; pointer-events: auto; }

/* ---------- Arama (Ctrl+K) ---------- */
.bg-cmd {
  position: fixed; left: 50%; top: 12vh; width: min(640px, calc(100vw - 20px)); z-index: 71;
  transform: translate(-50%, -10px) scale(.98); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--e-out), transform .5s var(--e-out);
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.55); overflow: hidden;
}
.bg-cmd.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.bg-cmd .in { display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--border); color: var(--ink-muted); }
.bg-cmd input { border: 0 !important; background: none !important; font-size: 18px !important; padding: 18px 0 !important; color: var(--ink-primary); flex: 1; }
.bg-cmd .mic { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong); background: none; display: grid; place-items: center; color: var(--ink-primary); cursor: pointer; }
.bg-cmd .mic.rec { background: var(--critical); color: #fff; border-color: var(--critical); animation: bgPulse 1.2s ease-in-out infinite; }
@keyframes bgPulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--critical) 18%, transparent); } }
.bg-cmd .res { max-height: 56vh; overflow: auto; padding: 6px 0 10px; }
.bg-cmd .g { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); padding: 12px 20px 6px; }
.bg-cmd .o { display: flex; align-items: center; gap: 12px; padding: 10px 20px; cursor: pointer; font-size: 14.5px; }
.bg-cmd .o.on { background: var(--surface-2); }
.bg-cmd .o .k { color: var(--ink-muted); display: flex; }
.bg-cmd .o small { margin-left: auto; color: var(--ink-muted); font-size: 12.5px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.bg-cmd mark { background: none; color: var(--ink-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bg-cmd .hint { display: flex; gap: 16px; font-size: 12px; color: var(--ink-muted); padding: 10px 20px; border-top: 1px solid var(--border); }

/* ---------- Hızlı işlem ---------- */
.bg-qa {
  position: fixed; z-index: 71; left: 50%; bottom: 24px; width: min(520px, calc(100vw - 20px));
  background: var(--surface); border: 1px solid var(--border); border-radius: 26px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.55); padding: 18px;
  transform: translate(-50%, 30px) scale(.97); opacity: 0; pointer-events: none; transition: transform .55s var(--e-out), opacity .35s var(--e-out);
}
@media (max-width: 899px) { .bg-qa { bottom: 100px; } }
.bg-qa.on { transform: translate(-50%, 0) scale(1); opacity: 1; pointer-events: auto; }
.bg-qa .ctx { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.bg-qa .ctx b { color: var(--ink-primary); letter-spacing: 0; text-transform: none; font-size: 14px; font-weight: 600; }
.bg-qa .say { display: flex; align-items: center; gap: 12px; width: 100%; margin: 12px 0 14px; padding: 13px 15px; border-radius: 18px; border: 0; background: var(--surface-2); color: var(--ink-primary); font: inherit; text-align: left; cursor: pointer; }
.bg-qa .say .mc { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.bg-qa .say.rec .mc { background: var(--critical); color: #fff; animation: bgPulse 1.2s ease-in-out infinite; }
.bg-qa .say b { display: block; font-weight: 600; }
.bg-qa .say small { color: var(--ink-muted); font-size: 12.5px; display: block; }
.bg-qa .heard { font-size: 15px; color: var(--ink-secondary); font-style: italic; min-height: 0; margin: -4px 4px 12px; }
.bg-qa .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bg-qa .grid button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 13px; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--border); background: none; color: var(--ink-primary); font: inherit; font-size: 13.5px; font-weight: 500; text-align: left;
  opacity: 0; transform: translateY(10px); transition: opacity .45s var(--e-out), transform .45s var(--e-out), background .25s;
}
.bg-qa.on .grid button { opacity: 1; transform: none; }
.bg-qa .grid button:hover { background: var(--surface-2); }
.bg-qa .grid small { display: block; color: var(--ink-muted); font-weight: 400; font-size: 12px; margin-top: 2px; }
.bg-qa .grid .qi { width: 34px; height: 34px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; }
.bg-qa .pick { display: none; }
.bg-qa.picking .grid, .bg-qa.picking .say, .bg-qa.picking .heard { display: none; }
.bg-qa.picking .pick { display: block; }
.bg-qa .pick .o { display: flex; align-items: center; gap: 10px; padding: 12px 6px; border-bottom: 1px solid var(--border); cursor: pointer; }
.bg-qa .pick .o:hover { background: var(--surface-2); }
.bg-qa .pick .o small { margin-left: auto; color: var(--ink-muted); font-size: 12.5px; }

/* ---------- Yan panel (bildirimler, kişi 360°) ---------- */
.bg-panel {
  position: fixed; top: 10px; right: 10px; bottom: 10px; width: min(540px, calc(100vw - 20px)); z-index: 71;
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
  transform: translateX(110%); transition: transform .65s var(--e-out); display: flex; flex-direction: column; overflow: hidden;
}
.bg-panel.on { transform: none; }
.bg-panel .ph { padding: 20px 22px 16px; border-bottom: 1px solid var(--border); display: flex; gap: 14px; align-items: center; }
.bg-panel .ph h3 { font-size: 19px; font-weight: 600; }
.bg-panel .ph small { color: var(--ink-muted); }
.bg-panel .x { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); background: none; color: var(--ink-primary); display: grid; place-items: center; cursor: pointer; flex: none; }
.bg-panel .pb { overflow: auto; padding: 18px 22px 30px; }
.bg-ntf { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.bg-ntf .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.bg-ntf b { font-weight: 600; font-size: 14.5px; }
.bg-ntf small { display: block; color: var(--ink-muted); font-size: 12.5px; }
.bg-bal { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px; border-radius: 16px; background: var(--surface-2); }
.bg-bal .v { font-size: 32px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bg-bal small { color: var(--ink-muted); font-size: 13px; }
.bg-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.bg-mini div { border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.bg-mini small { color: var(--ink-muted); font-size: 12px; display: block; }
.bg-mini b { font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.bg-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.bg-row .x1 { flex: 1; min-width: 0; }
.bg-row small { display: block; color: var(--ink-muted); font-size: 12.5px; }
.bg-row .amt { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bg-h { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; margin: 24px 0 4px; }

/* ---------- Ses dinleme göstergesi ---------- */
.bg-listen { display: flex; gap: 3px; align-items: center; height: 18px; }
.bg-listen i { width: 3px; height: 4px; border-radius: 2px; background: currentColor; animation: bgWave 1s ease-in-out infinite; }
.bg-listen i:nth-child(2) { animation-delay: .15s } .bg-listen i:nth-child(3) { animation-delay: .3s } .bg-listen i:nth-child(4) { animation-delay: .45s }
@keyframes bgWave { 50% { height: 16px; } }

/* View Transitions */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(.16,1,.3,1); }

@media (prefers-reduced-motion: reduce) {
  .td-rv { opacity: 1; transform: none; } .td-hello .ln span { transform: none; animation: none; }
}

/* ---- Belgeler (dekont, fiş, fatura, irsaliye) ---- */
.bg-clip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 99px; border: 1px dashed var(--border); background: transparent; color: var(--ink-muted); font: inherit; font-size: 12px; cursor: pointer; flex-shrink: 0; transition: background .2s, color .2s, border-color .2s; }
.bg-clip:hover { color: var(--ink-primary); border-color: var(--ink-muted); }
.bg-clip.has { border-style: solid; color: var(--ink-primary); background: var(--surface-2); }
.att-sub { font-size: 13px; color: var(--ink-muted); margin: -4px 0 12px; }
.att-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.att-kind { height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border); background: transparent; color: var(--ink-secondary); font: inherit; font-size: 13px; cursor: pointer; }
.att-kind.on { background: var(--ink-primary); color: var(--plane); border-color: var(--ink-primary); }
.att-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.att-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; }
.att-prog { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0; }
.att-up { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-secondary); }
.att-up.err { color: var(--critical); }
.att-up .sp { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--ink-primary); animation: att-spin .8s linear infinite; }
@keyframes att-spin { to { transform: rotate(360deg); } }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.att-item { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; position: relative; background: var(--surface-1, transparent); animation: att-in .35s var(--e-out, ease) both; }
@keyframes att-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.att-thumb { display: block; aspect-ratio: 4/3; background: var(--surface-2); }
.att-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att-pdf { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 4px; color: var(--ink-secondary); font-size: 11px; letter-spacing: .08em; }
.att-meta { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 1px; font-size: 11.5px; color: var(--ink-muted); min-width: 0; }
.att-meta b { font-size: 12.5px; color: var(--ink-primary); font-weight: 600; }
.att-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-ops { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.att-ops button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--plane) 88%, transparent); color: var(--ink-primary); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); }
.att-empty { grid-column: 1/-1; text-align: center; color: var(--ink-muted); font-size: 13px; padding: 22px 0; }
.att-picked { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--ink-secondary); }
.att-picked span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; background: var(--surface-2); }

/* ---- Rapor görüntüleyici ---- */
.bg-panel.bg-report { width: min(920px, calc(100vw - 20px)); z-index: 72; }
.rp-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 22px; border-bottom: 1px solid var(--border); }
.rp-opts { padding: 10px 22px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-secondary); }
.rp-opts label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.rp-opts input { width: auto; margin: 0; accent-color: var(--ink-primary); }
.rp-seg, .rp-secs { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rp-seg label { font-weight: 600; color: var(--ink-primary); }
.rp-secs label:has(input:disabled) { opacity: .4; }
.rp-frame { flex: 1; min-height: 0; background: var(--surface-2); padding: 14px; }
.rp-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px -18px rgba(0,0,0,.4); }
@media (max-width: 640px) { .rp-bar, .rp-opts { padding-left: 14px; padding-right: 14px; } .rp-frame { padding: 6px; } }
@media (max-width: 520px) { .hide-sm { display: none; } }
.bg-report .ph h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bg-report .ph > div { flex: 1; min-width: 0; }

/* ======================= PROJE SAYFASI ======================= */
.topbar.pj-top { position: relative; display: block; padding: 10px 10px 0; padding-top: max(10px, env(safe-area-inset-top)); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; z-index: 1; }
.pj-hero { position: relative; max-width: 1000px; margin: 0 auto; height: clamp(200px, 30vh, 300px); border-radius: 22px; overflow: hidden; background: var(--ink-primary); color: #F4F1EA; isolation: isolate; }
.pj-hero.pj-grow { animation: pj-grow .9s var(--e-out, cubic-bezier(.2,.8,.2,1)) both; }
@keyframes pj-grow { from { clip-path: inset(6% 4% 6% 4% round 28px); transform: scale(.985); opacity: .3; } to { clip-path: inset(0 0 0 0 round 22px); transform: none; opacity: 1; } }
.pj-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: pj-ken 14s ease-out both; }
@keyframes pj-ken { from { transform: scale(1.08); } to { transform: scale(1); } }
.pj-mono { position: absolute; right: 34px; bottom: 28px; opacity: .1; z-index: -2; color: #F4F1EA; }
.pj-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,20,20,.35) 0%, rgba(20,20,20,0) 35%, rgba(20,20,20,.15) 55%, rgba(20,20,20,.72) 100%); }
.pj-hero:not(.has-img) .pj-shade { background: radial-gradient(120% 90% at 0% 100%, rgba(244,241,234,.06), transparent 60%); }
.pj-row { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pj-back, .pj-acts button, .pj-acts label { height: 38px; min-width: 38px; padding: 0 12px; border-radius: 99px; border: 1px solid rgba(244,241,234,.22); background: rgba(20,20,20,.28); color: #F4F1EA; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-size: 13.5px; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-decoration: none; transition: background .25s, transform .2s; }
.pj-acts button:hover, .pj-acts label:hover, .pj-back:hover { background: rgba(20,20,20,.5); }
.pj-acts button:active, .pj-acts label:active { transform: scale(.95); }
.pj-acts { display: flex; gap: 6px; }
.pj-acts button:not(:has(span)), .pj-acts label { padding: 0; width: 38px; }
.pj-title { position: absolute; left: 22px; right: 22px; bottom: 20px; }
.pj-title > * { animation: pj-up .8s var(--e-out, ease) both; }
.pj-title h1 { animation-delay: .08s; } .pj-meta { animation-delay: .16s; }
@keyframes pj-up { from { opacity: 0; transform: translateY(14px); } }
.pj-eyebrow { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,241,234,.75); display: flex; gap: 8px; }
.pj-title h1 { font-size: clamp(26px, 4.4vw, 44px); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; margin: 6px 0 4px; color: #F4F1EA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-meta { font-size: 14px; color: rgba(244,241,234,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pj-tabs { position: sticky; top: 0; z-index: 20; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top)); background: color-mix(in srgb, var(--plane) 82%, transparent); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); }
.pj-tabs-in { position: relative; display: flex; gap: 2px; max-width: 1000px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.pj-tabs-in::-webkit-scrollbar { display: none; }
.pj-tab { position: relative; z-index: 1; flex-shrink: 0; height: 40px; padding: 0 15px; border: 0; background: none; color: var(--ink-muted); font: inherit; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; border-radius: 99px; transition: color .3s; }
.pj-tab.on { color: var(--plane); }
.pj-tab:not(.on):hover { color: var(--ink-primary); }
.pj-ind { position: absolute; top: 0; height: 40px; border-radius: 99px; background: var(--ink-primary); transition: left .55s var(--e-out, cubic-bezier(.2,.8,.2,1)), width .55s var(--e-out, cubic-bezier(.2,.8,.2,1)); z-index: 0; }
.pj-subs { max-width: 1000px; margin: 0 auto; width: 100%; padding: 6px 16px 0; }
.pj-subs:empty { display: none; }
.pj-pills { margin: 0; }
.pj-pills .pill-tab.active { background: var(--ink-primary); color: var(--plane); }
.pj-content { max-width: 1000px; }
.pj-content.pj-in > * { animation: pj-up .5s var(--e-out, ease) both; }
.pj-content.pj-in > *:nth-child(2) { animation-delay: .04s; } .pj-content.pj-in > *:nth-child(3) { animation-delay: .08s; } .pj-content.pj-in > *:nth-child(n+4) { animation-delay: .12s; }
@media (max-width: 640px) {
  .pj-mono { right: 18px; bottom: 50px; transform: scale(.7); transform-origin: bottom right; }
  .topbar.pj-top { padding: 6px 6px 0; padding-top: max(6px, env(safe-area-inset-top)); }
  .pj-hero { height: 190px; border-radius: 18px; }
  .pj-title { left: 16px; right: 16px; bottom: 14px; }
  .pj-tab { padding: 0 12px; font-size: 13.5px; }
  .pj-tab svg { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .pj-cover, .pj-title > *, .pj-content.pj-in > * { animation: none; } .pj-ind { transition: none; } }

/* ---- Proje dosyaları ---- */
.fl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fl-search { flex: 1; min-width: 180px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-muted); }
.fl-search input { border: 0; background: none; padding: 0; height: 100%; outline: none; width: 100%; color: var(--ink-primary); font: inherit; }
.pill-tab small { opacity: .6; font-weight: 500; margin-left: 2px; }
.fl-old { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-muted); margin: 10px 0 0; cursor: pointer; }
.fl-old input { width: auto; margin: 0; }
.fl-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.fl-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); cursor: pointer; transition: border-color .2s, transform .2s; }
.fl-row:hover { border-color: var(--ink-muted); }
.fl-row.old { opacity: .6; }
.fl-ic { width: 52px; height: 52px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; flex: none; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--ink-secondary); }
.fl-ic img { width: 100%; height: 100%; object-fit: cover; }
.fl-main { flex: 1; min-width: 0; }
.fl-main b { font-weight: 600; font-size: 14.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--ink-muted); margin-top: 3px; }
.fl-rev { color: var(--good); font-weight: 600; }
.fl-rev.old { color: var(--ink-muted); text-decoration: line-through; }
.fl-shared { color: var(--ink-secondary); }
.fl-acts { display: flex; gap: 4px; }
.fl-acts button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: none; color: var(--ink-primary); display: grid; place-items: center; cursor: pointer; }

/* ---- Zaman çizgisi ---- */
.tl2 { position: relative; padding-left: 22px; }
.tl2::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--border-strong, var(--border)); }
.tl2-day { position: relative; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin: 18px 0 8px; }
.tl2-day:first-child { margin-top: 2px; }
.tl2-i { position: relative; padding: 9px 14px; margin-bottom: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.tl2-i::before { content: ""; position: absolute; left: -21px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--plane); border: 1.5px solid var(--ink-muted); }
.tl2-i.k::before { background: var(--ink-primary); border-color: var(--ink-primary); }
.tl2-i b { font-weight: 500; font-size: 14px; display: block; }
.tl2-i.k b { font-weight: 600; }
.tl2-i small { color: var(--ink-muted); font-size: 12px; }

/* ---- Sesli saha raporu ---- */
.vr { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--surface-2); margin-bottom: 14px; }
.vr-mic { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--ink-primary); color: var(--plane); display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .2s; }
.vr-mic:active { transform: scale(.94); }
.vr.on .vr-mic { background: var(--critical, #b4412b); }
.vr.on .vr-mic::before, .vr.on .vr-mic::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--critical, #b4412b); opacity: .5; animation: vr-ring 1.6s ease-out infinite; }
.vr.on .vr-mic::after { animation-delay: .8s; }
@keyframes vr-ring { from { transform: scale(.9); opacity: .6; } to { transform: scale(1.5); opacity: 0; } }
.vr-txt b { display: block; font-weight: 600; font-size: 15px; }
.vr-txt small { color: var(--ink-muted); font-size: 12.5px; line-height: 1.4; display: block; margin-top: 2px; }
.vr-live { font-size: 14px; line-height: 1.5; padding: 10px 14px; border-left: 2px solid var(--ink-primary); margin: -4px 0 14px; color: var(--ink-primary); }
.vr-live span { color: var(--ink-muted); }
.vr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.vr-chips button { height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-secondary); font: inherit; font-size: 12.5px; cursor: pointer; }
.vr-chips button:active { background: var(--ink-primary); color: var(--plane); }
.vr-task { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: -6px 0 14px; color: var(--ink-secondary); }
.vr-task input { width: auto; margin: 0; }
.vr-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vr-thumbs > div { position: relative; width: 74px; height: 74px; border-radius: 12px; overflow: hidden; }
.vr-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.vr-thumbs button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(20,20,20,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.vr-done { text-align: center; padding: 18px 4px 6px; }
.vr-ok { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); animation: vr-pop .5s var(--e-out, ease) both; }
@keyframes vr-pop { from { transform: scale(.6); opacity: 0; } }
.vr-done b { display: block; font-size: 18px; font-weight: 600; }
.vr-done small { display: block; color: var(--ink-muted); margin: 4px 0 18px; }

/* ---- Puantaj düzenleyici ---- */
.pt { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pt-copy { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; padding: 11px 14px; border-radius: 14px; border: 1px dashed var(--ink-muted); background: transparent; color: var(--ink-primary); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; }
.pt-copy small { font-weight: 400; color: var(--ink-muted); }
.pt-sec { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; }
.pt-head { width: 100%; display: flex; align-items: center; gap: 9px; padding: 12px 14px; border: 0; background: none; color: var(--ink-primary); font: inherit; cursor: pointer; text-align: left; }
.pt-head b { font-weight: 600; font-size: 14px; white-space: nowrap; }
.pt-head small { color: var(--ink-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pt-sec.open .pt-head svg:last-child { transform: rotate(90deg); }
.pt-body { display: none; padding: 0 12px 12px; }
.pt-sec.open .pt-body { display: block; }
.pt-def { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--ink-muted); margin-bottom: 8px; }
.pt-def input { width: auto; padding: 5px 7px; font-size: 13px; }
.pt-def input[type=number] { width: 54px; }
.pt-def button, .pt-add button { height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink-primary); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.pt-add { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pt-row { border-top: 1px solid var(--border); padding: 10px 0; animation: pj-up .35s var(--e-out, ease) both; }
.pt-row:first-of-type { border-top: 0; }
.pt-l1 { display: flex; gap: 6px; align-items: center; }
.pt-l1 input, .pt-l1 select { flex: 1; min-width: 0; padding: 8px 10px; }
.pt-l1 .pt-vendor { flex: .8; }
.pt-tag { flex: none; height: 34px; padding: 0 10px; border-radius: 10px; border: 0; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.pt-tag.taseron { background: color-mix(in srgb, var(--series-2, #6a7) 18%, transparent); color: var(--ink-primary); }
.pt-tag.yevmiye { background: color-mix(in srgb, var(--series-4, #a86) 20%, transparent); color: var(--ink-primary); }
.pt-x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: none; color: var(--ink-muted); display: grid; place-items: center; cursor: pointer; }
.pt-l2 { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: flex-end; margin-top: 7px; }
.pt-l2 label, .pt-inl { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--ink-muted); }
.pt-inl { flex-direction: row; align-items: center; gap: 5px; }
.pt-l2 input, .pt-l2 select, .pt-inl input { padding: 6px 8px; font-size: 13.5px; width: 92px; }
.pt-l2 input[type=time] { width: 96px; }
.pt-l2 input[data-k=brk], .pt-l2 input[data-k=count], .pt-inl input { width: 58px; }
.pt-l2 input[data-k=payerName], .pt-l2 input[data-k=vendor] { width: 140px; }
.pt-h { margin-left: auto; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; padding-bottom: 6px; }
.pt-sum { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.pt-sum .badge { font-weight: 500; }

/* ---- Puantaj görünümü ---- */
.pt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pt-nav { display: flex; align-items: center; gap: 8px; }
.pt-nav b { font-weight: 600; font-size: 14.5px; min-width: 130px; text-align: center; }
.pt-nav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--ink-primary); display: grid; place-items: center; cursor: pointer; }
.pt-card { padding: 6px 4px; margin-top: 10px; }
.pt-tw { overflow-x: auto; }
.pt-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.pt-t th, .pt-t td { padding: 9px 8px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.pt-t th { font-size: 11px; color: var(--ink-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.pt-t th small { display: block; text-transform: none; letter-spacing: 0; }
.pt-t .n { text-align: right; font-variant-numeric: tabular-nums; }
.pt-t td small { color: var(--ink-muted); font-size: 11.5px; }
.pt-t .mute { color: var(--ink-muted); opacity: .6; }
.pt-t .warn { color: var(--warning); }
.pt-t tfoot td { font-weight: 600; border-bottom: 0; border-top: 1px solid var(--ink-primary); }
.pt-t td:first-child { position: sticky; left: 0; background: var(--surface); }
.pt-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.pt-dot.taseron { background: var(--series-2, #6a7); } .pt-dot.yevmiye { background: var(--series-4, #a86); }
.pt-note { font-size: 12px; color: var(--ink-muted); padding: 8px 8px 4px; }
.pt-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.pt-std { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-muted); margin-left: auto; }
.pt-std input { width: 62px; padding: 5px 8px; }
.pt-ros { padding: 4px 12px 10px; }
.pt-rosadd { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 6px; margin-top: 10px; }
@media (max-width: 560px) { .pt-rosadd { grid-template-columns: 1fr 1fr; } }

/* ---- Personel kasası ---- */
.cb-card { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0 0 14px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-primary); font: inherit; cursor: pointer; text-align: left; }
.cb-card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.cb-card .tx small { display: block; color: var(--ink-muted); font-size: 12px; }
.cb-card .tx b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cb-card .go { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-secondary); }
.cb-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.cb-acts .btn { display: inline-flex; align-items: center; gap: 6px; }
.cb-form { margin-top: 10px; padding: 14px; animation: pj-up .35s var(--e-out, ease) both; }

/* ---- Çek / senet, mali sekmeler ---- */
.ch-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ch-bar .btn { display: inline-flex; align-items: center; gap: 6px; }
.stat-tile .sub { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.fh-tabs { margin-bottom: 14px; }
.fh-tabs .pill-tab.active { background: var(--ink-primary); color: var(--plane); }

/* ---- Proje sağlığı ---- */
.hl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-secondary); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hl i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ink-muted); }
.hl-good i { background: var(--good); } .hl-warn i { background: var(--warning); } .hl-bad i { background: var(--critical); box-shadow: 0 0 0 3px color-mix(in srgb, var(--critical) 18%, transparent); }
.hl-bad { color: var(--critical); }
.ac-vat { width: auto; padding: 4px 6px; font-size: 12px; border-radius: 8px; }
@media (min-width: 900px) { .ac-kpi { grid-template-columns: repeat(4, 1fr); } }

/* ---- Toplantı tutanağı ---- */
.mt-card { margin-bottom: 10px; }
.mt-sec { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink-secondary); }
.mt-sec small { display: block; font-size: 11px; letter-spacing: .08em; color: var(--ink-muted); font-weight: 600; margin-bottom: 2px; }
.mt-sec b { font-weight: 600; color: var(--ink-primary); }
.mt-act { display: grid; grid-template-columns: 1fr 120px 130px 30px; gap: 6px; margin-bottom: 6px; }
.mt-act input { padding: 7px 9px; font-size: 13.5px; }
.mt-act button { width: 30px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: none; color: var(--ink-muted); display: grid; place-items: center; cursor: pointer; }
@media (max-width: 560px) { .mt-act { grid-template-columns: 1fr 1fr 30px; } .mt-act input[data-k=text] { grid-column: 1 / -1; } }
.fl-focus { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--ink-primary); color: var(--plane); animation: pj-up .5s var(--e-out, ease) both; }
.fl-focus div { flex: 1; min-width: 0; } .fl-focus b { display: block; font-weight: 600; } .fl-focus small { opacity: .75; }
.fl-focus .btn { background: var(--plane); color: var(--ink-primary); }

/* ---- Belge şablonları ---- */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tp-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-primary); font: inherit; cursor: pointer; transition: border-color .2s, transform .2s; }
.tp-card:hover { border-color: var(--ink-muted); transform: translateY(-2px); }
.tp-card b { font-weight: 600; font-size: 14.5px; }
.tp-card small { color: var(--ink-muted); font-size: 12.5px; line-height: 1.4; }

/* ---- Önce / sonra ---- */
.ba-new { display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.ba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.ba-card { padding: 0; overflow: hidden; }
.ba-cmp { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; --p: 50%; user-select: none; }
.ba-cmp > img, .ba-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ba-cmp input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3; }
.ba-bar { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); transform: translateX(-1px); z-index: 2; pointer-events: none; }
.ba-bar::after { content: ""; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.ba-l, .ba-r { position: absolute; top: 10px; z-index: 2; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: rgba(20,20,20,.55); color: #F4F1EA; pointer-events: none; }
.ba-l { left: 10px; } .ba-r { right: 10px; }
.ba-meta { padding: 12px 14px 4px; } .ba-meta b { display: block; font-weight: 600; } .ba-meta small { color: var(--ink-muted); font-size: 12.5px; }
.ba-acts { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 14px 14px; } .ba-acts .btn { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }

/* ---- Satın alma ---- */
.pu-card { cursor: pointer; margin-bottom: 10px; }
.pu-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 12px 0 10px; }
.pu-steps i { height: 4px; border-radius: 99px; background: var(--surface-2); }
.pu-steps i.on { background: var(--ink-primary); }
.pu-steps.big { margin: 0 0 6px; }
.pu-steps.big span { font-size: 11.5px; text-align: center; padding: 7px 4px; border-radius: 10px; background: var(--surface-2); color: var(--ink-muted); }
.pu-steps.big span.on { background: var(--ink-primary); color: var(--plane); }
.pu-q { display: grid; grid-template-columns: 1.4fr 1fr .6fr 1fr auto; gap: 6px; margin-top: 8px; }
.pu-q input { padding: 7px 9px; font-size: 13.5px; }
@media (max-width: 560px) { .pu-q { grid-template-columns: 1fr 1fr; } .pu-q #q-note { grid-column: 1 / -1; } }

/* ---- Bildirim daveti ---- */
.push-strip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin: 0 0 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.push-strip > div { flex: 1; min-width: 0; } .push-strip b { display: block; font-weight: 600; font-size: 14px; } .push-strip small { color: var(--ink-muted); font-size: 12.5px; }

/* ---------- Kişisel panel (personel) — masaüstünde yan menü ---------- */
.my-side { display: none; }
@media (min-width: 900px) {
  .my-shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
  .my-side { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--border); padding: 20px 14px 16px; background: var(--plane); }
  .my-side .brand { padding: 4px 10px 18px; color: var(--ink-primary); }
  .my-who { display: flex; align-items: center; gap: 10px; padding: 10px 10px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
  .my-who b { font-weight: 600; font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .my-who small { display: block; color: var(--ink-muted); font-size: 12px; }
  .my-who > div:last-child { min-width: 0; }
  .my-main { min-width: 0; display: flex; flex-direction: column; }
  .my-main > .topbar { display: none; }
  .my-main > #acct-strip { padding: 14px 32px 0 !important; }
  .my-main > main.content { max-width: 1120px; padding: 24px 32px 60px; }
  .my-shell ~ .tabbar { display: none; }
  body.st-open .my-shell { grid-template-columns: 72px 1fr; }
  body.st-open .my-side { padding: 20px 10px; }
  body.st-open .my-side .brand, body.st-open .my-who > div:last-child, body.st-open .my-side .bg-nav button span { display: none; }
  body.st-open .my-who { justify-content: center; padding: 6px 0 14px; }
  body.st-open .my-side .bg-nav button { justify-content: center; padding: 11px 0; }
  body.st-open .my-main > main.content { max-width: 1680px; }
}
.my-side .bg-nav button.on { background: var(--surface-2); }
/* hesap bağlama — tek satırlık ince şerit */
.acct-slim { display: flex; align-items: center; gap: 8px; max-width: 1120px; margin: 10px auto 0; padding: 6px 6px 6px 12px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); font-size: 13px; }
.acct-slim .ic { color: var(--ink-muted); display: grid; place-items: center; flex: none; }
.acct-slim .tx { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-muted); }
.acct-slim .tx b { color: var(--ink-primary); font-weight: 600; }
.acct-slim .as-b { height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border-strong); background: none; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--ink-primary); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; flex: none; }
.acct-slim .as-b.g { background: #fff; color: #141414; }
.acct-slim .as-x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: none; color: var(--ink-muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.acct-slim .as-x:hover { background: var(--surface-2); color: var(--ink-primary); }
#ls-host .acct-slim { margin: 0; flex-wrap: wrap; border-radius: 16px; }
/* proje sayfası — masaüstünde daha geniş + yönetici için yan menü */
main.content.pj-content { max-width: 1120px; }
.pj-hero, .pj-tabs-in, .pj-subs { max-width: 1120px; }
.pj-rail { display: none; }
@media (min-width: 1100px) {
  .pj-rail { display: flex; flex-direction: column; align-items: center; gap: 4px; position: fixed; left: 0; top: 0; bottom: 0; width: 76px; padding: 18px 0; border-right: 1px solid var(--border); background: var(--plane); z-index: 30; }
  .pj-rail a { width: 60px; padding: 8px 0 6px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink-muted); text-decoration: none; font-size: 10.5px; transition: background .2s, color .2s; }
  .pj-rail a:hover { background: var(--surface-2); color: var(--ink-primary); }
  .pj-rail a.on { background: var(--surface-2); color: var(--ink-primary); font-weight: 600; }
  .pj-rail .pj-rail-b { color: var(--ink-primary); margin-bottom: 12px; padding: 6px 0; }
  #app:has(> .pj-rail) { padding-left: 76px; }
}
/* yedekler */
.bk-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.bk-row > div > b { display: block; font-weight: 600; font-size: 14.5px; }
.bk-tip b { font-weight: 600; color: var(--ink-secondary); }
.bk-row small { display: block; color: var(--ink-secondary); font-size: 13px; margin-top: 2px; line-height: 1.45; }
.bk-ic { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-muted); }
.bk-ic.ok { background: var(--good-wash); color: var(--good); }
.bk-ic.warn { background: var(--warning-wash); color: var(--warning); }
.bk-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.bk-tip { font-size: 12.5px; color: var(--ink-muted); margin-top: 10px; line-height: 1.5; }
.bk-note { font-size: 12px; color: var(--ink-muted); margin-top: 12px; }
@media (max-width: 520px) { .hide-sm { display: none; } }
/* ---------- Şantiye şimdi ---------- */
.td-card.sn { padding: 14px 16px 16px; margin-bottom: 16px; }
.sn-hd { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.sn-hd h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; margin: 0; }
.sn-hd > small { margin-left: auto; color: var(--ink-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.sn-live { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); animation: snPulse 2.4s infinite; }
@keyframes snPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.sn-sum { display: flex; gap: 6px; flex-wrap: wrap; }
.sn-sum span { font-size: 12.5px; color: var(--ink-secondary); background: var(--surface-2); border-radius: 99px; padding: 4px 10px; }
.sn-sum b { font-weight: 600; color: var(--ink-primary); font-variant-numeric: tabular-nums; }
.sn-sum .warn { background: var(--warning-wash); color: var(--warning); } .sn-sum .warn b { color: var(--warning); }
.sn-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 2px; scrollbar-width: thin; }
.sn-t { scroll-snap-align: start; text-align: left; font: inherit; color: var(--ink-primary); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 11px 12px; display: flex; flex-direction: column; gap: 7px; min-height: 108px; cursor: pointer; transition: border-color .2s, transform .2s; }
.sn-t:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.sn-t.act { border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.sn-t.idle { opacity: .6; min-height: 0; }
.sn-h { display: flex; align-items: center; gap: 7px; min-width: 0; }
.sn-h b { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3); flex: none; }
.sn-t.act .sn-dot { background: var(--good); }
.sn-l { display: flex; flex-direction: column; gap: 3px; }
.sn-k { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-muted); }
.sn-k.on { color: var(--ink-primary); }
.sn-f { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.sn-avs { display: flex; }
.sn-av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 600; background: var(--surface-3); color: var(--ink-muted); border: 2px solid var(--surface); margin-right: -6px; }
.sn-av.on { background: var(--ink-primary); color: var(--plane); }
.sn-r { font-size: 11.5px; padding: 3px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-muted); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sn-r.ok { background: var(--good-wash); color: var(--good); }
.sn-r.late { background: var(--warning-wash); color: var(--warning); }
.sn-empty { color: var(--ink-muted); font-size: 13px; padding: 6px 0; }
@media (max-width: 640px) { .sn-row { grid-auto-columns: 78%; } .sn-hd > small { display: none; } }
.tl2-i .tl2-s { display: block; font-size: 13px; color: var(--ink-secondary); margin: 1px 0 2px; line-height: 1.45; }
.pj-acct { padding: 0 16px; max-width: 1152px; margin: 0 auto 4px; }
.cf-next { display: flex; align-items: center; gap: 12px; }
.cf-next .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--ink-secondary); display: grid; place-items: center; flex: none; }
.cf-next .tx { flex: 1; min-width: 0; }
.cf-next .tx small { display: block; font-size: 12px; color: var(--ink-muted); }
.cf-next .tx b { display: block; font-weight: 600; font-size: 14.5px; }
.cf-next .tx span { display: block; font-size: 12.5px; color: var(--ink-muted); }
.cf-next .am { font-size: 17px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* ---------- Ek işler (müşteri) ---------- */
.ap-sum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; }
.ap-sum > div small { display: block; font-size: 12px; color: var(--ink-muted); }
.ap-sum > div b { font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ap-sum .op { color: var(--ink-muted); font-size: 18px; }
.ap-sum .tot b { font-weight: 600; }
.ap-note { display: block; font-size: 13px; line-height: 1.5; color: var(--warning); margin: 10px 2px 0; } .ap-note svg { vertical-align: -2px; margin-right: 4px; }
.ap-c { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; margin-bottom: 10px; }
.ap-c.wait { border-color: color-mix(in srgb, var(--warning) 45%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warning) 8%, transparent); }
.ap-c.rejected { opacity: .7; }
.ap-ch { display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; }
.ap-ty { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-muted); }
.ap-ct { cursor: pointer; margin-top: 6px; }
.ap-ct b { font-size: 16px; font-weight: 600; display: block; }
.ap-ct p { font-size: 13.5px; color: var(--ink-secondary); margin-top: 4px; line-height: 1.5; }
.ap-cm { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ap-cm > div { background: var(--surface-2); border-radius: 12px; padding: 7px 11px; min-width: 96px; }
.ap-cm small { display: block; font-size: 11px; color: var(--ink-muted); }
.ap-cm b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ap-cm .late { background: var(--critical-wash); } .ap-cm .late b { color: var(--critical); }
.ap-rq { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 13px; color: var(--ink-secondary); background: var(--warning-wash); border-radius: 12px; padding: 9px 11px; }
.ap-rq svg { flex: none; margin-top: 2px; color: var(--warning); }
.ap-rq b { font-weight: 600; color: var(--ink-primary); }
.ap-ca { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; margin-top: 12px; }
.ap-ca .btn { height: 42px; padding: 0 8px; font-size: 13.5px; }
.ap-req { display: grid; gap: 10px; padding: 12px 16px; }
.ap-req small { display: block; font-size: 11.5px; color: var(--ink-muted); font-weight: 600; }
.ap-req p { font-size: 13.5px; margin: 2px 0 0; white-space: pre-wrap; }
.cf-wait { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; text-align: left; font: inherit; color: var(--ink-primary); cursor: pointer; border-color: color-mix(in srgb, var(--warning) 40%, transparent) !important; background: color-mix(in srgb, var(--warning) 6%, var(--surface)); }
.cf-wait .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--warning-wash); color: var(--warning); flex: none; }
.cf-wait .tx { flex: 1; min-width: 0; } .cf-wait .tx b { display: block; font-weight: 600; font-size: 14.5px; } .cf-wait .tx small { display: block; font-size: 12.5px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-wait .am { display: flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cf-x { cursor: pointer; }

/* ---------- Web sitesi (website.js) ---------- */
.ws { display: flex; flex-direction: column; gap: 14px; max-width: 980px; }
.ws-pub { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ws-pub-t { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.ws-pub-t b { display: block; font-weight: 600; }
.ws-pub-t small { color: var(--ink-muted); font-size: 12.5px; }
.ws-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--ink-muted); }
.ws-dot.ok { background: var(--good); } .ws-dot.warn { background: var(--warning); }
.ws-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-acts a.btn { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ws-note { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--warning) 12%, transparent); color: var(--ink-primary); }
.ws-link { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.ws-seg { max-width: 460px; }
.ws-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ws-head p { font-size: 13px; margin: 0; }
.ws-list { padding: 4px 8px; }
.ws-row { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 14px; align-items: center; padding: 10px 8px; border-radius: 12px; cursor: pointer; }
.ws-row + .ws-row { border-top: 1px solid var(--border); }
.ws-row:hover { background: var(--surface-2); }
.ws-th { width: 64px; height: 46px; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--ink-muted); }
.ws-th img, .ws-th video { width: 100%; height: 100%; object-fit: cover; }
.ws-m { min-width: 0; } .ws-m b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-m small { color: var(--ink-muted); font-size: 12.5px; }
.ws-tags { display: flex; gap: 6px; }
.ws-ord { display: flex; gap: 4px; }
.ws-ord button, .ws-gact button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink-primary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font: inherit; }
.ws-ord button[disabled], .ws-gact button[disabled] { opacity: .35; pointer-events: none; }
@media (max-width: 640px) { .ws-row { grid-template-columns: 52px 1fr auto; } .ws-th { width: 52px; height: 40px; } .ws-tags { display: none; } }
.ws-form { max-width: 760px; }
.ws-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .ws-2 { grid-template-columns: 1fr; } }
.ws-sheet { max-width: 760px; }
.ws-ed h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; margin: 22px 0 10px; }
.ws-tg { display: flex; gap: 18px; flex-wrap: wrap; padding: 4px 0 2px; }
.ws-sw { display: inline-flex !important; align-items: center; gap: 10px; margin: 0 !important; cursor: pointer; font-size: 14px !important; color: var(--ink-primary) !important; }
.ws-sw input { display: none; }
.ws-sw span { width: 38px; height: 22px; border-radius: 99px; background: var(--surface-3); position: relative; transition: background .25s; }
.ws-sw span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s; }
.ws-sw input:checked + span { background: var(--accent); }
.ws-sw input:checked + span::after { transform: translateX(16px); }
.ws-media { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.ws-media b { display: block; font-weight: 600; font-size: 14px; }
.ws-media small { display: block; color: var(--ink-muted); font-size: 12px; margin-bottom: 6px; }
.ws-mprev { width: 120px; height: 80px; border-radius: 10px; overflow: hidden; background: var(--surface-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-muted); }
.ws-mprev img, .ws-mprev video { width: 100%; height: 100%; object-fit: cover; }
.ws-up { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important; cursor: pointer; }
.ws-sub { font-size: 12.5px; margin: 4px 0 10px; }
.ws-galh { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 10px; }
.ws-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ws-gi { display: flex; flex-direction: column; gap: 6px; }
.ws-gim { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.ws-gim img { width: 100%; height: 100%; object-fit: cover; }
.ws-gi input { padding: 7px 9px; font-size: 13px; }
.ws-gact { display: flex; gap: 4px; }
.ws-gact button:last-child { margin-left: auto; }
.ws-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; position: sticky; bottom: 0; padding: 12px 0 4px; background: var(--surface); }
.ws-ol { padding-left: 18px; display: flex; flex-direction: column; gap: 12px; margin: 12px 0; font-size: 14px; }
.ws-ol pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 12px; overflow-x: auto; margin-top: 6px; white-space: pre; }
