:root {
  --bg: #070709;
  --bg-2: #101014;
  --card: #16161c;
  --line: rgba(255,255,255,.08);
  --text: #f4f1ee;
  --muted: #8d8894;
  --red: #e10600;
  --red-2: #ff3b30;
  --ok: #3dd68c;
  --warn: #f5c15a;
  --shadow: 0 24px 80px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html {
  -webkit-tap-highlight-color: transparent;
}
button, a, input, select, textarea, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}
button:focus, a:focus, .ico-btn:focus, .btn:focus, .skin-toggle:focus {
  outline: none;
}
button:focus-visible, a:focus-visible, .ico-btn:focus-visible, .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(126, 246, 255, .35);
}
html { height: 100%; }
body { min-height: 100vh; }
body {
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(225,6,0,.22), transparent 50%),
    radial-gradient(900px 400px at 0% 100%, rgba(225,6,0,.08), transparent 45%),
    var(--bg);
  color: var(--text);
}

a { color: inherit; }
.muted { color: var(--muted); }
.err { color: #ff6b6b; }
.ok { color: var(--ok); }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrap > .site-foot { margin-top: auto; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 8px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800; font-size: 22px; letter-spacing: -.03em;
  text-decoration: none;
}
.mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--red-2), #7a0000);
  box-shadow: 0 0 24px rgba(225,6,0,.45);
}
.brand-logo {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; display: block; flex-shrink: 0;
  box-shadow: 0 0 22px rgba(225,6,0,.5);
}
.nav-links { display: flex; gap: 10px; align-items: center; }

.btn, button.btn, input[type=submit].btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 16px; border-radius: 12px; text-decoration: none;
  font-weight: 600; font-size: 14px;
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, border-color .16s ease, background .16s ease;
}
.btn:hover, button.btn:hover, input[type=submit].btn:hover {
  transform: translateY(-2px);
  border-color: rgba(225,6,0,.4);
}
.btn:active, button.btn:active, input[type=submit].btn:active {
  transform: translateY(1px) scale(.97);
}
.btn.primary {
  background: linear-gradient(180deg, var(--red-2), var(--red));
  border-color: transparent; box-shadow: 0 8px 28px rgba(225,6,0,.28);
}
.btn.ghost { background: transparent; }
.btn.danger { background: #2a1113; border-color: rgba(225,6,0,.35); color: #ff8a80; }
.btn.small { padding: 8px 12px; font-size: 13px; }

.hero { padding: 72px 0 40px; }
.hero h1 {
  font-family: "Syne", sans-serif; font-size: clamp(40px, 7vw, 72px);
  line-height: .95; margin: 0 0 18px; max-width: 14ch;
}
.hero p { max-width: 52ch; color: var(--muted); font-size: 18px; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%), var(--card);
  border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-family: Inter, system-ui, sans-serif; }
.footer { color: var(--muted); padding: 48px 0 28px; font-size: 13px; }

.app {
  display: grid; grid-template-columns: 248px 1fr; min-height: 100vh;
}
.app-col { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.app-col .main { flex: 1; }
.app-col .app-foot { margin-top: auto; }
.side {
  display: flex; flex-direction: column;
  padding: 22px 16px; border-right: 1px solid var(--line);
  background: rgba(0,0,0,.25);
}
.side-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.side-logout { display: none; }
.side nav { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; flex: 1; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; padding: 10px 12px; border-radius: 10px; color: var(--muted);
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.side-link svg { width: 18px; height: 18px; flex: 0 0 auto; }
.side-link.active, .side-link:hover { background: rgba(255,255,255,.05); color: var(--text); }
.side-link.side-out { margin-top: 8px; }
.side-user { display: none; }
.side-tron {
  margin-top: auto; padding-top: 16px;
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); text-decoration: none;
}
.side-tron .brand-logo { width: 36px; height: 36px; }
.side-tron b {
  display: block; color: var(--text); font-size: 15px; font-weight: 800;
  letter-spacing: -.03em; line-height: 1.15;
}
.side-tron small { display: block; font-size: 11px; letter-spacing: .03em; }
.side-tron:hover { color: var(--text); }
.main { padding: 28px 32px 24px; flex: 1; }
.top-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.top-actions form { margin: 0; }

.app-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 32px 22px; border-top: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}
.app-foot-brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: Inter, system-ui, sans-serif;
}
.app-foot-brand b {
  display: block; font-size: 18px; font-weight: 800; letter-spacing: -.03em;
}
.app-foot-brand span { display: block; color: var(--muted); font-size: 12px; }
.app-foot-tg {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); text-decoration: none; font-size: 13px;
}
.app-foot-tg:hover { color: var(--text); }
.app-foot-tg svg { width: 16px; height: 16px; flex: 0 0 auto; }
.site-foot { padding-left: 0; padding-right: 0; background: transparent; }
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.top h1 { margin: 0; font-family: Inter, system-ui, sans-serif; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.top-inbox { display: grid; gap: 8px; min-width: 0; }
.top-inbox .muted { margin: 0; }
.inbox-note { max-width: min(360px, 100%); }
.profile-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start;
}
.profile-grid > .card, .profile-col > .card { margin: 0; }
.profile-col { display: grid; gap: 16px; }
.profile-account { display: grid; gap: 16px; }
.profile-head {
  display: flex; align-items: center; gap: 14px;
}
.profile-tg {
  padding-top: 16px; border-top: 1px solid var(--line);
  display: grid; gap: 10px;
}
.profile-tg h3 { margin: 0; }
.profile-tg-ok {
  display: inline-flex; align-items: center; gap: 8px;
  color: #7ee0a8; font-weight: 600; font-size: 14px;
}
.profile-tg-ok svg { width: 18px; height: 18px; }
.profile-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #ff2d24, #c40000);
  box-shadow: 0 0 18px rgba(225,6,0,.4);
  color: #fff; font-weight: 800; font-size: 18px;
}
.profile-head-meta { flex: 1; min-width: 0; }
.profile-head-meta strong { display: block; font-size: 18px; margin-bottom: 4px; }
.prof-folders { display: grid; gap: 8px; margin: 0 0 14px; }
.prof-folder {
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
  padding: 8px 8px 8px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}
