/* Netesta Webmail — üst şerit Linux/Windows Gözcü ile aynı; içerik gece/gündüz temalı */
:root {
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --ok: #22c55e; --ok-hi: #4ade80; --fail: #ef4444; --fail-hi: #f87171; --amber: #f59e0b;
  --primary: #2563eb; --primary-hi: #3b82f6;
  --radius: 14px; --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070e1b; --bg-hi: #0f2140;
  --card: rgba(14, 24, 42, .78); --card-solid: #0e182a; --raise: rgba(255, 255, 255, .04);
  --text: #dbe5f5; --text-hi: #f3f7ff; --muted: #7f8fab;
  --border: rgba(96, 140, 210, .18); --line: rgba(96, 140, 210, .1);
  --accent: #38bdf8; --sel: rgba(56, 189, 248, .12); --sel-line: rgba(56, 189, 248, .55);
  --hover: rgba(255, 255, 255, .035); --input: rgba(7, 14, 27, .6);
  --shadow: 0 10px 34px rgba(0, 0, 0, .35); --orb-a: .55;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eaf0f8; --bg-hi: #f7faff;
  --card: rgba(255, 255, 255, .82); --card-solid: #ffffff; --raise: rgba(15, 40, 80, .03);
  --text: #1b2a41; --text-hi: #0b1628; --muted: #62738f;
  --border: rgba(30, 64, 120, .14); --line: rgba(30, 64, 120, .08);
  --accent: #0284c7; --sel: rgba(37, 99, 235, .08); --sel-line: rgba(37, 99, 235, .55);
  --hover: rgba(15, 40, 80, .035); --input: rgba(255, 255, 255, .9);
  --shadow: 0 10px 30px rgba(20, 45, 90, .1); --orb-a: .3;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; display: flex; flex-direction: column; font: 14px/1.45 var(--sans); color: var(--text);
  background: radial-gradient(1200px 700px at 50% 30%, var(--bg-hi) 0%, var(--bg) 70%) fixed var(--bg);
  overflow: hidden; -webkit-font-smoothing: antialiased; }
img, svg { -webkit-user-drag: none; user-select: none; }
svg:not(.beat) { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
kbd { font: 600 11px var(--mono); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border); background: var(--raise); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.grow { flex: 1; }

/* yüzen ışık küreleri */
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orbs i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(80px); opacity: var(--orb-a);
  animation: drift 26s ease-in-out infinite alternate; }
.orbs i:nth-child(1) { background: radial-gradient(circle, rgba(37, 99, 235, .55), transparent 65%); left: -12vmax; top: -10vmax; }
.orbs i:nth-child(2) { background: radial-gradient(circle, rgba(56, 189, 248, .4), transparent 65%); right: -14vmax; top: 20vh; animation-duration: 32s; }
.orbs i:nth-child(3) { background: radial-gradient(circle, rgba(34, 197, 94, .25), transparent 65%); left: 30vw; bottom: -24vmax; animation-duration: 38s; }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.1); } }

/* ------------------------------------------------------------ üst şerit (Gözcü ile aynı) */
.topbar { position: relative; z-index: 5; flex: none; display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 12px; row-gap: 8px; padding: 10px 24px; color: #fff;
  background: linear-gradient(90deg, #0c1f3a, #163a66); box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  view-transition-name: topbar; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand h1 { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .25); }
.home-link { display: inline-flex; }
.logo { height: 40px; width: auto; }
h1 { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 8px; }
h2 { font-size: 15px; margin: 0; }
.breathe span { display: inline-block; animation: breathe 4s ease-in-out infinite; letter-spacing: .4px; }
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .82; text-shadow: 0 0 0 rgba(74, 222, 128, 0); }
  50% { transform: scale(1.06); opacity: 1; text-shadow: 0 0 14px rgba(74, 222, 128, .55); }
}
.beat { width: 34px; height: 18px; fill: none; stroke: #4ade80; stroke-width: 2.2; stroke-linecap: round;
  stroke-linejoin: round; stroke-dasharray: 70; stroke-dashoffset: 70; animation: beat 2s linear infinite;
  filter: drop-shadow(0 0 3px rgba(74, 222, 128, .7)); }
