/* MAILORA UI POLISH — shared layout and tier-aware design system
   CSS is intentionally layered after styles.css so these are the final,
   predictable component rules. 4px spacing rhythm; mobile-first. */

:root {
  --ui-space-1:4px; --ui-space-2:8px; --ui-space-3:12px;
  --ui-space-4:16px; --ui-space-5:20px; --ui-space-6:24px;
  --ui-space-8:32px; --ui-space-10:40px;
  --ui-radius-sm:10px; --ui-radius-md:14px; --ui-radius-lg:18px;
  --ui-radius-xl:24px; --ui-pill:999px;
  --ui-shadow-panel:0 10px 28px rgba(0,0,0,.16),inset 1px 1px 1px rgba(255,255,255,.045),inset -1px -1px 1px rgba(0,0,0,.08);
  --ui-shadow-control:0 5px 14px rgba(0,0,0,.12),inset 1px 1px 1px rgba(255,255,255,.08);
  --ui-focus:0 0 0 3px color-mix(in srgb,var(--ui-accent) 22%,transparent);
  --ui-motion:160ms ease;
}
html[data-tier="standard"] {
  --ui-accent: #00a884; 
  --ui-accent-strong: #008069;
  --ui-accent-soft: rgba(0,168,132,.12); 
  --ui-accent-border: rgba(0,168,132,.24);
  --ui-page: #0b141a; 
  --ui-panel: #111b21; 
  --ui-panel-raised: #202c33;
  --ui-text: #e9edef; 
  --ui-muted: #8696a0; 
  --ui-line: rgba(255,255,255,.1);
}

html[data-tier="premium"] {
  --ui-accent:#d7ad58; --ui-accent-strong:#a97827;
  --ui-accent-soft:rgba(215,173,88,.12); --ui-accent-border:rgba(215,173,88,.25);
  --ui-page:#11100e; --ui-panel:#1b1915; --ui-panel-raised:#242017;
  --ui-text:#f5f0e5; --ui-muted:#b8ad98; --ui-line:rgba(215,173,88,.18);
}
/* Shared type and spacing defaults */
html,body { text-rendering:optimizeLegibility; -webkit-font-smoothing:antialiased; }
button,input,textarea,select { font:inherit; }
button { -webkit-tap-highlight-color:transparent; }
:where(button,[role="button"],a,input,textarea,select):focus-visible {
  outline:0!important; box-shadow:var(--ui-focus)!important;
}
:where(button):disabled { opacity:.58; cursor:not-allowed; transform:none!important; }
.screen-container { overscroll-behavior:none; }
.scrollable-content { scrollbar-gutter:stable; }
#toast { max-width:calc(100vw - 32px); text-align:center; line-height:1.4; }

/* App chrome */
#dashboard-header { padding: max(16px,env(safe-area-inset-top)) 18px 10px!important; }
#dashboard-title { padding:12px 18px 10px!important; letter-spacing:.12em!important; }
.bottom-nav {
  min-height:68px; height:auto; padding:7px 8px max(7px,env(safe-area-inset-bottom));
  gap:4px; border-radius:20px 20px 0 0!important;
}
.nav-item { min-width:0; min-height:48px; gap:3px; border-radius:13px; transition:background var(--ui-motion),color var(--ui-motion); }
.nav-item.active { background:var(--ui-accent-soft); }
.nav-item i { font-size:19px; margin:0; }
.nav-item span { font-size:11px; line-height:1.2; letter-spacing:.01em; }
#inbox-container,#chat-list-container { padding:4px 0 12px; }
#chat-search-wrap { padding:12px 16px 10px!important; }
#chat-search-wrap > div { min-height:46px; border-radius:var(--ui-radius-lg)!important; }

/* 50% clay: tactile cards and controls, not every surface */
#dashboard-header,.bottom-nav,#tray,
.mailora-account-sheet,.mailora-profile-sheet,
.mailora-chat-menu-sheet,.mailora-message-actions,
.mailora-theme-row,.mailora-option-card,.mailora-detail-card {
  box-shadow:var(--ui-shadow-panel);
}
#chat-list-container > div:not(.text-center) {
  min-height:76px; margin:4px 12px!important; padding:12px 14px!important;
  border:1px solid var(--ui-accent-border); border-radius:var(--ui-radius-lg)!important;
  box-shadow:var(--ui-shadow-control); gap:12px;
}
.mailora-account-sheet,.mailora-profile-sheet { border:1px solid var(--ui-accent-border); }
.mailora-account-sheet { padding-bottom:max(16px,env(safe-area-inset-bottom)); }
.mailora-account-hero { margin:16px!important; padding:18px!important; border-radius:var(--ui-radius-xl)!important; }
.mailora-account-option { min-height:64px; margin:5px 16px; padding:12px 14px!important; border-radius:var(--ui-radius-md)!important; }
.mailora-option-icon { width:40px; height:40px; flex:0 0 40px; border-radius:13px!important; }
.mailora-profile-content { padding:0 18px 22px!important; }
.mailora-profile-info,.mailora-profile-status { margin:12px 0; padding:14px!important; border-radius:var(--ui-radius-lg)!important; }

/* Controls: one clear primary action, quieter secondary actions */
:where(.btn-google,.mailora-account-save,.mailora-profile-done,.mailora-view-status,#status-post-btn,#chat-send-btn,#fab-main) {
  font-weight:650; letter-spacing:.005em; transition:transform var(--ui-motion),filter var(--ui-motion),box-shadow var(--ui-motion);
}
.btn-google { min-height:44px; padding:11px 22px!important; border-radius:var(--ui-radius-md)!important; }
.btn-text { min-height:44px; padding:11px 10px!important; }
#fab-main { width:56px!important; height:56px!important; right:18px!important; bottom:calc(82px + env(safe-area-inset-bottom))!important; border-radius:18px!important; }
#chat-send-btn { width:46px!important; height:46px!important; flex:0 0 46px; border-radius:16px!important; }
#status-post-btn { min-height:44px; padding:11px 18px!important; }
.mailora-account-actions { align-items:stretch; }
.mailora-account-actions > button { min-height:42px; padding:10px 13px!important; border-radius:13px!important; }
.mailora-theme-toggle { min-height:48px; padding:10px 13px!important; border-radius:14px!important; }
.mailora-logout-action { min-height:48px; }
:where(.btn-google,.mailora-account-save,.mailora-profile-done,.mailora-view-status,#status-post-btn,#chat-send-btn,#fab-main):active {
  transform:translateY(1px) scale(.98); filter:brightness(1.04);
}

/* Inputs: consistent heights, focus and breathing room */
.google-input-container { margin-bottom:20px; }
.google-input { min-height:54px; padding:15px 14px!important; border-radius:13px!important; }
.google-label { top:17px; }
.google-input:focus { padding:14px 13px!important; }
input,textarea,select { accent-color:var(--ui-accent); }
#chat-input { min-height:46px!important; padding:12px 15px!important; border-radius:16px!important; }
#compose-to,#compose-subject,#compose-body { min-height:48px; }
#compose-body { line-height:1.6; }

/* Conversation rhythm and readable message width */
#screen-chat-room { background:var(--ui-page)!important; }
#screen-chat-room > .flex.items-center.gap-1:first-child { min-height:64px; padding:10px 12px!important; gap:7px!important; }
#chat-messages { padding:18px 0 22px!important; }
#chat-messages > .flex.justify-start,#chat-messages > .flex.justify-end { margin:5px 0!important; padding-inline:14px!important; }
#chat-messages [data-msg] { max-width:min(82%,560px)!important; padding:10px 12px 8px!important; line-height:1.48!important; }
#reply-bar { padding:10px 13px!important; }
#screen-chat-room > .flex.items-center.gap-2.px-2.py-2:last-child { padding:10px 12px max(10px,env(safe-area-inset-bottom))!important; gap:9px!important; }
.message-reactions { gap:6px; padding-top:7px; }
.reaction-chip { min-height:26px; padding:4px 8px; border-radius:var(--ui-pill); }

