/* =========================================================
   Royal Air Mail — Design System v7
   Dark Premium · Red/Gold accents · 3-column layout
   Based on reference mockup images
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Core palette — dark opaque premium */
  --bg:          #0a0a0a;
  --bg-1:        #0f0f0f;
  --bg-2:        #141414;

  --panel:       #161616;
  --panel-2:     #1c1c1c;
  --panel-3:     #222222;
  --panel-4:     #282828;

  --line:        rgba(255,255,255,.09);
  --line-soft:   rgba(255,255,255,.055);

  --text:        #e8e4dc;
  --text-strong: #ffffff;
  --muted:       #8a8680;
  --muted-2:     #5a5550;

  --red:         #e53935;
  --red-dark:    #c62828;
  --red-glow:    rgba(229,57,53,.18);
  --gold:        #f4a900;
  --gold-dark:   #c88800;
  --gold-glow:   rgba(244,169,0,.14);
  --green:       #43a047;

  --sidebar-w:   220px;
  --list-w:      310px;
  --radius:      18px;
  --radius-sm:   12px;
  --radius-xs:   8px;

  --shadow:      0 22px 60px rgba(0,0,0,.36);
  --shadow-md:   0 12px 30px rgba(0,0,0,.22);
  --shadow-sm:   0 4px 12px rgba(0,0,0,.14);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
img { max-width: 100%; display: block; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.22); }

/* ---------- Flash alerts ---------- */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  margin: 0 0 14px; font-weight: 600; font-size: 13px;
}
.alert-danger  { background: rgba(229,57,53,.15); color: #ff8a80; border: 1px solid rgba(229,57,53,.22); }
.alert-success { background: rgba(67,160,71,.14);  color: #69f0ae; border: 1px solid rgba(67,160,71,.20); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; letter-spacing: .01em;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 22px rgba(229,57,53,.28);
}
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 14px 28px rgba(229,57,53,.34); }

.btn-light {
  background: var(--panel-3);
  border-color: var(--line);
  color: var(--text);
}
.btn-light:hover { background: var(--panel-4); border-color: rgba(255,255,255,.14); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.14); }

/* ---------- App layout shell ---------- */
body:not(.login-page) {
  height: 100dvh;
  overflow: hidden;
}

.page-clean {
  display: flex;
  align-items: stretch;
  width: 100vw; height: 100dvh;
  padding: 10px;
  background:
    radial-gradient(circle at 10% 5%, rgba(229,57,53,.15), transparent 22%),
    radial-gradient(circle at 92% 0%, rgba(244,169,0,.10), transparent 22%),
    linear-gradient(135deg, #080808, #111);
}

.app-shell-clean {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0,1fr);
  width: 100%; height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}

/* ---------- Sidebar ---------- */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 25;
}
.sidebar-overlay.show { display: block; }

.sidebar-clean {
  background:
    radial-gradient(circle at 85% 8%,  rgba(244,169,0,.14), transparent 22%),
    radial-gradient(circle at 15% 88%, rgba(229,57,53,.20), transparent 24%),
    linear-gradient(180deg, #0b090f, #171218);
  border-right: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column;
  padding: 16px 12px 14px;
  height: 100%; overflow: hidden;
}

/* Brand */
.compact-brand {
  display: flex; align-items: center; justify-content: center;
  min-height: 58px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 0;
}
.brand-logo {
  width: 108px !important; max-width: 108px !important;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.42));
}

/* Compose button */
.compose-entry {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; min-height: 42px;
  margin: 14px 0 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 28px rgba(229,57,53,.24), inset 0 1px 0 rgba(255,255,255,.14);
  color: #fff; font-weight: 800; font-size: 13px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.compose-entry:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(229,57,53,.30), inset 0 1px 0 rgba(255,255,255,.18);
}
.compose-entry-icon { display: flex; }
.compose-entry svg { width: 16px; height: 16px; }

/* Nav */
.clean-nav {
  display: flex; flex-direction: column; gap: 3px;
}