@keyframes beat { 0% { stroke-dashoffset: 70; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -70; } }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.clock { font: 600 15px var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .5px; opacity: .9; }
.hbtn { font-size: 13px; color: #fff; background: transparent; cursor: pointer; display: inline-flex; align-items: center;
  gap: 6px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; padding: 6px 12px; transition: .15s; }
.hbtn:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.hbtn.icon { padding: 6px 8px; }
.hbtn.icon svg { width: 17px; height: 17px; }
:root[data-theme="dark"] .i-moon, :root[data-theme="light"] .i-sun { display: none; }
.who { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 3px 10px 3px 3px;
  border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15);
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Mail servisleri */
.svc { display: flex; align-items: center; gap: 12px; margin-left: 6px; padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, .25); }
.svc-label { font-size: 12px; font-weight: 600; line-height: 1.15; opacity: .85; max-width: 64px; text-align: right; }
.svc-item { display: grid; justify-items: center; gap: 3px; min-width: 40px; }
.svc-item b { font: 700 11px var(--mono); letter-spacing: .8px; opacity: .92; }
.svc-item > span { display: inline-flex; align-items: center; gap: 5px; }
.svc-item small { font: 800 10px var(--mono); letter-spacing: .6px; color: #9ca3af; }
.led { width: 9px; height: 9px; border-radius: 50%; background: #9ca3af; }
.svc-item.up .led { background: var(--ok-hi); box-shadow: 0 0 8px rgba(74, 222, 128, .9); animation: pulse 1.8s ease-out infinite; }
.svc-item.up small { color: var(--ok-hi); }
.svc-item.down .led { background: var(--fail-hi); animation: pulse-r 1.1s ease-out infinite; }
.svc-item.down small { color: var(--fail-hi); }
.svc-item:nth-child(3) .led { animation-delay: .3s; } .svc-item:nth-child(4) .led { animation-delay: .6s; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .65); } 100% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }
@keyframes pulse-r { 0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, .65); } 100% { box-shadow: 0 0 0 8px rgba(248, 113, 113, 0); } }

/* ------------------------------------------------------------ genel bileşenler */
#stage { position: relative; z-index: 1; flex: 1; min-height: 0; view-transition-name: stage; }
.view { height: 100%; }
.card { min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .03);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px;
  padding: 9px 16px; font-weight: 600; font-size: 13.5px; cursor: pointer; border: 1px solid var(--border);
  background: var(--raise); color: var(--text); transition: transform .12s, background .15s, box-shadow .2s, border-color .15s; }
.btn:hover { border-color: var(--sel-line); }
.btn:active { transform: scale(.98); }
.btn.primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--primary), #1d4ed8 60%, #0ea5e9);
  box-shadow: 0 6px 18px rgba(37, 99, 235, .35); }
.btn.primary:hover { box-shadow: 0 8px 24px rgba(37, 99, 235, .5); filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn .spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.busy { pointer-events: none; opacity: .85; }
.btn.busy .spin { display: inline-block; }
.btn.busy svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.ibtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 0;
  background: transparent; color: var(--muted); cursor: pointer; transition: .15s; flex: none; }
.ibtn:hover { background: var(--hover); color: var(--text-hi); }
.ibtn.danger:hover { color: var(--fail-hi); background: rgba(239, 68, 68, .1); }
.ibtn.on { color: var(--amber); }
.ibtn.on svg { fill: var(--amber); }
.tbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--raise); color: var(--text); cursor: pointer; font-size: 13px; transition: .15s; }
.tbtn:hover { border-color: var(--sel-line); color: var(--text-hi); }
.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-weight: 600; }
.link:hover { text-decoration: underline; }
input, .editor { font: inherit; color: var(--text); }
input[type="email"], input[type="password"], input[type="text"], input[type="search"], input:not([type]) {
  width: 100%; border: 1px solid var(--border); background: var(--input); border-radius: 10px; padding: 10px 12px;
  outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus { border-color: var(--sel-line); box-shadow: 0 0 0 3px var(--sel); }
.flash { padding: 9px 12px; border-radius: 10px; font-size: 13px; }
.flash.err { background: rgba(239, 68, 68, .12); color: var(--fail-hi); border: 1px solid rgba(239, 68, 68, .3); }
:root[data-theme="light"] .flash.err { color: #b91c1c; }
.avatar { --h: 210; flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-weight: 700; font-size: 14px; color: #fff; letter-spacing: .3px;
  background: linear-gradient(135deg, hsl(var(--h) 65% 52%), hsl(calc(var(--h) + 40) 70% 42%)); }
.avatar.sm { width: 34px; height: 34px; font-size: 12.5px; }
.avatar.xs { width: 24px; height: 24px; font-size: 10px; }

/* ------------------------------------------------------------ giriş */
.login-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); align-items: center;
  gap: clamp(24px, 6vw, 90px); max-width: 1040px; margin: 0 auto; padding: 24px; overflow: auto; }
