/* Suya Mail paneli · tanıtım sayfasıyla aynı dil
   Suya paleti (#09090b, #e8402c, #f3eee6) · Geist · hap menü · yıldızlı gece */

:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: rgba(22, 18, 23, .72);
  --surface-solid: #141116;
  --raise: rgba(var(--fg-rgb), .05);
  --line: rgba(var(--fg-rgb), .08);
  --line-strong: rgba(var(--fg-rgb), .16);
  --text: #f4f2f0;
  --soft: rgba(244, 242, 240, .74);
  --muted: rgba(244, 242, 240, .5);
  --muted-2: rgba(244, 242, 240, .36);
  --paper: #f3eee6;
  --ink: #141116;
  --red: #e8402c;
  --red-hot: #ff5a43;
  --red-deep: #9e2416;
  --red-soft: rgba(232, 64, 44, .14);
  --red-ring: rgba(232, 64, 44, .28);
  --ok: #4ade80;   --ok-bg: rgba(74, 222, 128, .12);
  --warn: #fbbf24; --warn-bg: rgba(251, 191, 36, .1);
  --bad: #ff7a66;  --bad-bg: rgba(232, 64, 44, .16);
  --info: #a5b4ff; --info-bg: rgba(165, 180, 255, .1);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --edge: clamp(16px, 3vw, 36px);

  /* Tema değişkenleri (koyu varsayılan) */
  --hi: #fff;
  --fg-rgb: 255, 255, 255;
  --glass: rgba(14, 11, 14, .6);
  --glass-2: rgba(22, 18, 23, .7);
  --input-bg: rgba(0, 0, 0, .35);
  --input-bg-focus: rgba(0, 0, 0, .5);
  --sunken: rgba(0, 0, 0, .3);
  --menu-bg: #1d1a21;
  --tip-bg: #2a2630;
  --toolbar-bg: rgba(28, 26, 32, .92);
  --scheme: dark;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 14.5px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
::selection { background: var(--red); color: #fff; }
a { color: var(--red-hot); text-decoration: none; transition: color .2s; }
a:hover { color: #ff8a75; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -.035em; }
h2 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
code { font: 12.5px/1.45 var(--mono); }
small { font-size: 12px; }
.muted { color: var(--muted); }
.icon { width: 17px; height: 17px; flex: none; }

/* ------------------------------------------------------------------ Gece göğü */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 50% 125%, rgba(232, 64, 44, .42), transparent 60%),
    radial-gradient(800px 520px at 8% -10%, rgba(110, 28, 60, .42), transparent 65%),
    radial-gradient(700px 460px at 95% 0%, rgba(120, 22, 26, .32), transparent 60%),
    linear-gradient(180deg, #0c090c, #120a0d 60%, #1d0b0e); }
.app .sky { background:
    radial-gradient(900px 500px at 85% -15%, rgba(232, 64, 44, .2), transparent 60%),
    radial-gradient(800px 500px at 5% -20%, rgba(110, 28, 60, .32), transparent 65%),
    var(--bg); }
.glow { position: absolute; left: 50%; bottom: -35vw; width: 110vw; height: 55vw; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(255, 90, 67, .32), transparent); filter: blur(40px);
  animation: breathe 9s ease-in-out infinite; }
.app .glow { opacity: .35; }
@keyframes breathe { 50% { opacity: .55; transform: scale(1.06); } }
.stars { position: absolute; inset: 0; }
.stars i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: var(--o);
  animation: twinkle var(--t) ease-in-out infinite; animation-delay: var(--dl); }