/* Status, sheets and media */
#status-page { padding-bottom:8px; }
#status-page > div { padding-inline:18px!important; }
#chat-status-rail { gap:16px!important; padding-bottom:6px; }
.status-person { flex-basis:68px; min-width:68px; gap:7px; }
.status-avatar-wrap,.status-ring { width:60px; height:60px; }
#status-modal > div { padding:20px!important; border-radius:24px 24px 0 0!important; padding-bottom:max(20px,env(safe-area-inset-bottom))!important; }
.status-reaction-bar { display:flex; justify-content:space-around; gap:10px; padding:12px 4px; }
.status-reaction-bar button { width:44px; height:44px; border-radius:14px; background:var(--ui-accent-soft); box-shadow:var(--ui-shadow-control); }

/* Tier-specific surface treatment; free stays teal, Premium stays champagne */
html[data-tier="standard"] :where(.mailora-account-option,.mailora-profile-info,.mailora-profile-status,.mailora-theme-row) {
  border-color:var(--ui-line);
}
html[data-tier="premium"] :where(.mailora-account-option,.mailora-profile-info,.mailora-profile-status,.mailora-theme-row) {
  border-color:var(--ui-accent-border);
}
html[data-tier="standard"] .nav-item.active { color:var(--ui-accent-strong)!important; }
html[data-tier="premium"] .nav-item.active { color:var(--ui-accent)!important; }