.login-hero h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.6px; color: var(--text-hi); margin: 18px 0 8px; }
.login-hero > p { color: var(--muted); font-size: 16px; margin: 0 0 22px; }
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feats li { display: flex; align-items: center; gap: 12px; color: var(--text); }
.feats svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; color: var(--accent);
  background: var(--sel); border: 1px solid var(--border); }
.env-anim svg { width: 132px; height: 100px; overflow: visible; }
.env-anim .env-body { fill: var(--sel); stroke: var(--accent); stroke-width: 3; }
.env-anim .env-flap { stroke: var(--ok-hi); stroke-width: 3.2; animation: flap 3.6s var(--ease) infinite; transform-origin: 60px 24px; }
.env-anim .env-letter { fill: var(--card-solid); stroke: var(--accent); stroke-width: 2; opacity: 0;
  animation: letter 3.6s var(--ease) infinite; }
@keyframes flap { 0%, 15% { transform: scaleY(1); } 40%, 70% { transform: scaleY(-1); } 95%, 100% { transform: scaleY(1); } }
@keyframes letter { 0%, 30% { opacity: 0; transform: translateY(20px); } 45%, 65% { opacity: 1; transform: translateY(-14px); }
  85%, 100% { opacity: 0; transform: translateY(20px); } }
.login-card { padding: 28px 26px 24px; display: grid; gap: 10px; }
.login-card h2 { font-size: 21px; color: var(--text-hi); }
.login-card > p { margin: 0 0 6px; }
.login-card label { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.login-card .btn { margin-top: 10px; padding: 12px; font-size: 14.5px; }
.input-ico { position: relative; }
.input-ico > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-ico input { padding-left: 40px; }
.input-ico input[type="password"], .input-ico input#password { padding-right: 42px; }
.peek { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0;
  background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.peek:hover { color: var(--text-hi); background: var(--hover); }
.insecure { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; color: var(--amber); }
.insecure svg { width: 16px; height: 16px; }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ------------------------------------------------------------ posta kutusu */
.app-view { display: grid; grid-template-columns: 232px minmax(320px, 400px) minmax(0, 1fr); gap: 14px; padding: 14px; }
.side { display: flex; flex-direction: column; gap: 12px; padding: 14px 10px; min-height: 0; }
.new-btn { padding: 11px; font-size: 14px; }
.folders { flex: 1; overflow: auto; display: grid; align-content: start; gap: 2px; margin: 0 -2px; padding: 0 2px; }
.fold { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer;
  color: var(--text); border: 0; background: none; text-align: left; width: 100%; transition: background .15s, color .15s; }
.fold:hover { background: var(--hover); }
.fold.on { background: var(--sel); color: var(--text-hi); font-weight: 600; }
.fold.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent); }
.fold svg { color: var(--muted); }
.fold.on svg { color: var(--accent); }
.fold .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fold .badge { font: 700 11px var(--mono); padding: 1px 7px; border-radius: 99px; background: var(--primary); color: #fff; }
.fold.drop { outline: 2px dashed var(--sel-line); outline-offset: -2px; }
.quota { padding: 10px 6px 2px; border-top: 1px solid var(--line); }
.quota-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.quota-top b { color: var(--text); font-weight: 600; }
.quota-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.quota-bar i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 1s var(--ease);
  background: linear-gradient(90deg, var(--ok), var(--accent)); }
.quota-bar i.warn { background: linear-gradient(90deg, var(--amber), var(--fail)); }