.prof-folder-name {
  flex: 1; min-width: 0;
  font-weight: 700; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prof-folder-count {
  flex: 0 0 auto;
  height: 28px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  color: #cfcfcf;
  font-size: 12px; font-weight: 700;
  white-space: nowrap;
}
.prof-folder .btn.small { height: 34px; padding: 0 10px; font-size: 12px; }
.prof-folder-form {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  margin: 0;
}
.prof-folder-form input {
  flex: 1; min-width: 0; height: 34px; padding: 0 12px;
}
.prof-folder-new {
  display: flex; align-items: center; gap: 8px;
  margin: 0;
}
.prof-folder-new input {
  flex: 1; min-width: 0; height: 42px; padding: 0 12px;
}
.prof-folder-new .btn { height: 42px; padding: 0 16px; flex: 0 0 auto; }
.form.spam-add {
  display: flex; align-items: center; gap: 8px;
  max-width: none; margin: 0;
}
.form.spam-add select {
  flex: 0 0 168px; height: 42px; padding: 0 12px;
}
.form.spam-add input {
  flex: 1; min-width: 0; height: 42px;
}
.form.spam-add .btn { height: 42px; padding: 0 16px; flex: 0 0 auto; }
.tm-modal {
  position: fixed; inset: 0; z-index: 90;
  display: none; align-items: center; justify-content: center;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
}
.tm-modal.on { display: flex; }
.tm-modal-bg {
  position: absolute; inset: 0; border: 0; padding: 0;
  background: rgba(0,0,0,.62); cursor: pointer;
}
.tm-modal-card {
  position: relative; z-index: 1;
  width: min(420px, 100%);
  max-width: 100%;
  min-width: 0;
  max-height: min(88vh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px 20px 18px;
  border-radius: 20px;
  background: #121216;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.16) transparent;
}
.tm-modal-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.tm-modal-top h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.tm-modal-card .form { margin: 0; max-width: none; }
.tm-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.domain-main { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.domain-ok {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  color: #7ee0a8;
  background: rgba(46, 160, 90, .16);
  border: 1px solid rgba(46, 160, 90, .4);
  box-shadow: 0 0 14px rgba(46, 160, 90, .18);
}
.domain-ok svg { width: 20px; height: 20px; }
.domain-card.is-ready { border-color: rgba(46, 160, 90, .28); }
.domain-mine { display: grid; gap: 12px; margin-top: 6px; }
.domain-mine .domain-card {
  margin: 0; padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}
.domain-mine .domain-row {
  padding: 0; border: 0; background: transparent; box-shadow: none;
  align-items: flex-start; flex-wrap: wrap; gap: 10px;
}
.ns-box {
  margin-top: 14px; padding: 12px;
  border-radius: 16px;
  background: #0b0b10;
  border: 1px dashed rgba(255,255,255,.16);
  display: grid; gap: 8px;
}
.ns-box-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
}
.ns-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}
.ns-host {
  flex: 1; min-width: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ns-row .ico-btn .ico-done { display: none; }
.ns-row .ico-btn.ok { background: #1f8a4c; border-color: transparent; }
.ns-row .ico-btn.ok .ico-copy { display: none; }
.ns-row .ico-btn.ok .ico-done { display: block; }

.find-bar {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px; padding: 0 14px;
  height: 46px; border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}
.find-bar svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.find-input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  color: var(--text); padding: 0; font: inherit; height: 100%;
}
.find-input:focus { outline: none; box-shadow: none; }
.find-empty { margin: 8px 0 0; }
.mbox[hidden], .row[hidden], .mail-item[hidden], .find-empty[hidden], .pager[hidden] { display: none !important; }
.pager {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center;
  margin: 16px 0 0;
}
.pager-btn {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--text); font: 700 13px Inter, system-ui, sans-serif; cursor: pointer;
}
.pager-btn:hover:not(:disabled) { border-color: rgba(225,6,0,.4); }
.pager-btn.on {
  background: linear-gradient(180deg, #ff2d24, #c40000);
  border-color: transparent; color: #fff;
}
.pager-btn:disabled { opacity: .35; cursor: default; }
.form { display: grid; gap: 12px; max-width: 520px; }
label { font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 13px; border-radius: 12px;
  border: 1px solid var(--line); background: #0d0d12; color: var(--text);
  font: inherit;
}
.flash {
  padding: 12px 14px; border-radius: 12px; margin-bottom: 16px;
  border: 1px solid var(--line);
}
.flash.error { background: #2a1113; color: #ffb4ae; }
.flash.success { background: #10261b; color: #b7f0d0; }

.folder-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: -6px 0 16px;
}
.folder-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px;
  border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font: 700 13px Inter, system-ui, sans-serif;
}
.folder-chip-name { min-width: 0; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-chip small {
  color: var(--muted); font-weight: 700; font-size: 11px;
}
.folder-chip:hover { border-color: rgba(225,6,0,.4); color: #fff; }
.folder-chip.on {
  padding-right: 6px;
  background: linear-gradient(180deg, #ff2d24, #c40000);
  border-color: transparent; color: #fff;
}
.folder-chip.on small { color: rgba(255,255,255,.78); }
.folder-ico {
  display: none;
  width: 24px; height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #151518;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
}
.folder-chip.on .folder-ico { display: grid; }
.folder-ico svg { width: 14px; height: 14px; }
.folder-ico:hover { transform: scale(1.06); background: #fff; color: #000; }
.folder-choice { display: grid; gap: 8px; }
.folder-choice[hidden], #folder-form[hidden] { display: none !important; }
.folder-pick {
  display: flex; align-items: center; gap: 12px;
  width: 100%; margin: 0; padding: 12px;
  border-radius: 16px; cursor: pointer; text-align: left;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03); color: #fff;
}
.folder-pick:hover { border-color: rgba(225,6,0,.4); background: rgba(225,6,0,.08); }
.folder-pick.is-danger:hover { border-color: rgba(225,6,0,.45); background: rgba(225,6,0,.12); }
.folder-pick-ico {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; color: #ff6b63;
  background: rgba(225,6,0,.12); border: 1px solid rgba(225,6,0,.28);
}
.folder-pick-ico svg { width: 18px; height: 18px; }
.folder-pick-meta { display: grid; gap: 2px; min-width: 0; }
.folder-pick-meta strong { font-size: 14px; }
.folder-pick-meta small { color: var(--muted); font-size: 12px; font-weight: 500; }
.folder-add {
  color: var(--muted); border-style: dashed;
}
.folder-limit { color: var(--muted); font-size: 12px; font-weight: 600; }
.folder-empty { margin-top: 8px; }
#count-field .muted { font-size: 12px; font-weight: 500; }
.create-in {
  margin: 0 0 14px; padding: 10px 12px;
  border-radius: 12px;
  background: rgba(225,6,0,.1);
  border: 1px solid rgba(225,6,0,.28);
  color: #ffb4ae; font-size: 13px; font-weight: 600;
}
.mbox-in-folder { color: #ffb4ae; border-color: rgba(225,6,0,.28); background: rgba(225,6,0,.1); }
.tm-menu {
  position: fixed; z-index: 120;
  min-width: 220px; max-width: min(280px, calc(100vw - 16px));
  padding: 6px;
  border-radius: 14px;
  background: #16161c;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.tm-menu[hidden] { display: none !important; }
.tm-menu-label {
  padding: 8px 10px 4px;
  color: var(--muted); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.tm-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; margin: 0; padding: 10px 10px;
  border: 0; border-radius: 10px;
  background: transparent; color: #fff;
  font: 600 13px Inter, system-ui, sans-serif;
  text-align: left; cursor: pointer;
}
.tm-menu button:hover { background: rgba(255,255,255,.06); }
.tm-menu button.on { color: #ff8a80; }
.tm-menu button.danger { color: #ff8a80; }
.tm-menu button:disabled { opacity: .4; cursor: default; }
.tm-menu-split {
  height: 1px; margin: 4px 8px;
  background: rgba(255,255,255,.08);
}
.tm-modal-card.is-bulk { width: min(520px, 100%); }
.bulk-creds {
  display: grid; gap: 8px; margin: 0 0 16px;
  max-height: min(48vh, 360px); overflow: auto;
}
.bulk-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 10px 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
}
.bulk-meta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bulk-meta strong {
  font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bulk-meta span { color: var(--muted); font-size: 12px; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.mbox-list { display: grid; gap: 10px; }
.mbox {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 16px;
  border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
}
.mbox-more {
  position: absolute; top: 8px; right: 10px; z-index: 3;
  width: 32px; height: 22px; padding: 0;
  border: 0; border-radius: 8px;
  background: transparent; color: #8d8d8d;
  cursor: pointer;
}
.mbox-more svg { width: 20px; height: 20px; display: block; margin: 0 auto; }
.mbox-more:hover { color: #fff; background: rgba(255,255,255,.06); }
.mbox form { margin: 20px 0 0; position: relative; z-index: 2; }
.mbox > .ico-btn { position: relative; z-index: 2; margin-top: 20px; }
.mbox-cover {
  position: absolute; inset: 0; z-index: 1;
  border-radius: inherit;
}
.mbox-col { flex: 1; min-width: 0; display: grid; gap: 8px; padding: 10px 4px 10px 0; }
.mbox-main {
  min-width: 0; color: inherit;
  display: grid; gap: 6px;
}
.mbox-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  width: max-content; max-width: 100%;
}
.mbox-mail {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  min-width: 0; padding: 0;
  border: 0; background: transparent; border-radius: 0;
  color: inherit;
  font: 700 15px Inter, system-ui, sans-serif;
}
.mbox-mail svg {
  width: 22px; height: 22px; flex: 0 0 auto;
  color: #ff6b63;
}
.mbox-mail span {
  min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mbox-mail:hover { color: #fff; background: transparent; }
.mbox-note-wrap {
  position: relative; z-index: 2;
  flex: 0 0 auto; width: max-content; max-width: min(280px, 70%);
}
.mbox-note {
  display: inline-flex; align-items: center; max-width: 100%;
  margin: 0; padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: #fff;
  font: 700 12px Inter, system-ui, sans-serif;
  cursor: pointer;
}
.mbox-note span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mbox-note.is-empty {
  min-width: 26px; justify-content: center; padding: 5px 9px;
  color: var(--muted); font-weight: 700;
}
.mbox-note:hover { color: #fff; border-color: rgba(255,255,255,.28); }
.mbox-note-wrap input {
  width: min(220px, 100%); height: 28px; padding: 0 10px;
  border-radius: 999px; font-size: 12px;
}
.mbox-kind {
  display: inline-flex; align-items: center;
  height: 28px; padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--muted); font-size: 12px; font-weight: 700;
  flex: 0 0 auto;
}
.box-note {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; margin: 0 0 18px;
  padding: 10px 10px 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
}
.box-note-meta { flex: 1; min-width: 0; }
.box-note-meta input {
  width: 100%; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: var(--text);
  font: 600 14px "IBM Plex Mono", ui-monospace, monospace;
}
.box-note-meta input:focus { outline: none; box-shadow: none; }
.box-note-meta input::placeholder { color: var(--muted); font-weight: 500; font-family: Inter, system-ui, sans-serif; }
.mbox-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.mbox-stat {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.mbox-stat i { width: 8px; height: 8px; border-radius: 50%; }
.mbox-stat.unread {
  color: #b7f0d0;
  background: rgba(61, 214, 140, .12);
  border: 1px solid rgba(61, 214, 140, .28);
}
.mbox-stat.unread i { background: #3dd68c; box-shadow: 0 0 10px rgba(61, 214, 140, .7); }
.mbox-stat.read {
  color: #ffb4ae;
  background: rgba(225, 6, 0, .12);
  border: 1px solid rgba(225, 6, 0, .28);
}
.mbox-stat.read i { background: #e10600; box-shadow: 0 0 10px rgba(225, 6, 0, .55); }
.list { display: grid; gap: 10px; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); text-decoration: none;
}
.row { transition: border-color .16s ease, transform .16s ease; }
.row:hover { border-color: rgba(255,255,255,.16); transform: translateY(-1px); }
.mail-row { align-items: flex-start; gap: 12px; }
.mail-row .tm-mail-dot { margin: 7px 0 0; flex: 0 0 auto; }
.mail-row-main { flex: 1; min-width: 0; overflow: hidden; }
.mail-row-main strong {
  display: block; font-size: 15px; margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  word-break: normal;
}
.mail-row-main span {
  display: block; color: var(--muted); font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  word-break: normal;
}
.mail-row-date {
  flex: 0 0 auto; color: #e10600; font-size: 12px; font-weight: 600;
  text-align: right; white-space: nowrap; line-height: 1.35;
}
.mail-pick-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 12px; padding: 10px 12px;
  border-radius: 14px;
  background: rgba(225, 6, 0, .1);
  border: 1px solid rgba(225, 6, 0, .28);
}
.mail-pick-bar[hidden] { display: none !important; }
.mail-pick-bar span { font-size: 13px; font-weight: 700; }
.mail-check {
  flex: 0 0 auto;
  width: 20px; height: 20px; margin: 0;
  display: grid; place-items: center; cursor: pointer;
}
.mail-check input {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; margin: 0; padding: 0;
  border-radius: 6px; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.28);
  background: #141418;
  display: grid; place-items: center;
}
.mail-check input:checked {
  border-color: #e10600;
  background: #e10600;
}
.mail-check input:checked::after {
  content: "";
  width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}
.find-bar .mail-check { margin-right: 2px; }
.mail-item { position: relative; }
.mail-item.is-picked .mail-row {
  border-color: rgba(225, 6, 0, .35);
  background: rgba(225, 6, 0, .08);
}
.mail-item .mail-row {
  align-items: center;
  margin: 0;
  padding: 12px 54px 12px 12px;
}
.mail-row-go {
  flex: 1; min-width: 0;
  display: flex; align-items: flex-start; gap: 12px;
  text-decoration: none; color: inherit;
}
.mail-item:has(.mail-item-tools > :nth-child(2)) .mail-row {
  padding-right: 92px;
}
.mail-item-tools {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 4px;
  margin: 0; z-index: 2;
}
.mail-item-tools form { margin: 0; }
.trash-ico {
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: #8a8a8a;
  transition: background .16s ease, color .16s ease;
}
.trash-ico svg { width: 18px; height: 18px; }
.trash-ico:hover {
  background: rgba(225,6,0,.16); color: #ff6b63;
}
.trash-ico-ok:hover {
  background: rgba(46, 160, 90, .16); color: #7ee0a8;
}
.mail-view-bar form { margin: 0; }
.mail-view-tools {
  display: flex; align-items: center; gap: 10px; margin-left: auto;
}
.mail-view-tools .trash-ico {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #cfcfcf;
}
.mail-view-tools .trash-ico:hover {
  background: rgba(225,6,0,.16);
  border-color: rgba(225,6,0,.4);
  color: #ff6b63;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--muted);
}
.dot.on { background: var(--red-2); box-shadow: 0 0 10px var(--red-2); }
.badge {
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: var(--muted);
}
.creds {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  background: #0b0b10; border: 1px dashed rgba(255,255,255,.16);
  padding: 16px; border-radius: 14px; display: grid; gap: 8px;
}
.letter { display: grid; gap: 16px; }
.letter iframe, .mail-frame {
  width: 100%; height: 160px; min-height: 160px; border: 0; border-radius: 14px;
  background: #f3f3f4; display: block; overflow: hidden;
  overflow-anchor: none;
}
.mail-view { padding: 4px 0 8px; }
.mail-view-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.box-creds {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 0 0 18px;
  min-width: 0;
}
.box-creds > * { min-width: 0; }
.box-creds:has(.cred-row:only-child) { grid-template-columns: 1fr; }
.tm-modal-card .box-creds { grid-template-columns: 1fr; }
.cred-row {
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
  padding: 12px 10px 12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
}
.cred-row .ico-btn { flex: 0 0 auto; }
.cred-ico {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; color: #ff6b63;
  background: rgba(225,6,0,.12); border: 1px solid rgba(225,6,0,.28);
}
.cred-ico svg { width: 18px; height: 18px; }
.cred-meta { flex: 1; min-width: 0; text-align: left; }
.cred-meta small { display: block; color: #8d8d8d; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.cred-meta strong {
  display: block; font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.js-reveal .ico-eye-off { display: none; }
.js-reveal.on .ico-eye { display: none; }
.js-reveal.on .ico-eye-off { display: block; }
.pre {
  white-space: pre-wrap; word-break: break-word;
  font-family: "IBM Plex Sans", sans-serif; line-height: 1.55;
}
.auth-box { width: min(440px, calc(100% - 32px)); margin: 72px auto; }
body.auth { min-height: 100vh; }
.auth-wrap {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 88px 16px 32px; gap: 20px;
}
.auth-home { position: absolute; top: 22px; left: 24px; }
.auth-card {
  width: min(420px, 100%);
  text-align: center;
  padding: 36px 32px 28px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(12,12,16,.8);
  box-shadow: 0 28px 80px rgba(0,0,0,.5), 0 0 80px rgba(225,6,0,.14);
}
.auth-logo {
  width: 78px; height: 78px; border-radius: 50%;
  object-fit: cover; display: block;
  margin: 0 auto 16px;
  box-shadow: 0 0 36px rgba(225,6,0,.55);
}
.auth-card .lp-kicker { margin-bottom: 10px; }
.auth-card h1 {
  margin: 0 0 8px; font-size: 28px; font-weight: 800; letter-spacing: -.03em;
}
.auth-card > .muted { margin: 0 auto 6px; max-width: 34ch; line-height: 1.45; }
.auth-card .flash { text-align: left; margin: 18px 0 0; }
.auth-card .form { text-align: left; max-width: none; margin: 22px 0 18px; }
.auth-card .btn { width: 100%; height: 46px; border-radius: 14px; font-size: 15px; }
.auth-card input:focus {
  outline: none;
  border-color: rgba(225,6,0,.55);
  box-shadow: 0 0 0 3px rgba(225,6,0,.15);
}
.auth-switch { margin: 0; color: #9b9b9b; font-size: 14px; }
.auth-switch a, .auth-bot { color: #ff6b63; text-decoration: none; font-weight: 600; }
.auth-switch a:hover, .auth-bot:hover { color: #fff; }
.auth-bot { font-size: 13px; color: #8d8d8d; font-weight: 500; }
@media (max-width: 640px) {
  .auth-home { left: 16px; top: 16px; font-size: 18px; }
  .auth-home .brand-logo { width: 34px; height: 34px; }
  .auth-wrap { padding: 76px 14px 24px; }
  .auth-card { padding: 28px 18px 22px; }
  .auth-logo { width: 68px; height: 68px; }
}

.letter-empty { color: var(--muted); padding: 8px 0; }

.ico-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05);
  color: #fff; text-decoration: none; font: 600 13px Inter, system-ui, sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, border-color .16s ease, background .16s ease;
}
.ico-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.ico-btn:hover {
  border-color: rgba(225,6,0,.45); background: rgba(225,6,0,.08);
  transform: translateY(-2px);
}
.ico-btn:active { transform: translateY(1px) scale(.97); }
.ico-btn-red {
  border: 0; background: linear-gradient(180deg, #ff2d24, #c40000);
  box-shadow: 0 8px 22px rgba(225,6,0,.35);
}
.ico-btn-red:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 28px rgba(225,6,0,.5);
}
.ico-btn-sm { height: 36px; padding: 0 12px; font-size: 12px; border-radius: 10px; }
.ico-btn-lg { height: 48px; padding: 0 18px; font-size: 15px; }
.ico-only { width: 42px; padding: 0; }
.ico-btn.ok { background: #1f8a4c; border-color: transparent; transform: none; }
.ico-btn.spinning svg { animation: spin .7s linear infinite; }

#preloader {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; align-content: center; gap: 14px;
  background: #070707; color: #fff; font-weight: 800; letter-spacing: .08em;
  transition: opacity .45s ease, visibility .45s ease;
}
#preloader.off { opacity: 0; visibility: hidden; }
.pre-logo {
  width: 168px; height: 168px;
  border: 0; border-radius: 0; background: transparent;
  object-fit: contain; display: block;
  box-shadow: none;
  animation: preFade 1.1s ease-in-out infinite;
}
@keyframes pulse {
  50% { transform: scale(1.06); }
}
@keyframes preFade {
  50% { transform: scale(1.04); opacity: .88; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes mailPulse {
  50% { transform: scale(1.08); opacity: .75; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

.tron-logo { color: #fff; }
.glass {
  background: rgba(16,16,16,.62);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sat-page {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.sat-wrap {
  flex: 1;
  display: grid; place-items: center; align-content: center;
  gap: 14px; text-align: center;
  padding: 48px 20px 24px;
}
.sat-logo {
  width: 96px; height: 96px; object-fit: contain;
  margin-bottom: 8px;
}
.sat-wrap h1 {
  margin: 0; font-size: clamp(28px, 6vw, 44px); letter-spacing: -.04em;
}
.sat-text {
  margin: 0; max-width: 42ch; color: var(--muted); font-size: 16px; line-height: 1.5;
}
.sat-text strong { color: #fff; }
.sat-go { margin-top: 8px; height: 46px; padding: 0 22px; }
.sat-foot {
  margin: 0; padding: 20px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}
.sat-offer {
  margin: 0 0 10px; color: #cfcfcf; font-size: 15px; line-height: 1.45;
}
.sat-offer a { color: #ff6b63; text-decoration: none; font-weight: 700; }
.sat-offer a:hover { color: #fff; }
.sat-copy { margin: 0; color: #7a7a7a; font-size: 13px; }
.sat-copy a { color: #ff6b63; text-decoration: none; font-weight: 600; }
.sat-copy a:hover { color: #fff; }
.sat-foot a { color: #ff6b63; text-decoration: none; font-weight: 600; }
.sat-foot a:hover { color: #fff; }
body.lp {
  font-family: Inter, system-ui, sans-serif;
  min-height: 100vh;
  background: #070707;
  overflow-x: hidden;
}
.lp-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(700px 420px at 12% 88%, rgba(225,6,0,.22), transparent 60%),
    radial-gradient(640px 420px at 92% 42%, rgba(225,6,0,.28), transparent 58%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    #070707;
  background-size: auto, auto, 56px 56px, 56px 56px, auto;
}
.lp-wrap { position: relative; z-index: 1; width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 64px; }
.lp-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0 10px;
}
.lp-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 22px; letter-spacing: -.03em; text-decoration: none;
}
.tron-badge {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff4d45, #c10000 62%, #7a0000);
  box-shadow: 0 0 22px rgba(225,6,0,.55);
  display: grid; place-items: center;
}
.tron-badge svg { width: 18px; height: 18px; }
.lp-brand .brand-logo { width: 42px; height: 42px; }
.lp-foot-brand .brand-logo { width: 46px; height: 46px; }
.lp-nav-right { display: flex; align-items: center; gap: 8px; }
.lp-tg-chip {
  font-size: 13px; color: #cfcfcf; text-decoration: none;
  padding: 8px 12px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.lp-cabinet {
  font-size: 13px; color: #fff; text-decoration: none; font-weight: 700;
  padding: 8px 12px; border-radius: 10px;
  background: linear-gradient(180deg, #ff2a22, #d10000);
  box-shadow: 0 8px 18px rgba(225,6,0,.28);
}
.lp-kicker {
  color: #e10600; font-size: 12px; font-weight: 700; letter-spacing: .22em;
  margin: 0 0 16px;
}
.lp-orb { position: relative; height: 420px; display: grid; place-items: center; }
.lp-orb-fixed {
  position: fixed; right: -40px; top: 18%; width: 420px; height: 420px;
  opacity: .55; pointer-events: none; z-index: 0;
}
.lp-orb-ring {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  border: 1px solid rgba(225,6,0,.18);
  box-shadow: 0 0 80px 18px rgba(225,6,0,.18);
}
.lp-orb-core {
  width: 188px; height: 188px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ff5a52, #c40000 58%, #6d0000);
  box-shadow: 0 0 60px 10px rgba(225,6,0,.55), inset 0 -18px 30px rgba(0,0,0,.25);
  display: grid; place-items: center;
}
.lp-orb-core svg { width: 92px; height: 92px; }

.tm-hero { text-align: center; padding: 36px 0 8px; }
.tm-title { font-size: clamp(28px, 4vw, 40px); margin: 0 0 22px; letter-spacing: -.03em; }
.tm-save-form { display: none; }
.tm-addr {
  width: min(640px, 100%); margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  background: rgba(10,10,10,.78);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px; padding: 10px 10px 10px 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.tm-addr input {
  flex: 1; border: 0; background: transparent; color: #fff; min-width: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 18px; padding: 10px 0;
  text-align: center;
}
.tm-note { color: #9b9b9b; max-width: 52ch; margin: 18px auto 28px; line-height: 1.5; }
.tm-ttl { display: none; }

.tm-box {
  border-radius: 22px; overflow: hidden; min-height: 340px;
}
.tm-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(80,10,10,.7), rgba(20,6,6,.55));
}
.tm-toolbar > span {
  color: #f3f3f3; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.tg-banner {
  display: flex; align-items: center; gap: 12px;
  margin: 12px 16px 4px; padding: 12px 14px;
  border-radius: 16px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, rgba(225,6,0,.3), rgba(16,8,8,.92));
  border: 1px solid rgba(225,6,0,.42);
  box-shadow: 0 10px 28px rgba(225,6,0,.16);
}
.tg-banner-ico {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #ff2d24, #c40000);
  box-shadow: 0 6px 18px rgba(225,6,0,.4);
}
.tg-banner-ico svg { width: 20px; height: 20px; }
.tg-banner-text { flex: 1; min-width: 0; text-align: left; }
.tg-banner-text strong { display: block; font-size: 14px; font-weight: 800; }
.tg-banner-text small { display: block; color: #cfcfcf; font-size: 12px; margin-top: 2px; }
.tg-banner-btn {
  height: 34px; padding: 0 12px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: #fff; color: #c40000; font-weight: 800; font-size: 13px;
}
.tg-banner-side {
  margin: auto 0 12px; padding: 10px;
  flex-direction: column; align-items: flex-start; gap: 8px;
}
.tg-banner-side .tg-banner-text small { color: #ffb4ae; }
.tg-banner-app { display: none; margin: 0 0 16px; }
.tg-banner-go {
  display: flex; align-items: center; gap: 12px;
  flex: 1; min-width: 0;
  text-decoration: none; color: inherit;
}
.tg-banner-x {
  width: 36px; height: 36px; padding: 0; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,.08); color: #fff;
}
.tg-banner-x svg { width: 16px; height: 16px; }
.tg-banner-x:hover { background: rgba(255,255,255,.16); }
.tg-banner-app[hidden] { display: none !important; }
.lp-dock { display: none; }
.tm-head {
  display: grid; grid-template-columns: 16px 1.2fr 1.6fr 120px;
  gap: 12px; padding: 12px 20px; align-items: center;
  background: rgba(0,0,0,.22);
  color: #cfcfcf; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.tm-head-right {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
}
.tm-body { display: none; }
.tm-body.on { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.tm-mail-dot {
  width: 10px; height: 10px; border-radius: 50%; justify-self: center;
  display: inline-block; vertical-align: middle; margin-right: 8px;
}
.tm-mail-dot.unread {
  background: #3dd68c;
  box-shadow: 0 0 10px rgba(61, 214, 140, .7);
}
.tm-mail-dot.read {
  background: #e10600;
  box-shadow: 0 0 10px rgba(225, 6, 0, .55);
}
.tm-row {
  display: grid; grid-template-columns: 16px 1.2fr 1.6fr 120px;
  gap: 12px; padding: 16px 18px; align-items: center;
  width: 100%; color: inherit; text-align: left; cursor: pointer;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.tm-row:hover {
  border-color: rgba(225,6,0,.45);
  background: linear-gradient(180deg, rgba(225,6,0,.12), rgba(225,6,0,.04));
  box-shadow: 0 0 0 1px rgba(225,6,0,.2), 0 10px 28px rgba(225,6,0,.18);
}
.tm-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-row small { display: block; color: #8d8d8d; font-size: 12px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-view {
  color: #ff6b63; font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 10px; border-radius: 10px;
  background: rgba(225,6,0,.1); border: 1px solid rgba(225,6,0,.28);
}
.tm-empty[hidden], .tm-letter[hidden], .tm-wait-bar[hidden] { display: none !important; }
.tm-box.reading .tm-head,
.tm-box.reading #act-refresh,
.tm-box.reading .tm-wait-bar { display: none !important; }
.tm-wait-bar {
  display: grid; place-items: center; align-content: center; gap: 8px;
  padding: 22px 16px 28px; color: #9b9b9b;
}
.tm-wait-bar strong { color: #fff; font-size: 16px; }
.tm-wait-sm { width: 64px; height: 64px; }
.tm-wait-sm svg { width: 24px; height: 24px; }
.tm-empty {
  min-height: 280px; display: grid; place-items: center; align-content: center; gap: 10px; color: #9b9b9b;
}
.tm-empty-ico {
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; color: #ff6b63;
  border: 1px solid rgba(225,6,0,.35);
  box-shadow: 0 0 24px rgba(225,6,0,.18);
  margin-bottom: 6px;
}
.tm-empty-ico svg { width: 32px; height: 32px; }
.tm-empty strong { color: #fff; font-size: 20px; }
.tm-wait {
  position: relative; width: 86px; height: 86px;
  display: grid; place-items: center; color: #ff6b63; margin-bottom: 4px;
}
.tm-wait svg { width: 30px; height: 30px; animation: mailPulse 1.4s ease-in-out infinite; }
.tm-spinner {
  position: absolute; inset: 0;
  border: 3px solid rgba(225,6,0,.18);
  border-top-color: #e10600;
  border-radius: 50%;
  animation: spin .85s linear infinite;
  box-shadow: 0 0 22px rgba(225,6,0,.25);
}
.tm-wait-text { letter-spacing: .02em; }
.tm-dots::after {
  content: "";
  display: inline-block; width: 1.4em; text-align: left;
  animation: dots 1.2s steps(4, end) infinite;
}
.tm-letter { padding: 18px 20px 22px; }
.tm-letter-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.tm-letter-date { color: #e10600; font-size: 13px; font-weight: 600; text-align: right; }
.tm-letter-from, .tm-letter-subj {
  margin: 0 0 8px; color: #d0d0d0; word-break: break-word; line-height: 1.4;
}
.tm-letter-subj { margin-bottom: 16px; color: #fff; font-size: 18px; font-weight: 700; }
.tm-letter iframe {
  width: 100%; min-height: 160px; height: 160px; border: 0; border-radius: 14px;
  background: #f3f3f4; display: block; overflow-anchor: none;
}
.tm-letter-text {
  background: #f3f3f4; border-radius: 14px; padding: 16px 18px; color: #111;
  white-space: pre-wrap; word-break: break-word; line-height: 1.55;
}
.mail-atts {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mail-atts b {
  width: 100%; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: #8d8d93;
}
.mail-att {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%; padding: 8px 12px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: #fff; text-decoration: none; font-size: 13px; font-weight: 600;
}
.mail-att small { color: #8d8d93; font-weight: 500; }
.mail-att:hover { border-color: rgba(225,6,0,.4); }

.feat { padding: 56px 0 10px; }
.feat h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 22px; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feat-card {
  border-radius: 20px; padding: 22px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225,6,0,.28);
  box-shadow: 0 16px 40px rgba(225,6,0,.12);
}
.feat-card h3 { margin: 12px 0 8px; font-size: 20px; }
.feat-card p { margin: 0; color: #9b9b9b; line-height: 1.5; }
.feat-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; color: #ff3b30;
  background: rgba(225,6,0,.1); border: 1px solid rgba(225,6,0,.22);
}
.feat-ico svg { width: 22px; height: 22px; }

.cta-bar {
  margin-top: 28px; border-radius: 20px; padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.cta-bar p { margin: 6px 0 0; color: #9b9b9b; }

.lp-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.lp-foot-brand { display: flex; align-items: center; gap: 12px; }
.lp-foot-brand span { display: block; color: #8d8d8d; font-size: 12px; }
.lp-foot-tg {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px; border-radius: 12px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 14px;
  background: rgba(225,6,0,.12);
  border: 1px solid rgba(225,6,0,.35);
}
.lp-foot-tg svg { width: 18px; height: 18px; flex: 0 0 auto; }
.lp-foot-tg:hover { background: rgba(225,6,0,.2); border-color: rgba(225,6,0,.55); }

#mail-copy .ico-done,
#act-save .ico-done { display: none; }
#mail-copy.ok .ico-copy,
#act-save.ok .ico-save { display: none; }
#mail-copy.ok .ico-done,
#act-save.ok .ico-done { display: block; }

.tm-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #141418;
  border: 1px solid rgba(61, 214, 140, .4);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 22px rgba(61, 214, 140, .18);
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.tm-toast.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.tm-toast.err {
  border-color: rgba(225, 6, 0, .45);
  box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 22px rgba(225, 6, 0, .18);
}

@media (max-width: 900px) {
  .lp-orb-fixed { opacity: .22; right: -80px; }
  .tm-head, .tm-row { grid-template-columns: 16px 1fr 1fr 88px; font-size: 12px; }
  .tm-title { font-size: 26px; }
  .feat-grid, .cta-bar { grid-template-columns: 1fr; display: grid; }
  .lp-foot { flex-wrap: wrap; gap: 12px; }
  .tm-addr { flex-wrap: nowrap; padding: 8px 8px 8px 12px; gap: 6px; }
  .tm-addr input { flex: 1 1 auto; min-width: 0; font-size: 13px; padding: 8px 0; }
  .tm-addr .ico-btn { height: 38px; padding: 0 10px; flex-shrink: 0; }
  .tm-addr .ico-only { width: 38px; }
}

@media (max-width: 640px) {
  .lp-nav { flex-wrap: nowrap; gap: 8px; min-width: 0; }
  .lp-nav-right { width: auto; flex-wrap: nowrap; min-width: 0; gap: 6px; }
  .lp-nav-right > a { display: none; }
  .lp-nav-bot { display: none; }
  .lp-wrap { padding-bottom: 96px; }
  .glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #101014;
  }
  .lp-dock {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    justify-content: space-around; align-items: stretch; gap: 4px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #0a0a0e;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .lp-dock-link {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 8px 2px; border-radius: 12px;
    color: #8d8894; text-decoration: none; font-size: 11px; font-weight: 700;
  }
  .lp-dock-link svg { width: 20px; height: 20px; }
  .lp-dock-link.on, .lp-dock-link:hover { color: #fff; background: rgba(225,6,0,.16); }
  .tg-banner { margin: 10px 10px 6px; padding: 10px 12px; }
  .tg-banner-text strong { font-size: 13px; }
  .tg-banner-btn { height: 32px; padding: 0 10px; font-size: 12px; }
  .tm-toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .tm-head { display: none; }
  .tm-row { grid-template-columns: 16px 1fr auto; }
  .tm-row .tm-mail-dot { grid-column: 1; grid-row: 1 / span 2; }
  .tm-row span:nth-child(2) { grid-column: 2; grid-row: 1; }
  .tm-row span:nth-child(3) { grid-column: 2; grid-row: 2; color: #9b9b9b; font-size: 12px; }
  .tm-row span:nth-child(4) { grid-column: 3; grid-row: 1 / span 2; }
  .tm-toolbar { padding: 12px; }
  .ico-btn-sm { min-width: 44px; }
  .tm-addr #act-change { width: 38px; padding: 0; font-size: 0; gap: 0; }
  .tm-addr #act-change svg { width: 18px; height: 18px; }
}

@media (max-width: 860px) {
  .app {
    grid-template-columns: 1fr;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .side {
    position: sticky; top: 0; z-index: 40;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: #0b0b0e;
    transform: none;
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .side .brand { font-size: 18px; }
  .side .brand-logo { width: 32px; height: 32px; }
  .side-logout {
    display: grid; place-items: center;
    width: 40px; height: 40px; color: var(--muted);
    border-radius: 10px; flex-shrink: 0;
  }
  .side-logout svg { width: 20px; height: 20px; }
  .side nav {
    position: fixed;
    left: 0; right: 0; top: auto; bottom: 0;
    width: 100%; z-index: 80;
    flex-direction: row; justify-content: space-around; align-items: stretch;
    gap: 4px; margin: 0; flex: none;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(10,10,14,.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(0,0,0,.35);
  }
  .side-link {
    flex: 1; flex-direction: column; justify-content: center;
    gap: 3px; font-size: 11px; padding: 8px 2px; border-radius: 10px;
  }
  .side-link svg { width: 20px; height: 20px; }
  .side-link.side-out, .side-link.side-desk, .side-user, .side-tron, .side .tg-banner-side, .app-foot { display: none; }
  .tg-banner-app {
    display: flex; position: fixed; z-index: 70;
    left: 10px; right: 10px; margin: 0;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    padding: 10px 10px 10px 12px;
  }
  body:not(.tg-off) .app {
    padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px));
  }
  .tg-banner-app .tg-banner-btn { display: none; }
  .tg-banner-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side-link.active {
    color: #fff;
    background: rgba(225,6,0,.18);
  }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .main { padding: 16px 14px 20px; }
  .top { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 16px; }
  .top h1 { font-size: 22px; word-break: break-word; }
  .top-actions { width: 100%; }
  .top-actions .btn { flex: 1; }
  .top-mail { flex-direction: row; align-items: center; }
  .top-mail .top-actions { width: auto; }
  .top-mail .ico-btn { width: 44px; padding: 0; font-size: 0; gap: 0; }
  .folder-bar { margin-bottom: 14px; }
  .mbox-mail { white-space: normal; overflow-wrap: anywhere; }
  .tm-toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .form { max-width: 100%; }
  .card { padding: 16px; border-radius: 16px; }
  .row { align-items: flex-start; padding: 12px 14px; }
  .row strong { word-break: break-all; font-size: 14px; }
  .mail-row-main strong,
  .mail-row-main span {
    word-break: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mail-row-date { max-width: none; font-size: 11px; flex-shrink: 0; }
  .mail-item .mail-row { padding-right: 48px; }
  .mail-item:has(.mail-item-tools > :nth-child(2)) .mail-row { padding-right: 88px; }
  .form.spam-add { flex-wrap: wrap; }
  .form.spam-add select { flex: 1 1 100%; }
  .box-creds { grid-template-columns: 1fr; }
  .creds { overflow-wrap: anywhere; font-size: 13px; padding: 12px; }
  .letter iframe, .mail-frame { height: 160px; }
  .cred-meta strong { white-space: normal; overflow-wrap: anywhere; }
  .btn:hover, .ico-btn:hover { transform: none; }
  .profile-head { gap: 12px; }
  .profile-grid { grid-template-columns: 1fr; }
  .ns-box-top { flex-wrap: wrap; }
  .ns-host { font-size: 13px; }
}

.admin-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 18px;
}
.admin-stats article {
  padding: 14px 16px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
}
.admin-stats b { display: block; font-size: 26px; letter-spacing: -.04em; }
.admin-stats span { color: var(--muted); font-size: 12px; }
.admin-grid { display: grid; gap: 16px; }
.admin-add { display: flex; gap: 10px; align-items: end; max-width: none; }
.admin-add input { flex: 1; min-width: 0; }
.admin-list { display: grid; gap: 12px; margin-top: 14px; }
.admin-list .domain-card { box-shadow: none; }
.admin-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
}
.admin-row form { margin: 0; }
.admin-table-wrap { overflow: auto; margin-top: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td {
  text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table th { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

.side-ico { position: relative; display: inline-flex; align-items: center; }
.side-ico svg { width: 18px; height: 18px; display: block; }
.nav-badge {
  position: absolute; top: -7px; right: -9px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px;
  background: #e10600; color: #fff;
  font-size: 10px; font-weight: 800; line-height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #0b0b0e;
}
.news-form { max-width: 720px; }
.news-compose h3 { margin-bottom: 16px; }
.news-edit-wrap { display: grid; gap: 8px; }
.news-edit-wrap > span { font-size: 13px; color: var(--muted); }
.news-tools {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.news-tools button {
  height: 34px; min-width: 34px; padding: 0 10px;
  border-radius: 10px; border: 1px solid var(--line);
  background: #121218; color: #fff; cursor: pointer; font: inherit;
}
.news-tools button:hover { border-color: rgba(225,6,0,.45); }
.news-editor {
  min-height: 180px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: #0d0d12; color: var(--text);
  line-height: 1.55; outline: none;
}
.news-editor:empty:before {
  content: attr(data-placeholder);
  color: #6a6a72;
}
.news-preview {
  width: 100%; max-height: 240px; object-fit: cover;
  border-radius: 14px; display: block;
}
.news-feed { display: grid; gap: 18px; max-width: 720px; }
.news-post {
  overflow: hidden; border-radius: 20px;
  border: 1px solid var(--line);
  background: #101014;
}
.news-post-media img {
  width: 100%; max-height: 320px; object-fit: cover; display: block;
}
.news-post-inner { padding: 22px 22px 24px; }
.news-post-date {
  display: block; color: #8d8d93; font-size: 12px;
  letter-spacing: .04em; margin-bottom: 8px;
}
.news-post h2 {
  margin: 0 0 12px; font-size: 24px; letter-spacing: -.03em; line-height: 1.2;
}
.news-body { color: #d8d8dc; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.news-body p { margin: 0 0 12px; }
.news-body p:last-child { margin-bottom: 0; }
.news-body h2, .news-body h3 { margin: 16px 0 8px; color: #fff; }
.news-body ul, .news-body ol { margin: 0 0 12px; padding-left: 1.2em; }
.news-body blockquote {
  margin: 0 0 12px; padding: 8px 0 8px 14px;
  border-left: 3px solid #e10600; color: #bdbdc4;
}
.news-body a { color: #ff8a80; }
.news-body img { max-width: 100%; height: auto; border-radius: 10px; }
.news-admin-list { display: grid; gap: 0; }
.news-admin-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.news-admin-row:last-child { border-bottom: 0; }
.news-admin-info { min-width: 0; flex: 1; }
.news-admin-info strong { display: block; }
.news-admin-info span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.news-admin-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.news-admin-acts form { margin: 0; }
.news-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }

html.pwa .js-pwa-install,
html.pwa .pwa-note,
html.pwa .pwa-desk-only { display: none !important; }
.js-pwa-install[hidden] { display: none !important; }
.pwa-note { display: none; }

@media (max-width: 640px) {
  .js-pwa-install,
  .pwa-desk-only { display: none !important; }
  .pwa-note {
    display: flex; align-items: center; gap: 8px;
    position: fixed; left: 10px; right: 10px; z-index: 85;
    top: calc(10px + env(safe-area-inset-top, 0px));
    padding: 10px 8px 10px 10px;
    border-radius: 18px;
    background: rgba(18, 18, 22, .94);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 16px 40px rgba(0,0,0,.45);
    color: #fff;
    transform: translateY(-130%);
    transition: transform .35s ease;
  }
  .pwa-note.on { transform: translateY(0); }
  .pwa-note[hidden] { display: none !important; }
  .pwa-note-hit {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
    margin: 0; padding: 0; border: 0; background: none; color: inherit;
    text-align: left; cursor: pointer;
  }
  .pwa-note-hit img {
    width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: 0 0 auto;
  }
  .pwa-note-hit span { min-width: 0; }
  .pwa-note-hit strong { display: block; font-size: 14px; font-weight: 800; }
  .pwa-note-hit small { display: block; margin-top: 2px; color: #b8b8c0; font-size: 12px; }
  .pwa-note-x {
    width: 36px; height: 36px; padding: 0; flex: 0 0 auto;
    display: grid; place-items: center;
    border: 0; border-radius: 10px; cursor: pointer;
    background: rgba(255,255,255,.08); color: #fff;
  }
  .pwa-note-x svg { width: 16px; height: 16px; }
  .side-ico svg { width: 20px; height: 20px; }
  .nav-badge { top: -4px; right: -8px; }
}