/* Responsive spacing */
@media (min-width:700px) {
  #dashboard-header { padding-inline:24px!important; }
  #inbox-container,#chat-list-container { max-width:900px; width:100%; margin-inline:auto; }
  #screen-chat-room { max-width:900px; margin-inline:auto; left:50%!important; transform:translateX(-50%); border-inline:1px solid var(--ui-line); }
  #chat-messages [data-msg] { max-width:min(70%,560px)!important; }
}
@media (max-width:420px) {
  #dashboard-header { padding-inline:14px!important; }
  #chat-list-container > div:not(.text-center) { margin-inline:8px!important; padding-inline:11px!important; }
  #chat-messages > .flex.justify-start,#chat-messages > .flex.justify-end { padding-inline:10px!important; }
  #chat-messages [data-msg] { max-width:88%!important; }
  .mailora-account-hero { margin:12px!important; padding:15px!important; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { transition:none!important; animation-duration:.01ms!important; animation-iteration-count:1!important; }
}



/* Status page — unified, compact and aligned */
#status-page{
  display:none;
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  background:var(--ui-page,#101b1a);
  overscroll-behavior:contain;
}
#status-page:not(.hidden){display:flex;flex-direction:column}
.status-page-header{
  width:100%;max-width:760px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:22px 20px 18px;
  border-bottom:1px solid var(--ui-line,rgba(255,255,255,.09));
}
.status-page-header h2{margin-top:4px;font-size:27px;line-height:1.15;font-weight:760;letter-spacing:-.04em;color:var(--ui-text,#f5f7f6)}
.status-page-header p{margin-top:5px;font-size:12px;line-height:1.45;color:var(--ui-muted,#9baaa7)}
.status-kicker{font-size:9px;letter-spacing:.17em;font-weight:800;color:var(--ui-accent,#43c9b8)}
.status-header-add{width:42px;height:42px;flex:0 0 42px;border:1px solid var(--ui-accent-border,rgba(67,201,184,.25));border-radius:14px;background:var(--ui-accent-soft,rgba(67,201,184,.12));color:var(--ui-accent-strong,#159c8e);display:grid;place-items:center;font-size:16px}
.status-page-content{width:100%;max-width:760px;margin:0 auto;padding:18px 20px 28px;display:flex;flex-direction:column;gap:23px}
.status-own-section,.status-updates-section{width:100%;min-width:0}
.status-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 1px 10px}
.status-section-heading h3{font-size:13px;font-weight:750;color:var(--ui-text,#f5f7f6)}
.status-section-heading>span{font-size:8px;letter-spacing:.1em;font-weight:750;color:var(--ui-muted,#9baaa7)}
.status-own-card{width:100%;min-height:76px;display:flex;align-items:center;gap:12px;padding:11px 13px;border:1px solid var(--ui-line,rgba(255,255,255,.09));border-radius:17px;background:var(--ui-surface,rgba(255,255,255,.035));box-shadow:var(--ui-shadow-soft,0 6px 18px rgba(0,0,0,.1))}
.status-own-avatar,.status-update-avatar{width:48px;height:48px;flex:0 0 48px;padding:3px;border-radius:50%;display:grid;place-items:center;background:var(--ui-line,rgba(255,255,255,.16))}
.status-own-avatar{border:0}
.status-own-avatar.has-status,.status-update-row.is-unviewed .status-update-avatar{background:linear-gradient(145deg,var(--ui-accent,#43c9b8),var(--ui-accent-strong,#159c8e))}
.status-own-avatar>img,.status-own-avatar>span,.status-update-avatar>span{width:100%;height:100%;border-radius:50%;overflow:hidden;display:grid;place-items:center;object-fit:cover;background:var(--ui-surface-raised,#23312f);color:var(--ui-text,#fff);font-size:18px;font-weight:700}
.status-own-avatar img,.status-update-avatar img{width:100%;height:100%;object-fit:cover}
.status-update-avatar i{font-size:14px}
.status-own-copy,.status-update-copy{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;gap:4px}
.status-own-copy strong,.status-update-copy strong{font-size:13px;font-weight:750;color:var(--ui-text,#f5f7f6)}
.status-own-copy span,.status-update-copy>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--ui-muted,#9baaa7)}
.status-own-add{width:34px;height:34px;flex:0 0 34px;border:1px solid var(--ui-accent-border,rgba(67,201,184,.25));border-radius:11px;background:var(--ui-accent-soft,rgba(67,201,184,.12));color:var(--ui-accent-strong,#159c8e)}
.status-updates-list{width:100%;display:flex;flex-direction:column;gap:7px}
.status-update-row{width:100%;min-height:68px;display:flex;align-items:center;gap:11px;padding:9px 11px;border:1px solid var(--ui-line,rgba(255,255,255,.055));border-radius:16px;background:var(--ui-surface,rgba(255,255,255,.025));text-align:left}
.status-update-row:active{background:var(--ui-accent-soft,rgba(67,201,184,.1))}
.status-update-row.is-viewed .status-update-avatar{background:var(--ui-line,rgba(255,255,255,.16))}
.status-update-time{flex:0 0 auto;align-self:center;font-size:9px;color:var(--ui-muted,#9baaa7);white-space:nowrap}
.status-empty{width:100%;padding:24px 18px;border:1px dashed var(--ui-line,rgba(255,255,255,.14));border-radius:17px;text-align:center;color:var(--ui-muted,#9baaa7)}
.status-empty-icon{width:38px;height:38px;margin:0 auto 10px;border-radius:12px;display:grid;place-items:center;background:var(--ui-accent-soft,rgba(67,201,184,.1));color:var(--ui-accent,#43c9b8);font-size:16px}
.status-empty strong{display:block;font-size:12px;color:var(--ui-text,#f5f7f6)}
.status-empty p{margin-top:4px;font-size:10px;line-height:1.5}
.status-expiry-note{display:flex;align-items:center;gap:7px;margin:0 2px;color:var(--ui-muted,#9baaa7);font-size:10px}
@media(min-width:700px){
 .status-page-header{padding:26px 24px 20px}
 .status-page-content{padding:22px 24px 32px;gap:26px}
 .status-own-card{padding:13px 15px}
 .status-update-row{padding:10px 13px}
}
@media(max-width:380px){
 .status-page-header{padding:19px 15px 16px}
 .status-page-content{padding:16px 14px 24px;gap:20px}
 .status-section-heading>span{font-size:7px}
 .status-update-row{gap:9px;padding:9px}
 .status-update-time{font-size:8px}
}


/* MAILORA Status redesign — stronger hierarchy, one clear create action */
#status-page{
  background:
    radial-gradient(ellipse at 12% 0%,color-mix(in srgb,var(--ui-accent,#20b8aa) 10%,transparent),transparent 42%),
    var(--ui-page,#101b1a);
}
.status-page-header{
  max-width:980px;
  padding:28px 24px 22px;
  border-bottom:0;
  align-items:flex-end;
}
.status-page-header h2{
  margin-top:7px;
  font-size:clamp(30px,5vw,38px);
  line-height:1.04;
  letter-spacing:-.055em;
}
.status-page-header p{
  max-width:360px;
  margin-top:8px;
  font-size:13px;
  line-height:1.55;
}
.status-kicker{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:10px;
  letter-spacing:.19em;
}
.status-kicker:before{
  content:"";
  width:7px;height:7px;border-radius:50%;
  background:var(--ui-accent,#20b8aa);
  box-shadow:0 0 0 4px var(--ui-accent-soft,rgba(32,184,170,.12));
}
.status-header-badge{
  display:inline-flex;align-items:center;gap:7px;
  padding:8px 11px;
  border:1px solid var(--ui-line,rgba(255,255,255,.1));
  border-radius:999px;
  background:var(--ui-surface,rgba(255,255,255,.035));
  color:var(--ui-muted,#9baaa7);
  font-size:10px;font-weight:750;letter-spacing:.08em;
  white-space:nowrap;
}
.status-page-content{
  max-width:980px;
  padding:4px 24px 34px;
  display:grid;
  grid-template-columns:minmax(245px,.82fr) minmax(0,1.35fr);
  align-items:start;
  column-gap:18px;
  row-gap:18px;
}
.status-own-section,.status-updates-section{
  min-width:0;
  padding:17px;
  border:1px solid var(--ui-line,rgba(255,255,255,.08));
  border-radius:22px;
  background:linear-gradient(155deg,var(--ui-surface-raised,rgba(255,255,255,.055)),var(--ui-surface,rgba(255,255,255,.02)));
  box-shadow:var(--ui-shadow-soft,0 8px 24px rgba(0,0,0,.12));
}
.status-section-heading{
  margin:0 0 14px;
  min-height:24px;
}
.status-section-heading h3{
  font-size:15px;
  letter-spacing:-.02em;
}
.status-section-heading>span{
  padding:5px 8px;
  border-radius:999px;
  background:var(--ui-accent-soft,rgba(32,184,170,.1));
  color:var(--ui-accent-strong,var(--ui-accent,#20b8aa));
  font-size:9px;
  letter-spacing:.04em;
  white-space:nowrap;
}
.status-own-card{
  min-height:104px;
  gap:13px;
  padding:15px;
  border-radius:17px;
  border-color:var(--ui-accent-border,rgba(32,184,170,.22));
  background:linear-gradient(135deg,var(--ui-accent-soft,rgba(32,184,170,.11)),var(--ui-surface,rgba(255,255,255,.025)) 72%);
  box-shadow:none;
}
.status-own-avatar,.status-update-avatar{
  width:54px;height:54px;flex-basis:54px;
}
.status-own-avatar.has-status{
  padding:3px;
  box-shadow:0 0 0 3px var(--ui-accent-soft,rgba(32,184,170,.13));
}
.status-own-copy{gap:6px}
.status-own-copy strong{font-size:14px}
.status-own-copy span{font-size:12px;line-height:1.4}
.status-own-add{
  width:38px;height:38px;flex-basis:38px;
  border-radius:13px;
  font-size:14px;
  box-shadow:0 5px 14px var(--ui-accent-glow,rgba(32,184,170,.14));
}
.status-updates-list{gap:8px}
.status-update-row{
  min-height:76px;
  gap:13px;
  padding:11px 13px;
  border-radius:16px;
  border-color:transparent;
  background:var(--ui-surface,rgba(255,255,255,.025));
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.status-update-row:hover{
  background:var(--ui-accent-soft,rgba(32,184,170,.07));
  border-color:var(--ui-accent-border,rgba(32,184,170,.2));
}
.status-update-avatar{
  padding:3px;
}
.status-update-avatar>span{
  font-size:19px;
}
.status-update-copy{gap:5px}
.status-update-copy strong{font-size:13px}
.status-update-copy>span{font-size:11px;line-height:1.35}
.status-update-time{
  padding:5px 7px;
  border-radius:8px;
  background:var(--ui-surface-raised,rgba(255,255,255,.045));
  font-size:10px;
}
.status-empty{
  padding:30px 18px;
  border-style:solid;
  border-color:var(--ui-line,rgba(255,255,255,.09));
  background:var(--ui-surface,rgba(255,255,255,.02));
}
.status-empty-icon{
  width:44px;height:44px;border-radius:15px;
}
.status-empty strong{font-size:13px}
.status-empty p{font-size:11px}
.status-expiry-note{
  grid-column:1/-1;
  justify-content:center;
  padding:4px 0 0;
  font-size:11px;
}
.status-header-badge i{font-size:12px}
.status-header-add:focus-visible,.status-own-card button:focus-visible,.status-update-row:focus-visible{
  outline:2px solid var(--ui-accent,#20b8aa);
  outline-offset:3px;
}
@media(max-width:680px){
  .status-page-header{
    align-items:flex-start;
    padding:23px 17px 17px;
  }
  .status-page-header h2{font-size:31px}
  .status-page-header p{font-size:12px;max-width:290px}
  .status-header-badge{margin-top:24px;padding:7px 9px;font-size:9px}
  .status-page-content{
    display:flex;
    flex-direction:column;
    gap:13px;
    padding:0 14px 26px;
  }
  .status-own-section,.status-updates-section{
    padding:14px;
    border-radius:19px;
  }
  .status-section-heading{margin-bottom:11px}
  .status-own-card{min-height:88px;padding:12px}
  .status-update-row{min-height:70px;padding:9px 10px;gap:10px}
  .status-update-avatar{width:48px;height:48px;flex-basis:48px}
  .status-update-time{font-size:9px}
  .status-expiry-note{padding:3px 4px 0;text-align:center;line-height:1.5}
}
@media(max-width:370px){
  .status-page-header{padding-inline:14px}
  .status-page-header h2{font-size:28px}
  .status-header-badge{font-size:8px}
  .status-page-content{padding-inline:11px}
  .status-own-section,.status-updates-section{padding:12px}
  .status-section-heading>span{font-size:8px;padding:4px 6px}
}


/* Centered text-status composer with selectable backgrounds */
#status-modal{align-items:center!important;padding:16px!important}
#status-modal>.status-composer-sheet{
  width:min(100%,470px);
  max-height:min(88dvh,760px);
  overflow-y:auto;
  border-radius:26px!important;
  border:1px solid var(--ui-line,rgba(255,255,255,.12))!important;
  background:var(--ui-panel,#171d1c)!important;
  padding:20px!important;
  padding-bottom:max(20px,env(safe-area-inset-bottom))!important;
}
#status-modal-header{align-items:flex-start}
.status-text-stage{
  position:relative;
  min-height:250px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:20px;
  background:linear-gradient(145deg,#17243b,#273a5d);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 10px 28px rgba(0,0,0,.16);
}
#status-text{
  display:block;
  width:100%;
  min-height:250px;
  max-height:42dvh;
  resize:none;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#fff!important;
  padding:34px 24px!important;
  text-align:center!important;
  font-size:clamp(22px,5vw,30px)!important;
  font-weight:650!important;
  line-height:1.35!important;
  letter-spacing:-.025em;
  caret-color:#fff;
}
#status-text::placeholder{color:rgba(255,255,255,.72)!important}
.status-text-counter{
  position:absolute;
  right:13px;bottom:11px;
  color:rgba(255,255,255,.72);
  font-size:10px;font-weight:650;
}
.status-background-picker{display:flex;align-items:center;gap:13px;margin-top:14px;flex-wrap:wrap}
.status-background-label{font-size:11px;font-weight:700;color:var(--ui-muted,#a7b4b1)}
.status-background-options{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.status-bg-swatch{
  width:29px;height:29px;border-radius:50%;
  border:2px solid rgba(255,255,255,.24);
  box-shadow:0 2px 7px rgba(0,0,0,.2);
  position:relative;
}
.status-bg-swatch[data-status-bg="midnight"]{background:linear-gradient(145deg,#17243b,#273a5d)}
.status-bg-swatch[data-status-bg="ocean"]{background:linear-gradient(145deg,#075e68,#13a6a0)}
.status-bg-swatch[data-status-bg="sunset"]{background:linear-gradient(145deg,#9e3e38,#f18a50)}
.status-bg-swatch[data-status-bg="berry"]{background:linear-gradient(145deg,#55245f,#a34c87)}
.status-bg-swatch[data-status-bg="forest"]{background:linear-gradient(145deg,#153f36,#4e8760)}
.status-bg-swatch[data-status-bg="rose"]{background:linear-gradient(145deg,#8e3d5b,#e58a9e)}
.status-bg-swatch[data-status-bg="sand"]{background:linear-gradient(145deg,#80613d,#d2a96e)}
.status-bg-swatch.is-selected{outline:2px solid var(--ui-accent,#20b8aa);outline-offset:3px;transform:scale(1.04)}
.status-bg-swatch:focus-visible{outline:2px solid var(--ui-accent,#20b8aa);outline-offset:4px}
#status-viewer-text.has-text-background{
  display:flex;
  min-height:34vh;
  align-items:center;
  justify-content:center;
  padding:30px 24px;
  margin-top:12px;
  border-radius:22px;
  text-align:center;
  font-size:clamp(24px,6vw,36px);
  font-weight:700;
  line-height:1.3;
  letter-spacing:-.03em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 12px 30px rgba(0,0,0,.2);
}
@media(max-width:480px){
  #status-modal>.status-composer-sheet{padding:17px!important;border-radius:23px!important}
  .status-text-stage,#status-text{min-height:230px}
  .status-background-picker{gap:10px}
  .status-bg-swatch{width:27px;height:27px}
}


/* MAILORA sticker consistency: square canvas, original image proportions, tiny star mark. */
.mailora-sticker-frame{position:relative;display:inline-flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;min-width:0;overflow:hidden;border-radius:12px}
.mailora-sticker-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;aspect-ratio:1/1}
.mailora-sticker-message{width:150px;height:150px;background:transparent;overflow:visible}
.mailora-sticker-preview{width:112px;height:112px;background:transparent}
.mailora-sticker-watermark{position:absolute;z-index:2;top:5px;right:5px;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;background:rgba(20,20,20,.58);font-size:8px;line-height:1;pointer-events:none;box-shadow:0 1px 4px rgba(0,0,0,.22)}
.mailora-sticker-favorite{position:absolute;z-index:3;left:5px;bottom:5px;font-size:10px;color:#ef7d91;text-shadow:0 1px 3px rgba(0,0,0,.7);pointer-events:none}

/* Clean tier tokens: free is teal/white; Premium is gold/black. */
html[data-tier="standard"]{--ui-accent:#16a99c;--ui-accent-strong:#08786f;--ui-accent-soft:rgba(22,169,156,.12);--ui-accent-border:rgba(22,169,156,.24);--ui-page:#f4fbfa;--ui-panel:#fff;--ui-panel-raised:#eaf7f5;--ui-text:#173b38;--ui-muted:#66817d;--ui-line:#d6eae7}
html[data-tier="premium"]{--ui-accent:#d7ad58;--ui-accent-strong:#a97827;--ui-accent-soft:rgba(215,173,88,.12);--ui-accent-border:rgba(215,173,88,.25);--ui-page:#10100f;--ui-panel:#191816;--ui-panel-raised:#242017;--ui-text:#f5f0e5;--ui-muted:#b8ad98;--ui-line:rgba(215,173,88,.2)}
html[data-tier="standard"] .status-page-header,html[data-tier="standard"] .status-page-content,html[data-tier="standard"] #tray-stickers,html[data-tier="standard"] #tray-emoji{background:#f4fbfa;color:#173b38}
html[data-tier="premium"] .status-page-header,html[data-tier="premium"] .status-page-content,html[data-tier="premium"] #tray-stickers,html[data-tier="premium"] #tray-emoji{background:#10100f;color:#f5f0e5}
html[data-tier="standard"] .status-expiry-note{color:#08786f}
html[data-tier="premium"] .status-expiry-note{color:#d7ad58}
html[data-tier="standard"] #mailora-upgrade-btn{background:#16a99c!important;color:#fff!important}
html[data-tier="premium"] #mailora-upgrade-btn{background:#d7ad58!important;color:#17120a!important}
html[data-tier="premium"] #mailora-upgrade-btn:disabled{opacity:1;cursor:default}


/* Sticker contrast pass — give every sticker a clear, consistent canvas. */
.mailora-sticker-frame {
  box-sizing:border-box;
  padding:9px;
  border:1px solid rgba(120,140,140,.22);
  border-radius:16px;
  background:linear-gradient(145deg,#edf5f4 0%,#dfeae8 100%);
  box-shadow:0 5px 14px rgba(0,0,0,.10),inset 0 1px 0 rgba(255,255,255,.8);
}
.mailora-sticker-image {
  object-fit:contain;
  border-radius:9px;
  filter:drop-shadow(0 3px 5px rgba(0,0,0,.16));
}
.mailora-sticker-message {
  width:150px;
  height:150px;
  flex:0 0 150px;
  padding:10px;
  border-radius:20px;
}
.mailora-sticker-preview {
  width:112px;
  height:112px;
  flex:0 0 112px;
  padding:8px;
  border-radius:17px;
}
html[data-tier="premium"] .mailora-sticker-frame {
  border-color:rgba(215,173,88,.28);
  background:linear-gradient(145deg,#302b20 0%,#211f1a 100%);
  box-shadow:0 5px 16px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.07);
}
html[data-tier="standard"] .mailora-sticker-frame {
  border-color:rgba(22,169,156,.2);
  background:linear-gradient(145deg,#f8fdfc 0%,#e5f2f0 100%);
}
#mailora-upgrade-btn { min-width:max-content; }
html[data-tier="premium"] #mailora-upgrade-btn {
  padding-inline:12px!important;
  font-size:12px!important;
  letter-spacing:-.01em;
}
@media(max-width:380px) {
  .mailora-sticker-message { width:136px;height:136px;flex-basis:136px; }
  .mailora-sticker-preview { width:104px;height:104px;flex-basis:104px; }
}


/* Full-screen status playback and viewer insights */
#status-modal.status-viewing{position:fixed!important;inset:0!important;padding:0!important;background:#050607!important;z-index:120!important;display:flex!important;align-items:stretch!important;justify-content:stretch!important}
#status-modal.status-viewing>.status-composer-sheet{width:100%!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important;padding:calc(env(safe-area-inset-top) + 14px) 16px calc(env(safe-area-inset-bottom) + 18px)!important;background:#090a0c!important;display:flex;flex-direction:column;overflow-y:auto}
#status-modal.status-viewing #status-viewer{display:flex;flex:1;min-height:0;flex-direction:column;justify-content:center;gap:12px}
#status-modal.status-viewing #status-viewer-media{width:100%;height:min(72dvh,760px);max-height:none!important;flex:1;min-height:0;border-radius:14px!important}
#status-modal.status-viewing .status-fullscreen-media{width:100%;height:100%;max-height:100%;object-fit:contain}
.status-viewer-progress{font-size:11px;color:#aab0b5;text-align:right}
.status-viewer-navigation{display:flex;justify-content:space-between;gap:12px}
.status-viewer-navigation button{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff}
.status-insight-row{display:grid;grid-template-columns:1fr auto;gap:6px 12px;padding:15px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:#1b1d20}
.status-insight-row small{grid-column:1/-1;color:#aeb4bb;line-height:1.5}
.status-insight-row b{color:#20b8aa;white-space:nowrap}
.status-viewer-viewers{display:flex;flex-wrap:wrap;gap:6px;color:#c9d2d4;font-size:12px}


/* Per-status viewer identities and exact view times */
.status-insight-row{display:block}
.status-insight-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.status-insight-heading strong{min-width:0;overflow-wrap:anywhere}
.status-insight-viewers{display:grid;gap:8px}
.status-insight-viewer,.status-viewer-person{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border-radius:10px;background:rgba(255,255,255,.055)}
.status-insight-viewer span,.status-viewer-person-name{font-size:13px;color:#f3f4f6;font-weight:500;min-width:0}
.status-insight-viewer time,.status-viewer-person time{font-size:11px;color:#aeb4bb;text-align:right;white-space:nowrap}
.status-insight-empty,.status-viewer-empty{font-size:12px;color:#aeb4bb}
.status-viewer-viewers{display:grid;gap:7px;width:100%;max-height:24vh;overflow-y:auto}
.status-viewer-viewers-heading{font-size:12px;color:#20b8aa;margin-bottom:2px}


/* Status insights live directly on the dedicated Status page. */
.status-insights-section{width:100%;min-width:0;padding:17px;border:1px solid var(--ui-line,rgba(255,255,255,.08));border-radius:22px;background:linear-gradient(155deg,var(--ui-surface-raised,rgba(255,255,255,.055)),var(--ui-surface,rgba(255,255,255,.02)));box-shadow:var(--ui-shadow-soft,0 8px 24px rgba(0,0,0,.12))}
.status-insights-list{display:grid;gap:9px}
.status-insight-row{display:block;padding:13px;border:1px solid var(--ui-line,rgba(255,255,255,.08));border-radius:15px;background:var(--ui-surface,rgba(255,255,255,.025));color:var(--ui-text,#f5f7f6)}
.status-insight-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.status-insight-heading strong{min-width:0;overflow-wrap:anywhere;font-size:13px;color:var(--ui-text,#f5f7f6)}
.status-insight-heading b{flex:0 0 auto;color:var(--ui-accent-strong,var(--ui-accent,#20b8aa));font-size:12px;white-space:nowrap}
.status-insight-viewers{display:grid;gap:7px}
.status-insight-viewer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border-radius:10px;background:var(--ui-panel-raised,rgba(255,255,255,.045))}
.status-insight-viewer span{min-width:0;font-size:12px;font-weight:600;color:var(--ui-text,#f5f7f6)}
.status-insight-viewer time{flex:0 0 auto;font-size:10px;color:var(--ui-muted,#9baaa7);text-align:right;white-space:nowrap}
.status-insight-empty,.status-insight-loading{padding:13px 4px;font-size:11px;line-height:1.5;color:var(--ui-muted,#9baaa7)}
@media(max-width:680px){.status-insights-section{padding:14px;border-radius:19px}.status-insight-row{padding:11px}.status-insight-viewer{gap:8px}.status-insight-viewer time{font-size:9px}}


/* WhatsApp-inspired full-screen status viewer: media first, viewers below it. */
#status-modal.status-viewing{position:fixed!important;inset:0!important;z-index:120!important;display:flex!important;align-items:stretch!important;justify-content:stretch!important;padding:0!important;background:#050607!important}
#status-modal.status-viewing>.status-composer-sheet{display:flex!important;flex-direction:column!important;width:100%!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;margin:0!important;padding:calc(env(safe-area-inset-top) + 10px) 0 calc(env(safe-area-inset-bottom) + 10px)!important;border:0!important;border-radius:0!important;background:#050607!important;overflow:hidden!important}
#status-modal.status-viewing #status-modal-header{flex:0 0 auto;margin:0!important;padding:7px 17px 12px!important}
#status-modal.status-viewing #status-modal-title{font-size:14px!important}
#status-modal.status-viewing #status-viewer{display:flex!important;flex:1 1 auto!important;min-height:0!important;flex-direction:column!important;gap:0!important;overflow:hidden!important}
#status-modal.status-viewing .status-viewer-progress{display:flex!important;flex:0 0 4px!important;gap:4px!important;width:100%!important;padding:0 12px!important;margin:0 0 10px!important}
.status-progress-segment{display:block;flex:1;height:3px;border-radius:99px;background:rgba(255,255,255,.24);overflow:hidden}
.status-progress-segment.is-active{background:rgba(255,255,255,.9)}
.status-progress-segment i{display:block;width:100%;height:100%;background:#fff}
#status-modal.status-viewing .status-viewer-scroll{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;padding:0 14px 18px!important}
#status-modal.status-viewing .status-viewer-media{width:100%!important;height:min(62dvh,620px)!important;min-height:250px!important;max-height:none!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;border-radius:15px!important;background:#0c0d0f!important}
#status-modal.status-viewing .status-fullscreen-media{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
#status-modal.status-viewing #status-viewer-text{margin:12px 0 0!important;padding:0 4px!important;font-size:15px!important;line-height:1.5!important}
#status-modal.status-viewing #status-viewer-text.has-text-background{min-height:0!important;padding:22px 18px!important;margin-top:12px!important;border-radius:14px!important;font-size:23px!important}
#status-modal.status-viewing #status-viewer-meta{margin:10px 4px 13px!important;font-size:11px!important}
#status-modal.status-viewing .status-viewer-viewers{display:grid!important;width:100%!important;max-height:none!important;overflow:visible!important;gap:0!important;margin:0!important;padding:15px 13px!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:16px!important;background:#111417!important}
.status-viewer-viewers-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px!important;color:#fff!important;font-size:13px!important}
.status-viewer-person{padding:11px 2px!important;border-radius:0!important;border-bottom:1px solid rgba(255,255,255,.07)!important;background:transparent!important}
.status-viewer-person:last-child{border-bottom:0!important}
.status-viewer-person-name{font-size:13px!important;color:#f4f6f7!important}
.status-viewer-person time{font-size:11px!important;color:#9ca5ad!important}
.status-viewer-empty{padding:5px 0!important;color:#aab2b9!important}
#status-modal.status-viewing .status-viewer-navigation{display:flex!important;flex:0 0 auto!important;justify-content:space-between!important;padding:8px 16px!important}
#status-modal.status-viewing .status-viewer-navigation button{width:42px;height:42px;border-radius:50%;background:#202428;color:#fff}
#status-modal.status-viewing .status-reaction-bar{flex:0 0 auto!important;padding:8px 16px max(8px,env(safe-area-inset-bottom))!important}
.status-history-row{display:flex;width:100%;align-items:center;gap:12px;padding:10px 11px;margin-bottom:8px;border:1px solid var(--ui-line,rgba(255,255,255,.08));border-radius:15px;background:var(--ui-surface,rgba(255,255,255,.035));text-align:left}
.status-history-thumb{display:flex;flex:0 0 48px;width:48px;height:58px;align-items:center;justify-content:center;object-fit:cover;border-radius:9px;background:var(--ui-panel-raised,#25302e);color:var(--ui-accent-strong,#16a99c)}
.status-history-video,.status-history-text{font-size:16px}
.status-history-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}
.status-history-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--ui-text,#f5f7f6)}
.status-history-copy small{font-size:10px;color:var(--ui-muted,#9baaa7)}
.status-history-open{color:var(--ui-muted,#9baaa7);font-size:11px}
@media(max-width:680px){#status-modal.status-viewing .status-viewer-media{height:55dvh!important;min-height:220px!important}.status-history-row{padding:9px}.status-history-thumb{width:44px;height:54px;flex-basis:44px}}

#status-modal.status-viewing .status-viewer-viewers.hidden{display:none!important}


/* WhatsApp-inspired sticker picker: compact category rail and a real Starred tab. */
#tray-stickers{background:var(--ui-panel,#171d1c);color:var(--ui-text,#f5f7f6)}
.mailora-sticker-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:7px 2px 11px;margin:-2px -2px 12px;background:var(--ui-panel,#171d1c);border-bottom:1px solid var(--ui-line,rgba(255,255,255,.09))}
.mailora-sticker-tab{min-width:0;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;border-radius:11px;background:transparent;color:var(--ui-muted,#9baaa7);font-size:10px;font-weight:650}
.mailora-sticker-tab i{font-size:17px}
.mailora-sticker-tab.is-active{background:var(--ui-accent-soft,rgba(32,184,170,.12));color:var(--ui-accent-strong,var(--ui-accent,#20b8aa))}
.mailora-sticker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding-bottom:8px}
.mailora-sticker-tile{position:relative;min-width:0;aspect-ratio:1/1;padding:4px;border:1px solid var(--ui-line,rgba(255,255,255,.08));border-radius:13px;background:var(--ui-panel-raised,#eaf7f5);overflow:visible}
.mailora-sticker-tile .mailora-sticker-frame{height:100%;padding:5px;border:0;border-radius:9px;background:transparent;box-shadow:none}
.mailora-sticker-tile .mailora-sticker-image{filter:none}
.mailora-sticker-tile-star{position:absolute;top:2px;right:2px;z-index:4;width:25px;height:25px;display:grid;place-items:center;border:1px solid var(--ui-line,rgba(255,255,255,.16));border-radius:50%;background:var(--ui-panel,#fff);color:var(--ui-muted,#66817d);font-size:12px;box-shadow:0 2px 6px rgba(0,0,0,.14)}
.mailora-sticker-tile-star.is-starred{color:#e4aa35;border-color:rgba(228,170,53,.4);background:var(--ui-panel,#fff)}
.mailora-sticker-create{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 12px;padding:10px;border:1px solid var(--ui-accent-border,rgba(32,184,170,.24));border-radius:12px;background:var(--ui-accent-soft,rgba(32,184,170,.08));color:var(--ui-accent-strong,var(--ui-accent,#20b8aa));font-size:12px;font-weight:700}
.mailora-sticker-empty{min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:20px;text-align:center;color:var(--ui-muted,#9baaa7)}
.mailora-sticker-empty>i{font-size:25px;color:var(--ui-accent,#20b8aa);margin-bottom:3px}
.mailora-sticker-empty strong{font-size:12px;color:var(--ui-text,#173b38)}
.mailora-sticker-empty span{max-width:220px;font-size:10px;line-height:1.5}
@media(max-width:380px){.mailora-sticker-grid{gap:6px}.mailora-sticker-tile{padding:3px}.mailora-sticker-tile-star{width:23px;height:23px}}
html[data-tier="premium"] .mailora-sticker-tile{background:#242017;border-color:rgba(215,173,88,.2)}
html[data-tier="standard"] .mailora-sticker-tile{background:#eaf7f5;border-color:#d6eae7}

/* Status page top alignment: remove the extra vertical drop beneath the app header. */
#status-page{
  align-self:stretch!important;
  margin-block-start:0!important;
  padding-block-start:0!important;
}
#status-page .status-page-header{
  margin-block-start:0!important;
  padding-block-start:12px!important;
}
#status-page .status-page-content{
  margin-block-start:0!important;
  padding-block-start:0!important;
}
@media(max-width:680px){
  #status-page .status-page-header{padding-top:12px!important}
  #status-page .status-page-content{padding-top:0!important}
}


/* Status viewer layout: center the actual photo or text card between the header and footer. */
#status-modal.status-viewing #status-viewer-scroll{
  display:flex!important;
  flex:1 1 auto!important;
  min-height:0!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:14px!important;
  padding:clamp(24px,4dvh,38px) 14px clamp(28px,4dvh,40px)!important;
  overflow-y:auto!important;
}
#status-modal.status-viewing #status-viewer-media{
  flex:0 0 auto!important;
  width:100%!important;
  height:min(68dvh,680px)!important;
  min-height:min(48dvh,340px)!important;
  max-height:none!important;
  margin:auto 0!important;
  border-radius:16px!important;
}
#status-modal.status-viewing #status-viewer-media.hidden{
  display:none!important;
}
#status-modal.status-viewing #status-viewer-text{
  flex:0 0 auto!important;
  width:100%!important;
  margin:0!important;
  padding:0 5px!important;
  text-align:center!important;
  overflow-wrap:anywhere!important;
}
#status-modal.status-viewing #status-viewer-scroll.is-text-only #status-viewer-text.has-text-background{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:min(68dvh,680px)!important;
  height:min(68dvh,680px)!important;
  margin:auto 0!important;
  padding:28px 22px!important;
  border-radius:16px!important;
  box-sizing:border-box!important;
  text-align:center!important;
  font-size:clamp(22px,5vw,30px)!important;
  line-height:1.45!important;
}
#status-modal.status-viewing #status-viewer-meta{
  flex:0 0 auto!important;
  margin:0 4px 4px!important;
}
#status-modal.status-viewing #status-viewer-viewers{
  flex:0 0 auto!important;
}
@media(max-width:680px){
  #status-modal.status-viewing #status-viewer-scroll{
    padding:24px 13px 30px!important;
    gap:12px!important;
  }
  #status-modal.status-viewing #status-viewer-media{
    height: min(68dvh, 620px)!important;
    min-height: min(48dvh, 300px)!important;
  }
  #status-modal.status-viewing #status-viewer-scroll.is-text-only #status-viewer-text.has-text-background{
    height:min(68dvh,620px)!important;
    min-height:min(48dvh,300px)!important;
  }
}


/* WhatsApp-inspired status interactions */
#status-viewer-actions.status-reaction-bar{
  display:flex;flex-direction:column;gap:12px;padding:12px 16px max(14px,env(safe-area-inset-bottom));
  background:linear-gradient(180deg,rgba(10,12,14,.72),rgba(10,12,14,.97));
  border-top:1px solid rgba(255,255,255,.09);backdrop-filter:blur(18px);
}
.status-quick-reactions{display:flex;align-items:center;justify-content:space-around;gap:12px}
.status-quick-reactions button{
  width:46px;height:46px;display:grid;place-items:center;border-radius:50%;
  background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.12);
  font-size:23px;transition:transform .16s ease,background .16s ease;
}
.status-quick-reactions button:active{transform:scale(1.14);background:rgba(255,255,255,.2)}
.status-reply-composer{display:flex;align-items:center;gap:9px;min-height:48px}
.status-reply-composer input{
  flex:1;min-width:0;height:46px;padding:0 16px;border-radius:24px;
  color:#fff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);
  outline:none;font-size:14px;
}
.status-reply-composer input::placeholder{color:rgba(255,255,255,.68)}
.status-reply-composer button{width:46px;height:46px;flex:0 0 46px;border-radius:50%;background:var(--ui-accent);color:#101719;font-size:16px}
.mailora-status-reply-quote{display:flex;flex-direction:column;gap:4px;margin:0 0 7px;padding:8px 10px;border-left:3px solid var(--ui-accent);border-radius:8px;background:rgba(0,0,0,.18);min-width:190px}
.mailora-status-reply-label{font-size:11px;font-weight:700;color:var(--ui-accent)}
.mailora-status-reply-preview{font-size:12px;color:rgba(255,255,255,.82);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px}


/* MAILORA Moments — refined, WhatsApp-inspired status surface */
#status-page{
  background:var(--ui-page,#101b1a)!important;
  background-image:none!important;
}
#status-page .status-page-header{
  max-width:760px!important;
  width:100%!important;
  align-items:center!important;
  padding:18px 20px 15px!important;
  border-bottom:1px solid var(--ui-line,rgba(255,255,255,.08))!important;
}
#status-page .status-kicker{display:none!important}
#status-page .status-page-header h2{
  margin:0!important;font-size:25px!important;font-weight:750!important;
  letter-spacing:-.045em!important;line-height:1.15!important;
}
#status-page .status-page-header p{
  margin-top:5px!important;font-size:12px!important;line-height:1.4!important;
  color:var(--ui-muted,#9baaa7)!important;
}
#status-page .status-page-content{
  display:flex!important;flex-direction:column!important;
  max-width:760px!important;width:100%!important;
  padding:16px 20px 28px!important;gap:22px!important;
}
#status-page .status-own-section,
#status-page .status-updates-section{
  padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
}
#status-page .status-insights-section{
  padding:0!important;margin:0!important;
}
#status-page .status-section-heading{
  min-height:0!important;margin:0 2px 10px!important;
  align-items:center!important;
}
#status-page .status-section-heading h3{
  font-size:14px!important;font-weight:700!important;letter-spacing:-.015em!important;
}
#status-page .status-section-heading>span{
  padding:0!important;background:transparent!important;border:0!important;
  color:var(--ui-muted,#9baaa7)!important;font-size:9px!important;
  letter-spacing:.07em!important;
}
#status-page .status-own-card{
  min-height:82px!important;padding:12px 13px!important;gap:13px!important;
  border:1px solid var(--ui-line,rgba(255,255,255,.09))!important;
  border-radius:17px!important;
  background:var(--ui-surface,rgba(255,255,255,.035))!important;
  box-shadow:none!important;
}
#status-page .status-own-avatar,
#status-page .status-update-avatar{
  width:52px!important;height:52px!important;flex-basis:52px!important;
}
#status-page .status-own-avatar.has-status,
#status-page .status-update-row.is-unviewed .status-update-avatar{
  background:conic-gradient(from 20deg,#20b8aa,#70d6a7,#20b8aa)!important;
  box-shadow:0 0 0 1px var(--ui-page,#101b1a)!important;
}
#status-page .status-own-copy strong,
#status-page .status-update-copy strong{font-size:14px!important;font-weight:700!important}
#status-page .status-own-copy span,
#status-page .status-update-copy>span{
  font-size:12px!important;line-height:1.4!important;
  color:var(--ui-muted,#9baaa7)!important;
}
#status-page .status-own-add{
  width:35px!important;height:35px!important;flex-basis:35px!important;
  border-radius:50%!important;border:0!important;
  background:var(--ui-accent,#20b8aa)!important;color:#06201d!important;
  box-shadow:none!important;
}
#status-page .status-updates-list{gap:0!important}
#status-page .status-update-row{
  min-height:76px!important;padding:10px 4px!important;gap:13px!important;
  border:0!important;border-bottom:1px solid var(--ui-line,rgba(255,255,255,.075))!important;
  border-radius:0!important;background:transparent!important;
}
#status-page .status-update-row:last-child{border-bottom:0!important}
#status-page .status-update-row:hover,
#status-page .status-update-row:active{
  background:var(--ui-accent-soft,rgba(32,184,170,.07))!important;
}
#status-page .status-update-avatar{padding:3px!important}
#status-page .status-update-avatar>span{
  background:var(--ui-surface-raised,#23312f)!important;
  font-size:18px!important;
}
#status-page .status-update-time{
  align-self:flex-start;margin-top:5px;padding:0!important;
  background:transparent!important;font-size:10px!important;
  color:var(--ui-muted,#9baaa7)!important;
}
#status-page .status-empty{
  padding:25px 16px!important;border:1px dashed var(--ui-line,rgba(255,255,255,.15))!important;
  border-radius:15px!important;background:var(--ui-surface,rgba(255,255,255,.02))!important;
}
#status-page .status-empty-icon{
  width:42px!important;height:42px!important;border-radius:50%!important;
}
#status-page .status-expiry-note{
  justify-content:center!important;padding-top:0!important;
  font-size:10px!important;opacity:.8;
}
#status-modal.status-viewing .status-viewer-progress{
  padding:0 14px!important;gap:4px!important;margin-bottom:12px!important;
}
#status-modal.status-viewing .status-progress-segment{
  height:3px!important;border-radius:10px!important;background:rgba(255,255,255,.28)!important;
}
#status-modal.status-viewing .status-progress-segment.is-active{background:rgba(255,255,255,.38)!important}
#status-modal.status-viewing .status-viewer-scroll{
  padding:0 12px 16px!important;
}
#status-modal.status-viewing .status-viewer-navigation button{
  width:38px!important;height:38px!important;background:rgba(255,255,255,.10)!important;
  border:1px solid rgba(255,255,255,.09)!important;
}
#status-modal.status-viewing .status-reaction-bar{
  gap:10px!important;padding:10px 14px max(12px,env(safe-area-inset-bottom))!important;
  background:rgba(9,14,15,.96)!important;
}
#status-modal.status-viewing .status-quick-reactions{justify-content:flex-start!important;gap:12px!important}
#status-modal.status-viewing .status-quick-reactions button{
  width:40px!important;height:40px!important;font-size:21px!important;
  border-radius:50%!important;background:rgba(255,255,255,.09)!important;
  border:1px solid rgba(255,255,255,.08)!important;
}
#status-modal.status-viewing .status-reply-composer input{
  height:44px!important;border-radius:22px!important;
  background:rgba(255,255,255,.10)!important;border-color:rgba(255,255,255,.13)!important;
}
#status-modal.status-viewing .status-reply-composer button{
  width:44px!important;height:44px!important;flex-basis:44px!important;
  background:var(--ui-accent,#20b8aa)!important;color:#06201d!important;
}
@media(max-width:680px){
  #status-page .status-page-header{padding:15px 17px 13px!important}
  #status-page .status-page-header h2{font-size:24px!important}
  #status-page .status-page-content{padding:13px 16px 24px!important;gap:19px!important}
  #status-page .status-own-card{min-height:76px!important;padding:10px 11px!important}
  #status-page .status-own-avatar,
  #status-page .status-update-avatar{width:50px!important;height:50px!important;flex-basis:50px!important}
  #status-page .status-update-row{min-height:72px!important;padding:9px 2px!important}
}
@media(min-width:681px){
  #status-page .status-page-content{padding-top:20px!important}
  #status-page .status-own-section,#status-page .status-updates-section{max-width:100%!important}
}


/* MAILORA tactile claymorphism pass — soft raised surfaces, inset fields and depth. */
html[data-tier="standard"]{
  --ui-clay-raised:7px 7px 16px rgba(133,169,164,.27),-7px -7px 16px rgba(255,255,255,.96),inset 1px 1px 0 rgba(255,255,255,.9);
  --ui-clay-inset:inset 5px 5px 11px rgba(133,169,164,.2),inset -5px -5px 11px rgba(255,255,255,.92);
  --ui-clay-soft:4px 4px 10px rgba(133,169,164,.2),-4px -4px 10px rgba(255,255,255,.9);
}
html[data-tier="premium"]{
  --ui-clay-raised:8px 8px 18px rgba(0,0,0,.42),-6px -6px 16px rgba(255,255,255,.035),inset 1px 1px 0 rgba(255,255,255,.055);
  --ui-clay-inset:inset 5px 5px 12px rgba(0,0,0,.34),inset -4px -4px 10px rgba(255,255,255,.035);
  --ui-clay-soft:4px 4px 10px rgba(0,0,0,.3),-4px -4px 10px rgba(255,255,255,.025);
}
#dashboard-header,.bottom-nav,#chat-search-wrap>div,
#chat-list-container>div:not(.text-center),
.mailora-account-sheet,.mailora-profile-sheet,
.mailora-account-hero,.mailora-account-option,
.mailora-profile-info,.mailora-profile-status,
.mailora-option-card,.mailora-detail-card{
  box-shadow:var(--ui-clay-raised)!important;
}
#chat-list-container>div:not(.text-center){
  border:1px solid var(--ui-accent-border)!important;
  background:var(--ui-panel)!important;
  border-radius:20px!important;
}
#chat-search-wrap>div{
  background:var(--ui-panel-raised)!important;
  border:1px solid var(--ui-line)!important;
  box-shadow:var(--ui-clay-inset)!important;
}
#chat-input,.google-input,#compose-to,#compose-subject,#compose-body{
  background:var(--ui-panel-raised)!important;
  border:1px solid var(--ui-line)!important;
  box-shadow:var(--ui-clay-inset)!important;
}
#chat-send-btn,#fab-main,.mailora-account-actions>button,
.mailora-theme-toggle,.mailora-option-icon{
  box-shadow:var(--ui-clay-raised)!important;
}
#status-page{
  background:radial-gradient(ellipse at 12% 0%,var(--ui-accent-soft),transparent 42%),var(--ui-page)!important;
}
#status-page .status-page-header{
  padding:20px 20px 15px!important;
  border:0!important;
}
#status-page .status-page-header h2{
  font-size:27px!important;letter-spacing:-.05em!important;
}
#status-page .status-page-content{
  gap:18px!important;padding:12px 18px 30px!important;
}
#status-page .status-own-section,
#status-page .status-insights-section,
#status-page .status-updates-section{
  padding:15px!important;
  border:1px solid var(--ui-line)!important;
  border-radius:23px!important;
  background:var(--ui-panel)!important;
  box-shadow:var(--ui-clay-raised)!important;
}
#status-page .status-section-heading{
  margin:0 2px 13px!important;
}
#status-page .status-section-heading h3{
  font-size:14px!important;font-weight:760!important;
}
#status-page .status-section-heading>span{
  letter-spacing:.055em!important;font-size:8px!important;
}
#status-page .status-own-card{
  min-height:88px!important;padding:13px!important;
  border:1px solid var(--ui-accent-border)!important;
  border-radius:19px!important;background:var(--ui-panel-raised)!important;
  box-shadow:var(--ui-clay-inset)!important;
}
#status-page .status-own-avatar{
  box-shadow:var(--ui-clay-raised)!important;
}
#status-page .status-own-add{
  box-shadow:var(--ui-clay-raised)!important;
}
#status-page .status-insights-list{
  display:flex!important;flex-direction:column!important;gap:9px!important;
}
#status-page .status-history-row{
  min-height:74px!important;margin:0!important;padding:10px!important;
  border:1px solid var(--ui-line)!important;border-radius:17px!important;
  background:var(--ui-panel-raised)!important;
  box-shadow:var(--ui-clay-soft)!important;
}
#status-page .status-history-thumb{
  border-radius:12px!important;box-shadow:var(--ui-clay-inset)!important;
}
#status-page .status-history-copy strong{font-size:12px!important}
#status-page .status-history-copy small{font-size:10px!important;color:var(--ui-muted)!important}
#status-page .status-updates-list{gap:9px!important}
#status-page .status-update-row{
  min-height:76px!important;padding:10px!important;
  border:1px solid var(--ui-line)!important;border-radius:17px!important;
  background:var(--ui-panel-raised)!important;
  box-shadow:var(--ui-clay-soft)!important;
}
#status-page .status-update-row:last-child{border-bottom:1px solid var(--ui-line)!important}
#status-page .status-update-row:hover,
#status-page .status-update-row:active{
  background:var(--ui-accent-soft)!important;
  box-shadow:var(--ui-clay-inset)!important;
}
#status-page .status-update-avatar{
  box-shadow:var(--ui-clay-raised)!important;
}
#status-page .status-empty{
  border:1px dashed var(--ui-accent-border)!important;
  background:var(--ui-panel-raised)!important;
  box-shadow:var(--ui-clay-inset)!important;
}
#status-page .status-expiry-note{
  padding:4px 8px!important;color:var(--ui-muted)!important;
}
#status-modal.status-viewing .status-viewer-viewers{
  border:1px solid rgba(255,255,255,.1)!important;
  border-radius:19px!important;
  background:linear-gradient(145deg,#171c1e,#101416)!important;
  box-shadow:7px 7px 18px rgba(0,0,0,.38),-5px -5px 14px rgba(255,255,255,.025),inset 1px 1px 0 rgba(255,255,255,.035)!important;
}
.status-insight-group+.status-insight-group{
  margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.09);
}
.status-insight-group .status-viewer-viewers-heading{
  display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;
  color:#f5f7f7;font-size:13px;
}
.status-insight-group .status-viewer-viewers-heading span{display:flex;align-items:center;gap:8px}
.status-insight-group .status-viewer-viewers-heading i{color:var(--ui-accent)}
.status-insight-group .status-viewer-viewers-heading b{
  min-width:25px;padding:3px 7px;border-radius:99px;
  background:rgba(255,255,255,.08);font-size:10px;text-align:center;
}
.status-insight-person,.status-insight-reply{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 2px;border-bottom:1px solid rgba(255,255,255,.07);
}
.status-insight-person:last-child,.status-insight-reply:last-child{border-bottom:0}
.status-insight-person-copy{display:flex;min-width:0;flex-direction:column;gap:4px}
.status-insight-person-copy strong{
  color:#f2f5f5;font-size:12px;font-weight:700;
}
.status-insight-person-copy small{
  overflow:hidden;max-width:220px;color:#aab4b7;font-size:11px;
  text-overflow:ellipsis;white-space:nowrap;
}
.status-insight-person time,.status-insight-reply time{
  flex:0 0 auto;color:#899599;font-size:9px;
}
.status-insight-reply .status-insight-person-copy small{
  max-width:260px;color:#d0d8d9;font-size:12px;
}
#status-modal.status-viewing .status-reply-composer input{
  box-shadow:inset 4px 4px 9px rgba(0,0,0,.24),inset -3px -3px 8px rgba(255,255,255,.035)!important;
}
#status-modal.status-viewing .status-quick-reactions button,
#status-modal.status-viewing .status-reply-composer button{
  box-shadow:5px 5px 12px rgba(0,0,0,.32),-3px -3px 9px rgba(255,255,255,.035)!important;
}
.mailora-status-reply-quote{
  border:1px solid var(--ui-accent-border);
  box-shadow:var(--ui-clay-inset);
}
@media(max-width:680px){
  #status-page .status-page-header{padding:16px 17px 12px!important}
  #status-page .status-page-content{padding:10px 13px 24px!important;gap:15px!important}
  #status-page .status-own-section,
  #status-page .status-insights-section,
  #status-page .status-updates-section{padding:12px!important;border-radius:20px!important}
  #status-page .status-own-card{min-height:82px!important}
}
