/* ==========================================================================
   Cepte Drive — tek stil dosyası (tüm sayfalar)
   Dil: açık zemin, koyu lacivert vurgu alanları, tek mavi vurgu, altın detay, hap düğmeler, yumuşak kartlar.
   Yazı: Apple cihazlarda SF Pro, diğerlerinde Inter.
   Kontrast: #14233b/#fff 15.6:1 · #5b6783/#fff 5.9:1 · #fff/#185abd 6.9:1 · #e8c872/#0a1a2f 10.4:1
   ========================================================================== */
:root {
    --ink: #14233b; --ink-2: #3a4a66; --ink-3: #5b6783; --line: #dde3f0; --line-2: #c9d4e8;
    --ground: #f5f8fc; --surface: #ffffff; --mid: #e8f0fb;
    --primary: #185abd; --primary-h: #124a9e; --primary-bg: #e4eefb;
    --gold: #e8c872; --danger: #b92e2e; --danger-bg: #fbe7e7; --ok: #2e7d32; --ok-bg: #e8f5e9; --warn: #7a4f0c; --warn-bg: #fbf0da;
    --hero-1: #0a1a2f; --hero-2: #0f2c52;
    --c-image: #2e7d32; --c-video: #b92e2e; --c-audio: #a35a0c; --c-doc: #185abd; --c-other: #5b6783;
    --shadow-s: 0 2px 10px #14233b12; --shadow-m: 0 12px 30px -12px #14233b2b; --shadow-l: 0 28px 60px -24px #14233b40;
    --r-s: 10px; --r-m: 14px; --r-l: 18px; --r-xl: 26px;
    --ease: .26s cubic-bezier(.22, 1, .36, 1);
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body { font: 400 15px/1.55 var(--font); letter-spacing: -.011em; background: var(--ground); color: var(--ink); min-height: 100vh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; color-scheme: light; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
img, svg, video { max-width: 100%; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.spacer { flex: 1; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--primary); color: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: top .15s; }
.skip:focus { top: 10px; }

/* ---------- düğmeler ---------- */
.btn { min-height: 40px; border: 1px solid var(--line); background: var(--surface); padding: 8px 18px; border-radius: 999px; font-weight: 500; font-size: 14px; line-height: 1.2; transition: background var(--ease), border-color var(--ease), color var(--ease), transform .08s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.btn:hover { background: var(--primary-bg); border-color: var(--primary); color: var(--primary); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--primary-h); border-color: var(--primary-h); color: #fff; }
.btn.danger { color: var(--danger); background: var(--danger-bg); border-color: transparent; }
.btn.danger:hover { background: #f6d3d3; color: var(--danger); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { min-height: 34px; padding: 5px 14px; font-size: 13px; }
.btn.block { width: 100%; min-height: 48px; font-size: 15px; }
.btn.icon { width: 40px; padding: 0; }
.linkbtn { background: none; border: 0; padding: 6px 2px; color: var(--primary); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.muted { color: var(--ink-3); font-weight: 500; }

/* ---------- kart, rozet ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-s); }
.pill { display: inline-block; white-space: nowrap; background: var(--primary-bg); color: var(--primary); padding: 3px 12px; border-radius: 999px; font-weight: 600; font-size: 12.5px; }
.pill.ok { background: var(--ok-bg); color: #1b4d1e; } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.mute { background: var(--mid); color: var(--ink-3); }

/* ---------- üst gezinme (tüm iç sayfalar) ---------- */
.nav-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 0 28px; min-height: 64px; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 600; font-size: 19px; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand .tag { font-weight: 500; color: var(--ink-3); font-size: 14px; }
.links { display: flex; align-items: center; gap: 4px; margin-left: 24px; }
.links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14px; white-space: nowrap; transition: background var(--ease), color var(--ease); }
.links a:hover { background: var(--primary-bg); color: var(--primary); }
.links a.on { color: var(--primary); font-weight: 600; background: var(--primary-bg); }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); min-width: 0; }
.who .nm { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-bg); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; text-transform: uppercase; flex: none; }

/* ---------- sayfa iskeletleri ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.settings { max-width: 720px; margin: 0 auto; padding: 8px 20px 100px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 30px 0 18px; }
.pagehead h1, .settings h1 { font-size: 36px; letter-spacing: -.04em; margin: 0; }
.settings h1 { margin: 28px 0 6px; }
.pagehead .sub, .settings .lead { margin: 4px 0 0; color: var(--ink-3); font-size: 14.5px; }
.settings .lead { margin: 0 0 24px; }
.headact { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- açılır kutu (indirme klasörü) ---------- */
.pop { position: relative; }
.pop > summary { list-style: none; cursor: pointer; }
.pop > summary::-webkit-details-marker { display: none; }
.popbox { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-m); padding: 16px; z-index: 60; font-size: 13.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.popbox b { color: var(--ink); word-break: break-word; }
.popbox label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; min-height: 32px; }
.popbox p { margin: 0; color: var(--ink-3); }