.list-pane { display: flex; flex-direction: column; min-height: 0; overflow: hidden; view-transition-name: list; }
.list-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 6px 16px; }
.list-head h2 { font-size: 17px; color: var(--text-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-head .count { font: 600 12px var(--mono); color: var(--muted); margin-right: auto; }
.list-head #refresh-btn.spinning svg { animation: spin .8s linear infinite; }
.search { position: relative; margin: 4px 12px 8px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search input { padding: 8px 12px 8px 34px; border-radius: 10px; }
.bulk { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px 6px 16px; border-bottom: 1px solid var(--line); }
.bulk-acts { display: flex; gap: 2px; margin-left: auto; }
.chk { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; cursor: pointer; flex: none; }
.chk input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chk span { width: 16px; height: 16px; border-radius: 5px; border: 1.6px solid var(--muted); transition: .15s; }
.chk input:checked + span { background: var(--primary); border-color: var(--primary);
  box-shadow: inset 0 0 0 2px var(--card-solid); }
.chk input:indeterminate + span { background: linear-gradient(var(--primary), var(--primary)) center / 8px 2px no-repeat; border-color: var(--primary); }
.msgs { list-style: none; margin: 0; padding: 4px 6px; flex: 1; overflow: auto; scroll-behavior: smooth; }
.mi { position: relative; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px;
  padding: 10px 10px; border-radius: 11px; cursor: pointer; transition: background .15s, transform .15s;
  border: 1px solid transparent; animation: rise .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 18ms); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.mi:hover { background: var(--hover); }
.mi.on { background: var(--sel); border-color: var(--sel-line); }
.mi.unread::before { content: ""; position: absolute; left: 3px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.mi .chk { opacity: .55; }
.mi:hover .chk, .mi.picked .chk, .msgs.picking .chk { opacity: 1; }
.mi-main { min-width: 0; display: grid; gap: 2px; }
.mi-row { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.mi-from { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.mi-date { flex: none; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mi-subj { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.mi.unread .mi-from, .mi.unread .mi-subj { color: var(--text-hi); font-weight: 650; }
.mi-ico { display: inline-flex; gap: 4px; color: var(--muted); }
.mi-ico svg { width: 14px; height: 14px; }
.mi-ico .star { color: var(--amber); fill: var(--amber); }
.list-empty { display: grid; place-items: center; gap: 8px; text-align: center; padding: 60px 20px; color: var(--muted); }
.list-empty svg { width: 54px; height: 54px; stroke-width: 1.2; opacity: .6; }
.skel { height: 58px; margin: 4px 0; border-radius: 11px;
  background: linear-gradient(90deg, var(--raise) 0%, var(--hover) 40%, var(--raise) 80%) 0 0 / 300% 100%;
  animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -300% 0; } }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px; border-top: 1px solid var(--line); }
.pager button:disabled { opacity: .3; pointer-events: none; }

.reader { position: relative; display: flex; flex-direction: column; min-height: 0; overflow: hidden; view-transition-name: reader; }
.reader-empty { margin: auto; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 30px; color: var(--muted); }
.reader-empty svg { width: 120px; height: 90px; stroke-width: 1.4; color: var(--accent); opacity: .5;
  animation: floaty 5s ease-in-out infinite; }
.reader-empty p { margin: 0; font-size: 15px; color: var(--text); }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.msg { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.msg-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.msg-subject { font-size: 20px; line-height: 1.3; color: var(--text-hi); padding: 16px 20px 4px; letter-spacing: -.2px; word-break: break-word; }
.msg-meta { display: flex; align-items: center; gap: 12px; padding: 10px 20px 12px; }
.msg-who { flex: 1; min-width: 0; }
.msg-who > div { overflow: hidden; text-overflow: ellipsis; }
.msg-who b { color: var(--text-hi); }
.remote-note { display: flex; align-items: center; gap: 10px; margin: 0 20px 10px; padding: 8px 12px; border-radius: 10px;
  font-size: 12.5px; background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .25); }
.remote-note svg { color: var(--amber); width: 16px; height: 16px; }
.atts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px; }
.atts:not(:empty) { padding-bottom: 12px; }
.att { display: inline-flex; align-items: center; gap: 10px; max-width: 280px; padding: 7px 12px 7px 8px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--raise); color: var(--text); text-decoration: none; transition: .15s; }
.att:hover { border-color: var(--sel-line); transform: translateY(-1px); }
.att .ext { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; font: 800 9.5px var(--mono);
  color: #fff; background: linear-gradient(135deg, #2563eb, #0ea5e9); text-transform: uppercase; flex: none; }
.att .ext.pdf { background: linear-gradient(135deg, #dc2626, #f97316); }
.att .ext.img { background: linear-gradient(135deg, #16a34a, #22d3ee); }
.att .ext.zip { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.att .ext.doc { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.att .ext.xls { background: linear-gradient(135deg, #15803d, #22c55e); }
.att span { min-width: 0; display: grid; }
.att b { font-weight: 600; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att small { color: var(--muted); font-size: 11px; }
.msg-frame { flex: 1; min-height: 0; margin: 0 12px 12px; border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); }
.msg-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.move { position: relative; }
.menu { position: absolute; right: 0; top: 40px; z-index: 20; min-width: 200px; max-height: 320px; overflow: auto; padding: 6px;
  background: var(--card-solid); animation: pop .18s var(--ease); }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: none;
  border-radius: 8px; cursor: pointer; text-align: left; font-size: 13px; }
.menu button:hover { background: var(--hover); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.scrim { display: none; }
.only-narrow { display: none; }

/* ------------------------------------------------------------ yeni ileti */
.compose-wrap { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px;
  background: rgba(3, 8, 18, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .25s ease both; }
.compose-wrap.closing { animation: fade .2s ease reverse both; }
.compose { position: relative; width: min(820px, 100%); height: min(720px, 100%); display: flex; flex-direction: column;
  background: var(--card-solid); padding: 0; overflow: hidden; animation: sheet .38s var(--ease) both; }
.compose-wrap.closing .compose { animation: sheet .22s ease reverse both; }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet { from { opacity: 0; transform: translateY(40px) scale(.97); } }
.compose-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px 20px; }
.compose-head h3 { margin: 0; font-size: 16px; color: var(--text-hi); }
.field { display: flex; align-items: center; gap: 10px; padding: 2px 20px; border-bottom: 1px solid var(--line); }
.field label { width: 54px; flex: none; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.field input { border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 10px 0 !important; border-radius: 0; }
.field .link { white-space: nowrap; }
.from-field input { flex: 0 1 220px; }
.from-field span { white-space: nowrap; }
.fmt { display: flex; align-items: center; gap: 2px; padding: 6px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fmt button { display: grid; place-items: center; min-width: 32px; height: 30px; border-radius: 7px; border: 0; background: none;
  color: var(--muted); cursor: pointer; font-size: 14px; }
.fmt button:hover, .fmt button.on { background: var(--hover); color: var(--text-hi); }
.fmt .sep { width: 1px; height: 18px; background: var(--border); margin: 0 6px; }
.editor { flex: 1; overflow: auto; padding: 16px 20px; outline: none; line-height: 1.6; min-height: 120px; }
.editor:empty::before { content: "İletinizi yazın…"; color: var(--muted); }
.editor blockquote { margin: 8px 0; padding: 4px 0 4px 12px; border-left: 3px solid var(--border); color: var(--muted); }
.editor a { color: var(--accent); }
.c-atts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px; }
.c-atts:not(:empty) { padding-bottom: 10px; }
.c-att { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; border-radius: 9px; font-size: 12.5px;
  border: 1px solid var(--border); background: var(--raise); animation: pop .2s var(--ease); }
.c-att button { width: 22px; height: 22px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; }
.c-att button:hover { color: var(--fail-hi); background: rgba(239, 68, 68, .1); }
.c-att svg { width: 14px; height: 14px; }
.compose-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); }
.drop-hint { position: absolute; inset: 10px; display: none; place-items: center; border-radius: 12px; font-weight: 700; font-size: 16px;
  color: var(--accent); border: 2px dashed var(--sel-line); background: color-mix(in srgb, var(--card-solid) 88%, transparent); }
.compose.dragging .drop-hint { display: grid; }

/* bildirimler */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; font-size: 13.5px;
  background: var(--card-solid); border: 1px solid var(--border); box-shadow: var(--shadow); animation: toast .35s var(--ease) both; }
.toast.out { animation: toast .25s ease reverse both; }
.toast svg { color: var(--ok-hi); }
.toast.err svg { color: var(--fail-hi); }
@keyframes toast { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* ------------------------------------------------------------ sayfa geçişleri (View Transitions) */
::view-transition-group(*) { animation-duration: .42s; animation-timing-function: var(--ease); }
::view-transition-old(topbar), ::view-transition-new(topbar) { animation: none; }
html[data-vt="login"] ::view-transition-old(stage) { animation: vt-out-zoom .35s ease both; }
html[data-vt="login"] ::view-transition-new(stage) { animation: vt-in-rise .55s var(--ease) both; }
html[data-vt="logout"] ::view-transition-old(stage) { animation: vt-out-drop .35s ease both; }
html[data-vt="logout"] ::view-transition-new(stage) { animation: vt-in-zoom .5s var(--ease) both; }
html[data-vt="folder"] ::view-transition-old(list) { animation: vt-out-left .22s ease both; }
html[data-vt="folder"] ::view-transition-new(list) { animation: vt-in-right .4s var(--ease) both; }
html[data-vt="open"] ::view-transition-old(reader) { animation: vt-fade-out .18s ease both; }
html[data-vt="open"] ::view-transition-new(reader) { animation: vt-in-up .42s var(--ease) both; }
html[data-vt="theme"] ::view-transition-old(root) { animation: none; z-index: 1; }
html[data-vt="theme"] ::view-transition-new(root) { animation: vt-reveal .65s var(--ease) both; z-index: 2; }
html[data-vt="theme"] * { view-transition-name: none !important; }
@keyframes vt-out-zoom { to { opacity: 0; transform: scale(.94); filter: blur(6px); } }
@keyframes vt-out-drop { to { opacity: 0; transform: translateY(24px) scale(.98); filter: blur(4px); } }
@keyframes vt-in-rise { from { opacity: 0; transform: translateY(26px) scale(1.02); filter: blur(8px); } }
@keyframes vt-in-zoom { from { opacity: 0; transform: scale(1.05); filter: blur(6px); } }
@keyframes vt-out-left { to { opacity: 0; transform: translateX(-26px); } }
@keyframes vt-in-right { from { opacity: 0; transform: translateX(30px); } }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-in-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes vt-reveal { from { clip-path: circle(0 at var(--vt-x, 90%) var(--vt-y, 0)); } to { clip-path: circle(150vmax at var(--vt-x, 90%) var(--vt-y, 0)); } }
/* View Transitions desteklemeyen tarayıcılar için yedek */
.enter { animation: vt-in-rise .5s var(--ease) both; }

/* ------------------------------------------------------------ dar ekranlar */
@media (max-width: 1180px) {
  .app-view { grid-template-columns: 210px minmax(280px, 340px) minmax(0, 1fr); }
  .tbtn span { display: none; }
  .tbtn { padding: 0 9px; }
}
@media (max-width: 900px) {
  body { overflow: auto; }
  .topbar { padding: 8px 14px; }
  .logo { height: 32px; }
  .brand h1 { font-size: 16px; }
  .clock, .who { display: none !important; }
  .svc { margin-left: 0; padding-left: 10px; gap: 8px; }
  .svc-label { font-size: 10.5px; max-width: 54px; }
  .login-view { grid-template-columns: 1fr; padding: 18px 16px; align-content: start; }
  .login-hero { text-align: center; }
  .login-hero .env-anim, .feats { display: none; }
  .login-hero h2 { margin-top: 6px; }
  .app-view { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 10px; }
  .only-narrow { display: inline-grid; }
  .side { position: fixed; z-index: 25; left: 10px; top: 10px; bottom: 10px; width: 270px; background: var(--card-solid);
    transform: translateX(-120%); transition: transform .3s var(--ease); }
  .app-view.drawer .side { transform: none; }
  .app-view.drawer .scrim { display: block; position: fixed; inset: 0; z-index: 24; background: rgba(3, 8, 18, .45); animation: fade .2s; }
  .reader { display: none; }
  .app-view.reading .list-pane { display: none; }
  .app-view.reading .reader { display: flex; }
  .msg-subject { font-size: 17px; padding: 12px 14px 2px; }
  .msg-meta, .atts { padding-left: 14px; padding-right: 14px; }
  .remote-note { margin: 0 14px 10px; }
  .msg-frame { margin: 0 8px 8px; }
  .compose-wrap { padding: 0; }
  .compose { width: 100%; height: 100%; border-radius: 0; }
  .from-field span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