.app .stars { opacity: .55; mask-image: linear-gradient(180deg, #000, transparent 70%); }
@keyframes twinkle { 50% { opacity: calc(var(--o) * .2); } }
body > *:not(.sky) { position: relative; z-index: 1; }

/* ------------------------------------------------------------------ Giriş animasyonları */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
[data-split] .wi { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
[data-split].in .wi { transform: none; }
[data-reveal] { opacity: 0; transform: translateY(22px); filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(.25s + var(--d, 0) * 110ms); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }

.page-body > * { opacity: 0; transform: translateY(24px); }
.loaded .page-body > * { animation: rise .9s var(--ease) forwards; }
.loaded .page-body > *:nth-child(1) { animation-delay: .12s; }
.loaded .page-body > *:nth-child(2) { animation-delay: .22s; }
.loaded .page-body > *:nth-child(3) { animation-delay: .32s; }
.loaded .page-body > *:nth-child(4) { animation-delay: .42s; }
.loaded .page-body > *:nth-child(n+5) { animation-delay: .5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ Üst menü */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px var(--edge);
  transition: transform .6s var(--ease);
}
.topbar.hide { transform: translateY(-120%); }
.topbar.plain { position: fixed; inset: 0 0 auto; display: flex; }
.brand {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%;
  height: 46px; padding: 0 16px 0 7px; border-radius: 999px; color: var(--text);
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.brand:hover { color: var(--text); }
.brand-text { display: grid; min-width: 0; line-height: 1.15; }
.brand-text strong { font-weight: 500; font-size: 15px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mark {
  width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 25%, var(--red-hot), var(--red) 55%, var(--red-deep));
  box-shadow: 0 0 22px -4px rgba(232, 64, 44, .9);
}
.mark .icon { width: 16px; height: 16px; }
.mark.lg { width: 64px; height: 64px; }
.mark.lg .icon { width: 28px; height: 28px; }

.pillnav {
  position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pillnav a {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px;
  border-radius: 999px; font-size: 14px; color: var(--soft); white-space: nowrap; transition: color .3s;
}
.pillnav a .icon { width: 15px; height: 15px; opacity: .8; }
.pillnav a:hover { color: var(--hi); }
.pillnav a.on { color: var(--hi); }
.pill-indicator {
  position: absolute; top: 5px; left: 0; height: 36px; width: 0; border-radius: 999px; opacity: 0;
  background: var(--red); box-shadow: 0 8px 26px -8px rgba(232, 64, 44, .95);
  transition: transform .6s var(--ease), width .6s var(--ease), opacity .3s;
}
.count { min-width: 20px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 500; text-align: center; line-height: 18px; background: var(--hi); color: var(--bg); }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.user { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 13px; }
.iconbtn { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.iconbtn:hover { background: var(--red-soft); color: var(--red-hot); }
.iconbtn .icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ İçerik */
.content { width: min(1200px, 100% - var(--edge) * 2); margin: 0 auto; padding: 40px 0 90px; }
.page-head { margin-bottom: 34px; }
.eyebrow { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: .98; letter-spacing: -.05em; }

.card {
  background: var(--surface); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 28px; padding: 28px; margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px -40px rgba(0, 0, 0, .7);
}
.card.flush { padding: 0; overflow: hidden; }
.card.flush > .card-head { padding: 20px 28px; margin: 0; border-bottom: 1px solid var(--line); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; }
.card-head h2 { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.card-head > a:not(.btn) { font-size: 13px; padding: 6px 14px; border-radius: 999px; background: var(--raise); color: var(--soft); }
.card-head > a:not(.btn):hover { background: var(--red); color: #fff; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cols > .card { margin-bottom: 18px; }
.empty { color: var(--muted); padding: 26px 0; margin: 0; text-align: center; }
.card.flush .empty { padding: 60px 24px; }
.row-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.row-line:last-child { border-bottom: 0; padding-bottom: 0; }
a.row-line { transition: padding .4s var(--ease); }
a.row-line:hover { color: var(--hi); padding-left: 8px; }

.steps {
  background: radial-gradient(600px 260px at 100% 0%, rgba(232, 64, 44, .3), transparent 70%), var(--surface);
  box-shadow: inset 0 0 0 1px rgba(232, 64, 44, .25);
}
.steps h2 { font-size: 26px; font-weight: 400; letter-spacing: -.035em; }
.steps ol { list-style: none; counter-reset: s; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.steps li { counter-increment: s; display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px; background: var(--raise); color: var(--soft); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 12px var(--mono); padding: 3px 9px; border-radius: 999px; background: rgba(var(--fg-rgb), .08); }
.steps li.done { color: var(--muted-2); text-decoration: line-through; }
.steps li.done::before { content: "✓"; background: var(--ok-bg); color: var(--ok); }
.steps li:not(.done):first-of-type, .steps li.done + li:not(.done) { background: var(--paper); color: var(--ink); }
.steps li:not(.done):first-of-type::before, .steps li.done + li:not(.done)::before { background: var(--red); color: #fff; }
.steps li:not(.done):first-of-type a, .steps li.done + li:not(.done) a { color: var(--ink); text-decoration: underline; }
.danger-zone { box-shadow: inset 0 0 0 1px rgba(232, 64, 44, .28); }

/* ------------------------------------------------------------------ Tablolar */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font: 500 11px var(--mono); color: var(--muted-2); text-transform: uppercase; letter-spacing: .1em; }
tbody tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td strong { font-weight: 500; color: var(--text); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.right { text-align: right; }
table.dns td { font-size: 13px; }
table.dns td.value { max-width: 440px; }

.mail-list td { padding: 15px 28px; }
.mail-list td:first-child { padding-left: 28px; }
.mail-list td:last-child { padding-right: 28px; }
.mail-list tbody tr { transition: background .2s; }
.mail-list tbody tr:hover { background: rgba(var(--fg-rgb), .035); }
.mail-list a { display: block; color: var(--soft); }
.mail-list a:hover { color: var(--hi); }
.mail-list .who { width: 28%; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-list .when { width: 150px; text-align: right; white-space: nowrap; font: 12px var(--mono); color: var(--muted-2); }
.mail-list tr.unread a { color: var(--hi); font-weight: 500; }
.mail-list tr.unread .who { position: relative; }
.mail-list tr.unread .who::before { content: ""; position: absolute; left: 12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }

/* ------------------------------------------------------------------ Rozetler */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: var(--ok-bg); }
.pill.ok::before { box-shadow: 0 0 8px currentColor; }
.pill.warn { color: var(--warn); background: var(--warn-bg); }
.pill.bad { color: var(--bad); background: var(--bad-bg); }
.pill.info { color: var(--info); background: var(--info-bg); }
.pill.muted { color: var(--muted); background: var(--raise); }

/* ------------------------------------------------------------------ Uyarılar */
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; margin-bottom: 18px; font-weight: 500; font-size: 14px; animation: rise .7s var(--ease) both; }
.alert.success { color: var(--ok); background: var(--ok-bg); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .2); }
.alert.error { color: #ffb4a8; background: var(--bad-bg); box-shadow: inset 0 0 0 1px rgba(232, 64, 44, .35); }
.alert.warn { color: var(--warn); background: var(--warn-bg); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .18); }
.dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }
.dot.live { background: var(--ok); box-shadow: 0 0 0 4px rgba(74, 222, 128, .15); }
.hint { color: var(--muted); font-size: 13px; margin: 16px 0 0; padding: 14px 18px; border-radius: 18px; background: var(--raise); }

/* ------------------------------------------------------------------ Formlar */
label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--soft); }
label.check { flex-direction: row; align-items: center; gap: 10px; color: var(--text); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--input-bg); border: 0; border-radius: 16px; padding: 13px 16px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow .25s, background .25s;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:hover, select:hover, textarea:hover { box-shadow: inset 0 0 0 1px rgba(var(--fg-rgb), .26); }
input:focus, select:focus, textarea:focus { outline: none; background: var(--input-bg-focus); box-shadow: inset 0 0 0 1px var(--red), 0 0 0 5px var(--red-ring); }
select { appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888390' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
select option { background: var(--surface-solid); }
input[type=checkbox] { appearance: none; width: 22px; height: 22px; padding: 0; flex: none; cursor: pointer; border-radius: 7px; display: grid; place-items: center; }
input[type=checkbox]:checked { background: var(--red); box-shadow: none; }
input[type=checkbox]:checked::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
textarea { resize: vertical; line-height: 1.65; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.span2 { grid-column: span 2; }
.form-actions { grid-column: span 2; display: flex; justify-content: flex-end; }
.input-suffix { display: flex; }
.input-suffix input { border-radius: 16px 0 0 16px; }
.input-suffix span { display: flex; align-items: center; padding: 0 16px; white-space: nowrap; color: var(--muted); background: var(--raise); border-radius: 0 16px 16px 0; box-shadow: inset 0 0 0 1px var(--line-strong); }
.inline-form { display: flex; gap: 10px; margin-top: 20px; }
.search input { width: 280px; padding: 10px 18px; border-radius: 999px; font-size: 14px; }

/* ------------------------------------------------------------------ Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 14.5px var(--sans); white-space: nowrap;
  background: rgba(var(--fg-rgb), .06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform .4s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn:hover { background: rgba(var(--fg-rgb), .12); color: var(--hi); }
.btn:active { transform: scale(.97); }
.btn .icon { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(2px); }
.btn.primary { background: var(--red); color: #fff; box-shadow: 0 12px 34px -14px rgba(232, 64, 44, .95); }
.btn.primary:hover { background: var(--red-hot); }
.btn.ghost { background: rgba(var(--fg-rgb), .06); }
.btn.danger { color: var(--bad); box-shadow: inset 0 0 0 1px rgba(232, 64, 44, .5); background: transparent; }
.btn.danger:hover { background: var(--red); color: #fff; box-shadow: none; }
.btn.small, .btn.sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn.lg { height: 54px; font-size: 16px; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--red-hot); cursor: pointer; font: inherit; }

/* ------------------------------------------------------------------ DNS kopyalama */
.copy { display: flex; align-items: center; gap: 8px; }
.copy code { word-break: break-all; padding: 5px 10px; border-radius: 10px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); }
.copy-btn { flex: none; cursor: pointer; border: 0; border-radius: 999px; padding: 4px 11px; font: 500 11px var(--sans); background: var(--raise); color: var(--muted); transition: background .2s, color .2s; }
.copy-btn:hover { background: var(--red); color: #fff; }
td > code { color: var(--red-hot); font-weight: 500; }

/* ------------------------------------------------------------------ Kota */
.meter { margin: 6px 0 24px; }
.meter:last-child { margin-bottom: 4px; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; color: var(--soft); }
.meter-head strong { font-weight: 400; font-size: 30px; letter-spacing: -.04em; color: var(--hi); font-variant-numeric: tabular-nums; }
.meter-bar { height: 8px; border-radius: 999px; background: rgba(var(--fg-rgb), .07); overflow: hidden; }
.meter-fill { width: 0; min-width: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff8a5c, var(--red)); box-shadow: 0 0 16px rgba(232, 64, 44, .65); transition: width 1.6s var(--ease) .3s; }
.loaded .meter-fill { width: var(--w); min-width: 6px; }
.meter-fill.hot { background: linear-gradient(90deg, var(--red), #ff2d55); }

/* ------------------------------------------------------------------ E-posta */
.msg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.msg-head h2 { font-size: 30px; font-weight: 400; letter-spacing: -.04em; line-height: 1.1; }
.msg-actions { display: flex; gap: 8px; }
dl.meta { display: grid; grid-template-columns: 70px 1fr; gap: 7px 14px; margin: 0 0 20px; padding: 16px 20px; border-radius: 20px; background: var(--sunken); font-size: 13.5px; }
dl.meta dt { color: var(--muted-2); }
dl.meta dd { margin: 0; word-break: break-word; color: var(--soft); }
.msg-body { width: 100%; min-height: 260px; border: 0; border-radius: 20px; background: #fff; }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.att { padding: 6px 14px; border-radius: 999px; background: var(--raise); font-size: 13px; }

.compose { display: flex; flex-direction: column; gap: 18px; }
.from-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; }
.addr { display: flex; align-items: center; gap: 8px; }
.addr input { flex: 1; }
.addr select { flex: 1.3; }
.addr span { color: var(--muted); }
details summary { cursor: pointer; display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--raise); color: var(--soft); font-size: 13px; list-style: none; margin-bottom: 12px; }
details summary::-webkit-details-marker { display: none; }
details label { margin-bottom: 12px; }
.compose-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.compose-foot .muted { font: 12.5px var(--mono); }

/* ------------------------------------------------------------------ Giriş ve tek başına sayfalar */
.gate { min-height: 100svh; display: grid; place-items: center; padding: 110px var(--edge) 60px; }
.gate-inner { display: grid; justify-items: center; gap: 22px; width: min(820px, 100%); text-align: center; }
.gate-inner .lead { max-width: 460px; }
.gate-title { font-size: clamp(54px, 9vw, 128px); line-height: .92; letter-spacing: -.055em; }
.gate-title em { font-style: normal; color: var(--red-hot); }
.lead { color: var(--soft); font-size: 16px; margin: 0; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--soft); }
.login-card {
  width: min(440px, 100%); display: grid; gap: 16px; padding: 26px; border-radius: 30px; text-align: left; margin-top: 6px;
  background: var(--glass-2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 100px -40px rgba(0, 0, 0, .9);
}
.login-card .alert { margin: 0; }

/* ------------------------------------------------------------------ Mobil */
@media (max-width: 1080px) {
  .topbar { grid-template-columns: auto 1fr; }
  .pillnav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; overflow-x: auto; scrollbar-width: none; }
  .pillnav::-webkit-scrollbar { display: none; }
  .brand-text small { display: none; }
}
@media (max-width: 760px) {
  .content { padding-top: 24px; }
  .cols, .grid, .from-row { grid-template-columns: 1fr; }
  .span2, .form-actions { grid-column: auto; }
  .inline-form { flex-direction: column; }
  .search, .search input { width: 100%; }
  .card { padding: 20px; border-radius: 24px; overflow-x: auto; }
  .card.flush > .card-head { flex-direction: column; align-items: stretch; padding: 18px 20px; }
  .mail-list td { padding: 13px 16px; }
  .mail-list td:first-child { padding-left: 22px; }
  .mail-list td:last-child { padding-right: 16px; }
  .mail-list .who { width: auto; max-width: 140px; }
  .mail-list .when { display: none; }
  .hide-sm { display: none; }
  .btn.primary.sm { width: 38px; padding: 0; }
  .msg-head { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .page-body > * { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ İki adımlı giriş */
.gate-title.sm { font-size: clamp(48px, 7.4vw, 104px); }
.lead.demo { font-size: 13px; color: var(--warn); background: var(--warn-bg); padding: 8px 16px; border-radius: 999px; }
.eyebrow-pill .icon { width: 14px; height: 14px; color: var(--red-hot); }
.code-input { font: 500 30px var(--mono); letter-spacing: .5em; text-align: center; padding: 16px 12px 16px calc(12px + .5em); }
.resend-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; }
.resend-row form { margin: 0; }
.resend-row .linkbtn { font-size: 14px; color: var(--soft); }
.resend-row .linkbtn:hover:not(:disabled) { color: var(--hi); }
.resend-row .linkbtn:disabled { color: var(--muted-2); cursor: default; }
a.linkbtn { color: var(--soft); }

/* ------------------------------------------------------------------ Kullanıcı tablosu işlemleri */
.row-actions { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; position: relative; }
.row-actions form { margin: 0; }
details.pop { position: relative; }
details.pop summary { margin: 0; height: 38px; align-items: center; padding: 0 16px; }
details.pop[open] summary { background: var(--red); color: #fff; }
.pop-body {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 300px; display: grid; gap: 10px; padding: 14px;
  border-radius: 20px; background: var(--surface-solid); box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -20px rgba(0, 0, 0, .8);
  animation: rise .35s var(--ease) both;
}
.top-gap { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ Bildirimler / PWA */
.bell-orb {
  width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 25%, var(--red-hot), var(--red) 55%, var(--red-deep));
  box-shadow: 0 0 40px -6px rgba(232, 64, 44, .8);
}
.bell-orb .icon { width: 24px; height: 24px; animation: ring 3.2s var(--ease) infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 70%, 100% { transform: none; } 74% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 86% { transform: rotate(8deg); } 92% { transform: rotate(-4deg); } }
.push-card { background: radial-gradient(700px 260px at 0% 0%, rgba(232, 64, 44, .22), transparent 70%), var(--surface); }
.push-hero { display: flex; align-items: center; gap: 18px; }
.push-hero h2 { font-size: 24px; font-weight: 400; letter-spacing: -.03em; margin-bottom: 4px; }
.push-hero p { margin: 0; }
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); }
.push-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.push-actions .btn[hidden] { display: none; }
.ios-guide, .denied-guide { margin-top: 20px; padding: 18px 20px; border-radius: 20px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); }
.ios-guide p, .denied-guide p { margin: 0 0 8px; }
.ios-guide ol { margin: 6px 0 10px; padding-left: 20px; display: grid; gap: 8px; color: var(--soft); }
.inline-icon { display: inline-flex; vertical-align: -3px; color: var(--info); }
.inline-icon .icon { width: 16px; height: 16px; }
.prefs { display: grid; gap: 14px; }
.prefs .hint { margin: -4px 0 0; }
.quiet { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions.left { justify-content: flex-start; grid-column: auto; }
input[type=time] { color-scheme: var(--scheme, dark); }
.device { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.device:last-child { border-bottom: 0; }
.device-icon { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--raise); color: var(--soft); }
.device.mine .device-icon { background: var(--red-soft); color: var(--red-hot); }
.device-info { flex: 1; display: grid; min-width: 0; }
.device-info strong { font-weight: 500; }
.device-info small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device .iconbtn { font-size: 20px; }
.push-promo { display: flex; align-items: center; gap: 16px; color: var(--text); text-decoration: none; transition: transform .4s var(--ease), box-shadow .3s;
  background: radial-gradient(600px 200px at 0% 50%, rgba(232, 64, 44, .25), transparent 70%), var(--surface); }
.push-promo:hover { color: var(--text); transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(232, 64, 44, .4); }
.push-promo div { flex: 1; display: grid; gap: 2px; }
.push-promo strong { font-weight: 500; font-size: 16px; }
.push-promo .bell-orb { width: 46px; height: 46px; }
.push-promo .bell-orb .icon { width: 20px; height: 20px; }
.count.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } }
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 100; width: min(360px, calc(100vw - 40px));
  display: grid; gap: 2px; padding: 14px 18px 14px 52px; border-radius: 20px; color: var(--text); text-decoration: none;
  background: rgba(22, 18, 23, .92) url("/static/icons/icon-192.png") 14px 50% / 26px no-repeat; backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -20px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(20px) scale(.97); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.toast.in { opacity: 1; transform: none; }
.toast:hover { color: var(--hi); }
.toast strong { font-weight: 500; }
.toast span { color: var(--soft); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Yüklü uygulama (standalone): iPhone çentiği ve alt çubuk için güvenli alan */
@media (display-mode: standalone) {
  .topbar { padding-top: max(14px, env(safe-area-inset-top)); }
  .content { padding-bottom: max(90px, env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
  .quiet { grid-template-columns: 1fr; }
  .push-hero { align-items: flex-start; }
  .toast { right: 12px; bottom: 12px; }
}

/* ==================================================================
   Outlook düzeni (mail.suyam.com.tr)
   üst bar · sol ray · klasörler · liste · okuma bölmesi
   ================================================================== */
body.ol {
  --ol-top: #141217; --ol-rail: #110f13; --ol-folders: #131116; --ol-list: #17151a; --ol-read: #1c1a20;
  --ol-line: rgba(var(--fg-rgb), .07); --ol-hover: rgba(var(--fg-rgb), .045); --ol-sel: rgba(232, 64, 44, .15);
  height: 100vh; height: 100dvh; overflow: hidden; margin: 0;
  display: grid; grid-template-columns: 60px 1fr; grid-template-rows: 54px 1fr;
  grid-template-areas: "top top" "rail main";
  background: var(--ol-rail); font-size: 14px;
}
body.ol > * { position: relative; z-index: auto; }

/* ---------------- Üst bar */
.ol-top { grid-area: top; display: flex; align-items: center; gap: 16px; padding: 0 14px 0 12px; background: var(--ol-top); border-bottom: 1px solid var(--ol-line); }
.ol-brand { display: flex; align-items: center; gap: 10px; width: 236px; flex: none; color: var(--text); }
.ol-brand:hover { color: var(--hi); }
.ol-brand .mark { width: 30px; height: 30px; }
.ol-brand-text { display: grid; line-height: 1.15; min-width: 0; }
.ol-brand-text strong { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.ol-brand-text small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-search { flex: 1; max-width: 620px; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-radius: 10px;
  background: rgba(var(--fg-rgb), .06); box-shadow: inset 0 0 0 1px transparent; transition: background .2s, box-shadow .2s; }
.ol-search:focus-within { background: var(--input-bg-focus); box-shadow: inset 0 0 0 1px var(--red), 0 0 0 4px var(--red-ring); }
.ol-search .icon { width: 16px; height: 16px; color: var(--muted); }
.ol-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none !important; font-size: 14px; }
.ol-search kbd { font: 11px var(--mono); color: var(--muted-2); padding: 1px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--ol-line); }
.ol-top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.ol-top-actions .iconbtn { width: 36px; height: 36px; }
.demo-pill { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; color: var(--warn); background: var(--warn-bg); }
details.me { position: relative; }
details.me summary { list-style: none; cursor: pointer; }
details.me summary::-webkit-details-marker { display: none; }
details.me summary .avatar { width: 34px; height: 34px; transition: box-shadow .2s; }
details.me[open] summary .avatar, details.me summary:hover .avatar { box-shadow: 0 0 0 3px var(--red-ring); }
.me-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 260px; padding: 8px; border-radius: 16px; background: var(--menu-bg);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -20px rgba(0, 0, 0, .9); animation: rise .25s var(--ease) both; }
.me-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; border-bottom: 1px solid var(--ol-line); margin-bottom: 6px; }
.me-head div { display: grid; min-width: 0; }
.me-head strong { font-weight: 600; }
.me-head small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar.lg { width: 42px; height: 42px; font-size: 15px; }
.me-menu a, .me-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.me-menu a:hover, .me-menu button:hover { background: var(--ol-hover); color: var(--hi); }
.me-menu form { margin: 0; }

/* ---------------- Sol ray */
.ol-rail { grid-area: rail; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; background: var(--ol-rail); border-right: 1px solid var(--ol-line); }
.rail-item { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); transition: background .2s, color .2s; }
.rail-item .icon { width: 20px; height: 20px; }
.rail-item:hover { background: var(--ol-hover); color: var(--hi); }
.rail-item.on { background: var(--ol-sel); color: var(--red-hot); }
.rail-item.on::before { content: ""; position: absolute; left: -8px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
.rail-label { position: absolute; left: 54px; top: 50%; translate: 0 -50%; z-index: 60; white-space: nowrap; pointer-events: none;
  padding: 5px 10px; border-radius: 8px; font-size: 12.5px; color: #fff; background: var(--tip-bg); opacity: 0; transition: opacity .15s; }
.rail-item:hover .rail-label { opacity: 1; }

/* ---------------- Ana alan */
.ol-main { grid-area: main; min-height: 0; min-width: 0; overflow: hidden; background: var(--ol-read); }
.ol-mail { height: 100%; display: grid; grid-template-columns: 236px minmax(320px, 400px) minmax(0, 1fr); }

/* Klasörler */
.ol-folders { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; padding: 14px 10px; background: var(--ol-folders); border-right: 1px solid var(--ol-line); }
.new-mail { height: 40px; border-radius: 12px; justify-content: flex-start; padding: 0 16px; }
.ol-group { display: grid; gap: 1px; }
.ol-group small { padding: 0 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.ol-folder { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--soft); transition: background .15s, color .15s; min-width: 0; }
.ol-folder .icon { width: 17px; height: 17px; opacity: .85; }
.ol-folder span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-folder:hover { background: var(--ol-hover); color: var(--hi); }
.ol-folder.on { background: var(--ol-sel); color: var(--hi); font-weight: 500; }
.ol-folder.on .icon { color: var(--red-hot); opacity: 1; }
.ol-folder .n { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); }
.ol-folder .n.strong { color: var(--red-hot); font-weight: 600; }
.ol-folder.addr { font-size: 13px; }
.dot-av { width: 8px; height: 8px; flex: none; border-radius: 50%; background: hsl(var(--h) 60% 55%); margin: 0 4px; }
.ol-quota { margin-top: auto; display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: rgba(var(--fg-rgb), .035); font-size: 12px; }
.ol-quota-row { display: flex; justify-content: space-between; color: var(--soft); }
.ol-quota .meter-bar { height: 5px; }
.fab { display: none; }

/* Liste */
.ol-list { display: flex; flex-direction: column; min-height: 0; background: var(--ol-list); border-right: 1px solid var(--ol-line); }
.ol-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; }
.ol-list-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-list-head form { margin: 0; }
.ol-tabs { display: flex; gap: 14px; flex: none; }
.ol-tabs a { padding: 4px 0; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; }
.ol-tabs a:hover { color: var(--hi); }
.ol-tabs a.on { color: var(--hi); border-color: var(--red); }
.ol-searchinfo { display: flex; gap: 8px; padding: 0 16px 10px; font-size: 12.5px; color: var(--muted); }
.ol-items { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.ol-day { position: sticky; top: 0; z-index: 2; padding: 8px 16px 6px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--ol-list); }
.ol-item { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 10px 14px 11px 16px; color: var(--text); border-top: 1px solid var(--ol-line); transition: background .12s; }
.ol-item:hover { background: var(--ol-hover); color: var(--text); }
.ol-item.sel { background: var(--ol-sel); }
.ol-item.unread::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); }
.ol-item.sel::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(232, 64, 44, .35); pointer-events: none; }
.ol-item-main { min-width: 0; display: grid; gap: 1px; }
.ol-item .r1, .ol-item .r2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ol-item .who { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; color: var(--soft); }
.ol-item time { flex: none; font-size: 12px; color: var(--muted); }
.ol-item .subj { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; color: var(--soft); }
.ol-item .r3 { font-size: 13px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-item.unread .who { color: var(--hi); font-weight: 600; }
.ol-item.unread .subj { color: var(--red-hot); font-weight: 600; }
.ol-item.unread time { color: var(--red-hot); font-weight: 500; }
.ol-item .clip .icon { width: 14px; height: 14px; color: var(--muted); }
.ol-item .pill { font-size: 11px; padding: 1px 8px; }
.av { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  background: hsl(var(--h) 45% 42%); }
.av.lg { width: 44px; height: 44px; font-size: 15px; }
.ol-empty { display: grid; justify-items: center; gap: 10px; padding: 60px 20px; color: var(--muted); text-align: center; }
.ol-empty .icon { width: 40px; height: 40px; opacity: .5; }

/* Okuma bölmesi */
.ol-read { min-width: 0; min-height: 0; overflow-y: auto; background: var(--ol-read); }
.ol-read-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 30px; text-align: center; }
.ol-read-empty .env { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 90, 67, .28), rgba(232, 64, 44, .06) 70%); color: var(--red-hot); }
.ol-read-empty .env .icon { width: 40px; height: 40px; }
.ol-read-empty h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.ol-read-empty p { margin: 0; }
.keys { margin-top: 14px !important; font-size: 12px; color: var(--muted-2); }
kbd { display: inline-block; min-width: 20px; padding: 1px 6px; margin: 0 1px; border-radius: 5px; font: 11px var(--mono); text-align: center; color: var(--soft); background: rgba(var(--fg-rgb), .06); box-shadow: inset 0 -1px 0 rgba(var(--fg-rgb), .08); }
.ol-message { padding-bottom: 30px; animation: pane-in .35s var(--ease) both; }
@keyframes pane-in { from { opacity: 0; transform: translateY(6px); } }
.ol-toolbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 2px; padding: 8px 14px; background: var(--toolbar-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ol-line); }
.ol-toolbar form { margin: 0; }
.ol-toolbar .back { display: none; }
.tb { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px; border: 0; border-radius: 8px; background: none; color: var(--soft); font: inherit; font-size: 13.5px; cursor: pointer; transition: background .15s, color .15s; }
.tb .icon { width: 16px; height: 16px; }
.tb:hover { background: var(--ol-hover); color: var(--hi); }
.tb.danger { color: var(--bad); }
.tb.danger:hover { background: var(--bad-bg); }
.tb.confirming, .btn.confirming { background: var(--red) !important; color: #fff !important; }
.tb-sep { width: 1px; height: 20px; margin: 0 6px; background: var(--ol-line); }
.ol-subject { padding: 22px 28px 12px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.ol-sender { display: flex; align-items: flex-start; gap: 12px; padding: 6px 28px 14px; }
.ol-sender-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ol-sender-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.ol-sender-row strong { font-weight: 600; font-size: 15px; }
.ol-sender-row .addr { color: var(--muted); font-size: 13px; }
.ol-recips { color: var(--muted); font-size: 13px; }
.ol-when { display: grid; justify-items: end; gap: 6px; flex: none; color: var(--muted); font-size: 12.5px; }
.ol-atts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 28px 12px; }
.att-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(var(--fg-rgb), .05); box-shadow: inset 0 0 0 1px var(--ol-line); font-size: 13px; }
.att-chip .icon { width: 15px; height: 15px; color: var(--muted); }
.att-chip small { color: var(--muted); }
.ol-body { padding: 4px 28px; }
.msg-frame { display: block; width: 100%; min-height: 300px; border: 0; border-radius: 12px; background: #fff; }

/* Yeni e-posta (okuma bölmesinde) */
.ol-compose { min-height: 100%; display: flex; flex-direction: column; animation: pane-in .35s var(--ease) both; }
.ol-compose .ol-toolbar { gap: 8px; }
.ol-compose .grow { flex: 1; }
.quota-note { font-size: 12px; }
.cf-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 24px; border-bottom: 1px solid var(--ol-line); }
.cf-row label { width: 64px; flex: none; color: var(--muted); font-size: 13.5px; }
.cf-row input, .cf-row select { flex: 1; min-width: 0; padding: 12px 0; border-radius: 0; background: none; box-shadow: none !important; font-size: 14.5px; }
.cf-row select { flex: 0 1 auto; width: auto; max-width: 50%; padding-right: 28px; background-position: right 4px center; }
.cf-from input { width: auto; }
.cf-from { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.cf-from #cf-name { flex: 1; max-width: 220px; color: var(--soft); }
.cf-from #cf-from, .cf-from input[name=from_local] { flex: 0 1 140px; text-align: right; }
.cf-from span { color: var(--muted); }
.cf-toggle { flex: none; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.cf-toggle:hover { color: var(--hi); background: var(--ol-hover); }
.cf-row.subject input { font-size: 18px; font-weight: 500; }
.cf-body { flex: 1; min-height: 320px; padding: 18px 24px; border-radius: 0; background: none; box-shadow: none !important; resize: none; font-size: 15px; line-height: 1.65; }

/* Ayar sayfaları */
.ol-page { height: 100%; overflow-y: auto; padding: 28px 36px 60px; }
.ol-page > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.ol-page-head h1 { font-size: 28px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 22px; }
.ol-page .card { background: var(--ol-list); backdrop-filter: none; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--ol-line); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat-mini { display: grid; gap: 4px; }
.stat-mini small { color: var(--muted); font-size: 13px; }
.stat-mini strong { font-size: 32px; font-weight: 500; letter-spacing: -.03em; }

/* Bildirim mesajı */
.ol-flash { position: fixed; left: 50%; bottom: 24px; z-index: 90; translate: -50% 0; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 12px; background: #23202a; color: #fff; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line-strong), 0 20px 50px -10px rgba(0, 0, 0, .8);
  animation: flash-in .4s var(--ease) both, flash-out .4s ease 6s forwards; }
.ol-flash .icon { width: 16px; height: 16px; color: var(--ok); }
.ol-flash.err { background: #3a1611; box-shadow: inset 0 0 0 1px rgba(232, 64, 44, .5); }
@keyframes flash-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes flash-out { to { opacity: 0; transform: translateY(16px); visibility: hidden; } }

/* ---------------- Orta genişlik */
@media (max-width: 1240px) {
  .ol-mail { grid-template-columns: 210px minmax(300px, 360px) minmax(0, 1fr); }
  .ol-brand { width: auto; }
}
@media (max-width: 1080px) {
  .ol-mail { grid-template-columns: 64px minmax(300px, 360px) minmax(0, 1fr); }
  .ol-folders { padding: 12px 8px; align-items: center; }
  .ol-folders .ol-group small, .ol-folders .ol-folder span, .ol-folders .ol-quota, .ol-folders .ol-group:nth-of-type(2) { display: none; }
  .new-mail { width: 44px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .ol-folder { justify-content: center; position: relative; padding: 10px; }
  .ol-folder .n { position: absolute; top: 2px; right: 0; font-size: 10px; }
}

/* ---------------- Telefon */
@media (max-width: 760px) {
  body.ol { grid-template-columns: 1fr; grid-template-rows: 54px 1fr 58px; grid-template-areas: "top" "main" "rail"; }
  .ol-brand-text, .ol-search kbd, .demo-pill { display: none; }
  .ol-brand { width: auto; }
  .ol-rail { flex-direction: row; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--ol-line); }
  .rail-item.on::before { left: 12px; right: 12px; top: -6px; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .rail-label { display: none; }
  .ol-mail { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .ol-folders { flex-direction: row; align-items: center; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--ol-line); scrollbar-width: none; }
  .ol-folders::-webkit-scrollbar { display: none; }
  .ol-folders .new-mail, .ol-folders .ol-quota, .ol-group small { display: none; }
  .ol-folders .ol-group { display: flex; gap: 6px; }
  .ol-folders .ol-group:nth-of-type(2) { display: flex; }
  .ol-folders .ol-folder span { display: inline; }
  .ol-folder { flex: none; padding: 7px 12px; border-radius: 999px; background: rgba(var(--fg-rgb), .05); }
  .ol-folder .n { position: static; font-size: 12px; }
  .ol-list { border-right: 0; }
  .ol-read { display: none; }
  .ol-mail.reading .ol-folders, .ol-mail.reading .ol-list { display: none; }
  .ol-mail.reading { grid-template-rows: minmax(0, 1fr); }
  .ol-mail.reading .ol-read { display: block; }
  .ol-toolbar .back { display: grid; }
  .tb span { display: none; }
  .tb { padding: 0 10px; }
  .ol-subject { padding: 18px 18px 10px; font-size: 19px; }
  .ol-sender { padding: 4px 18px 12px; }
  .ol-sender-row .addr { display: none; }
  .ol-atts, .ol-body { padding-left: 12px; padding-right: 12px; }
  .cf-row { padding: 0 16px; }
  .cf-from #cf-name { display: none; }
  .fab { position: fixed; right: 16px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 30; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: #fff;
    background: var(--red); box-shadow: 0 14px 30px -8px rgba(232, 64, 44, .9); }
  .fab .icon { width: 22px; height: 22px; }
  .ol-mail.reading .fab { display: none; }
  .ol-page { padding: 20px 14px 40px; }
  .stat-row { grid-template-columns: 1fr; }
  .ol-flash { bottom: 74px; }
}


/* ==================================================================
   Açık tema (yalnızca posta paneli). data-theme: dark | light | system
   ================================================================== */
html[data-theme="light"] body.ol {
  color-scheme: light;
  --scheme: light;
  --bg: #f6f5f3;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --raise: rgba(20, 17, 22, .05);
  --line: rgba(20, 17, 22, .09);
  --line-strong: rgba(20, 17, 22, .16);
  --text: #1d1a20;
  --soft: rgba(29, 26, 32, .8);
  --muted: rgba(29, 26, 32, .58);
  --muted-2: rgba(29, 26, 32, .44);
  --hi: #141116;
  --fg-rgb: 20, 17, 22;
  --red-hot: #c9361f;
  --red-soft: rgba(232, 64, 44, .1);
  --red-ring: rgba(232, 64, 44, .2);
  --ok: #15803d;   --ok-bg: rgba(22, 163, 74, .1);
  --warn: #b45309; --warn-bg: rgba(245, 158, 11, .14);
  --bad: #c0321f;  --bad-bg: rgba(232, 64, 44, .1);
  --info: #3f4fc0; --info-bg: rgba(63, 79, 192, .08);
  --glass: rgba(255, 255, 255, .8);
  --glass-2: rgba(255, 255, 255, .9);
  --input-bg: #ffffff;
  --input-bg-focus: #ffffff;
  --sunken: #f1efec;
  --menu-bg: #ffffff;
  --tip-bg: #1d1a20;
  --toolbar-bg: rgba(255, 255, 255, .92);
  --ol-top: #ffffff; --ol-rail: #efedea; --ol-folders: #f8f7f5; --ol-list: #ffffff; --ol-read: #f4f3f1;
  --ol-line: rgba(20, 17, 22, .08); --ol-hover: rgba(20, 17, 22, .045); --ol-sel: rgba(232, 64, 44, .09);
}
@media (prefers-color-scheme: light) {
  html[data-theme="system"] body.ol {
  color-scheme: light;
  --scheme: light;
  --bg: #f6f5f3;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --raise: rgba(20, 17, 22, .05);
  --line: rgba(20, 17, 22, .09);
  --line-strong: rgba(20, 17, 22, .16);
  --text: #1d1a20;
  --soft: rgba(29, 26, 32, .8);
  --muted: rgba(29, 26, 32, .58);
  --muted-2: rgba(29, 26, 32, .44);
  --hi: #141116;
  --fg-rgb: 20, 17, 22;
  --red-hot: #c9361f;
  --red-soft: rgba(232, 64, 44, .1);
  --red-ring: rgba(232, 64, 44, .2);
  --ok: #15803d;   --ok-bg: rgba(22, 163, 74, .1);
  --warn: #b45309; --warn-bg: rgba(245, 158, 11, .14);
  --bad: #c0321f;  --bad-bg: rgba(232, 64, 44, .1);
  --info: #3f4fc0; --info-bg: rgba(63, 79, 192, .08);
  --glass: rgba(255, 255, 255, .8);
  --glass-2: rgba(255, 255, 255, .9);
  --input-bg: #ffffff;
  --input-bg-focus: #ffffff;
  --sunken: #f1efec;
  --menu-bg: #ffffff;
  --tip-bg: #1d1a20;
  --toolbar-bg: rgba(255, 255, 255, .92);
  --ol-top: #ffffff; --ol-rail: #efedea; --ol-folders: #f8f7f5; --ol-list: #ffffff; --ol-read: #f4f3f1;
  --ol-line: rgba(20, 17, 22, .08); --ol-hover: rgba(20, 17, 22, .045); --ol-sel: rgba(232, 64, 44, .09);
  }
}
/* Açık temada gölgeler ve birkaç yüzey */
html[data-theme="light"] body.ol .ol-page .card, html[data-theme="light"] body.ol .ol-item.sel::after { box-shadow: inset 0 0 0 1px var(--ol-line); }
html[data-theme="light"] body.ol .ol-page .card { box-shadow: 0 1px 2px rgba(20, 17, 22, .05), inset 0 0 0 1px var(--ol-line); }
html[data-theme="light"] body.ol .me-menu { box-shadow: 0 20px 50px -12px rgba(20, 17, 22, .25), inset 0 0 0 1px var(--ol-line); }
html[data-theme="light"] body.ol .msg-frame { box-shadow: 0 0 0 1px var(--ol-line); }
html[data-theme="light"] body.ol .av { background: hsl(var(--h) 50% 46%); }
@media (prefers-color-scheme: light) {
  html[data-theme="system"] body.ol .ol-page .card { box-shadow: 0 1px 2px rgba(20, 17, 22, .05), inset 0 0 0 1px var(--ol-line); }
  html[data-theme="system"] body.ol .me-menu { box-shadow: 0 20px 50px -12px rgba(20, 17, 22, .25), inset 0 0 0 1px var(--ol-line); }
  html[data-theme="system"] body.ol .msg-frame { box-shadow: 0 0 0 1px var(--ol-line); }
}

/* Tema seçici (profil menüsü) */
.theme-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: 6px 0; border-radius: 12px; background: var(--raise); }
.theme-pick button { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border: 0; border-radius: 9px; background: none; color: var(--soft); font: inherit; font-size: 12px; cursor: pointer; text-align: center; }
.theme-pick button .icon { width: 17px; height: 17px; }
.theme-pick button:hover { color: var(--hi); background: none; }
.theme-pick button.on { background: var(--ol-list); color: var(--hi); box-shadow: 0 1px 3px rgba(0, 0, 0, .15), inset 0 0 0 1px var(--ol-line); }
.me-menu .theme-label { padding: 6px 10px 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }

/* Resend bağlantısı */
.connect-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.connect-hero p { margin: 4px 0 0; }
.connect-hero form { margin: 0; }
ol.howto { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 10px; color: var(--soft); font-size: 14px; }
ol.howto li { line-height: 1.6; }
ol.howto .copy { margin-top: 6px; }
.events { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.events code { font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: var(--raise); }
.grid1 { display: grid; gap: 14px; }
.row-line form { margin: 0; }