.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 11px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(255,255,255,.70);
  font-size: 13px; font-weight: 600;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  position: relative; overflow: hidden;
}
.sidebar-link svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .85; }
.sidebar-link span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-link:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(2px); }
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(229,57,53,.22), rgba(255,255,255,.05));
  border-color: rgba(229,57,53,.18);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--red);
}
.sidebar-link.active::after {
  content: '';
  position: absolute; right: 10px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(244,169,0,.12);
}
.badge {
  margin-left: auto;
  min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 99px;
  background: var(--red);
  color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* Sidebar bottom */
.sidebar-bottom {
  margin-top: auto;
  display: flex; flex-direction: column;
  gap: 8px;
}
.theme-btn {
  display: flex; align-items: center; gap: 9px;
  width: 100%; height: 38px; padding: 0 11px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.78);
  font-size: 12.5px; font-weight: 700;
  transition: background .15s ease;
}
.theme-btn:hover { background: rgba(255,255,255,.09); color: #fff; }
.theme-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.account-mini {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.account-mini .avatar {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; font-weight: 800; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.account-mini > div:last-child { min-width: 0; }
.account-mini strong {
  display: block; font-size: 12.5px; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.account-mini small {
  display: block; font-size: 11px; color: rgba(255,255,255,.50);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.logout-link {
  display: block;
  padding: 6px 4px;
  font-size: 12.5px; font-weight: 700;
  color: rgba(255,255,255,.55);
  transition: color .14s ease;
}
.logout-link:hover { color: rgba(255,255,255,.85); }

/* ---------- Mobile topbar ---------- */
.mobile-topbar {
  display: none;
  align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0c0a10, #171218);
  border-bottom: 1px solid rgba(255,255,255,.07);
  height: 62px;
}
.mobile-brand-wrap {
  display: flex; flex-direction: column; align-items: center;
}
.mobile-brand-wrap img {
  width: 52px !important; height: auto !important;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.38));
}
.mobile-brand-wrap span {
  font-size: 9px; font-weight: 800;
  color: rgba(255,255,255,.50);
  letter-spacing: .1em; text-transform: uppercase;
  margin-top: 2px;
}
.mobile-menu {
  display: none;
  width: 38px; height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  color: #fff;
  align-items: center; justify-content: center;
}
.mobile-menu svg { width: 19px; height: 19px; }

/* ---------- Main zone ---------- */
.main-zone-clean {
  display: grid;
  grid-template-columns: var(--list-w) minmax(0,1fr);
  height: 100%;
  overflow: hidden;
}

/* ---------- Email list panel ---------- */
.clean-inbox {
  display: flex; flex-direction: column;
  height: 100%;
  background: var(--panel-2);
  border-right: 1px solid var(--line);
}

.clean-toolbar {
  flex-shrink: 0;
  padding: 16px 16px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.clean-toolbar > div { min-width: 0; }
.clean-toolbar h1 {
  margin: 0;
  font-size: 21px; font-weight: 900; letter-spacing: -.04em;
  color: #fff;
}
.clean-toolbar h1::after {
  content: '';
  display: block; width: 32px; height: 2px;
  border-radius: 99px; margin-top: 5px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.clean-toolbar p {
  margin: 4px 0 0;
  font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.compact-btn {
  flex-shrink: 0;
  height: 36px; padding: 0 12px;
  border-radius: 11px; font-size: 12.5px;
}
.compact-btn svg { width: 15px; height: 15px; }

.clean-search {
  flex-shrink: 0;
  padding: 0 14px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.search-box { position: relative; }
.search-box .search-ic {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--muted-2); display: flex; pointer-events: none;
}
.search-box .search-ic svg { width: 15px; height: 15px; }
.search input {
  width: 100%; height: 38px;
  padding: 0 14px 0 36px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  background: rgba(255,255,255,.06);
  color: #fff; font-size: 12.5px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search input:focus {
  border-color: rgba(229,57,53,.28);
  box-shadow: 0 0 0 3px rgba(229,57,53,.09);
}
.search input::placeholder { color: rgba(255,255,255,.32); }

/* Message list items */
.clean-messages {
  flex: 1 1 auto;
  overflow-y: auto; overflow-x: hidden;
  padding: 6px 8px 10px;
}

.message-item {
  display: grid;
  grid-template-columns: 7px 34px minmax(0,1fr) 24px;
  gap: 9px; align-items: flex-start;
  padding: 10px 12px;
  margin-bottom: 5px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.055);
  background: var(--panel-3);
  cursor: pointer;
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
  position: relative;
}
.message-item:hover {
  background: var(--panel-4);
  border-color: rgba(229,57,53,.16);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.message-item.active {
  background: linear-gradient(90deg, rgba(229,57,53,.18), rgba(244,169,0,.06));
  border-color: rgba(229,57,53,.24);
  box-shadow: 0 10px 24px rgba(229,57,53,.10);
}
.message-item.unread .message-subject { font-weight: 800; color: #fff; }
.message-item.unread .message-line strong { font-weight: 800; color: #fff; }
.message-item.unread .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(229,57,53,.12), 0 0 12px rgba(229,57,53,.28);
}

.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: transparent;
  margin-top: 8px; flex-shrink: 0;
}

.sender-badge {
  width: 34px; height: 34px;
  border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #282020, #3a1e1e);
  color: #fff; font-size: 12px; font-weight: 800;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}
.sender-badge.gold   { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #111; }
.sender-badge.service { background: rgba(244,169,0,.14); color: var(--gold); border: 1px solid rgba(244,169,0,.18); }
.sender-badge.gray   { background: #2e2e2e; color: var(--muted); }

.sender-main { min-width: 0; }
.message-line {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
}
.message-line strong {
  font-size: 13px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.message-line time {
  font-size: 11px; color: var(--muted);
  flex-shrink: 0; white-space: nowrap;
}
.message-subject {
  font-size: 13px; font-weight: 600; color: var(--text);
  margin: 3px 0 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.message-snippet {
  font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.message-flags {
  display: flex; flex-direction: column; align-items: flex-end; gap: 5px;
  flex-shrink: 0;
}
.flag-chip {
  width: 22px; height: 22px; border-radius: 7px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.flag-chip svg { width: 13px; height: 13px; }
.star-on { color: var(--gold) !important; }

.empty, .clean-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  min-height: 220px; gap: 10px; padding: 32px 20px;
  color: var(--muted);
}
.empty-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(229,57,53,.10);
  border: 1px solid rgba(229,57,53,.14);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
.empty-icon svg { width: 28px; height: 28px; }
.clean-empty strong { font-size: 18px; color: #fff; }
.clean-empty p { max-width: 360px; color: var(--muted); line-height: 1.6; margin: 0; }
.preview-empty { height: 100%; }

/* ---------- Reader panel ---------- */
.clean-reader {
  display: flex; flex-direction: column;
  height: 100%; overflow: hidden;
  background: var(--panel);
}

.clean-reader-top {
  flex-shrink: 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.subject-wrap { min-width: 0; flex: 1; }
.clean-reader-top h2 {
  margin: 0 0 8px;
  font-size: 18px; font-weight: 900; letter-spacing: -.03em;
  color: #fff; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 11.5px; font-weight: 700;
}
.tag-active {
  background: rgba(244,169,0,.14);
  border-color: rgba(244,169,0,.22);
  color: var(--gold);
}

.clean-reader-actions {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.clean-reader-actions a,
.clean-reader-actions button,
.more-actions summary {
  width: 34px; height: 34px; border-radius: 11px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.72);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: background .14s ease, border-color .14s ease, color .14s ease, transform .14s ease;
}
.clean-reader-actions a:hover,
.clean-reader-actions button:hover,
.more-actions summary:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(244,169,0,.18);
  color: #fff; transform: translateY(-1px);
}
.clean-reader-actions svg { width: 16px; height: 16px; }
.reader-actions form { margin: 0; display: flex; }

/* More menu */
.more-actions { position: relative; }
.more-actions summary {
  list-style: none; cursor: pointer;
  font-weight: 900; font-size: 15px; letter-spacing: .05em;
}
.more-actions summary::-webkit-details-marker { display: none; }
.more-menu {
  position: absolute; right: 0; top: 38px; z-index: 20;
  min-width: 188px;
  background: #181420;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 6px;
}
.more-menu form { margin: 0; }
.more-menu button {
  width: 100%; height: auto; padding: 9px 11px;
  text-align: left; border-radius: 9px;
  color: rgba(255,255,255,.82); font-weight: 700; font-size: 12.5px;
  transition: background .13s ease;
}
.more-menu button:hover { background: rgba(255,255,255,.07); color: #fff; }

/* Reader body */
.clean-reader-body {
  flex: 1 1 auto; overflow-y: auto; overflow-x: hidden;
  padding: 18px 24px;
}

.reader-card-head.compact-reader-head {
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,.08);
  border-left: 4px solid var(--red);
  margin-bottom: 18px;
}
.reader-headerline {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
}
.reader-from { display: flex; gap: 11px; align-items: center; min-width: 0; overflow: hidden; }
.reader-from .avatar.big {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.reader-from > div:last-child { min-width: 0; }
.reader-from strong {
  display: block; font-size: 13.5px; font-weight: 700; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.reader-from small {
  display: block; font-size: 12px; color: var(--muted);
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.reader-date { font-size: 11.5px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

/* Mail body */
.mail-body {
  white-space: pre-wrap; font-size: 14.5px; line-height: 1.75;
  color: var(--text); border: none; background: transparent;
  padding: 0; margin: 0 0 20px;
}
.mail-html-frame.readable-html {
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  font-size: 14.5px; line-height: 1.72;
  color: var(--text);
  overflow-x: auto;
  word-break: normal; overflow-wrap: anywhere;
  margin-bottom: 18px;
  max-width: 860px; margin-left: auto; margin-right: auto;
}
.mail-html-frame.readable-html::before {
  content: '';
  display: block; width: 48px; height: 2px;
  border-radius: 99px; margin-bottom: 16px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.mail-html-frame.readable-html p { line-height: 1.72; margin: 0 0 13px; }
.mail-html-frame.readable-html a { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mail-html-frame.readable-html img { max-width: 100% !important; height: auto !important; border-radius: 8px; }
.mail-html-frame.readable-html table { max-width: 100% !important; border-collapse: collapse; display: block; overflow-x: auto; }
.mail-html-frame.readable-html blockquote {
  margin: 14px 0; padding: 11px 15px;
  border-left: 4px solid rgba(244,169,0,.50);
  background: rgba(255,255,255,.04);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
}

.readable-html.mail-html-frame { border-top: 1px solid var(--line-soft); }

/* Attachments */
.attachments-title {
  font-size: 13px; font-weight: 700; color: var(--muted);
  margin: 20px auto 11px; max-width: 860px;
  display: flex; align-items: center; gap: 7px;
}
.attachments-title svg { width: 15px; height: 15px; color: var(--gold); }
.attachments.clean-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 9px; max-width: 860px; margin: 0 auto;
}
.attachment {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.08);
  background: var(--panel-3);
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.attachment:hover { transform: translateY(-1px); border-color: rgba(244,169,0,.18); box-shadow: var(--shadow-sm); }
.attachment-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(229,57,53,.20), rgba(244,169,0,.15));
  color: var(--gold); font-weight: 800; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.attachment-icon svg { width: 18px; height: 18px; }
.attachment-body { min-width: 0; }
.attachment-body strong { display: block; font-size: 12.5px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-body small  { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* Footer actions */
.clean-footer-actions {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 9px;
  padding: 11px 20px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
}
.clean-footer-actions .btn { height: 36px; font-size: 12.5px; max-width: 140px; }
.sticky-actions-mobile {}

/* ---------- Compose ---------- */
.compose-layout, .clean-compose-layout {
  display: flex; flex-direction: column;
  height: 100%; padding: 12px;
  background: var(--bg-1);
}

.single-card, .compose-card, .clean-compose-card {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid rgba(244,169,0,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  flex: 1; min-height: 0;
  max-width: 1100px; width: 100%; margin: 0 auto;
}

.compose-clean-head {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.compose-clean-head > div:first-child { min-width: 0; }
.compose-clean-head h1 {
  margin: 0;
  font-size: 24px; font-weight: 950; letter-spacing: -.04em; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.compose-clean-head h1::after {
  content: '';
  display: block; width: 32px; height: 2px;
  border-radius: 99px; margin-top: 6px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.compose-clean-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }

.compose-status { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

.save-indicator {
  display: inline-flex; align-items: center;
  min-height: 30px; padding: 5px 10px;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--muted);
  font-size: 11.5px; font-weight: 700;
  max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.save-indicator.is-saving { color: #f4a900; background: rgba(244,169,0,.09); }
.save-indicator.is-saved  { color: #69f0ae; background: rgba(67,160,71,.10); }
.save-indicator.is-error  { color: #ff8a80; background: rgba(229,57,53,.10); }

.clean-compose-form {
  flex: 1 1 auto; overflow-y: auto; overflow-x: hidden;
  padding: 18px 22px 10px;
}
.compose-fields-card { display: flex; flex-direction: column; gap: 11px; }
.compose-form label, .field-label {
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.70);
}
.compose-form input, .compose-form textarea {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 11px;
  padding: 10px 13px;
  color: #fff; font-size: 13px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.compose-form input:focus, .compose-form textarea:focus {
  border-color: rgba(244,169,0,.30);
  box-shadow: 0 0 0 3px rgba(244,169,0,.07);
}
.compose-form input::placeholder, .compose-form textarea::placeholder { color: rgba(255,255,255,.28); }
.compose-form textarea { min-height: 200px; max-height: 40vh; resize: vertical; line-height: 1.6; }

.optional-fields { display: none; }
.optional-fields.is-open { display: block; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.inline-link {
  align-self: flex-start; background: transparent; border: 0;
  color: var(--gold); font-weight: 800; font-size: 12px; padding: 2px 0 4px;
}
.compose-utility-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-top: 2px;
}
.file-field {
  display: inline-flex !important; align-items: center; gap: 9px;
  min-height: 40px; border: 1px dashed rgba(255,255,255,.10);
  border-radius: 11px; padding: 9px 13px;
  color: var(--muted); cursor: pointer; font-weight: 700; font-size: 12.5px;
  transition: border-color .14s ease, color .14s ease;
}
.file-field:hover { border-color: rgba(229,57,53,.30); color: var(--text); }
.file-field input { display: none; }
.file-field svg { width: 16px; height: 16px; }

.clean-compose-actions {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: flex-end; gap: 9px;
  padding: 10px 22px 16px;
  border-top: 1px solid var(--line-soft);
}
.clean-compose-actions .btn { height: 38px; font-size: 12.5px; max-width: 170px; }

.compose-help {
  flex-shrink: 0;
  margin: 0 22px 14px;
  padding: 11px 14px;
  border-radius: 13px;
  background: rgba(244,169,0,.07);
  border: 1px solid rgba(244,169,0,.11);
  display: flex; gap: 9px; align-items: flex-start; overflow: hidden;
}
.compose-help strong { color: var(--gold); font-size: 12.5px; white-space: nowrap; }
.compose-help span {
  color: var(--muted); font-size: 12px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Login page ---------- */
.login-page {
  min-height: 100vh;
  display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(244,169,0,.20), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(229,57,53,.20), transparent 24%),
    linear-gradient(135deg, #030303, #141414);
}

.login-shell-premium {
  width: min(1140px, 94vw);
  display: grid; grid-template-columns: 1.05fr .95fr;
  border-radius: 30px; overflow: hidden;
  background: transparent;
  box-shadow: 0 40px 100px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.10);
}

/* Visual side */
.login-visual-premium {
  position: relative; overflow: hidden;
  color: #fff; padding: 44px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(circle at 18% 22%, rgba(244,169,0,.18), transparent 22%),
    radial-gradient(circle at 82% 70%, rgba(229,57,53,.24), transparent 25%),
    linear-gradient(145deg, #050505, #161616 55%, #070707);
}
.login-visual-premium::after {
  content: 'ROYAL AIR';
  position: absolute; left: 38px; bottom: 24px;
  font-size: 74px; line-height: .9; font-weight: 950; letter-spacing: -.08em;
  color: rgba(255,255,255,.032); pointer-events: none;
}

.login-official-logo {
  width: 165px !important; height: auto;
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.40));
  animation: logoFloatIn .8s ease both .1s;
}
.brand-entrance { position: relative; z-index: 3; max-width: 480px; }
.brand-chip-premium {
  display: inline-flex; margin-top: 22px;
  padding: 7px 11px; border-radius: 99px;
  color: #ffdd55; background: rgba(255,255,255,.08); border: 1px solid rgba(244,169,0,.22);
  font-size: 11.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  animation: fadeUp .7s ease both .2s;
}
.brand-entrance h1 {
  margin: 20px 0 14px;
  font-size: 50px; line-height: 1.02; letter-spacing: -.055em;
  animation: fadeUp .75s ease both .3s;
}
.brand-entrance p {
  margin: 0; color: #e4e9f6; line-height: 1.72; font-size: 15.5px;
  animation: fadeUp .75s ease both .42s;
}

/* Orbits & routes */
.sky-orbit {
  position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px dashed rgba(244,169,0,.26);
}
.orbit-one { width: 340px; height: 340px; right: -130px; top: -80px; animation: orbitSlow 20s linear infinite; }
.orbit-two { width: 500px; height: 500px; left: -250px; bottom: -250px; border-color: rgba(229,57,53,.18); animation: orbitSlow 26s linear infinite reverse; }
.plane-route {
  position: absolute; height: 2px; width: 270px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.40), transparent);
  transform: rotate(-18deg); opacity: .38;
}
.plane-route::after { content: '✈'; position: absolute; right: 0; top: -13px; color: #ffdd55; font-size: 18px; transform: rotate(18deg); }
.route-one { top: 200px; right: -55px; animation: routeMove 7s ease-in-out infinite; }
.route-two { bottom: 160px; left: -65px; transform: rotate(14deg); animation: routeMove 9s ease-in-out infinite reverse; }

.floating-mail-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 11px;
  min-width: 205px; padding: 13px 15px; border-radius: 17px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 38px rgba(0,0,0,.18);
  animation: floatCard 5s ease-in-out infinite;
}
.floating-mail-card strong { display: block; font-size: 13.5px; }
.floating-mail-card small  { display: block; margin-top: 2px; color: #d7dde8; font-size: 11.5px; }
.mail-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(229,57,53,.14); }
.mail-dot.gold { background: var(--gold); box-shadow: 0 0 0 5px rgba(244,169,0,.14); }
.card-one { right: 38px; top: 300px; animation-delay: .2s; }
.card-two { left: 40px; bottom: 112px; animation-delay: .9s; }

.login-metrics {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 11px;
  margin-top: 26px; max-width: 440px;
  animation: fadeUp .75s ease both .58s;
}
.login-metrics div { padding: 15px; border-radius: 17px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); }
.login-metrics strong { display: block; color: #ffdd55; font-size: 17px; }
.login-metrics span   { display: block; margin-top: 3px; color: #d4dae8; font-size: 11.5px; }

/* Form side */
.login-form-premium-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 44px 42px;
  background:
    radial-gradient(circle at 100% 0%, rgba(229,57,53,.07), transparent 22%),
    linear-gradient(180deg, #ffffff, #fbfbfd);
}
.login-form-card {
  width: min(420px, 100%);
  animation: formSlideIn .75s cubic-bezier(.2,.8,.2,1) both .15s;
}
.form-logo-mobile { display: none; margin-bottom: 16px; }
.form-logo-mobile img { width: 120px; }

.login-panel-head {}
.tag { cursor: default; }
.tag-active {}
.login-panel-head h2 {
  margin: 13px 0 9px;
  font-size: 32px; line-height: 1.08; letter-spacing: -.045em; color: #111827;
}
.login-panel-head p { margin: 0 0 24px; color: #6b7280; line-height: 1.65; font-size: 13.5px; }

.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-form label { font-size: 12.5px; font-weight: 700; color: #1f2937; }
.input-shell { position: relative; }
.input-shell input {
  width: 100%; height: 50px;
  padding: 0 86px 0 44px;
  border: 1px solid #e5e7eb; border-radius: 14px;
  background: #fff; color: #111827; font-size: 13px;
  outline: none;
  box-shadow: 0 8px 20px rgba(17,24,39,.04);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.input-shell input:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 4px rgba(229,57,53,.08), 0 10px 22px rgba(17,24,39,.07) !important;
  transform: translateY(-1px);
}
.input-shell input::placeholder { color: #9ca3af; }
.input-icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: #9ca3af; z-index: 2; font-size: 15px;
}
.password-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  height: 34px; border: 0; border-radius: 11px; padding: 0 11px;
  background: #f3f4f6; color: #374151; font-weight: 800; font-size: 11.5px; cursor: pointer;
}
.login-submit {
  height: 52px; margin-top: 6px;
  border-radius: 14px !important;
  justify-content: space-between;
  padding-left: 18px !important; padding-right: 16px !important;
}
.login-submit strong {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.login-error { animation: shakeSoft .35s ease both; }

.login-assist { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 17px; }
.login-assist div { padding: 12px 13px; border-radius: 14px; background: #f9fafb; border: 1px solid #e5e7eb; }
.login-assist strong { display: block; color: #111827; font-size: 12.5px; }
.login-assist span, .login-assist a { display: block; color: #6b7280; font-size: 12.5px; margin-top: 4px; line-height: 1.4; word-break: break-word; }
.login-assist a { color: var(--red); font-weight: 800; }
.login-footnote { margin: 16px 0 0; color: #6b7280; font-size: 12.5px; line-height: 1.55; }

.login-loader {
  position: fixed; inset: 0; z-index: 999;
  display: none; align-items: center; justify-content: center;
  flex-direction: column; gap: 13px;
  background: rgba(5,5,5,.82); backdrop-filter: blur(12px);
  color: #fff;
}
.login-loader.is-visible { display: flex; animation: fadeIn .2s ease both; }
.loader-plane {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark)); color: var(--gold);
  font-size: 28px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px rgba(229,57,53,.12);
  animation: planeSpin 1.2s ease-in-out infinite;
}
.login-loader span { font-weight: 900; }

/* Splash / app entry */
.login-page-app-entry { overflow: hidden; }
.app-entry-splash {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 18% 12%, rgba(244,169,0,.22), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(229,57,53,.22), transparent 24%),
    linear-gradient(135deg, #030303, #151515 60%, #060606);
  transition: opacity .55s ease, visibility .55s ease;
}
.app-entry-splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.app-entry-card {
  width: min(330px, 84vw); padding: 26px 24px 22px;
  border-radius: 26px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 32px 76px rgba(0,0,0,.40);
  text-align: center; backdrop-filter: blur(14px);
  animation: appEntryCardIn .7s cubic-bezier(.2,.8,.2,1) both;
}
.app-entry-logo-box {
  width: 100px; height: 100px; margin: 0 auto 16px;
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 16px 36px rgba(0,0,0,.24);
  animation: appLogoFloat 2.1s ease-in-out infinite;
}
.app-entry-logo-box img { width: 72px; height: auto; filter: drop-shadow(0 8px 16px rgba(0,0,0,.34)); }
.app-entry-card h2 { margin: 0; color: #fff; font-size: 26px; letter-spacing: -.04em; }
.app-entry-card p  { margin: 7px 0 16px; color: #d9dde8; font-size: 13.5px; }
.app-entry-progress { height: 7px; border-radius: 99px; background: rgba(255,255,255,.10); overflow: hidden; }
.app-entry-bar {
  display: block; width: 40%; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  animation: appEntryLoad 1.5s ease-in-out infinite;
  box-shadow: 0 0 16px rgba(244,169,0,.24);
}
.login-stage-hidden { opacity: 0; transform: translateY(18px) scale(.985); }
.login-stage-ready  { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 7px; pointer-events: none;
}
.toast {
  background: var(--panel-4); color: #fff;
  padding: 10px 15px; border-radius: 11px;
  box-shadow: 0 12px 30px rgba(0,0,0,.34);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  opacity: 0; transform: translateY(7px);
  transition: opacity .2s ease, transform .2s ease;
  border: 1px solid rgba(255,255,255,.09);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- SVG icons helper ---------- */
.ic { flex-shrink: 0; vertical-align: middle; }

/* ---------- Mobile nav ---------- */
.mobile-nav { display: none; }

/* ---------- Diagnostic ---------- */
.diag-wrap { max-width: 980px; margin: 24px auto; padding: 0 16px; }
.diag-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.diag-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.diag-table th, .diag-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.diag-table th { width: 260px; color: var(--muted); }
.ok  { color: #69f0ae; font-weight: 800; }
.bad { color: #ff8a80; font-weight: 800; }
.diag-form { display: grid; gap: 11px; margin-top: 16px; max-width: 500px; }
.diag-form input { width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; color: var(--text); outline: none; font-size: 13px; }
.diag-form input:focus { border-color: rgba(229,57,53,.28); }
.diag-note { color: var(--muted); line-height: 1.65; font-size: 13.5px; }

/* ---------- Animations ---------- */
@keyframes logoFloatIn   { from { opacity: 0; transform: translateY(-10px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes fadeUp        { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes formSlideIn   { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes floatCard     { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes orbitSlow     { to { transform: rotate(360deg); } }
@keyframes routeMove     { 0%,100% { opacity: .18; transform: translateX(0) rotate(-18deg); } 50% { opacity: .46; transform: translateX(-18px) rotate(-18deg); } }
@keyframes planeSpin     { 0%,100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(-7px) rotate(8deg); } }
@keyframes shakeSoft     { 0%,100% { transform: translateX(0); } 30% { transform: translateX(-4px); } 65% { transform: translateX(4px); } }
@keyframes fadeIn        { from { opacity: 0; } to { opacity: 1; } }
@keyframes appEntryLoad  { 0% { transform: translateX(-120%); width: 36%; } 50% { transform: translateX(90%); width: 54%; } 100% { transform: translateX(258%); width: 36%; } }
@keyframes appEntryCardIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes appLogoFloat  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  :root { --sidebar-w: 198px; --list-w: 292px; }
}
@media (max-width: 1100px) {
  :root { --sidebar-w: 178px; --list-w: 270px; }
  .account-mini { display: none; }
}
@media (max-width: 960px) {
  body:not(.login-page) { height: auto; overflow: auto; }
  .page-clean { height: auto; min-height: 100dvh; padding: 0; }
  .app-shell-clean { height: auto; min-height: 100dvh; border-radius: 0; grid-template-columns: 1fr; }
  .sidebar-clean {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: 278px; z-index: 30; border-radius: 0;
    transform: translateX(-100%); transition: transform .22s ease;
  }
  .sidebar-clean.open { transform: translateX(0); }
  .main-zone-clean { grid-template-columns: 1fr; height: auto; min-height: 100dvh; }
  .clean-inbox { height: calc(100dvh - 62px); }
  .clean-reader { display: none; }
  .clean-reader.mobile-visible { display: flex; height: calc(100dvh - 62px); }
  .clean-inbox.mobile-hidden { display: none; }
  .mobile-topbar { display: flex; }
  .mobile-menu { display: flex; }
  .clean-reader-body { padding-bottom: 96px; }
  .clean-footer-actions {
    position: fixed; left: 0; right: 0; bottom: 62px; z-index: 20;
    box-shadow: 0 -8px 22px rgba(0,0,0,.18);
  }
  .clean-footer-actions .btn { flex: 1; max-width: none; }
  .compose-layout, .clean-compose-layout { height: auto; min-height: calc(100dvh - 62px); padding: 0 0 86px; }
  .clean-compose-card { height: auto; border-radius: 0; border: none; }
  .clean-compose-form { overflow: visible; }
  .clean-compose-form textarea { max-height: none; min-height: 280px; }
  .mobile-nav {
    display: grid; grid-template-columns: repeat(5,1fr);
    position: fixed; left: 10px; right: 10px; bottom: 10px;
    background: var(--panel-2);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px; box-shadow: 0 14px 34px rgba(0,0,0,.28);
    padding: 7px; z-index: 24;
  }
  .mobile-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px; color: var(--muted);
    font-size: 10px; font-weight: 700;
  }
  .mobile-nav a svg { width: 20px; height: 20px; }
  .mobile-nav a.active { color: #fff; }
  .mobile-nav a.primary { position: relative; top: -16px; }
  .mobile-nav a.primary span.icon {
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    box-shadow: 0 10px 22px rgba(229,57,53,.32);
    font-size: 22px;
  }
  .login-shell-premium { grid-template-columns: 1fr; border-radius: 0; }
  .login-visual-premium { min-height: 300px; padding: 30px 24px; }
  .brand-entrance h1 { font-size: 36px; }
  .floating-mail-card, .login-metrics { display: none; }
  .login-form-premium-wrap { padding: 28px 20px 36px; }
  .login-form-card { width: 100%; }
}
@media (max-width: 640px) {
  .login-panel-head h2 { font-size: 26px; }
  .login-assist { grid-template-columns: 1fr; }
  .form-logo-mobile { display: block; }
  .brand-entrance h1 { font-size: 30px; }
  .login-official-logo { width: 120px !important; }
  .field-grid { grid-template-columns: 1fr; }
  .compose-utility-row { align-items: stretch; }
  .compose-utility-row .btn, .file-field { width: 100%; justify-content: center; }
  .clean-compose-actions { display: grid; grid-template-columns: 1fr; }
  .clean-compose-actions .btn { max-width: none; width: 100%; }
  .compose-clean-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .compose-status { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