/* ---------- depolama şeridi, bantlar ---------- */
.quota { padding: 16px 20px; }
.qtop { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; margin-bottom: 10px; }
.qlabel { font-weight: 600; }
.quota .bar { height: 8px; background: var(--mid); border-radius: 99px; overflow: hidden; }
.quota .bar b { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 99px; transition: width .5s var(--ease); }
.quota .bar b.warn { background: #d98a0b; } .quota .bar b.full { background: var(--danger); }
.quota p { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }
.banner { margin-top: 12px; padding: 12px 16px; border-radius: var(--r-m); background: var(--warn-bg); color: var(--warn); font-size: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.banner.info { background: var(--primary-bg); color: var(--ink-2); }

/* ---------- filtreler ---------- */
.filters { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 6px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all var(--ease); white-space: nowrap; }
.chip svg { width: 18px; height: 18px; flex: none; color: var(--primary); pointer-events: none; }
.chip small { color: var(--ink-3); font-size: 12px; font-weight: 600; background: var(--ground); padding: 1px 8px; border-radius: 99px; }
.chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.on svg { color: #fff; } .chip.on small { background: rgba(255,255,255,.2); color: #fff; }
.tools { display: flex; gap: 10px; align-items: center; }
.search { flex: 1; min-width: 0; position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; min-height: 40px; padding: 8px 40px 8px 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); outline: none; transition: border-color var(--ease), box-shadow var(--ease); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 600 11px var(--font); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; color: var(--ink-3); background: var(--surface); pointer-events: none; }
.search input:focus ~ .kbd, .search input:not(:placeholder-shown) ~ .kbd { display: none; }
.select { min-height: 40px; padding: 7px 34px 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; -webkit-appearance: none; appearance: none; color: var(--ink-2); cursor: pointer; max-width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235b6783' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.select:hover { border-color: var(--primary); }
.seg { display: inline-flex; flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; min-width: 38px; min-height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); transition: all var(--ease); }
.seg button svg { width: 17px; height: 17px; pointer-events: none; }
.seg button.on { background: var(--primary-bg); color: var(--primary); }

/* ---------- dosya ızgarası / listesi ---------- */
.content { padding: 18px 0 120px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.tile { position: relative; border: 1px solid var(--line); background: var(--surface); min-width: 0; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-s); transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--line-2); }
.tbtn { display: flex; flex-direction: column; width: 100%; min-width: 0; cursor: pointer; color: inherit; outline: none; -webkit-tap-highlight-color: transparent; }
.tbtn:focus-visible { box-shadow: inset 0 0 0 3px var(--primary); border-radius: var(--r-l); }
.tbtn > .thumb, .tbtn > .meta { width: 100%; }
.thumb { aspect-ratio: 4 / 3; background: var(--mid); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.paper { width: 58px; height: 72px; border-radius: 6px 14px 6px 6px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 6px 14px -4px #14233b30; position: relative; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 9px; flex: none; }
.paper::before { content: ""; position: absolute; top: 0; right: 0; width: 18px; height: 18px; background: linear-gradient(225deg, var(--mid) 50%, var(--line) 50%); border-bottom-left-radius: 6px; }
.paper em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #fff; background: var(--tc, var(--c-other)); padding: 2px 7px; border-radius: 6px; max-width: 54px; overflow: hidden; text-overflow: ellipsis; }
.play { position: absolute; left: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(10,26,47,.78); color: #fff; display: flex; align-items: center; justify-content: center; }
.play svg { width: 11px; height: 11px; margin-left: 1px; }
.thumb .prep { position: absolute; left: 8px; top: 8px; background: rgba(10,26,47,.82); color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.meta { padding: 12px 16px 14px; min-width: 0; }
.meta .name { font-weight: 500; font-size: 14px; letter-spacing: -.012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta .sub { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shared-dot { color: var(--primary); font-weight: 600; }
.qa { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.tile:hover .qa, .tile:focus-within .qa { opacity: 1; }
.qb { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.96); box-shadow: 0 1px 6px rgba(10,26,47,.25); color: var(--ink-2); display: flex; align-items: center; justify-content: center; transition: background var(--ease), color var(--ease); }
.qb svg { width: 17px; height: 17px; pointer-events: none; }
.qb:hover { background: var(--primary); color: #fff; }
.qb.del:hover { background: var(--danger); }
.list { display: flex; flex-direction: column; gap: 10px; }
.list .tile { display: flex; align-items: center; border-radius: var(--r-m); }
.list .tile:hover { transform: none; }
.list .tbtn { flex-direction: row; align-items: center; gap: 14px; padding: 8px; flex: 1; }
.list .thumb { width: 56px; height: 56px; aspect-ratio: 1; flex: none; border-radius: 10px; }
.list .paper { transform: scale(.58); }
.list .tbtn > .thumb { width: 56px; }
.list .meta { flex: 1; display: flex; align-items: center; gap: 16px; padding: 0; min-width: 0; }
.list .meta .name { flex: 1; }
.list .meta .sub:nth-child(2) { width: 170px; }
.list .meta .sub:nth-child(3) { width: 200px; text-align: right; }
.list .play, .list .thumb .prep { display: none; }
.list .qa { position: static; opacity: 1; margin-right: 12px; }
.list .qb { background: var(--ground); box-shadow: none; }

/* ---------- boş durumlar ---------- */
.empty { text-align: center; color: var(--ink-3); padding: 56px 20px; }
.empty h3 { margin: 0 0 6px; color: var(--ink); font-size: 21px; }
.empty p { margin: 0 0 18px; }
.dropzone { border: 2px dashed var(--line-2); background: var(--surface); border-radius: var(--r-xl); padding: 56px 24px; text-align: center; color: var(--ink-3); }
.dropzone > svg { display: block; width: 56px; height: 56px; color: var(--primary); margin: 0 auto 10px; }
.dropzone h3 { margin: 0 0 6px; font-size: 24px; color: var(--ink); }
.dropzone p { margin: 0 0 20px; }
.steps { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; padding: 0; margin: 0 0 24px; }
.steps li { list-style: none; display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); }
.steps b { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-bg); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.drop { position: fixed; inset: 0; background: rgba(24,90,189,.14); border: 3px dashed var(--primary); z-index: 90; display: none; align-items: center; justify-content: center; font: 600 26px var(--display); color: var(--primary); backdrop-filter: blur(3px); }
.drop.on { display: flex; }

/* ---------- önizleyici (sinematik) ---------- */
.viewer { position: fixed; inset: 0; z-index: 100; background: radial-gradient(120% 90% at 50% 45%, #0d1626 0%, #05080e 60%, #000 100%); display: none; flex-direction: column; color: #fff; }
.viewer.on { display: flex; }
.viewer.enter { animation: vIn .32s var(--ease); }
.viewer.enter .vbody > :first-child { animation: mIn .42s var(--ease); }
@keyframes vIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mIn { from { opacity: 0; transform: scale(.965); } to { opacity: 1; transform: none; } }
.vhead { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 14px 20px 40px; background: linear-gradient(rgba(0,0,0,.62), rgba(0,0,0,0)); transition: opacity .35s var(--ease); }
.vhead .t { flex: 1; min-width: 0; }
.vhead .t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; }
.vhead .t span { font-size: 12.5px; color: rgba(255,255,255,.62); font-variant-numeric: tabular-nums; }
.vactions { display: flex; gap: 8px; }
.viewer .btn { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.viewer .btn:hover { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.3); }
.viewer .btn.danger { background: rgba(255,90,90,.22); border-color: transparent; }
.viewer .btn.primary { background: #fff; color: var(--hero-1); border-color: #fff; }
.viewer.idle { cursor: none; }
.viewer.idle .vhead, .viewer.idle .navbtn { opacity: 0; pointer-events: none; }
.vbody { flex: 1; display: flex; align-items: center; justify-content: center; padding: 72px 84px 28px; min-height: 0; position: relative; }
.vbody > .media { max-width: 100%; max-height: 100%; }
.vbody > img.media { border-radius: 6px; box-shadow: 0 30px 90px rgba(0,0,0,.6); opacity: 0; transition: opacity .35s var(--ease); }
.vbody > img.media.ld { opacity: 1; }
.vbody > iframe.media { width: min(1000px, 100%); height: 100%; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.vbody .txt { width: min(1000px, 100%); height: 100%; overflow: auto; background: #fff; color: var(--ink); border-radius: 12px; padding: 22px 26px; margin: 0; font: 13px/1.7 var(--mono); white-space: pre-wrap; word-break: break-word; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.vmsg { display: flex; flex-direction: column; align-items: center; gap: 12px; color: rgba(255,255,255,.82); text-align: center; max-width: 460px; line-height: 1.6; }
.vmsg .vmsg-t { color: #fff; font-weight: 600; font-size: 17px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.vmsg .paper { margin-bottom: 10px; transform: scale(1.35); }
.vmsg .btn { margin-top: 8px; }
.vmsg .poster { max-width: min(560px, 80vw); max-height: 42vh; border-radius: 12px; opacity: .5; }
.vmsg .pct { font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; }
.vmsg.audio { gap: 16px; }
.vmsg .disc { width: 180px; height: 180px; border-radius: 28px; background: linear-gradient(145deg, #c2551d, #7a2f10); display: flex; align-items: center; justify-content: center; box-shadow: 0 30px 80px rgba(0,0,0,.55); margin-bottom: 6px; }
.vmsg .disc svg { width: 72px; height: 72px; color: rgba(255,255,255,.92); }
.vmsg audio { width: min(460px, 80vw); }
.navbtn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; display: flex; align-items: center; justify-content: center; transition: background var(--ease), opacity .35s var(--ease); z-index: 4; }
.navbtn:hover { background: rgba(255,255,255,.22); }
.navbtn svg { width: 20px; height: 20px; }
.navbtn.l { left: 18px; } .navbtn.r { right: 18px; }
.spin { width: 38px; height: 38px; border: 3px solid rgba(255,255,255,.22); border-top-color: #fff; border-radius: 50%; animation: sp .9s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- video oynatıcı ---------- */
.player { position: relative; display: flex; max-width: 100%; max-height: 100%; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 30px 90px rgba(0,0,0,.65); }
.player video { display: block; width: min(1280px, calc(100vw - 168px)); max-width: 100%; height: auto; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); object-fit: contain; background: #000; }
.player:fullscreen, .player:-webkit-full-screen { border-radius: 0; max-height: none; width: 100vw; height: 100vh; align-items: center; justify-content: center; }
.player:fullscreen video, .player:-webkit-full-screen video { width: 100vw; height: 100vh; max-height: none; }
.pl-big { position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #fff; display: flex; align-items: center; justify-content: center; transition: opacity .25s var(--ease), transform .25s var(--ease); z-index: 2; }
.pl-big svg { width: 26px; height: 26px; margin-left: 4px; }
.pl-big:hover { background: rgba(255,255,255,.26); transform: scale(1.04); }
.player:not(.paused) .pl-big { opacity: 0; pointer-events: none; transform: scale(.88); }
.pl-spin { position: absolute; inset: 0; margin: auto; z-index: 2; }
.pl-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 34px 14px 10px; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.72)); transition: opacity .35s var(--ease); }
.viewer.idle .pl-bar { opacity: 0; pointer-events: none; }
.pl-btn { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.pl-btn:hover { background: rgba(255,255,255,.16); }
.pl-btn svg { width: 20px; height: 20px; pointer-events: none; }
.pl-time { flex: none; min-width: 44px; font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.88); }
.pl-time.r { text-align: right; }
.pl-track { flex: 1; position: relative; height: 26px; cursor: pointer; touch-action: none; margin: 0 6px; outline: none; }
.pl-track::before, .pl-buf, .pl-played { content: ""; position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; transition: height .15s, margin .15s; }
.pl-track::before { right: 0; background: rgba(255,255,255,.22); }
.pl-buf { width: 0; background: rgba(255,255,255,.42); }
.pl-played { width: 0; background: #fff; }
.pl-track:hover::before, .pl-track:hover .pl-buf, .pl-track:hover .pl-played, .player.dragging .pl-track::before, .player.dragging .pl-buf, .player.dragging .pl-played { height: 6px; margin-top: -3px; }
.pl-knob { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.4); transform: translateX(-50%) scale(0); transition: transform .15s; }
.pl-track:hover .pl-knob, .pl-track:focus-visible .pl-knob, .player.dragging .pl-knob { transform: translateX(-50%) scale(1); }
.pl-track:focus-visible::before { box-shadow: 0 0 0 2px rgba(255,255,255,.5); }

/* ---------- yükleme paneli ---------- */
.uploads { position: fixed; right: 20px; bottom: 20px; width: 360px; max-width: calc(100vw - 32px); z-index: 80; display: none; box-shadow: var(--shadow-l); }
.uploads.on { display: block; }
.uploads .hd { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 16px; font-weight: 600; border-bottom: 1px solid var(--line); }
.uploads .items { max-height: 300px; overflow: auto; }
.up { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.up:last-child { border-bottom: 0; }
.up .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 7px; }
.up .row .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; flex: 1; min-width: 0; }
.up .row .s { color: var(--ink-3); white-space: nowrap; }
.up .pb { height: 6px; border-radius: 99px; background: var(--mid); overflow: hidden; }
.up .pb b { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; border-radius: 99px; }
.up.done .pb b { background: var(--ok); } .up.err .pb b { background: var(--danger); }
.up .x { border: 0; background: transparent; color: var(--ink-3); width: 32px; height: 32px; border-radius: 50%; flex: none; }
.up .x:hover { background: var(--mid); }

/* ---------- modal, toast ---------- */
.modal { position: fixed; inset: 0; background: rgba(10,26,47,.5); display: none; align-items: center; justify-content: center; z-index: 120; padding: 16px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal.on { display: flex; }
.modal .box { background: var(--surface); color: var(--ink); border-radius: var(--r-xl); padding: 26px; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: var(--shadow-l); }
.modal .box.wide { max-width: 640px; }
.modal h3 { margin: 0 0 8px; font-size: 21px; }
.modal p { color: var(--ink-3); font-size: 14px; margin: 0 0 16px; line-height: 1.55; }
.modal .doc p { color: var(--ink-2); }
.modal .doc strong { color: var(--ink); }
.modal .row { display: flex; gap: 8px; margin-bottom: 16px; }
.modal .row input { flex: 1; min-width: 0; }
.modal .foot { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.modal .sect { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 14px; }
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 130; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--hero-1); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-l); display: flex; align-items: center; gap: 14px; }
.toast.act { pointer-events: auto; }
.toast .ta { background: none; border: 0; color: var(--gold); font-weight: 700; cursor: pointer; padding: 2px 4px; font-size: 14px; }
.toast .ta:hover { text-decoration: underline; }

/* ---------- formlar ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; text-align: left; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field label .opt { color: var(--ink-3); font-weight: 400; }
.input { width: 100%; min-height: 46px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); outline: none; font-size: 16px; transition: border-color var(--ease), box-shadow var(--ease); }
.input::placeholder { color: #8792a8; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }
textarea.input { min-height: 92px; resize: vertical; font-family: inherit; }
select.input { border-radius: var(--r-m); }
.pw { position: relative; }
.pw .input { padding-right: 52px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); display: flex; align-items: center; justify-content: center; }
.pw button:hover { background: var(--primary-bg); color: var(--primary); }
.pw svg { width: 20px; height: 20px; }
.form-msg { display: none; margin: 0 0 14px; padding: 10px 14px; border-radius: var(--r-s); font-size: 14px; line-height: 1.45; }
.form-msg.on { display: block; }
.form-msg.err { background: var(--danger-bg); color: var(--danger); }
.form-msg.ok { background: var(--ok-bg); color: #1b4d1e; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 4px 0 18px; text-align: left; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--primary); flex: none; }
.check .linkbtn { padding: 0; min-height: 0; font-size: inherit; display: inline; }

/* ---------- giriş sayfaları (giriş, kayıt, şifre sıfırlama, admin girişi) ---------- */
.auth-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px 64px; position: relative; overflow: hidden;
    background: radial-gradient(circle at 80% 10%, rgba(24,90,189,.55), transparent 55%), linear-gradient(135deg, var(--hero-1), var(--hero-2)); }
.auth-page::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.5px), radial-gradient(rgba(255,255,255,.2) 1px, transparent 1.5px); background-size: 46px 46px, 71px 71px; background-position: 0 0, 23px 31px; }
.auth-page > * { position: relative; }
.auth-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 20px; letter-spacing: -.02em; text-decoration: none; margin-bottom: 20px; }
.auth-brand svg { width: 36px; height: 36px; }
.auth-card { width: 100%; max-width: 430px; background: var(--surface); border-radius: var(--r-xl); padding: 34px 34px 26px; box-shadow: var(--shadow-l); }
.auth-card h1 { margin: 0 0 4px; font-size: 30px; letter-spacing: -.035em; }
.auth-card .sub { margin: 0 0 24px; color: var(--ink-3); font-size: 14.5px; }
.auth-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.auth-card .row.center { justify-content: center; }
.devcredit { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.7); }
.devcredit a { color: var(--gold); font-weight: 600; text-decoration: none; padding: 10px 4px; display: inline-block; }

/* ---------- ayarlar ---------- */
details.acc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-s); margin-bottom: 14px; overflow: hidden; }
details.acc > summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 500; font-size: 16px; display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform var(--ease); margin: 0 4px 4px 12px; flex: none; }
details.acc[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
details.acc > summary:hover { background: var(--ground); }
details.acc .inner { padding: 4px 22px 22px; }
details.acc.danger > summary { color: var(--danger); }
.note { background: var(--primary-bg); border-radius: var(--r-m); padding: 14px 16px; font-size: 14px; color: var(--ink-2); line-height: 1.55; margin-bottom: 14px; }
.note.warn { background: var(--danger-bg); color: var(--danger); font-weight: 500; }
.kv { margin: 0 0 16px; } .kv dt { color: var(--ink-3); font-size: 13.5px; margin-bottom: 4px; } .kv dd { margin: 0 0 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; word-break: break-word; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tier { border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; text-align: center; background: var(--surface); }
.tier b { display: block; font-size: 20px; letter-spacing: -.02em; }
.tier span { color: var(--ink-3); font-size: 13px; }
.tier.cur { border-color: var(--primary); background: var(--primary-bg); }
.hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.team { display: grid; gap: 14px; margin: 22px 0; text-align: left; }
.team .member { background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; }
.team .member strong { display: block; font-size: 17px; margin-bottom: 6px; }
.team .member a { display: inline-flex; align-items: center; min-height: 36px; margin-right: 16px; font-weight: 600; font-size: 14px; text-decoration: none; word-break: break-all; }
.team .member a:hover { text-decoration: underline; }

/* ---------- satır listeleri (çöp kutusu, admin) ---------- */
.rows { padding: 6px; }
.rowi { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rowi:last-child { border-bottom: 0; }
.rowi .ico { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; }
.rowi .ico .paper { transform: scale(.55); }
.rowi .main { flex: 1; min-width: 0; }
.rowi .main b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowi .main span { font-size: 13px; color: var(--ink-3); }
.rowi .acts { display: flex; gap: 8px; flex: none; }
.sec { padding: 22px 24px; margin-bottom: 22px; }
.sec h2 { font-size: 24px; margin: 0; }
.sec .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -8px; padding: 0 8px; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 560px; }
.tbl th, .tbl td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { color: var(--ink-3); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.tbl td.r, .tbl th.r { text-align: right; white-space: nowrap; }
.tbl small { color: var(--ink-3); }

/* ---------- paylaşılan dosya sayfası ---------- */
.share-page { max-width: 880px; margin: 0 auto; padding: 22px 16px 60px; }
.share-head { padding: 20px 22px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 18px; }
.share-head h1 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.share-head .sub { color: var(--ink-3); font-size: 13.5px; }
.pv { margin-top: 16px; min-height: 120px; display: flex; align-items: center; justify-content: center; padding: 14px; overflow: hidden; }
.pv img, .pv video { max-width: 100%; max-height: 70vh; border-radius: 10px; background: #000; }
.pv iframe { width: 100%; height: 70vh; border: 0; border-radius: 10px; background: #fff; }
.pv audio { width: 100%; }
.pv pre { width: 100%; max-height: 70vh; overflow: auto; margin: 0; font: 13px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
.pv .vnote { color: var(--ink-3); text-align: center; padding: 30px 10px; }
.share-warn { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.state { text-align: center; padding: 44px 26px; margin-top: 18px; }
.state svg { width: 52px; height: 52px; color: var(--ink-3); margin-bottom: 10px; }
.state h1 { font-size: 24px; margin: 0 0 6px; }
.state p { color: var(--ink-3); margin: 0 0 20px; }

/* ---------- küçük ekran ---------- */
@media (max-width: 860px) {
    .nav-top { padding: 8px 14px; flex-wrap: wrap; row-gap: 6px; }
    .links { order: 3; flex: 1 1 100%; margin: 0 -4px; overflow-x: auto; scrollbar-width: none; }
    .links::-webkit-scrollbar { display: none; }
    .who .nm { display: none; }
    .wrap { padding: 0 14px; }
    .pagehead { margin: 18px 0 14px; }
    .pagehead h1, .settings h1 { font-size: 30px; }
    .headact { width: 100%; }
    .headact .pop { flex: 1; } .headact .pop > summary { width: 100%; }
    .headact .btn.primary { flex: 1; }
    .popbox { right: auto; left: 0; }
    .filters { margin-top: 18px; }
    .tools { flex-wrap: wrap; }
    .tools .search { flex: 1 1 calc(100% - 110px); order: 0; }
    .tools .seg { order: 1; }
    .tools .select { order: 2; flex: 1 1 calc(50% - 5px); min-width: 0; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .list .meta .sub:nth-child(2) { width: auto; }
    .list .meta .sub:nth-child(3) { display: none; }
    .list .meta { flex-direction: column; align-items: flex-start; gap: 0; }
    .list .meta .name { width: 100%; }
    .settings { padding: 0 14px 100px; }
    .rowi { flex-wrap: wrap; padding: 12px 8px; }
    .rowi .acts { width: 100%; justify-content: flex-end; }
    .sec { padding: 18px 16px; }
    .sec h2 { font-size: 21px; }
    /* önizleyici: üstte kapat + ad, altta işlem çubuğu */
    .vhead { padding: 10px 12px 28px; }
    .vactions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; justify-content: space-around; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(5,8,14,.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid rgba(255,255,255,.1); transition: opacity .35s var(--ease); }
    .viewer.idle .vactions { opacity: 0; pointer-events: none; }
    .vactions .btn { flex: 1; }
    .vbody { padding: 64px 0 84px; }
    .player { border-radius: 0; }
    .player video { width: 100vw; max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); }
    .pl-bar { padding: 30px 6px 6px; gap: 2px; }
    .pl-time { min-width: 38px; font-size: 12px; }
    .navbtn { display: none; }
}
@media (max-width: 420px) { .auth-card { padding: 26px 20px 20px; } .auth-card h1 { font-size: 26px; } }
@media (hover: none) { .qa { display: none; } .list .qa { display: flex; } .tile:hover { transform: none; } }
@media (pointer: coarse) { .btn, .select, .search input, .chip { min-height: 44px; } .btn.small { min-height: 38px; } .seg button { min-height: 38px; min-width: 44px; } .btn.icon { width: 44px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- ana sayfa incelikleri ---------- */
.thumb { background: color-mix(in srgb, var(--tc, #185abd) 9%, #f4f7fc); }
.thumb.dark { background: linear-gradient(145deg, #142238, #0a1322); }
.thumb img { opacity: 0; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.thumb img.ld { opacity: 1; }
.tile:hover .thumb img { transform: scale(1.035); }
.dur { position: absolute; right: 10px; bottom: 10px; background: rgba(10,26,47,.78); color: #fff; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.list .dur { display: none; }
.group-h { grid-column: 1 / -1; margin: 14px 2px -4px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); font-family: var(--font); }
.group-h:first-child { margin-top: 0; }
.list .group-h { margin: 12px 2px 0; }
/* iskelet (yüklenirken) */
.tile.sk { pointer-events: none; box-shadow: none; }
.tile.sk .thumb, .tile.sk .meta i { background: linear-gradient(90deg, #eef2f9 0%, #f8fafd 50%, #eef2f9 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.tile.sk .meta i { display: block; height: 11px; border-radius: 6px; margin: 4px 0 8px; width: 70%; }
.tile.sk .meta i + i { width: 45%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ==========================================================================
   UYGULAMA KABUĞU — Google Drive düzeni + iCloud sadeliği (yalnız body.app)
   ========================================================================== */
body.app { background: #f8fafd; color: #1f1f1f; }
.app { --a-text: #1f1f1f; --a-text-2: #444746; --a-text-3: #5f6368; --a-line: #e1e3e1; --a-hover: #e9eef6; --a-card: #f0f4f9; --a-card-h: #e1e5ea; --a-accent: #0b57d0; --a-active: #c2e7ff; --a-active-t: #001d35; }
.app .btn.primary { background: var(--a-accent); border-color: var(--a-accent); }
.app .btn.primary:hover { background: #0842a0; border-color: #0842a0; }

/* üst çubuk */
.topbar { position: sticky; top: 0; z-index: 60; height: 64px; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 12px; background: #f8fafd; }
.topbar .brand { width: 244px; flex: none; gap: 10px; font-size: 21px; font-weight: 400; letter-spacing: -.01em; color: var(--a-text-2); padding-left: 6px; }
.topbar .brand svg { width: 38px; height: 38px; }
.tsearch { flex: 1; max-width: 720px; position: relative; }
.tsearch > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--a-text-2); pointer-events: none; }
.tsearch input { width: 100%; height: 48px; border: 0; border-radius: 999px; background: #e9eef6; padding: 0 48px 0 54px; font-size: 16px; color: var(--a-text); outline: none; transition: background .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.tsearch input::placeholder { color: var(--a-text-2); }
.tsearch input:focus { background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 1px 3px 1px rgba(0,0,0,.12); }
.tsearch input::-webkit-search-cancel-button { -webkit-appearance: none; }
.tsearch .kbd { right: 16px; }
.tsearch input:focus ~ .kbd, .tsearch input:not(:placeholder-shown) ~ .kbd { display: none; }
.tright { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.iconbtn { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--a-text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; transition: background .15s; }
.iconbtn:hover { background: var(--a-hover); }
.iconbtn svg { width: 22px; height: 22px; }
.menu-btn { display: none; }
.app .pop > summary { list-style: none; }
.app .acct > summary.avatar { width: 34px; height: 34px; margin-left: 6px; background: var(--a-accent); color: #fff; font-size: 15px; font-weight: 500; cursor: pointer; box-shadow: 0 0 0 4px #f8fafd; }
.app .acct > summary.avatar:hover { box-shadow: 0 0 0 4px var(--a-hover); }
.app .popbox { border-radius: 16px; border: 0; box-shadow: 0 4px 8px 3px rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.3); }
.acct-h { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.acct-h b { font-size: 15px; }
.avatar.big { width: 44px; height: 44px; font-size: 19px; background: var(--a-accent); color: #fff; }

/* kabuk */
.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); padding: 0 16px 16px 0; min-height: calc(100vh - 64px); }
.side { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; padding: 4px 12px 16px; display: flex; flex-direction: column; scrollbar-width: none; }
.newbtn { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px 0 16px; margin: 4px 0 16px 4px; border: 0; border-radius: 16px; background: #fff; color: var(--a-text); font-size: 14px; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 1px 3px 1px rgba(0,0,0,.15); transition: background .15s, box-shadow .15s; }
.newbtn:hover { background: #f2f6fc; box-shadow: 0 1px 3px rgba(0,0,0,.3), 0 4px 8px 3px rgba(0,0,0,.15); }
.newbtn svg { width: 24px; height: 24px; color: var(--a-accent); }
.snav { display: flex; flex-direction: column; gap: 1px; }
.snav-item { display: flex; align-items: center; gap: 16px; width: 100%; height: 36px; padding: 0 16px 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--a-text); font-size: 14px; text-align: left; cursor: pointer; transition: background .12s; }
.snav-item svg { width: 20px; height: 20px; flex: none; color: var(--a-text-2); }
.snav-item .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snav-item small { font-size: 12px; color: var(--a-text-3); font-variant-numeric: tabular-nums; }
.snav-item:hover { background: var(--a-hover); }
.snav-item.on { background: var(--a-active); color: var(--a-active-t); font-weight: 600; }
.snav-item.on svg, .snav-item.on small { color: var(--a-active-t); }
.snav-sep { height: 1px; margin: 8px 16px; background: var(--a-line); }
.sstore { margin: 18px 6px 0 18px; }
.sstore .bar { height: 4px; border-radius: 2px; background: #e1e3e1; overflow: hidden; }
.sstore .bar b { display: block; height: 100%; width: 0; background: var(--a-accent); border-radius: 2px; transition: width .5s var(--ease); }
.sstore .bar b.warn { background: #b06000; } .sstore .bar b.full { background: #b3261e; }
.sstore p { margin: 8px 0 0; font-size: 13px; color: var(--a-text-2); }
.sstore p b { font-weight: 500; color: var(--a-text); }
.sstore p.mute { margin-top: 2px; color: var(--a-text-3); font-size: 12.5px; }
.sstore .btn { margin-top: 12px; border-color: #747775; color: var(--a-accent); background: transparent; font-weight: 500; }
.sstore .btn:hover { background: #f2f6fc; color: var(--a-accent); border-color: #747775; }
.scrim { display: none; }
.side-brand { display: none; align-items: center; gap: 10px; font-size: 20px; font-weight: 400; color: var(--a-text-2); padding: 4px 8px 14px; }
.side-brand svg { width: 34px; height: 34px; }

/* içerik paneli */
.panel { background: #fff; border-radius: 16px; min-width: 0; min-height: calc(100vh - 80px); padding: 0 16px 90px; }
.phead { position: sticky; top: 64px; z-index: 6; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 6px 12px; border-radius: 16px 16px 0 0; }
.ptitle { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.ptitle h1 { margin: 0; font: 400 24px/1.3 var(--display); letter-spacing: -.01em; color: var(--a-text); }
.ptitle span { font-size: 13px; color: var(--a-text-3); white-space: nowrap; }
.ptools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app .ptools .select { min-height: 32px; height: 32px; padding: 0 30px 0 12px; border-radius: 8px; border: 1px solid #747775; background-color: #fff; color: var(--a-text); font-size: 14px; font-weight: 500; background-position: right 11px center; }
.app .ptools .select:hover { background-color: #f2f6fc; border-color: #747775; }
.app .seg { border: 1px solid #747775; border-radius: 999px; padding: 0; overflow: hidden; background: #fff; }
.app .seg button { min-width: 44px; min-height: 30px; border-radius: 0; color: var(--a-text-2); }
.app .seg button.on { background: var(--a-active); color: var(--a-active-t); }
.app .banner { margin: 0 6px 12px; }
.app .content, .app #files { padding-top: 2px; }

/* ızgara: Drive kartları */
.app .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 14px; padding: 0 6px; }
.app .tile { position: relative; background: var(--a-card); border: 0; border-radius: 12px; box-shadow: none; overflow: hidden; transition: background .15s; }
.app .tile:hover { background: var(--a-card-h); transform: none; box-shadow: none; border: 0; }
.app .tbtn { display: flex; flex-direction: column; }
.app .thead { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; min-width: 0; }
.app .ticon { flex: none; width: 20px; height: 20px; display: inline-flex; }
.app .ticon svg { width: 20px; height: 20px; }
.app .thead .name, .app .cname .name { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; letter-spacing: -.005em; color: var(--a-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .shared { flex: none; display: inline-flex; color: var(--a-text-3); }
.app .shared svg { width: 15px; height: 15px; }
.app .thumb { margin: 0 8px; width: auto; border-radius: 8px; aspect-ratio: 4 / 3; background: #fff; }
.app .tbtn > .thumb { width: auto; }
.app .thumb.dark { background: #1b1f27; }
.app .tile:hover .thumb img { transform: none; }
.app .tfoot { padding: 8px 14px 10px; font-size: 12px; color: var(--a-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .play { left: 8px; bottom: 8px; width: 28px; height: 28px; background: rgba(0,0,0,.6); }
.app .dur { right: 8px; bottom: 8px; background: rgba(0,0,0,.66); border-radius: 4px; }
.app .qa { top: 0; right: 0; height: 48px; display: flex; align-items: center; gap: 2px; padding: 0 6px 0 28px; opacity: 0; background: linear-gradient(90deg, rgba(225,229,234,0), var(--a-card-h) 28%); transition: opacity .12s; }
.app .tile:hover .qa, .app .tile:focus-within .qa { opacity: 1; }
.app .qb { width: 32px; height: 32px; background: transparent; box-shadow: none; color: var(--a-text-2); }
.app .qb:hover { background: rgba(11,87,208,.1); color: var(--a-accent); }
.app .qb.del:hover { background: rgba(179,38,30,.1); color: #b3261e; }
.app .qb svg { width: 19px; height: 19px; }
.app .group-h { grid-column: 1 / -1; margin: 18px 2px 0; font: 500 14px var(--font); text-transform: none; letter-spacing: 0; color: var(--a-text); }
.app .group-h:first-child { margin-top: 4px; }

/* liste: Drive tablosu */
.app .list { display: block; padding: 0 6px; }
.lhead { display: grid; grid-template-columns: minmax(0, 1fr) 170px 110px 120px; gap: 12px; align-items: center; height: 44px; padding: 0 12px; font-size: 13.5px; font-weight: 500; color: var(--a-text-2); border-bottom: 1px solid var(--a-line); }
.app .list .tile.row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; align-items: center; background: transparent; border-radius: 0; border-bottom: 1px solid var(--a-line); overflow: visible; }
.app .list .tile.row:hover { background: var(--a-card); }
.app .list .tile.row .tbtn { display: grid; grid-template-columns: minmax(0, 1fr) 170px 110px; gap: 12px; align-items: center; min-height: 48px; padding: 0 12px; }
.app .list .tile.row .tbtn.static { cursor: default; }
.cname { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cdate, .csize { font-size: 13.5px; color: var(--a-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .list .tile.row .qa { position: static; height: auto; padding: 0 6px 0 0; justify-content: flex-end; background: none; }
.app .list .tile.row.trow { grid-template-columns: minmax(0, 1fr) 210px; }
.app .list .tile.row.trow .qa { opacity: 1; gap: 6px; }

/* boş durumlar, iskelet */
.app .empty { padding: 72px 20px; }
.app .empty > svg { width: 96px; height: 96px; color: #c4c7c5; margin: 0 auto 8px; display: block; }
.app .empty h3 { font: 400 22px var(--display); color: var(--a-text); }
.app .dropzone { margin: 8px 6px; border: 2px dashed #c4c7c5; background: #f8fafd; border-radius: 16px; }
.app .dropzone h3 { font-weight: 400; }
.app .tile.sk { background: var(--a-card); }
.app .tile.sk .thead i { display: block; height: 12px; width: 62%; border-radius: 6px; }
.app .tile.sk .thead i, .app .tile.sk .thumb { background: linear-gradient(90deg, #e7ecf3 0%, #f4f7fb 50%, #e7ecf3 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.app .tile.sk .thumb { margin-bottom: 30px; }

/* telefon: alt sekmeler + yuvarlak "+" */
.tabbar, .fab { display: none; }

@media (max-width: 1080px) { .topbar .brand { width: auto; } .topbar .brand span { display: none; } .lhead, .app .list .tile.row .tbtn { grid-template-columns: minmax(0, 1fr) 130px 90px; } .lhead { grid-template-columns: minmax(0, 1fr) 130px 90px 120px; } }
@media (max-width: 860px) {
    .topbar { gap: 4px; padding: 8px 10px; height: 64px; }
    .menu-btn { display: inline-flex; }
    .topbar .brand { display: none; }
    .tsearch input { height: 46px; padding-left: 48px; font-size: 16px; }
    .tsearch > svg { left: 14px; }
    .tsearch .kbd { display: none; }
    #dlbar, .tright > a.iconbtn { display: none; }
    .shell { display: block; padding: 0; }
    .side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 90; width: 288px; max-width: 86vw; height: 100%; background: #fff; padding: 16px 12px; border-radius: 0 16px 16px 0; transform: translateX(-105%); transition: transform .28s var(--ease); box-shadow: 0 8px 30px rgba(0,0,0,.18); }
    body.side-open .side { transform: none; }
    .scrim { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(0,0,0,.32); opacity: 0; pointer-events: none; transition: opacity .25s; }
    body.side-open .scrim { opacity: 1; pointer-events: auto; }
    .newbtn { display: none; }
    .side-brand { display: flex; }
    .panel { border-radius: 16px 16px 0 0; padding: 0 10px 170px; min-height: calc(100vh - 64px); }
    .phead { top: 64px; padding: 14px 4px 10px; }
    .ptitle h1 { font-size: 22px; }
    .ptools { width: 100%; }
    .app .ptools .select { flex: 1 1 0; min-width: 0; }
    .app .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 0 2px; }
    .app .thead { height: 44px; padding: 0 12px; gap: 10px; }
    .app .qa { display: none; }
    .lhead { display: none; }
    .app .list { padding: 0; }
    .app .list .tile.row { grid-template-columns: minmax(0, 1fr); }
    .app .list .tile.row .tbtn { grid-template-columns: minmax(0, 1fr) auto; min-height: 56px; }
    .app .list .tile.row .cdate { display: none; }
    .app .list .tile.row.trow { grid-template-columns: minmax(0, 1fr); padding-bottom: 8px; }
    .app .list .tile.row.trow .qa { display: flex; padding: 0 12px; justify-content: flex-end; }
    .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: #f3f6fc; border-top: 1px solid var(--a-line); }
    .tabbar > * { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; color: var(--a-text-2); font-size: 12px; font-weight: 500; text-decoration: none; padding: 4px 0; cursor: pointer; }
    .tabbar svg { width: 24px; height: 24px; padding: 4px 18px; box-sizing: content-box; border-radius: 999px; transition: background .15s; }
    .tabbar .on { color: var(--a-active-t); font-weight: 600; }
    .tabbar .on svg { background: var(--a-active); }
    .fab { display: flex; position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 70; width: 56px; height: 56px; border: 0; border-radius: 16px; background: var(--a-active); color: var(--a-active-t); align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.3), 0 4px 8px 3px rgba(0,0,0,.15); }
    .fab svg { width: 26px; height: 26px; }
    .app .uploads { bottom: calc(150px + env(safe-area-inset-bottom)); right: 12px; }
    .app .toasts { bottom: calc(150px + env(safe-area-inset-bottom)); }
}
.app .acct .popbox { left: auto; right: 0; width: 260px; }
@media (pointer: coarse) { .app .seg button { min-height: 40px; min-width: 46px; } .app .ptools .select { height: 40px; min-height: 40px; } .snav-item { height: 44px; } }

/* ==========================================================================
   CEPTE KİMLİĞİ — Drive düzeni üstüne kendi imzamız: lacivert menü + altın
   ========================================================================== */
.app { --a-accent: #185abd; --a-active: #e4eefb; --a-active-t: #0f2c52; --gold: #e8c872; --gold-d: #c9a23a; --navy: #0a1a2f; --navy-2: #0f2c52; }
body.app { background: #eef2f8; }
.topbar { background: #eef2f8; }
.topbar .brand { color: var(--navy-2); font-weight: 500; }
.topbar .brand b, .side-brand b { font-weight: 700; color: var(--navy-2); }
.tsearch input { background: #fff; box-shadow: 0 0 0 1px #dde3f0; }
.tsearch input:focus { box-shadow: 0 0 0 2px var(--a-accent), 0 4px 14px rgba(15,44,82,.12); }
.app .acct > summary.avatar, .avatar.big { background: var(--navy-2); box-shadow: 0 0 0 2px var(--gold); }
.app .acct > summary.avatar:hover { box-shadow: 0 0 0 3px var(--gold); }

/* lacivert menü */
.shell { padding: 0 16px 16px 16px; gap: 16px; grid-template-columns: 248px minmax(0, 1fr); }
.side { top: 64px; height: calc(100vh - 80px); margin-bottom: 16px; padding: 18px 12px 18px; border-radius: 20px; color: #fff;
    background: radial-gradient(120% 60% at 0% 0%, rgba(24,90,189,.55), transparent 60%), linear-gradient(170deg, var(--navy-2), var(--navy)); box-shadow: 0 18px 40px -20px rgba(10,26,47,.6); }
.newbtn { margin: 0 0 18px 4px; height: 52px; padding: 0 26px 0 18px; border-radius: 16px; background: var(--gold); color: var(--navy); font-weight: 700; font-size: 15px; box-shadow: 0 8px 22px -8px rgba(232,200,114,.65); }
.newbtn:hover { background: #f0d48a; box-shadow: 0 10px 26px -8px rgba(232,200,114,.8); }
.newbtn svg { color: var(--navy); }
.snav-item { color: rgba(255,255,255,.82); position: relative; }
.snav-item svg { color: rgba(255,255,255,.7); }
.snav-item small { color: rgba(255,255,255,.55); }
.snav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.snav-item.on { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.snav-item.on::before { content: ""; position: absolute; left: 6px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--gold); }
.snav-item.on svg { color: var(--gold); }
.snav-item.on small { color: rgba(255,255,255,.8); }
.snav-sep { background: rgba(255,255,255,.12); }
.sstore { margin: 22px 8px 0 14px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.slabel { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.sstore .bar { background: rgba(255,255,255,.14); height: 6px; border-radius: 3px; }
.sstore .bar b { background: linear-gradient(90deg, var(--gold-d), var(--gold)); border-radius: 3px; }
.sstore p { color: rgba(255,255,255,.75); }
.sstore p b { color: #fff; }
.sstore p.mute { color: rgba(255,255,255,.55); }
.sstore .btn { border-color: rgba(255,255,255,.3); color: #fff; }
.sstore .btn:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.5); }

/* panel */
.panel { border-radius: 20px; box-shadow: 0 1px 2px rgba(15,44,82,.06); margin-bottom: 16px; }
.phead { border-radius: 20px 20px 0 0; padding-top: 20px; }
.ptitle { flex-wrap: wrap; row-gap: 0; }
.ptitle .hello { flex-basis: 100%; font-size: 13px; font-weight: 600; color: var(--gold-d); letter-spacing: .01em; }
.ptitle h1 { font: 600 26px/1.25 var(--display); letter-spacing: -.03em; color: var(--navy-2); }
.app .seg button.on { background: var(--navy-2); color: #fff; }
.app .ptools .select, .app .seg { border-color: #c9d4e8; }
.app .tile { background: #f3f6fb; }
.app .tile:hover { background: #e8eef7; }
.app .qa { background: linear-gradient(90deg, rgba(232,238,247,0), #e8eef7 28%); }
.app .list .tile.row:hover { background: #f3f6fb; }
.app .group-h { color: var(--navy-2); font-weight: 600; }
.app .dropzone { border-color: #c9d4e8; background: #f6f9fd; }
.app .dropzone > svg { color: var(--a-accent); }

/* telefon */
@media (max-width: 860px) {
    .shell { padding: 0; }
    .side { top: 0; height: 100%; margin: 0; border-radius: 0 20px 20px 0; }
    .side-brand { color: #fff; } .side-brand b { color: var(--gold); }
    .panel { border-radius: 20px 20px 0 0; margin: 0; }
    .tabbar { background: var(--navy); border-top: 0; }
    .tabbar > * { color: rgba(255,255,255,.7); }
    .tabbar .on { color: #fff; }
    .tabbar .on svg { background: rgba(232,200,114,.22); color: var(--gold); }
    .fab { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px -8px rgba(10,26,47,.55); }
}

/* ==========================================================================
   KARABÜK TTO PALETİ + BELGE KARTLARI + TTO ÖNİZLEME PENCERESİ
   ========================================================================== */
.app { --a-accent: #0084d1; --a-accent-h: #0069a8; --a-deep: #024a70; --a-text: #191b23; --a-text-2: #45556c; --a-text-3: #62748e; --a-line: #e2e8f0; --cyan: #00d3f2; --hero: linear-gradient(160deg, #03142a 0%, #063a63 55%, #0284a8 100%); }
body.app, .topbar { background: #f8fafc; }
.app .btn.primary { background: var(--a-accent); border-color: var(--a-accent); }
.app .btn.primary:hover { background: var(--a-accent-h); border-color: var(--a-accent-h); }
.app .btn { border-color: var(--a-line); color: #314158; font-weight: 600; border-radius: 10px; }
.app .btn:hover { border-color: #74d4ff; color: var(--a-accent-h); background: #fff; }
.app .btn.danger { color: #c10007; background: #fef2f2; border-color: transparent; }
.app .btn.danger:hover { background: #ffe2e2; color: #c10007; }
.topbar .brand, .topbar .brand b, .side-brand b { color: #03142a; }
.tsearch input { box-shadow: 0 0 0 1px var(--a-line); }
.tsearch input:focus { box-shadow: 0 0 0 2px var(--a-accent), 0 4px 14px rgba(2,74,112,.12); }
.app .acct > summary.avatar, .avatar.big { background: var(--a-deep); box-shadow: 0 0 0 2px #b8e6fe; }
.app .acct > summary.avatar:hover { box-shadow: 0 0 0 3px #74d4ff; }

/* sol menü: TTO hero geçişi */
.side { background: radial-gradient(90% 50% at 100% 100%, rgba(0,211,242,.18), transparent 60%), var(--hero); box-shadow: 0 18px 40px -20px rgba(3,20,42,.6); }
.newbtn { background: #fff; color: #03142a; box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.newbtn:hover { background: #f0f9ff; box-shadow: 0 12px 28px -10px rgba(0,0,0,.5); }
.newbtn svg { color: var(--a-accent); }
.snav-item.on { background: rgba(255,255,255,.14); }
.snav-item.on::before { background: var(--cyan); }
.snav-item.on svg { color: var(--cyan); }
.slabel { color: var(--cyan); }
.sstore .bar b { background: linear-gradient(90deg, #0084d1, var(--cyan)); }

/* panel */
.panel { box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid var(--a-line); }
.ptitle .hello { color: var(--a-accent); }
.ptitle h1 { font-weight: 800; color: var(--a-text); letter-spacing: -.035em; }
.app .seg button.on { background: var(--a-deep); }
.app .ptools .select, .app .seg { border-color: var(--a-line); }
.app .group-h { color: var(--a-text); font-weight: 700; }

/* belge kağıdı çizimi (TTO) */
.doc-ill { position: relative; width: 62px; height: 78px; background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px #e2e8f0, 0 8px 18px -8px rgba(15,23,42,.25); padding: 22px 9px 0; display: flex; flex-direction: column; gap: 6px; flex: none; }
.doc-ill .band { position: absolute; left: 0; right: 0; top: 0; height: 16px; border-radius: 6px 6px 0 0; background: var(--tc, #45556c); color: #fff; font: 800 8.5px/16px var(--font); letter-spacing: .04em; padding-left: 7px; text-align: left; }
.doc-ill i { display: block; height: 4px; border-radius: 2px; background: #e2e8f0; }
.doc-ill i:nth-of-type(2) { width: 82%; } .doc-ill i:nth-of-type(4) { width: 64%; }
.doc-ill .badge { position: absolute; right: -10px; bottom: -8px; width: 26px; height: 26px; border-radius: 7px; background: var(--tc, #45556c); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px -3px rgba(0,0,0,.35); }
.doc-ill .badge svg { width: 15px; height: 15px; }

/* ızgara: TTO belge kartı */
.app .grid { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.app .tile.card-doc { background: linear-gradient(180deg, #fff 52%, color-mix(in srgb, var(--tc, #45556c) 7%, #fff) 100%); border: 1px solid var(--a-line); border-radius: 16px; display: flex; flex-direction: column; transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .2s; }
.app .tile.card-doc:hover { background: linear-gradient(180deg, #fff 52%, color-mix(in srgb, var(--tc, #45556c) 9%, #fff) 100%); box-shadow: 0 25px 50px -12px rgba(8,47,73,.12); transform: translateY(-3px); border-color: #cad5e2; }
.app .card-doc .tbtn { flex: 1; }
.app .card-doc .thumb { margin: 10px 10px 0; aspect-ratio: 16 / 10; border-radius: 10px; background: transparent; }
.app .card-doc .thumb.dark { background: #0b1220; }
.app .card-doc .thumb img { border-radius: 10px; }
.app .card-doc .tbody { padding: 14px 18px 0; border-top: 1px solid #f1f5f9; margin: 10px 0 0; }
.app .card-doc h3.name { margin: 0 0 10px; font: 800 16px/1.35 var(--display); letter-spacing: -.02em; color: var(--a-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; min-height: 2.7em; }
.app .tmeta { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--a-text-2); padding-top: 10px; border-top: 1px solid #f1f5f9; }
.app .tmeta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tc, #45556c); flex: none; }
.app .tmeta .sz { margin-left: auto; color: var(--a-text-3); font-weight: 500; }
.app .tmeta .shared { margin-left: 2px; }
.app .tacts { display: flex; gap: 8px; padding: 12px 18px 16px; }
.app .tacts .btn { flex: 1; min-height: 38px; font-size: 13.5px; padding: 6px 10px; }
.app .tacts .btn svg { width: 17px; height: 17px; }
.app .card-doc .qa { top: 16px; right: 16px; height: auto; padding: 4px; gap: 2px; border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 4px 14px -4px rgba(15,23,42,.25); }
.app .tile.sk { border: 1px solid var(--a-line); background: #fff; border-radius: 16px; }

/* liste */
.app .list .tile.row:hover { background: #f8fafc; }
.lhead { color: var(--a-text-3); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }

/* TTO önizleme penceresi */
.app .viewer { background: rgba(15,23,42,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 24px; color: var(--a-text); }
.app .viewer.on { display: flex; }
.app .viewer.enter { animation: vIn .25s var(--ease); }
.app .viewer.enter .vbox { animation: boxIn .32s var(--ease); }
@keyframes boxIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.vbox { width: min(1180px, 100%); height: 100%; max-height: 900px; background: #fff; border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(3,20,42,.55); display: flex; flex-direction: column; overflow: hidden; }
.app .vhead { position: static; background: #fff; padding: 14px 16px 14px 18px; border-bottom: 1px solid var(--a-line); gap: 14px; }
.app .viewer.idle .vhead { opacity: 1; pointer-events: auto; }
.vic { width: 40px; height: 40px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.vic svg { width: 21px; height: 21px; }
.app .vhead .t b { color: var(--a-text); font: 800 17px/1.3 var(--display); letter-spacing: -.02em; }
.app .vhead .t span { color: var(--a-text-3); font-size: 12.5px; font-weight: 600; }
.app .vbody { flex: 1; min-height: 0; background: #f1f5f9; padding: 20px 70px; }
.app .vbody.dark { background: #0b1220; }
.app .vbody > img.media { border-radius: 8px; box-shadow: 0 10px 30px -10px rgba(15,23,42,.35); }
.app .vbody > iframe.media, .app .vbody .txt { box-shadow: 0 10px 30px -12px rgba(15,23,42,.3); border: 1px solid var(--a-line); border-radius: 10px; }
.app .vmsg { color: var(--a-text-2); }
.app .vmsg .vmsg-t { color: var(--a-text); font-weight: 800; }
.app .vbody.dark .vmsg { color: rgba(255,255,255,.8); }
.app .vbody.dark .vmsg .vmsg-t { color: #fff; }
.app .vmsg .doc-ill { transform: scale(1.5); margin: 10px 0 22px; }
.app .vmsg .spin { border-color: #cad5e2; border-top-color: var(--a-accent); }
.app .vbody.dark .vmsg .spin { border-color: rgba(255,255,255,.25); border-top-color: #fff; }
.app .vmsg .disc { background: linear-gradient(145deg, #0084d1, #024a70); }
.app .navbtn { background: #fff; color: #314158; border: 1px solid var(--a-line); box-shadow: 0 6px 16px -6px rgba(15,23,42,.3); }
.app .navbtn:hover { background: #f0f9ff; color: var(--a-accent); }
.app .vbody.dark .navbtn { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); }
.vfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px 18px; border-top: 1px solid var(--a-line); background: #fff; }
.vhint { font-size: 12.5px; color: var(--a-text-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app .vfoot .vactions { position: static; display: flex; gap: 8px; padding: 0; background: none; border: 0; backdrop-filter: none; }
.app .viewer .vfoot .btn { background: #fff; color: #314158; border-color: var(--a-line); backdrop-filter: none; }
.app .viewer .vfoot .btn:hover { border-color: #74d4ff; color: var(--a-accent-h); }
.app .viewer .vfoot .btn.primary { background: var(--a-accent); color: #fff; border-color: var(--a-accent); }
.app .viewer .vfoot .btn.primary:hover { background: var(--a-accent-h); }
.app .viewer .vfoot .btn.danger { background: #fef2f2; color: #c10007; border-color: transparent; }
.app .viewer .iconbtn { color: var(--a-text-2); }
.app .player { box-shadow: none; border-radius: 10px; }
.app .player video { width: min(1060px, calc(100vw - 200px)); max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); }
.app .viewer.idle .vfoot, .app .viewer.idle .vhead { opacity: 1; }

@media (max-width: 860px) {
    .app .viewer { padding: 0; }
    .vbox { border-radius: 0; max-height: none; }
    .app .vhead { padding: 10px 10px 10px 14px; }
    .vic { width: 36px; height: 36px; }
    .app .vbody { padding: 12px 8px; }
    .app .vbody.dark { padding: 0; }
    .app .player { border-radius: 0; }
    .app .player video { width: 100vw; max-height: calc(100dvh - 190px); }
    .vhint { display: none; }
    .vfoot { padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
    .app .vfoot .vactions { width: 100%; }
    .app .vfoot .vactions .btn { flex: 1; }
    .app .tile.card-doc:hover { transform: none; }
    .app .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .app .card-doc .tbody { padding: 12px 12px 0; }
    .app .card-doc h3.name { font-size: 14.5px; }
    .app .tacts { padding: 10px 12px 12px; gap: 6px; }
    .app .tacts .btn { min-height: 40px; font-size: 13px; padding: 6px 4px; gap: 5px; }
    .app .tmeta .ty { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tabbar { background: #03142a; }
    .tabbar .on svg { background: rgba(0,211,242,.18); color: var(--cyan); }
    .fab { background: var(--a-accent); color: #fff; }
}

/* düzeltmeler: birincil buton metni, menü butonu, dar kartlar */
.app .btn.primary, .app .btn.primary:hover { color: #fff; }
.app .sstore .btn { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.app .sstore .btn:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }
.app .tmeta .sz { white-space: nowrap; }
@media (max-width: 860px) {
    .app .tacts .btn.view { flex: 0 0 42px; padding: 0; }
    .app .tacts .btn.view span { display: none; }
}
.side-brand, .side-brand b { color: #fff; }

/* ==========================================================================
   DÜZ RENKLER — geçiş (gradient) yok
   ========================================================================== */
:root { --flat-navy: #024a70; }
.auth-page { background: var(--flat-navy); }
.auth-page::before { display: none; }
.side { background: var(--flat-navy); box-shadow: none; }
.sstore .bar b { background: var(--cyan, #00d3f2); }
.app .tile.card-doc, .app .tile.card-doc:hover { background: #fff; }
.app .tile.card-doc:hover { box-shadow: 0 10px 24px -12px rgba(2,74,112,.22); }
.thumb.dark, .app .card-doc .thumb.dark { background: #0b1220; }
.vmsg .disc, .app .vmsg .disc { background: #0084d1; }
.app .viewer { background: rgba(15,23,42,.6); }
@media (max-width: 860px) {
    .tabbar { background: var(--flat-navy); }
    .side { box-shadow: 0 8px 30px rgba(0,0,0,.25); }
}
:root { --primary: #0084d1; --primary-h: #0069a8; --primary-bg: #e0f2fe; --hero-1: #024a70; --hero-2: #024a70; }
.devcredit a { color: #00d3f2; }

/* ==========================================================================
   TAM EKRAN DÜZEN — boşluk, yuvarlak köşe ve yüzen kutu yok
   ========================================================================== */
.ptitle .hello { display: none; }
@media (min-width: 861px) {
    body.app { background: #fff; }
    .topbar { background: #fff; border-bottom: 1px solid var(--a-line); padding-left: 272px; }
    .topbar .brand { display: none; }
    .side { position: fixed; top: 0; left: 0; bottom: 0; width: 256px; height: 100vh; height: 100dvh; margin: 0; border-radius: 0; box-shadow: none; z-index: 70; padding: 0 14px 18px; }
    .side-brand { display: flex; height: 64px; align-items: center; padding: 0 6px; margin: 0 0 10px; color: #fff; }
    .side-brand svg { width: 34px; height: 34px; }
    .side-brand span { font-size: 20px; letter-spacing: -.01em; }
    .shell { display: block; padding: 0 0 0 256px; gap: 0; min-height: calc(100vh - 64px); }
    .panel { margin: 0; border: 0; border-radius: 0; box-shadow: none; min-height: calc(100vh - 64px); padding: 0 28px 60px; }
    .phead { border-radius: 0; padding: 22px 0 14px; }
}
/* önizleme de tam ekran */
.app .viewer { padding: 0; }
.vbox { width: 100%; height: 100%; max-height: none; border-radius: 0; box-shadow: none; }
.app .player video { width: min(1400px, calc(100vw - 180px)); max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); }
@media (max-width: 860px) { .app .player video { width: 100vw; max-height: calc(100dvh - 190px); } }
.avatar.has-img { padding: 0; overflow: hidden; background: #e2e8f0; }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }

/* ==========================================================================
   AYARLAR — tek açık akordeon, düz renkler
   ========================================================================== */
body.settings-page { background: #f8fafc; }
.settings-page .nav-top { background: #fff; border-bottom: 1px solid #e2e8f0; backdrop-filter: none; }
.settings-page .settings { max-width: 760px; }
.settings-page .settings h1 { font-weight: 800; color: #191b23; }
.settings-page details.acc { border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: none; margin-bottom: 10px; background: #fff; }
.settings-page details.acc > summary { gap: 14px; justify-content: flex-start; padding: 14px 18px; min-height: 64px; font-weight: 700; color: #191b23; }
.settings-page details.acc > summary::after { margin-left: 4px; flex: none; }
.settings-page details.acc[open] > summary { border-bottom: 1px solid #f1f5f9; }
.settings-page details.acc > summary:hover { background: #f8fafc; }
.sic { width: 38px; height: 38px; border-radius: 10px; background: #e0f2fe; color: #0084d1; display: flex; align-items: center; justify-content: center; flex: none; }
.sic svg { width: 21px; height: 21px; }
.danger .sic { background: #fef2f2; color: #c10007; }
.settings-page details.acc.danger > summary { color: #c10007; }
.st-t { flex: none; }
.sval { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 14px; color: #62748e; }
.settings-page details.acc .inner { padding: 18px 22px 22px; }
.settings-page .form-msg { margin-bottom: 16px; }
.sh { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #314158; }
.sep { border: 0; border-top: 1px solid #e2e8f0; margin: 22px 0; }
.hint { display: block; margin: 4px 0 14px; font-size: 13px; line-height: 1.5; color: #62748e; font-weight: 400; }
.cur { margin: 0 0 16px; font-size: 16px; font-weight: 600; color: #191b23; word-break: break-all; }
.chip { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.chip.ok { background: #dcfce7; color: #166534; } .chip.wait { background: #fef3c7; color: #92400e; } .chip.none { background: #f1f5f9; color: #62748e; }
.settings-page textarea.input { min-height: 90px; resize: vertical; font-family: inherit; }

/* profil fotoğrafı */
.pf { display: flex; gap: 18px; align-items: center; }
.avatar.xl { width: 84px; height: 84px; font-size: 34px; font-weight: 700; flex: none; border-radius: 50%; background: #024a70; color: #fff; display: flex; align-items: center; justify-content: center; }
.pf-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-b .hint { margin-bottom: 0; }
label.btn { cursor: pointer; }
.btn.loading { opacity: .6; pointer-events: none; }

/* depolama */
.stor-top { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; color: #45556c; }
.stor-top b { font-size: 26px; font-weight: 800; color: #191b23; letter-spacing: -.02em; }
.stor-top .pct { margin-left: auto; font-weight: 700; color: #0084d1; }
.segbar { display: flex; height: 12px; border-radius: 6px; background: #f1f5f9; overflow: hidden; gap: 2px; }
.segbar i { display: block; height: 100%; }
.legend, .biglist { list-style: none; margin: 14px 0 0; padding: 0; }
.legend li, .biglist li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; color: #314158; }
.legend li:last-child, .biglist li:last-child { border-bottom: 0; }
.legend li.zero { color: #90a1b9; }
.legend .dot, .biglist .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend .ln { flex: 1; } .legend .lc { color: #62748e; font-size: 13px; min-width: 70px; text-align: right; }
.legend b, .biglist b { min-width: 76px; text-align: right; font-weight: 700; }
.biglist .ln { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biglist .empty { color: #62748e; }
#trashNote { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
#trashNote.hidden { display: none; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tier { border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; text-align: center; background: #fff; }
.tier b { display: block; font-size: 20px; letter-spacing: -.02em; color: #191b23; } .tier span { color: #62748e; font-size: 13px; }
.tier.cur { border-color: #0084d1; background: #e0f2fe; }

/* çıkış */
.switch-row { display: flex; align-items: center; gap: 16px; cursor: pointer; }
.switch-row > span { flex: 1; } .switch-row .hint { margin-bottom: 0; }
.switch { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 15px; background: #cad5e2; position: relative; cursor: pointer; flex: none; transition: background .2s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch:checked { background: #0084d1; } .switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 3px solid #74d4ff; outline-offset: 2px; }
.row-act { display: flex; align-items: center; gap: 16px; padding: 4px 0 16px; }
.row-act > div { flex: 1; } .row-act .hint { margin-bottom: 0; }
.row-act + .row-act { border-top: 1px solid #f1f5f9; padding-top: 16px; }
.row-act .btn { flex: none; }

@media (max-width: 600px) {
    .settings-page details.acc .inner { padding: 16px; }
    .sval { display: none; }
    .row-act { flex-direction: column; align-items: stretch; }
    .pf { align-items: flex-start; }
    .avatar.xl { width: 68px; height: 68px; font-size: 28px; }
}
.settings-page details.acc > summary .st-t:last-child { margin-right: auto; }
.settings-page details.acc { scroll-margin-top: 80px; }
@media (max-width: 600px) { .settings-page .st-t { margin-right: auto; } .settings-page details.acc { scroll-margin-top: 110px; } }
