:root{--tm-sidebar:236px;--tm-header:60px}
.tm-shell{min-height:100vh;background:var(--ui-bg,#eef2f7);color:var(--ui-text)}
.tm-header{height:var(--tm-header);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 20px;background:var(--ui-surface,#fff);border-bottom:1px solid var(--ui-border,#d8e0e9);position:sticky;top:0;z-index:20}
.tm-brand{display:flex;align-items:center;gap:10px;font-weight:800;color:inherit;text-decoration:none}
.tm-brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--ui-primary,#335dff);color:#fff;font-weight:900}
.tm-workspace{display:grid;grid-template-columns:var(--tm-sidebar) minmax(0,1fr);min-height:calc(100vh - var(--tm-header))}
.tm-sidebar{padding:14px 10px;background:var(--ui-surface,#fff);border-inline-end:1px solid var(--ui-border,#d8e0e9)}
.tm-nav{display:grid;gap:4px}
.tm-main{min-width:0;padding:20px}
.tm-page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.tm-page-head h1{margin:0;font-size:1.25rem}
.tm-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.tm-stat{min-height:110px}
.tm-stat strong{display:block;font-size:1.5rem;margin-top:8px}
.tm-grid-2{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.5fr);gap:14px}
.tm-inbox-address{direction:ltr;text-align:left;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.tm-empty{text-align:center;padding:34px 18px}
.tm-muted{color:var(--ui-muted,#66758a)}
.tm-mobile-nav{display:none}
@media(max-width:1000px){.tm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.tm-grid-2{grid-template-columns:1fr}}
@media(max-width:760px){.tm-workspace{display:block}.tm-sidebar{display:none}.tm-main{padding:14px 12px 76px}.tm-stats{grid-template-columns:1fr 1fr}.tm-header{padding:0 12px}.tm-mobile-nav{display:flex;position:fixed;z-index:30;inset:auto 0 0 0;background:var(--ui-surface,#fff);border-top:1px solid var(--ui-border,#d8e0e9);justify-content:space-around;padding:8px}.tm-mobile-nav a{font-size:.8rem;text-decoration:none;color:inherit}}
@media(max-width:430px){.tm-stats{grid-template-columns:1fr}.tm-page-head{align-items:flex-start;flex-direction:column}}

.ui-alert{margin-bottom:16px}
.tm-check-list{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.tm-check-list li{display:flex;align-items:center;gap:8px}
.tm-empty h3{margin:10px 0 6px}
.tm-mobile-nav a{display:flex;align-items:center;gap:5px}

html,body{max-width:100%;overflow-x:hidden}
.tm-main,.tm-grid-2,.tm-grid-2>.ui-card{min-width:0;max-width:100%}
[data-timail-grid],.tm-main .ui-datagrid{min-width:0;max-width:100%;overflow:hidden}
.tm-main .ui-grid-scroll{max-width:100%;overflow-x:auto}

/* Launch landing + app surfaces */
html{scroll-behavior:smooth}
body{font-family:Vazir,Tahoma,Arial,sans-serif}
.tm-landing-body{margin:0;background:
 radial-gradient(circle at 18% 12%,#342a7b55 0 18%,transparent 42%),
 radial-gradient(circle at 85% 16%,#0fa6c744 0 14%,transparent 36%),
 linear-gradient(145deg,#070a13,#0d1324 48%,#0a1020);color:#f4f7ff;min-height:100vh}
.tm-landing{width:min(1180px,calc(100% - 32px));margin:auto;padding:clamp(42px,7vw,92px) 0 50px}
.tm-hero{min-height:min(760px,82vh);display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.82fr);align-items:center;gap:clamp(28px,5vw,76px)}
.tm-eyebrow{display:inline-flex;padding:8px 12px;border:1px solid #ffffff26;background:#ffffff0c;border-radius:999px;color:#aebbf7;font-size:.82rem;letter-spacing:.06em}
.tm-hero h1{font-size:clamp(3.1rem,7vw,7rem);line-height:.95;letter-spacing:-.055em;margin:22px 0 22px;max-width:760px}
.tm-hero h1 span{background:linear-gradient(90deg,#8aa3ff,#d39fff 52%,#7be6dc);-webkit-background-clip:text;background-clip:text;color:transparent}
.tm-hero-copy>p{font-size:clamp(1rem,1.5vw,1.25rem);line-height:2;color:#bbc5dc;max-width:650px}
.tm-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.tm-cta{box-shadow:0 14px 40px #5f66ff55}
.tm-trust{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.tm-trust span{font-size:.82rem;color:#aeb8cb;border:1px solid #ffffff18;padding:7px 10px;border-radius:999px;background:#ffffff08}
.tm-orbit{position:relative;aspect-ratio:1/1;max-width:540px;width:100%;margin:auto;transform-style:preserve-3d;perspective:900px}
.tm-orbit:before{content:"";position:absolute;inset:16%;border-radius:50%;background:radial-gradient(circle,#7b69ff44,transparent 67%);filter:blur(22px)}
.tm-orbit-core{position:absolute;inset:33%;border-radius:32%;display:grid;place-items:center;align-content:center;background:linear-gradient(145deg,#6d66ff,#27325e 70%);box-shadow:inset 0 1px #ffffff55,0 35px 80px #0009,0 0 70px #736dff66;transform:rotateX(12deg) rotateY(-14deg);z-index:3}
.tm-orbit-core strong{font-size:clamp(2.5rem,6vw,5.2rem);line-height:1}.tm-orbit-core small{letter-spacing:.38em;color:#d9ddff}
.tm-orbit-ring{position:absolute;border:1px solid #9ea9ff55;border-radius:50%;inset:13%;transform:rotateX(68deg) rotateZ(14deg);box-shadow:0 0 30px #6575ff22}
.tm-ring-b{inset:4%;transform:rotateY(68deg) rotateZ(-25deg);border-color:#75d9d955}
.tm-mail-card{position:absolute;z-index:5;min-width:126px;padding:14px 16px;border:1px solid #ffffff2a;background:#10182bdd;backdrop-filter:blur(18px);border-radius:16px;box-shadow:0 18px 45px #0008;display:grid;gap:3px;animation:tmFloat 5.5s ease-in-out infinite}
.tm-mail-card b{font-size:1.08rem}.tm-mail-card small{color:#99a7c4}.tm-mail-a{top:10%;right:0}.tm-mail-b{bottom:15%;left:2%;animation-delay:-2s}.tm-mail-c{bottom:4%;right:18%;animation-delay:-3.6s}
@keyframes tmFloat{0%,100%{transform:translate3d(0,0,24px) rotate(-2deg)}50%{transform:translate3d(0,-14px,45px) rotate(2deg)}}
@media(prefers-reduced-motion:reduce){.tm-mail-card{animation:none}.tm-orbit{transform:none}}
.tm-feature-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;border:1px solid #ffffff1a;background:#ffffff14;border-radius:20px;overflow:hidden;margin:8px 0 90px}
.tm-feature-strip article{display:grid;gap:6px;padding:24px;background:#0d1426e8}.tm-feature-strip b{font-size:1.15rem}.tm-feature-strip span{color:#96a5c4}
.tm-section{padding:34px 0 70px}.tm-section-head span,.tm-future span{color:#90a6ff}.tm-section h2{font-size:clamp(1.8rem,4vw,3.3rem);max-width:820px;margin:10px 0 30px;line-height:1.35}
.tm-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.tm-plan-card{display:flex;min-height:290px;flex-direction:column;gap:18px;padding:26px;border:1px solid #ffffff1a;background:linear-gradient(155deg,#121a30e8,#0d1425dd);border-radius:22px;box-shadow:inset 0 1px #ffffff0d}
.tm-plan-card>strong{font-size:1.55rem}.tm-plan-card p{color:#aeb9d0;line-height:1.8;flex:1}.tm-plan-card .ui-btn{align-self:flex-start}.tm-plan-featured{border-color:#7d83ff66;box-shadow:0 22px 70px #4854c422,inset 0 1px #ffffff25}
.tm-plan-tag{font-size:.75rem;color:#aebaff}.tm-future{display:grid;grid-template-columns:1.2fr .8fr;gap:40px;align-items:center;border-top:1px solid #ffffff14}.tm-future p{color:#aeb9d0;line-height:2}
.tm-footer{width:min(1180px,calc(100% - 32px));margin:auto;border-top:1px solid #ffffff14;padding:24px 0 40px;display:flex;justify-content:space-between;color:#8895af}.tm-footer a{color:#c5cef5;text-decoration:none}

/* Functional tempmail client */
.tm-auth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:920px;margin:auto}
.tm-form{display:grid;gap:14px}.tm-form label{display:grid;gap:7px;font-size:.9rem}.tm-form .ui-input{width:100%;box-sizing:border-box}
.tm-client-status{position:sticky;top:70px;z-index:25;margin:0 0 14px;padding:12px 14px;border-radius:12px;border:1px solid}
.tm-client-status.tm-success{background:#e8f8ef;color:#116137;border-color:#b7e7ca}.tm-client-status.tm-danger{background:#fff0f0;color:#8f202b;border-color:#ffc2c7}.tm-client-status.tm-warning{background:#fff8e8;color:#7d5200;border-color:#f2d58b}.tm-client-status.tm-info{background:#eef4ff;color:#214a9a;border-color:#c5d8ff}
.tm-list{display:grid;gap:8px}.tm-list-item{display:flex;align-items:center;gap:8px;border:1px solid var(--ui-border,#d8e0e9);border-radius:12px;padding:6px;background:var(--ui-surface,#fff)}
.tm-inbox-open,.tm-message-row{appearance:none;border:0;background:transparent;color:inherit;text-align:right;cursor:pointer;min-width:0}
.tm-inbox-open{display:grid;gap:3px;flex:1;padding:8px}.tm-inbox-open b{direction:ltr;text-align:left;overflow-wrap:anywhere}.tm-inbox-open small,.tm-message-row small{color:var(--ui-muted,#66758a)}
.tm-delete{border:0;background:#fff0f2;color:#a52b3a;width:36px;height:36px;border-radius:10px;font-size:1.35rem;cursor:pointer}
.tm-message-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--ui-border,#d8e0e9);border-radius:12px}
.tm-message-row span{display:grid;gap:4px;min-width:0}.tm-message-row b,.tm-message-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tm-message-row em{font-style:normal;font-weight:800;direction:ltr;background:#edf1ff;color:#3547a8;padding:7px 10px;border-radius:10px}
.tm-message-detail{margin-top:16px}.tm-otp-box{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:16px;border:1px solid #7b83ff55;background:#6670ff12;border-radius:14px;margin-bottom:14px}.tm-otp-box strong{font-size:1.8rem;letter-spacing:.12em;direction:ltr}
.tm-content-lock{padding:18px;border-radius:14px;background:#fff8e8;color:#725100;border:1px solid #efd389;line-height:1.8}.tm-message-body{line-height:1.9;overflow-wrap:anywhere}.tm-message-body img{max-width:100%;height:auto}
.tm-message-body iframe,.tm-message-body script,.tm-message-body object,.tm-message-body embed{display:none!important}

@media(max-width:820px){
 .tm-hero{grid-template-columns:1fr;min-height:auto;padding:26px 0 60px}.tm-orbit{max-width:430px;order:-1}.tm-hero-copy{text-align:center}.tm-hero-copy>p{margin-inline:auto}.tm-hero-actions,.tm-trust{justify-content:center}
 .tm-feature-strip{grid-template-columns:1fr;margin-bottom:55px}.tm-future{grid-template-columns:1fr;gap:8px}.tm-auth-grid{grid-template-columns:1fr}
}
@media(max-width:480px){
 .tm-landing{width:min(100% - 22px,1180px);padding-top:24px}.tm-orbit{max-width:340px}.tm-orbit-core{inset:31%}.tm-mail-card{min-width:104px;padding:10px 12px;font-size:.86rem}
 .tm-mail-a{top:3%}.tm-mail-b{left:0;bottom:10%}.tm-mail-c{right:9%;bottom:-2%}.tm-hero h1{font-size:clamp(2.8rem,15vw,4.2rem)}
 .tm-plan-card{min-height:250px;padding:20px}.tm-footer{padding-bottom:calc(26px + env(safe-area-inset-bottom))}
 .tm-message-row{align-items:flex-start}.tm-message-row em{flex:0 0 auto}.tm-otp-box strong{font-size:1.5rem}
}

/* Admin + checkout launch surfaces */
.tm-upgrade-card{margin-top:16px}
.tm-app-plan-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.tm-admin-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:14px;align-items:start}
.tm-admin-grid>.ui-card:nth-child(n+3){grid-column:1/-1}
.tm-admin-form{display:grid;gap:12px;margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid var(--ui-border,#d8e0e9)}
.tm-form-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tm-admin-form label{display:grid;gap:6px;font-size:.88rem}
.tm-form-actions,.tm-admin-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tm-form-actions label{display:flex;align-items:center;gap:6px}
.tm-json-input,.tm-admin-json{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;direction:ltr;text-align:left}
.tm-admin-list{display:grid;gap:10px;min-width:0}
.tm-admin-item{display:grid;gap:10px;padding:13px;border:1px solid var(--ui-border,#d8e0e9);background:var(--ui-surface2,#f7f9fc);border-radius:13px;min-width:0}
.tm-admin-item-head,.tm-admin-user{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tm-admin-item b,.tm-admin-item small{display:block;overflow-wrap:anywhere}.tm-admin-item small{color:var(--ui-muted,#66758a);margin-top:4px}
.tm-admin-json{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.76rem;max-height:190px;overflow:auto;padding:10px;border-radius:10px;background:var(--ui-surface,#fff);margin:0}
.tm-offer-list{display:flex;gap:7px;flex-wrap:wrap}
.tm-offer-chip{border:1px solid var(--ui-border,#d8e0e9);background:var(--ui-surface,#fff);color:inherit;border-radius:999px;padding:7px 10px;cursor:pointer}
.tm-admin-search{display:flex;gap:8px;margin-bottom:12px}.tm-admin-search .ui-input{flex:1}
@media(max-width:980px){.tm-admin-grid{grid-template-columns:1fr}.tm-admin-grid>.ui-card:nth-child(n){grid-column:auto}.tm-form-row{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.tm-form-row{grid-template-columns:1fr}.tm-admin-item-head,.tm-admin-user{align-items:stretch;flex-direction:column}.tm-admin-actions{display:grid;grid-template-columns:1fr}.tm-admin-search{flex-direction:column}.tm-admin-grid{display:block}.tm-admin-grid>.ui-card{margin-bottom:12px}}


/* Auth surfaces + global link treatment */
a,
a:link,
a:visited,
a:hover,
a:focus,
a:active,
.ui-btn,
.ui-btn:link,
.ui-btn:visited,
.ui-btn:hover,
.ui-btn:focus,
.ui-btn:active{
  text-decoration:none!important;
  text-decoration-line:none!important;
}

.tm-auth-body{
  margin:0;
  min-height:100dvh;
  overflow-x:hidden;
  background:
    radial-gradient(circle at 14% 12%,rgba(92,92,255,.18),transparent 31%),
    radial-gradient(circle at 84% 86%,rgba(18,176,181,.12),transparent 27%),
    linear-gradient(145deg,#090d18 0%,#0d1424 52%,#0a101d 100%);
  color:#f4f7ff;
}
.tm-auth-body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.72),transparent);
}
.tm-auth-screen{
  position:relative;
  z-index:1;
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right))
          max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));
  box-sizing:border-box;
}
.tm-auth-shell{
  width:min(1040px,100%);
  min-height:610px;
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(360px,.68fr);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.13);
  border-radius:28px;
  background:rgba(12,18,33,.76);
  box-shadow:0 38px 110px rgba(0,0,0,.44),inset 0 1px rgba(255,255,255,.06);
  backdrop-filter:blur(24px);
}
.tm-auth-shell-single{
  grid-template-columns:minmax(0,520px);
  width:min(520px,100%);
  min-height:0;
}
.tm-auth-visual{
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-width:0;
  padding:36px;
  overflow:hidden;
  background:
    radial-gradient(circle at 75% 18%,rgba(127,119,255,.38),transparent 26%),
    linear-gradient(155deg,rgba(72,73,176,.42),rgba(14,23,44,.18) 58%,rgba(19,134,145,.16));
  border-inline-end:1px solid rgba(255,255,255,.1);
}
.tm-auth-visual:after{
  content:"";
  position:absolute;
  width:360px;
  aspect-ratio:1;
  inset:auto -120px -110px auto;
  border:1px solid rgba(161,173,255,.27);
  border-radius:44% 56% 51% 49% / 58% 45% 55% 42%;
  transform:rotate(24deg);
  box-shadow:0 0 0 34px rgba(114,122,255,.035),0 0 0 72px rgba(114,122,255,.025);
  z-index:-1;
}
.tm-auth-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  width:max-content;
  color:#fff;
  font-weight:900;
  letter-spacing:-.02em;
}
.tm-auth-brand .tm-brand-mark{
  box-shadow:0 12px 34px rgba(78,90,255,.34);
}
.tm-auth-visual-copy{
  max-width:520px;
}
.tm-auth-kicker{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#aab9ff;
  font-size:.76rem;
  letter-spacing:.14em;
  font-weight:800;
}
.tm-auth-visual-copy h1,
.tm-auth-denied h1{
  margin:14px 0;
  font-size:clamp(2rem,4vw,3.8rem);
  line-height:1.18;
  letter-spacing:-.045em;
}
.tm-auth-visual-copy p{
  color:#b9c4d9;
  line-height:2;
  margin:0;
  max-width:560px;
}
.tm-auth-security{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}
.tm-auth-security span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  padding:8px 10px;
  border-radius:999px;
  color:#c7d0e3;
  font-size:.78rem;
}
.tm-auth-panel{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:clamp(26px,5vw,56px);
  background:color-mix(in srgb,var(--ui-surface,#fff) 96%,transparent);
  color:var(--ui-text,#162033);
}
.tm-auth-mobile-brand{display:none;margin-bottom:28px}
.tm-auth-head h2{font-size:clamp(1.65rem,3vw,2.35rem);margin:7px 0 8px}
.tm-auth-head p{line-height:1.9;margin:0 0 24px}
.tm-auth-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  padding:4px;
  border-radius:13px;
  background:var(--ui-surface2,#f3f6fb);
  margin-bottom:22px;
}
.tm-auth-tab{
  appearance:none;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--ui-muted,#66758a);
  min-height:42px;
  padding:8px 12px;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
.tm-auth-tab.is-active{
  background:var(--ui-surface,#fff);
  color:var(--ui-primary,#335dff);
  box-shadow:0 5px 18px rgba(34,47,76,.08);
}
.tm-auth-form{display:grid;gap:16px}
.tm-auth-form label{display:grid;gap:7px;font-size:.88rem;font-weight:700}
.tm-auth-form .ui-input{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  min-height:46px;
}
.tm-password-field{position:relative;display:flex;align-items:center}
.tm-password-field .ui-input{padding-inline-end:72px}
.tm-password-toggle{
  position:absolute;
  inset-inline-end:8px;
  appearance:none;
  border:0;
  background:transparent;
  color:var(--ui-primary,#335dff);
  font:inherit;
  font-size:.78rem;
  font-weight:800;
  cursor:pointer;
  padding:7px;
}
.tm-auth-submit{
  min-height:48px;
  width:100%;
  justify-content:center;
  margin-top:3px;
}
.tm-auth-form[aria-busy="true"]{opacity:.72}
.tm-auth-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:28px;
  padding-top:18px;
  border-top:1px solid var(--ui-border,#d8e0e9);
  font-size:.82rem;
}
.tm-auth-foot a{color:var(--ui-muted,#66758a);font-weight:700}
.tm-auth-denied{text-align:center;align-items:center}
.tm-denied-icon{
  display:grid;
  place-items:center;
  width:64px;
  height:64px;
  border-radius:20px;
  margin:4px auto 20px;
  background:#fff0f2;
  color:#b82f43;
}
.tm-auth-denied .tm-auth-brand{margin-bottom:34px;color:var(--ui-text,#162033)}
.tm-auth-denied p{line-height:2;max-width:420px}
.tm-auth-denied-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:20px}

@media(max-width:780px){
  .tm-auth-screen{padding:0}
  .tm-auth-shell{
    min-height:100dvh;
    width:100%;
    grid-template-columns:1fr;
    border:0;
    border-radius:0;
    box-shadow:none;
    background:var(--ui-surface,#fff);
  }
  .tm-auth-visual{display:none}
  .tm-auth-panel{
    min-height:100dvh;
    padding:clamp(22px,7vw,38px);
    box-sizing:border-box;
  }
  .tm-auth-mobile-brand{display:block}
  .tm-auth-mobile-brand .tm-auth-brand{color:var(--ui-text,#162033)}
  .tm-auth-foot{padding-bottom:env(safe-area-inset-bottom)}
}
@media(max-width:360px){
  .tm-auth-panel{padding:20px 16px}
  .tm-auth-head h2{font-size:1.55rem}
  .tm-auth-foot{align-items:flex-start;flex-direction:column}
}


/* Kimia workspace refinement */
.tm-brand-logo{
  display:block;
  width:38px;
  height:38px;
  object-fit:contain;
  border-radius:10px;
}
.tm-nav-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:9px;
  min-height:40px;
  padding:9px 11px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:inherit;
  font:inherit;
  text-align:start;
  cursor:pointer;
}
.tm-nav-item:hover,
.tm-nav-item.active,
.tm-nav-item[aria-current="page"]{
  background:var(--ui-surface-2,var(--ui-surface2,#f7f9fc));
  color:var(--ui-primary,#335dff);
}
.tm-workspace-app{
  display:grid;
  gap:14px;
  min-width:0;
}
.tm-workspace-actionbar{
  position:sticky;
  top:calc(var(--tm-header) + 1px);
  z-index:12;
  border:1px solid var(--ui-border);
  border-radius:var(--ui-radius-current,var(--ui-radius-md));
  background:color-mix(in srgb,var(--ui-surface) 96%,transparent);
  backdrop-filter:blur(16px);
}
.tm-workspace-tabs{
  display:none!important;
}
.tm-workspace-panel{
  display:grid;
  gap:14px;
  min-width:0;
}
.tm-workspace-panel[hidden]{display:none!important}
.tm-overview-list{
  display:grid;
  gap:0;
}
.tm-overview-list>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:46px;
  padding:10px 0;
  border-bottom:1px solid var(--ui-border);
}
.tm-overview-list>div:last-child{border-bottom:0}
.tm-overview-list strong{
  max-width:58%;
  text-align:end;
  overflow-wrap:anywhere;
}
.tm-message-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.tm-main .ui-datagrid{
  border:1px solid var(--ui-border);
  border-radius:var(--ui-radius-current,var(--ui-radius-md));
  overflow:hidden;
  background:var(--ui-surface);
}
.tm-main .ui-grid-toolbar{
  position:sticky;
  inset-block-start:0;
  z-index:2;
}
.tm-mobile-nav button{
  appearance:none;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-width:0;
  padding:6px 8px;
  border-radius:9px;
  cursor:pointer;
}
.tm-mobile-nav button.active,
.tm-mobile-nav button[aria-current="page"]{
  color:var(--ui-primary);
  background:var(--ui-surface-2,var(--ui-surface2));
}
@media(max-width:760px){
  .tm-workspace-actionbar{
    top:calc(var(--tm-header) + 1px);
    overflow-x:auto;
    flex-wrap:nowrap;
    scrollbar-width:none;
  }
  .tm-workspace-actionbar::-webkit-scrollbar{display:none}
  .tm-workspace-actionbar .ui-btn{flex:0 0 auto}
  .tm-workspace-tabs{
    position:sticky;
    top:calc(var(--tm-header) + 53px);
    z-index:11;
  }
}
@media(max-width:430px){
  .tm-brand span:last-child{display:none}
  .tm-brand-logo{width:34px;height:34px}
  .tm-workspace-actionbar{border-radius:10px}
}


.tm-landing-brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
  font-weight:900;
  letter-spacing:.02em;
}
.tm-landing-brand img{
  width:72px;
  height:72px;
  object-fit:contain;
  border-radius:18px;
  filter:drop-shadow(0 16px 26px rgb(32 101 255 / .26));
}
@media(max-width:480px){
  .tm-landing-brand img{width:58px;height:58px;border-radius:14px}
}


/* Framework overlay stacking + dark-mode corrections */
.ui-select-popup,
.ui-date-popup,
.ui-column-menu{
  z-index:calc(var(--ui-z-modal,2000) + 100)!important;
}
html[data-mode="dark"] .tm-client-status.tm-success{
  background:color-mix(in srgb,var(--ui-success),transparent 88%);
  color:color-mix(in srgb,var(--ui-success),white 28%);
  border-color:color-mix(in srgb,var(--ui-success),transparent 55%);
}
html[data-mode="dark"] .tm-client-status.tm-danger{
  background:color-mix(in srgb,var(--ui-danger),transparent 88%);
  color:color-mix(in srgb,var(--ui-danger),white 28%);
  border-color:color-mix(in srgb,var(--ui-danger),transparent 55%);
}
html[data-mode="dark"] .tm-client-status.tm-warning{
  background:color-mix(in srgb,var(--ui-warning),transparent 88%);
  color:color-mix(in srgb,var(--ui-warning),white 28%);
  border-color:color-mix(in srgb,var(--ui-warning),transparent 55%);
}
html[data-mode="dark"] .tm-client-status.tm-info{
  background:color-mix(in srgb,var(--ui-info),transparent 88%);
  color:color-mix(in srgb,var(--ui-info),white 28%);
  border-color:color-mix(in srgb,var(--ui-info),transparent 55%);
}


/* Production landing: Iranian night-sky identity */
.tm-landing-body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 50% -10%,rgba(38,116,170,.18),transparent 32%),
    radial-gradient(circle at 15% 30%,rgba(10,144,171,.10),transparent 28%),
    linear-gradient(180deg,#040813 0%,#07111f 42%,#081522 100%)!important;
  color:#eef7ff;
  overflow-x:hidden;
}
.tm-sky-canvas{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  pointer-events:none;
}
.tm-landing-shell{
  position:relative;
  z-index:1;
  min-height:100vh;
}
.tm-landing-nav,
.tm-landing-footer,
.tm-story-section,
.tm-support-section{
  width:min(1180px,calc(100% - 32px));
  margin-inline:auto;
}
.tm-landing-nav{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  position:relative;
  z-index:5;
}
.tm-landing-nav nav{
  display:flex;
  align-items:center;
  gap:18px;
}
.tm-landing-nav nav>a:not(.ui-btn){
  color:#c8d8e7;
  font-weight:650;
}
.tm-landing-logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#fff;
  font-weight:900;
  font-size:1.06rem;
}
.tm-landing-logo img{
  width:44px;
  height:44px;
  object-fit:contain;
  border-radius:14px;
  filter:drop-shadow(0 10px 24px rgba(0,130,255,.28));
}
.tm-sky-hero{
  position:relative;
  width:min(1180px,calc(100% - 32px));
  min-height:calc(100svh - 78px);
  margin:auto;
  display:grid;
  place-items:center;
  text-align:center;
  isolation:isolate;
}
.tm-sky-hero:before{
  content:"";
  position:absolute;
  inset:9% 8%;
  background:
    radial-gradient(circle at 50% 42%,rgba(46,155,220,.18),transparent 33%),
    radial-gradient(circle at 50% 50%,rgba(18,71,130,.18),transparent 52%);
  filter:blur(14px);
  z-index:-2;
}
.tm-sky-hero:after{
  content:"";
  position:absolute;
  width:min(720px,82vw);
  aspect-ratio:1;
  border-radius:50%;
  border:1px solid rgba(110,211,232,.08);
  box-shadow:
    0 0 0 54px rgba(100,190,225,.018),
    0 0 0 110px rgba(100,190,225,.012);
  z-index:-1;
}
.tm-persian-orbit{
  position:absolute;
  border:1px solid rgba(59,195,210,.15);
  transform:rotate(45deg);
  border-radius:24%;
  pointer-events:none;
  opacity:.75;
}
.tm-persian-orbit:before,
.tm-persian-orbit:after{
  content:"";
  position:absolute;
  inset:17%;
  border:1px solid rgba(227,184,88,.10);
  border-radius:24%;
}
.tm-persian-orbit:after{
  inset:34%;
  border-color:rgba(59,195,210,.13);
}
.tm-persian-orbit-a{width:290px;height:290px;top:12%;right:0;animation:tmOrbit 24s linear infinite}
.tm-persian-orbit-b{width:230px;height:230px;bottom:12%;left:2%;animation:tmOrbit 29s linear infinite reverse}
@keyframes tmOrbit{to{transform:rotate(405deg)}}
.tm-hero-center{
  width:min(820px,100%);
  display:grid;
  justify-items:center;
  gap:0;
}
.tm-hero-badge{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 14px;
  border:1px solid rgba(92,207,222,.22);
  border-radius:999px;
  background:rgba(10,26,43,.68);
  color:#92dbe6;
  font-weight:700;
  font-size:.82rem;
  backdrop-filter:blur(12px);
}
.tm-hero-center h1{
  max-width:780px;
  margin:18px 0 16px;
  font-size:clamp(2.35rem,5vw,4.9rem);
  line-height:1.22;
  letter-spacing:-.045em;
  font-weight:900;
  color:#f7fbff;
}
.tm-hero-center h1 strong{
  display:block;
  margin-top:4px;
  font-weight:950;
  background:linear-gradient(90deg,#61d9e7,#6bb9ff 47%,#e8bf67);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.tm-hero-center>p{
  max-width:670px;
  margin:0 0 26px;
  color:#b7c8d9;
  line-height:2;
  font-size:1.02rem;
}
.tm-live-address{
  appearance:none;
  width:min(720px,100%);
  min-height:82px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  border:1px solid rgba(102,215,229,.28);
  border-radius:22px;
  padding:13px 18px;
  background:
    linear-gradient(180deg,rgba(14,34,55,.88),rgba(8,24,42,.88));
  color:#f2fbff;
  box-shadow:
    inset 0 1px rgba(255,255,255,.06),
    0 28px 80px rgba(0,0,0,.32),
    0 0 55px rgba(39,158,199,.08);
  backdrop-filter:blur(18px);
  cursor:pointer;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.tm-live-address:hover{
  transform:translateY(-3px);
  border-color:rgba(102,215,229,.52);
  box-shadow:inset 0 1px rgba(255,255,255,.08),0 34px 90px rgba(0,0,0,.38),0 0 70px rgba(39,158,199,.14);
}
.tm-live-address strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:center;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:clamp(1.15rem,2.6vw,1.75rem);
  font-weight:800;
  letter-spacing:.01em;
}
.tm-live-address .tm-live-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#48deb5;
  box-shadow:0 0 0 7px rgba(72,222,181,.11),0 0 24px rgba(72,222,181,.46);
}
.tm-live-action{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#8edce7;
  font-weight:800;
  white-space:nowrap;
  font-size:.88rem;
}
.tm-hero-actions{
  margin-top:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}
.tm-hero-primary{
  min-width:150px;
  box-shadow:0 14px 36px rgba(50,129,255,.28);
}
.tm-glass-button{
  border-color:rgba(255,255,255,.14)!important;
  background:rgba(255,255,255,.055)!important;
  color:#d9e7f4!important;
  backdrop-filter:blur(10px);
}
.tm-hero-proof{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:22px;
}
.tm-hero-proof span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  color:#91a8bc;
  font-size:.78rem;
}
.tm-scroll-cue{
  position:absolute;
  bottom:20px;
  display:grid;
  justify-items:center;
  gap:8px;
  color:#71879a;
  font-size:.72rem;
}
.tm-scroll-cue span{
  width:1px;
  height:34px;
  background:linear-gradient(#73d7e3,transparent);
  animation:tmCue 1.8s ease-in-out infinite;
}
@keyframes tmCue{50%{transform:translateY(6px);opacity:.45}}
.tm-story-section{
  min-height:92svh;
  padding:110px 0 120px;
  display:grid;
  align-content:center;
}
.tm-section-heading{
  max-width:700px;
  margin:0 auto 42px;
  text-align:center;
}
.tm-section-heading>span,
.tm-support-kicker{
  color:#77d7e3;
  font-size:.82rem;
  font-weight:800;
}
.tm-section-heading h2,
.tm-support-panel h2{
  margin:10px 0 14px;
  font-size:clamp(2rem,4vw,3.35rem);
  line-height:1.32;
  font-weight:950;
  letter-spacing:-.035em;
}
.tm-section-heading p,
.tm-support-panel p{
  color:#9fb3c5;
  line-height:2;
}
.tm-how-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.tm-how-card{
  position:relative;
  min-height:280px;
  padding:28px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:24px;
  background:
    linear-gradient(155deg,rgba(16,35,55,.88),rgba(8,22,39,.82));
  box-shadow:inset 0 1px rgba(255,255,255,.04);
  overflow:hidden;
}
.tm-how-card:after{
  content:"";
  position:absolute;
  width:160px;
  height:160px;
  inset:auto -50px -55px auto;
  border:1px solid rgba(226,181,82,.11);
  transform:rotate(45deg);
}
.tm-step-number{
  position:absolute;
  top:20px;
  left:22px;
  color:rgba(236,199,108,.34);
  font-size:2.25rem;
  font-weight:950;
}
.tm-how-icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:rgba(62,194,209,.11);
  color:#71d5e1;
  margin-bottom:34px;
}
.tm-how-card h3{
  margin:0 0 12px;
  font-size:1.22rem;
  font-weight:900;
}
.tm-how-card p{
  margin:0;
  color:#9db0c2;
  line-height:1.95;
}
.tm-support-section{
  min-height:86svh;
  padding:100px 0 70px;
  display:grid;
  align-content:center;
  gap:24px;
}
.tm-support-panel{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:40px;
  padding:clamp(26px,5vw,54px);
  border:1px solid rgba(105,205,219,.14);
  border-radius:30px;
  background:
    radial-gradient(circle at 82% 20%,rgba(40,161,180,.12),transparent 30%),
    linear-gradient(150deg,rgba(14,34,53,.92),rgba(8,21,36,.92));
  box-shadow:0 32px 90px rgba(0,0,0,.24);
}
.tm-support-panel h2{
  max-width:690px;
}
.tm-support-panel p{
  max-width:690px;
  margin-bottom:0;
}
.tm-support-actions{
  display:grid;
  gap:10px;
  min-width:220px;
}
.tm-contact-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.tm-contact-grid article{
  min-height:120px;
  display:grid;
  align-content:center;
  gap:8px;
  padding:22px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  background:rgba(10,26,43,.60);
}
.tm-contact-grid span{color:#7e95aa;font-size:.78rem}
.tm-contact-grid strong{font-weight:850;color:#dce9f4}
.tm-landing-footer{
  min-height:110px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:22px;
  border-top:1px solid rgba(255,255,255,.08);
  color:#8397aa;
}
.tm-landing-footer p{margin:0}
.tm-landing-footer nav{display:flex;gap:18px}
.tm-landing-footer a{color:#aabccc}
[data-reveal]{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .65s ease,transform .65s cubic-bezier(.2,.72,.24,1);
}
[data-reveal].is-visible{
  opacity:1;
  transform:none;
}
@media(max-width:860px){
  .tm-landing-nav nav>a:not(.ui-btn){display:none}
  .tm-how-grid,.tm-contact-grid{grid-template-columns:1fr}
  .tm-support-panel{grid-template-columns:1fr}
  .tm-support-actions{grid-template-columns:1fr 1fr;min-width:0}
  .tm-persian-orbit{opacity:.42}
}
@media(max-width:620px){
  .tm-landing-nav{min-height:68px}
  .tm-landing-nav .ui-btn{min-height:36px;padding-inline:10px}
  .tm-sky-hero{min-height:calc(100svh - 68px)}
  .tm-hero-center h1{font-size:clamp(2.2rem,10vw,3.35rem)}
  .tm-live-address{
    grid-template-columns:auto minmax(0,1fr);
    min-height:94px;
  }
  .tm-live-action{
    grid-column:1/-1;
    justify-content:center;
  }
  .tm-support-actions{grid-template-columns:1fr}
  .tm-landing-footer{
    grid-template-columns:1fr;
    justify-items:center;
    text-align:center;
    padding:28px 0 36px;
  }
  .tm-landing-footer nav{flex-wrap:wrap;justify-content:center}
}
@media(prefers-reduced-motion:reduce){
  .tm-persian-orbit,.tm-scroll-cue span{animation:none}
  [data-reveal]{opacity:1;transform:none;transition:none}
}


/* Production workspace spacing normalization */
.tm-main{
  padding:24px 28px 32px;
}
.tm-workspace-app{
  gap:18px;
}
.tm-workspace-panel{
  gap:18px;
}
.tm-workspace-panel .ui-card{
  min-width:0;
  overflow:visible;
}
.tm-workspace-panel .ui-card>.ui-card-header{
  padding:18px 20px;
  gap:16px;
}
.tm-workspace-panel .ui-card>.ui-card-body{
  padding:18px 20px 20px;
}
.tm-workspace-panel .ui-card>.ui-card-footer{
  padding:14px 20px 18px;
  gap:10px;
  flex-wrap:wrap;
}
.tm-workspace-actionbar{
  padding:8px;
}
[data-workspace-panel="admin-cloudflare"] .tm-grid-2{
  grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);
  gap:18px;
}
.tm-overview-list>div{
  padding:12px 0;
}
.tm-main .ui-datagrid{
  margin:2px 0;
}
.ui-modal .ui-form,
.ui-modal .ui-stack{
  padding:2px;
}
.ui-modal .ui-field{
  min-width:0;
}
@media(max-width:1000px){
  [data-workspace-panel="admin-cloudflare"] .tm-grid-2{grid-template-columns:1fr}
}
@media(max-width:760px){
  .tm-main{padding:14px 12px calc(84px + env(safe-area-inset-bottom))}
  .tm-workspace-panel .ui-card>.ui-card-header,
  .tm-workspace-panel .ui-card>.ui-card-body,
  .tm-workspace-panel .ui-card>.ui-card-footer{padding-inline:14px}
}


.tm-domain-requirements{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:18px;
}
.tm-domain-requirements>div{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:start;
  gap:4px 9px;
  padding:14px;
  border:1px solid var(--ui-border);
  border-radius:var(--ui-radius-current,var(--ui-radius-md));
  background:var(--ui-surface-2,var(--ui-surface2));
}
.tm-domain-requirements small{
  grid-column:2;
  color:var(--ui-muted);
  line-height:1.8;
}
.tm-domain-health{
  display:grid;
  gap:0;
}
.tm-domain-health>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
  border-bottom:1px solid var(--ui-border);
}
.tm-domain-health>div:last-of-type{border-bottom:0}
.tm-domain-health strong{
  max-width:68%;
  text-align:end;
  overflow-wrap:anywhere;
}
.tm-domain-health .ui-alert{margin:16px 0 0}
@media(max-width:820px){
  .tm-domain-requirements{grid-template-columns:1fr}
}


/* Application footer + release identity */
.tm-shell{
  min-height:100dvh;
  display:flex;
  flex-direction:column;
}
.tm-workspace{
  min-height:0;
  flex:1 0 auto;
}
.tm-app-footer{
  flex:0 0 auto;
  min-height:46px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:11px 28px;
  border-top:1px solid var(--ui-border,#d8e0e9);
  background:var(--ui-surface,#fff);
  color:var(--ui-muted,#66758a);
  font-size:.78rem;
}
.tm-app-footer-version{
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  color:var(--ui-text,#162033);
  font-weight:700;
}
html[data-mode="dark"] .tm-app-footer,
body[data-ui-mode="dark"] .tm-app-footer{
  background:var(--ui-surface);
  color:var(--ui-muted);
}
@media(max-width:760px){
  .tm-app-footer{
    min-height:44px;
    padding:10px 14px calc(72px + env(safe-area-inset-bottom));
  }
}


/* Production workspace rhythm — preserve Kimia components, normalize content insets */
.tm-main{
  padding:clamp(16px,2vw,28px);
}
.tm-workspace-app{
  gap:18px;
}
.tm-workspace-actionbar{
  min-height:58px;
  padding:10px 12px;
  gap:8px;
}
.tm-workspace-panel{
  gap:18px;
}
.tm-workspace-panel>.ui-card,
.tm-workspace-panel>.tm-grid-2>.ui-card{
  overflow:visible;
}
.tm-workspace-panel .ui-card-header{
  padding:18px 20px 14px;
  gap:16px;
}
.tm-workspace-panel .ui-card-body{
  padding:18px 20px 20px;
}
.tm-workspace-panel .ui-card-footer{
  padding:14px 20px 18px;
}
.tm-workspace-panel .ui-card-title{
  margin:0;
  font-weight:900;
}
.tm-workspace-panel .ui-card-header .ui-muted{
  margin:7px 0 0;
  line-height:1.9;
}
.tm-workspace-panel .ui-datagrid{
  margin:0;
}
.tm-workspace-panel .ui-grid-toolbar{
  padding:10px;
}
.tm-workspace-panel .tm-overview-list>div{
  padding-inline:2px;
}
.tm-stats{
  gap:16px;
}
.tm-stats .ui-card{
  padding:18px;
}
.tm-admin-cloudflare-grid{
  gap:18px;
}
@media(max-width:760px){
  .tm-main{padding:14px 12px 82px}
  .tm-workspace-app{gap:14px}
  .tm-workspace-panel{gap:14px}
  .tm-workspace-panel .ui-card-header{padding:15px 14px 12px}
  .tm-workspace-panel .ui-card-body{padding:14px}
  .tm-workspace-panel .ui-card-footer{padding:12px 14px 15px}
  .tm-workspace-actionbar{padding:8px}
  .tm-stats{gap:10px}
  .tm-stats .ui-card{padding:14px}
}


.tm-ns-list{
  display:grid;
  gap:8px;
  margin-top:12px;
}
.tm-ns-list>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--ui-border);
  border-radius:10px;
  background:var(--ui-surface-2,var(--ui-surface2));
}
.tm-ns-list code{
  direction:ltr;
  text-align:left;
  overflow-wrap:anywhere;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}


/* Brand assets are intrinsically transparent; never add a plate behind them. */
.tm-brand-logo,
.tm-landing-logo img,
.tm-landing-brand img,
.tm-auth-brand .tm-brand-logo{
  background:transparent!important;
  box-shadow:none;
}
.tm-brand-logo{
  border-radius:0;
}
.tm-landing-logo img,
.tm-landing-brand img{
  border-radius:0;
}
.ui-icon,
.ui-btn .ui-icon,
.tm-nav-item .ui-icon,
.tm-mobile-nav .ui-icon{
  background:transparent!important;
  box-shadow:none!important;
}

.tm-inbox-focus{
  border:1px solid color-mix(in srgb,var(--ui-primary) 34%,var(--ui-border));
  background:linear-gradient(135deg,color-mix(in srgb,var(--ui-primary) 7%,var(--ui-surface)),var(--ui-surface));
}
.tm-inbox-focus-head,.tm-inbox-address-row,.tm-inbox-focus-meta,.tm-otp-focus-row{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
}
.tm-inbox-focus-head h2{margin:8px 0 0;font-size:clamp(1rem,2vw,1.2rem)}
.tm-live-dot{display:inline-flex;align-items:center;gap:7px;font-weight:800;font-size:.86rem}
.tm-live-dot::before{content:'';width:9px;height:9px;border-radius:50%;background:currentColor;box-shadow:0 0 0 5px color-mix(in srgb,currentColor 12%,transparent)}
.tm-inbox-address-row{margin-top:18px;padding:14px;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-surface)}
.tm-inbox-address-row>strong{font-size:clamp(1rem,3vw,1.45rem);letter-spacing:.02em;overflow-wrap:anywhere}
.tm-inbox-focus-meta{margin-top:12px}
.tm-simple-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.tm-simple-steps>div{display:flex;align-items:center;gap:9px;padding:11px;border-radius:12px;background:var(--ui-surface-2,var(--ui-surface2))}
.tm-simple-steps b{display:grid;place-items:center;min-width:28px;height:28px;border-radius:50%;background:var(--ui-primary);color:#fff}
.tm-otp-focus{border:1px solid color-mix(in srgb,var(--ui-primary) 40%,var(--ui-border))}
.tm-otp-focus-row{margin-top:12px}
.tm-otp-focus-row>strong{font-size:clamp(2rem,8vw,3.5rem);letter-spacing:.14em;font-variant-numeric:tabular-nums}
@media(max-width:640px){
  .tm-simple-steps{grid-template-columns:1fr}
  .tm-inbox-address-row .ui-btn,.tm-inbox-focus-meta .ui-btn,.tm-otp-focus-row .ui-btn{width:100%;justify-content:center}
  .tm-inbox-address-row>strong{width:100%;text-align:center}
  .tm-otp-focus-row>strong{width:100%;text-align:center}
}


/* ========================================================================== */
/* TiMail user experience — independent from the administrative workspace     */
/* ========================================================================== */
.tm-user-body{
  --tm-user-accent:#6d5dfc;
  --tm-user-accent-2:#8b7cff;
  --tm-user-soft:#f5f4ff;
  --tm-user-ink:#202236;
  background:
    radial-gradient(circle at 88% 0%,color-mix(in srgb,var(--tm-user-accent) 13%,transparent),transparent 30%),
    radial-gradient(circle at 8% 22%,color-mix(in srgb,#45c4ff 9%,transparent),transparent 28%),
    var(--ui-bg,#f7f8fc);
}
.tm-user-shell{min-height:100vh;padding-bottom:28px}
.tm-user-header{
  position:sticky;top:0;z-index:40;
  display:flex;align-items:center;gap:24px;
  max-width:1380px;margin:0 auto;padding:14px 28px;
  background:color-mix(in srgb,var(--ui-surface,#fff) 88%,transparent);
  border-bottom:1px solid color-mix(in srgb,var(--ui-border) 72%,transparent);
  backdrop-filter:blur(18px);
}
.tm-user-brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;flex:0 0 auto}
.tm-user-brand img{width:44px;height:44px;object-fit:contain}
.tm-user-brand>span{display:grid;gap:1px}
.tm-user-brand strong{font-size:1.03rem}
.tm-user-brand small{font-size:.72rem;color:var(--ui-muted)}
.tm-user-desktop-nav{margin-inline:auto;min-width:0}
.tm-user-nav{display:flex;align-items:center;gap:6px}
.tm-user-nav-item{
  display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:0;border-radius:12px;
  background:transparent;color:var(--ui-muted);font:inherit;font-size:.88rem;font-weight:700;cursor:pointer;
  transition:.18s ease;
}
.tm-user-nav-item:hover{background:var(--ui-surface-2,var(--ui-surface2));color:var(--ui-text)}
.tm-user-nav-item.active{
  color:var(--tm-user-accent);
  background:color-mix(in srgb,var(--tm-user-accent) 10%,var(--ui-surface));
}
.tm-user-head-actions{display:flex;gap:7px;flex:0 0 auto}
.tm-icon-action{
  width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--ui-border);border-radius:12px;
  background:var(--ui-surface);color:var(--ui-text);cursor:pointer;
}
.tm-user-main{max-width:1280px;margin:0 auto;padding:34px 28px 70px}
.tm-user-app{display:grid;gap:26px}
.tm-user-panel{display:grid;gap:24px}
.tm-user-panel[hidden]{display:none!important}
.tm-user-hero{
  position:relative;overflow:hidden;
  display:grid;grid-template-columns:minmax(0,1.6fr) minmax(220px,.55fr);align-items:center;gap:28px;
  min-height:310px;padding:42px;
  border-radius:32px;
  color:#fff;
  background:
    radial-gradient(circle at 12% 8%,rgba(255,255,255,.18),transparent 24%),
    radial-gradient(circle at 85% 75%,rgba(73,213,255,.19),transparent 28%),
    linear-gradient(135deg,#5144df 0%,#7869fb 48%,#725ee9 100%);
  box-shadow:0 22px 60px rgba(70,57,180,.23);
}
.tm-user-hero::after{
  content:'';position:absolute;width:280px;height:280px;border-radius:50%;left:-100px;bottom:-150px;
  border:42px solid rgba(255,255,255,.06);
}
.tm-user-hero-copy{position:relative;z-index:2;max-width:700px}
.tm-eyebrow{display:block;margin-bottom:7px;font-size:.75rem;font-weight:900;letter-spacing:.03em;color:var(--tm-user-accent)}
.tm-user-hero .tm-eyebrow{color:#dcd8ff}
.tm-user-hero h1{margin:0 0 10px;font-size:clamp(2rem,5vw,3.6rem);line-height:1.2}
.tm-user-hero p{max-width:580px;margin:0;color:#e9e7ff;font-size:1rem;line-height:2}
.tm-user-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px}
.tm-user-primary-cta{background:#fff!important;color:#5042d6!important;border-color:#fff!important;box-shadow:0 10px 24px rgba(31,23,91,.18)}
.tm-user-secondary-cta{color:#fff!important;border-color:rgba(255,255,255,.3)!important;background:rgba(255,255,255,.09)!important}
.tm-user-plan-orb{
  position:relative;z-index:2;display:grid;place-items:center;text-align:center;
  min-height:190px;padding:24px;border:1px solid rgba(255,255,255,.22);border-radius:30px;
  background:rgba(255,255,255,.11);backdrop-filter:blur(12px);
}
.tm-user-plan-orb span{font-size:.78rem;color:#e6e3ff}
.tm-user-plan-orb strong{font-size:1.4rem;margin:8px 0}
.tm-user-plan-orb small{color:#dcd8ff}
.tm-user-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.tm-user-metrics article{
  display:flex;align-items:center;gap:13px;padding:18px;border:1px solid var(--ui-border);border-radius:20px;
  background:var(--ui-surface);box-shadow:0 8px 28px rgba(38,35,92,.055)
}
.tm-metric-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;color:var(--tm-user-accent);background:var(--tm-user-soft)}
.tm-user-metrics article>div{display:grid;gap:3px;min-width:0}
.tm-user-metrics small{color:var(--ui-muted);font-size:.75rem}
.tm-user-metrics strong{font-size:1.12rem;overflow-wrap:anywhere}
.tm-home-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.8fr);gap:18px}
.tm-current-mail-card,.tm-home-otp-card,.tm-current-plan-card,.tm-account-card{
  border:1px solid var(--ui-border);border-radius:24px;background:var(--ui-surface);
  box-shadow:0 10px 34px rgba(38,35,92,.06)
}
.tm-current-mail-card,.tm-home-otp-card{padding:26px}
.tm-current-mail-card{background:linear-gradient(145deg,color-mix(in srgb,var(--tm-user-accent) 5%,var(--ui-surface)),var(--ui-surface) 55%)}
.tm-home-otp-card{background:linear-gradient(145deg,color-mix(in srgb,#21b6a8 7%,var(--ui-surface)),var(--ui-surface) 58%)}
.tm-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.tm-card-heading h2{margin:0;font-size:1.18rem}
.tm-status-pill{
  display:inline-flex;align-items:center;justify-content:center;min-height:27px;padding:4px 9px;border-radius:999px;
  font-size:.72rem;font-weight:900;background:var(--ui-surface-2,var(--ui-surface2));color:var(--ui-muted)
}
.tm-status-live{color:#13895a;background:#e8f8f0}
.tm-status-warn{color:#9a6610;background:#fff5db}
.tm-status-muted{color:#6b7081;background:#eff0f4}
.tm-current-address{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 16px;padding:14px 16px;
  border:1px dashed color-mix(in srgb,var(--tm-user-accent) 35%,var(--ui-border));border-radius:17px;background:var(--ui-surface)
}
.tm-current-address strong{font-size:clamp(1rem,2.2vw,1.35rem);overflow-wrap:anywhere}
.tm-copy-round{
  flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;border:0;border-radius:13px;cursor:pointer;
  color:#fff;background:var(--tm-user-accent)
}
.tm-copy-round:disabled{opacity:.4;cursor:not-allowed}
.tm-current-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.tm-current-meta span{display:grid;gap:4px;padding:10px 12px;border-radius:14px;background:var(--ui-surface-2,var(--ui-surface2))}
.tm-current-meta small{color:var(--ui-muted);font-size:.72rem}
.tm-wide-btn{width:100%;justify-content:center}
.tm-otp-spark{display:grid;place-items:center;width:52px;height:52px;border-radius:17px;background:#dff8f3;color:#137e70;font-size:.72rem;font-weight:950}
.tm-home-otp-code{display:block;margin:26px 0 10px;text-align:center;font-size:clamp(2rem,5vw,3.2rem);letter-spacing:.16em;color:#167b70}
.tm-home-otp-card p{min-height:48px;margin:0 0 18px;color:var(--ui-muted);line-height:1.8;text-align:center}
.tm-user-section{display:grid;gap:15px}
.tm-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}
.tm-section-heading-top{align-items:flex-start;padding-top:6px}
.tm-section-heading h1,.tm-section-heading h2{margin:0 0 6px;line-height:1.35}
.tm-section-heading h1{font-size:clamp(1.7rem,4vw,2.6rem)}
.tm-section-heading p{margin:0;color:var(--ui-muted);line-height:1.8}
.tm-inbox-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.tm-inbox-card-grid-home{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.tm-inbox-card{
  position:relative;display:grid;gap:14px;padding:20px;border:1px solid var(--ui-border);border-radius:20px;
  background:var(--ui-surface);box-shadow:0 8px 28px rgba(38,35,92,.045);transition:.18s ease
}
.tm-inbox-card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(38,35,92,.09);border-color:color-mix(in srgb,var(--tm-user-accent) 28%,var(--ui-border))}
.tm-inbox-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tm-message-count-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:var(--tm-user-soft);color:var(--tm-user-accent);font-size:.74rem;font-weight:900}
.tm-inbox-card-address{font-size:1.02rem;overflow-wrap:anywhere}
.tm-inbox-card-meta{display:grid;grid-template-columns:1fr;gap:8px}
.tm-inbox-card-meta span{display:grid;gap:3px}.tm-inbox-card-meta small{color:var(--ui-muted);font-size:.72rem}
.tm-inbox-card-actions{display:flex;gap:8px;align-items:center}.tm-inbox-card-actions .ui-btn{flex:1;justify-content:center}
.tm-card-delete{width:38px;height:38px;border:0;border-radius:11px;background:#fff0f0;color:#c83838;font-size:1.25rem;cursor:pointer}
.tm-user-upgrade-strip{
  display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 28px;border-radius:24px;
  background:linear-gradient(120deg,#17182b,#292a48);color:#fff
}
.tm-user-upgrade-strip h2{margin:0 0 5px}.tm-user-upgrade-strip p{margin:0;color:#c9cad9}.tm-user-upgrade-strip .tm-eyebrow{color:#aaa2ff}
.tm-inline-otp{
  display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border:1px solid #bdece1;border-radius:20px;background:#f0fcf9
}
.tm-inline-otp>div{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.tm-inline-otp small{color:#218275}.tm-inline-otp strong{font-size:1.8rem;letter-spacing:.12em;color:#147d70}
.tm-message-card-list{display:grid;gap:10px}
.tm-message-card{
  width:100%;display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:14px;padding:15px 16px;
  border:1px solid var(--ui-border);border-radius:18px;background:var(--ui-surface);color:inherit;text-align:inherit;cursor:pointer;transition:.16s ease
}
.tm-message-card:hover{border-color:color-mix(in srgb,var(--tm-user-accent) 30%,var(--ui-border));transform:translateY(-1px)}
.tm-message-card-otp{background:linear-gradient(90deg,color-mix(in srgb,#24ad98 6%,var(--ui-surface)),var(--ui-surface))}
.tm-message-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:var(--ui-surface-2,var(--ui-surface2));font-size:.7rem;font-weight:950}
.tm-message-card-otp .tm-message-avatar{background:#dff8f3;color:#147d70}
.tm-message-copy{display:grid;gap:3px;min-width:0}.tm-message-copy strong,.tm-message-copy small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-message-copy small{color:var(--ui-muted);font-size:.75rem}
.tm-message-otp-badge{padding:7px 10px;border-radius:11px;background:#dff8f3;color:#147d70;font-weight:900}
.tm-message-open-label{background:var(--ui-surface-2,var(--ui-surface2));color:var(--ui-muted);font-size:.72rem}
.tm-current-plan-card{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px}
.tm-current-plan-card h2{margin:3px 0 8px;font-size:1.6rem}.tm-current-plan-card p{margin:0;color:var(--ui-muted)}
.tm-current-plan-meta{display:flex;gap:10px;flex-wrap:wrap}.tm-current-plan-meta span{display:grid;gap:4px;min-width:150px;padding:12px 14px;border-radius:14px;background:var(--ui-surface-2,var(--ui-surface2))}
.tm-current-plan-meta small{color:var(--ui-muted);font-size:.72rem}
.tm-user-plan-market{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.tm-market-plan-card{
  position:relative;display:flex;min-height:390px;flex-direction:column;gap:20px;padding:26px;border:1px solid var(--ui-border);border-radius:24px;
  background:var(--ui-surface);box-shadow:0 10px 34px rgba(38,35,92,.055)
}
.tm-market-plan-featured{border-color:color-mix(in srgb,var(--tm-user-accent) 42%,var(--ui-border));box-shadow:0 16px 44px rgba(109,93,252,.13)}
.tm-plan-badge{display:inline-flex;padding:6px 10px;border-radius:999px;background:var(--tm-user-soft);color:var(--tm-user-accent);font-size:.72rem;font-weight:900}
.tm-market-plan-head h2{margin:12px 0 5px}.tm-market-plan-head p{margin:0;color:var(--ui-muted)}
.tm-market-price{display:flex;align-items:flex-end;gap:7px}.tm-market-price strong{font-size:2rem}.tm-market-price span{padding-bottom:5px;color:var(--ui-muted)}
.tm-market-features{display:grid;gap:9px;margin:0;padding:0;list-style:none;flex:1}
.tm-market-features li{position:relative;padding-inline-start:24px;color:var(--ui-muted)}
.tm-market-features li::before{content:'✓';position:absolute;inset-inline-start:0;color:#1a9d70;font-weight:900}
.tm-account-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.tm-account-card{display:grid;gap:8px;padding:24px}.tm-account-card small,.tm-account-card span:not(.tm-account-icon){color:var(--ui-muted)}
.tm-account-card strong{font-size:1.08rem;overflow-wrap:anywhere}.tm-account-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:var(--tm-user-soft);color:var(--tm-user-accent);margin-bottom:6px}
.tm-account-card-danger .tm-account-icon{background:#fff0f0;color:#bd3636}
.tm-user-empty{grid-column:1/-1;display:grid;place-items:center;gap:5px;min-height:150px;padding:28px;border:1px dashed var(--ui-border);border-radius:20px;color:var(--ui-muted);text-align:center;background:var(--ui-surface)}
.tm-user-empty strong{color:var(--ui-text);font-size:1rem}
.tm-user-message-modal{display:grid;gap:16px}.tm-message-modal-meta{display:flex;justify-content:space-between;gap:12px;color:var(--ui-muted)}
.tm-modal-otp{display:grid;place-items:center;gap:10px;padding:20px;border-radius:18px;background:#eefbf7}.tm-modal-otp strong{font-size:2.5rem;letter-spacing:.14em;color:#147d70}
.tm-user-message-body{padding:18px;border:1px solid var(--ui-border);border-radius:16px;background:var(--ui-surface-2,var(--ui-surface2));line-height:1.9}
.tm-user-mobile-nav{display:none}

@media(max-width:980px){
  .tm-user-header{padding-inline:18px}.tm-user-desktop-nav{display:none}
  .tm-user-hero{grid-template-columns:1fr;padding:32px}.tm-user-plan-orb{min-height:130px}
  .tm-user-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tm-home-grid{grid-template-columns:1fr}.tm-account-card-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:720px){
  .tm-user-shell{padding-bottom:88px}.tm-user-header{position:static;padding:12px 14px}.tm-user-brand small{display:none}
  .tm-user-head-actions{margin-inline-start:auto}.tm-user-main{padding:18px 12px 20px}
  .tm-user-hero{min-height:0;padding:26px 20px;border-radius:24px}.tm-user-hero h1{font-size:2rem}
  .tm-user-plan-orb{display:none}.tm-user-metrics{grid-template-columns:1fr 1fr;gap:9px}
  .tm-user-metrics article{padding:13px;gap:9px}.tm-metric-icon{width:40px;height:40px}
  .tm-home-grid{gap:12px}.tm-current-mail-card,.tm-home-otp-card{padding:20px;border-radius:20px}
  .tm-section-heading{align-items:flex-start;flex-direction:column}.tm-section-heading>.ui-btn{width:100%;justify-content:center}
  .tm-inbox-card-grid,.tm-inbox-card-grid-home,.tm-user-plan-market{grid-template-columns:1fr}
  .tm-user-upgrade-strip,.tm-current-plan-card,.tm-inline-otp{align-items:stretch;flex-direction:column}
  .tm-current-plan-meta{display:grid;grid-template-columns:1fr 1fr}.tm-current-plan-meta span{min-width:0}
  .tm-account-card-grid{grid-template-columns:1fr}
  .tm-message-card{grid-template-columns:46px minmax(0,1fr);gap:10px}.tm-message-otp-badge{grid-column:2;justify-self:start}
  .tm-user-mobile-nav{
    position:fixed;z-index:60;inset-inline:10px;bottom:10px;display:grid;grid-template-columns:repeat(5,1fr);gap:3px;
    padding:7px;border:1px solid color-mix(in srgb,var(--ui-border) 75%,transparent);border-radius:19px;
    background:color-mix(in srgb,var(--ui-surface,#fff) 92%,transparent);box-shadow:0 15px 42px rgba(30,28,73,.18);backdrop-filter:blur(16px)
  }
  .tm-user-mobile-nav button{
    display:grid;place-items:center;gap:3px;min-height:52px;border:0;border-radius:13px;background:transparent;color:var(--ui-muted);font:inherit;font-size:.64rem;font-weight:800
  }
  .tm-user-mobile-nav button.active{background:var(--tm-user-soft);color:var(--tm-user-accent)}
}


/* TiMail 0.1.19 — compact subscriber dashboard */
.tm-user-body .tm-user-main{max-width:1220px;padding:18px 22px 44px}
.tm-user-body .tm-user-app{gap:14px}
.tm-user-body .tm-user-panel{gap:14px}
.tm-user-body .tm-user-hero{
  min-height:205px;padding:26px 30px;gap:20px;border-radius:24px;
}
.tm-user-body .tm-user-hero h1{font-size:clamp(1.75rem,3.5vw,2.65rem);margin-bottom:5px}
.tm-user-body .tm-user-hero p{font-size:.9rem;line-height:1.75}
.tm-user-body .tm-user-hero-actions{margin-top:16px}
.tm-user-body .tm-user-plan-orb{min-height:132px;padding:16px;border-radius:22px}
.tm-user-body .tm-user-plan-orb strong{font-size:1.15rem;margin:5px 0}
.tm-user-body .tm-user-metrics{gap:9px}
.tm-user-body .tm-user-metrics article{padding:11px 13px;border-radius:16px;gap:10px}
.tm-user-body .tm-metric-icon{width:39px;height:39px;border-radius:12px}
.tm-user-body .tm-user-metrics strong{font-size:1rem}
.tm-user-body .tm-home-grid{gap:12px;grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr)}
.tm-user-body .tm-current-mail-card,
.tm-user-body .tm-home-otp-card{padding:18px;border-radius:19px}
.tm-user-body .tm-card-heading h2{font-size:1.03rem}
.tm-user-body .tm-eyebrow{margin-bottom:4px;font-size:.7rem}
.tm-user-body .tm-current-address{margin:12px 0 10px;padding:10px 12px;border-radius:13px}
.tm-user-body .tm-current-address strong{font-size:clamp(.92rem,1.8vw,1.15rem)}
.tm-user-body .tm-copy-round{width:36px;height:36px;flex-basis:36px;border-radius:10px}
.tm-user-body .tm-current-meta{gap:7px;margin-bottom:10px}
.tm-user-body .tm-current-meta span{padding:7px 9px;border-radius:11px}
.tm-user-body .tm-home-otp-code{
  margin:14px 0 6px;
  font-size:clamp(1.45rem,3vw,2.05rem);
  letter-spacing:.1em;
}
.tm-user-body .tm-home-otp-card p{min-height:32px;margin:0 0 10px;font-size:.78rem;line-height:1.7}
.tm-user-body .tm-otp-spark{width:42px;height:42px;border-radius:13px;font-size:.66rem}
.tm-user-body .tm-section-heading{gap:12px}
.tm-user-body .tm-section-heading h1{font-size:clamp(1.45rem,3vw,2rem)}
.tm-user-body .tm-section-heading h2{font-size:1.35rem}
.tm-user-body .tm-section-heading p{font-size:.8rem;line-height:1.65}
.tm-user-body .tm-inbox-card-grid{gap:10px;grid-template-columns:repeat(auto-fill,minmax(245px,1fr))}
.tm-user-body .tm-inbox-card{gap:9px;padding:14px;border-radius:16px}
.tm-user-body .tm-inbox-card-address{font-size:.92rem}
.tm-user-body .tm-inbox-card-meta span{padding:0}
.tm-user-body .tm-inbox-card-actions{gap:6px}
.tm-user-body .tm-user-upgrade-strip{padding:16px 20px;border-radius:18px}
.tm-user-body .tm-user-upgrade-strip h2{font-size:1.05rem}
.tm-user-body .tm-user-upgrade-strip p{font-size:.78rem}
.tm-user-body .tm-user-upgrade-strip[hidden]{display:none!important}
.tm-user-body .tm-current-plan-card{padding:18px;border-radius:19px}
.tm-user-body .tm-market-plan-card{min-height:330px;padding:19px;border-radius:19px}
.tm-user-body .tm-account-card{padding:17px}
.tm-user-body .tm-message-card{padding:11px 13px;border-radius:14px}
.tm-user-body .tm-message-avatar{width:41px;height:41px;border-radius:12px}

/* Administrator inbox/message inspection */
.tm-admin-inbox-modal,.tm-admin-message-detail{display:grid;gap:14px}
.tm-admin-inbox-summary,.tm-admin-message-meta{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px
}
.tm-admin-inbox-summary>div,.tm-admin-message-meta>div{
  display:grid;gap:4px;padding:10px 12px;border:1px solid var(--ui-border);
  border-radius:12px;background:var(--ui-surface-2,var(--ui-surface2));min-width:0
}
.tm-admin-inbox-summary small,.tm-admin-message-meta small{color:var(--ui-muted);font-size:.72rem}
.tm-admin-inbox-summary strong,.tm-admin-message-meta strong{overflow-wrap:anywhere}
.tm-admin-message-list{display:grid;gap:7px;max-height:58vh;overflow:auto}
.tm-admin-message-card{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:11px 13px;border:1px solid var(--ui-border);border-radius:13px;
  background:var(--ui-surface);color:inherit;text-align:inherit;cursor:pointer
}
.tm-admin-message-card:hover{border-color:color-mix(in srgb,var(--ui-primary) 35%,var(--ui-border))}
.tm-admin-message-card-main,.tm-admin-message-card-side{display:grid;gap:3px;min-width:0}
.tm-admin-message-card-main{flex:1}
.tm-admin-message-card-main strong,.tm-admin-message-card-main small{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.tm-admin-message-card-main small,.tm-admin-message-card-side small{color:var(--ui-muted);font-size:.73rem}
.tm-admin-message-card-side{text-align:end}
.tm-admin-message-card-side b{color:var(--ui-primary);font-size:1.05rem;letter-spacing:.08em}
.tm-admin-otp-chip{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:12px 14px;border-radius:13px;background:#eefbf7;color:#147d70
}
.tm-admin-otp-chip strong{font-size:1.55rem;letter-spacing:.1em}
.tm-admin-message-section{display:grid;gap:8px}
.tm-admin-message-section h3{margin:0;font-size:.95rem}
.tm-admin-message-pre{
  max-height:260px;overflow:auto;margin:0;padding:13px;border:1px solid var(--ui-border);
  border-radius:12px;background:var(--ui-surface-2,var(--ui-surface2));
  white-space:pre-wrap;overflow-wrap:anywhere;direction:auto;font:inherit;line-height:1.75
}
.tm-admin-safe-html{
  max-height:360px;overflow:auto;padding:14px;border:1px solid var(--ui-border);
  border-radius:12px;background:#fff;color:#17182b
}
.tm-admin-raw-html{border:1px solid var(--ui-border);border-radius:12px;padding:10px 12px}
.tm-admin-raw-html summary{cursor:pointer;font-weight:800}
.tm-admin-attachment-list{display:grid;gap:6px}
.tm-admin-attachment-list>div{
  display:flex;justify-content:space-between;gap:10px;padding:9px 11px;
  border-radius:10px;background:var(--ui-surface-2,var(--ui-surface2))
}
.tm-admin-attachment-list small{color:var(--ui-muted)}

@media(max-width:900px){
  .tm-admin-inbox-summary,.tm-admin-message-meta{grid-template-columns:1fr 1fr}
}
@media(max-width:720px){
  .tm-user-body .tm-user-main{padding:12px 10px 18px}
  .tm-user-body .tm-user-hero{padding:20px 16px;border-radius:19px}
  .tm-user-body .tm-user-metrics{gap:7px}
  .tm-user-body .tm-user-metrics article{padding:10px}
  .tm-user-body .tm-home-grid{gap:9px}
  .tm-user-body .tm-current-mail-card,.tm-user-body .tm-home-otp-card{padding:15px}
  .tm-user-body .tm-home-otp-code{font-size:1.5rem}
  .tm-admin-inbox-summary,.tm-admin-message-meta{grid-template-columns:1fr}
  .tm-admin-message-card{align-items:flex-start;flex-direction:column}
  .tm-admin-message-card-side{text-align:start}
}


/* TiMail 0.1.20 — full-width responsive subscriber workspace */
.tm-user-body{overflow-x:hidden}
.tm-user-body .tm-user-shell{width:100%;max-width:none}
.tm-user-body .tm-user-header{
  width:100%;
  max-width:none;
  box-sizing:border-box;
  padding-inline:clamp(14px,2.2vw,34px);
}
.tm-user-body .tm-user-main{
  width:100%;
  max-width:none;
  box-sizing:border-box;
  margin:0;
  padding:16px clamp(12px,2.2vw,34px) 42px;
}
.tm-user-body .tm-user-app,
.tm-user-body .tm-user-panel{width:100%;max-width:none}
.tm-user-body .tm-user-hero{width:100%;box-sizing:border-box}
.tm-user-body .tm-user-metrics{width:100%}
.tm-user-body .tm-home-grid{width:100%}
.tm-user-body .tm-current-mail-card,
.tm-user-body .tm-home-otp-card,
.tm-user-body .tm-current-plan-card,
.tm-user-body .tm-market-plan-card,
.tm-user-body .tm-inbox-card,
.tm-user-body .tm-account-card{box-sizing:border-box;min-width:0}
.tm-user-body .tm-current-address strong,
.tm-user-body .tm-inbox-card-address,
.tm-user-body .tm-account-card strong{word-break:break-word;overflow-wrap:anywhere}
.tm-user-body .tm-message-card{min-width:0}
.tm-user-body .tm-message-copy{min-width:0}
.tm-user-body .tm-user-upgrade-strip[hidden]{display:none!important}

@media(min-width:1440px){
  .tm-user-body .tm-user-hero{
    grid-template-columns:minmax(0,2.2fr) minmax(250px,.55fr);
  }
  .tm-user-body .tm-home-grid{
    grid-template-columns:minmax(0,1.8fr) minmax(300px,.72fr);
  }
  .tm-user-body .tm-inbox-card-grid-home{
    grid-template-columns:repeat(auto-fit,minmax(285px,1fr));
  }
}

@media(max-width:980px){
  .tm-user-body .tm-user-shell{padding-bottom:86px}
  .tm-user-body .tm-user-header{padding-inline:16px}
  .tm-user-body .tm-user-main{padding:14px 14px 28px}
  .tm-user-body .tm-user-mobile-nav{
    position:fixed;
    z-index:60;
    inset-inline:10px;
    bottom:10px;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:3px;
    padding:7px;
    border:1px solid color-mix(in srgb,var(--ui-border) 75%,transparent);
    border-radius:19px;
    background:color-mix(in srgb,var(--ui-surface,#fff) 92%,transparent);
    box-shadow:0 15px 42px rgba(30,28,73,.18);
    backdrop-filter:blur(16px);
  }
  .tm-user-body .tm-user-mobile-nav button{
    display:grid;
    place-items:center;
    gap:3px;
    min-height:52px;
    border:0;
    border-radius:13px;
    background:transparent;
    color:var(--ui-muted);
    font:inherit;
    font-size:.64rem;
    font-weight:800;
  }
  .tm-user-body .tm-user-mobile-nav button.active{
    background:var(--tm-user-soft);
    color:var(--tm-user-accent);
  }
  .tm-user-body .tm-user-hero{
    grid-template-columns:1fr;
    min-height:0;
  }
  .tm-user-body .tm-user-plan-orb{
    min-height:auto;
    grid-template-columns:auto 1fr auto;
    justify-items:start;
    text-align:start;
    column-gap:12px;
  }
  .tm-user-body .tm-home-grid{grid-template-columns:1fr}
  .tm-user-body .tm-account-card-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:640px){
  .tm-user-body .tm-user-main{padding:10px 10px 20px}
  .tm-user-body .tm-user-header{padding:10px 12px}
  .tm-user-body .tm-user-brand img{width:38px;height:38px}
  .tm-user-body .tm-user-hero{
    padding:18px 16px;
    border-radius:18px;
  }
  .tm-user-body .tm-user-hero h1{font-size:1.7rem}
  .tm-user-body .tm-user-hero p{font-size:.82rem}
  .tm-user-body .tm-user-plan-orb{
    display:grid;
    padding:11px 13px;
    border-radius:15px;
  }
  .tm-user-body .tm-user-plan-orb strong{font-size:.95rem;margin:0}
  .tm-user-body .tm-user-plan-orb small{font-size:.7rem}
  .tm-user-body .tm-user-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .tm-user-body .tm-user-metrics article{
    min-width:0;
    padding:9px;
  }
  .tm-user-body .tm-metric-icon{width:36px;height:36px}
  .tm-user-body .tm-current-address{align-items:flex-start}
  .tm-user-body .tm-current-address strong{font-size:.88rem}
  .tm-user-body .tm-home-otp-code{
    font-size:1.35rem;
    letter-spacing:.07em;
  }
  .tm-user-body .tm-current-meta{grid-template-columns:1fr 1fr}
  .tm-user-body .tm-inbox-card-grid,
  .tm-user-body .tm-inbox-card-grid-home,
  .tm-user-body .tm-user-plan-market,
  .tm-user-body .tm-account-card-grid{grid-template-columns:1fr}
  .tm-user-body .tm-current-plan-meta{grid-template-columns:1fr}
  .tm-user-body .tm-user-mobile-nav{
    inset-inline:6px;
    bottom:6px;
    border-radius:16px;
    padding:5px;
  }
  .tm-user-body .tm-user-mobile-nav button{
    min-height:49px;
    font-size:.6rem;
  }
}

@media(max-width:390px){
  .tm-user-body .tm-user-metrics{grid-template-columns:1fr}
  .tm-user-body .tm-user-hero-actions{display:grid;grid-template-columns:1fr}
  .tm-user-body .tm-user-hero-actions .ui-btn{width:100%;justify-content:center}
  .tm-user-body .tm-current-meta{grid-template-columns:1fr}
  .tm-user-body .tm-user-mobile-nav button span{font-size:.56rem}
}


/* TiMail mobile chrome + compact dismissible task center */
html:has(.tm-user-body),
body.tm-user-body{
  min-height:100%;
  min-height:100dvh;
  background:var(--ui-bg);
  overscroll-behavior-y:none;
}
.tm-user-body{
  min-height:100dvh;
  overflow-x:hidden;
}
.tm-user-body .tm-user-shell{
  min-height:100dvh;
  background:var(--ui-bg);
}
.ui-task-center{
  width:min(310px,calc(100vw - 24px));
  bottom:12px;
  border-radius:14px;
  overflow:hidden;
}
.ui-task-head{
  min-height:32px;
  padding:4px 7px 4px 9px;
  border-bottom:1px solid color-mix(in srgb,var(--ui-border),transparent 45%);
}
.ui-task-head-copy{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
}
.ui-task-head-copy strong{
  font-size:11.5px;
  white-space:nowrap;
}
.ui-task-count{
  min-width:20px;
  height:20px;
  padding-inline:5px;
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  background:var(--ui-surface-2);
  color:var(--ui-muted);
  font-size:10px;
}
.ui-task-dismiss{
  width:28px;
  height:28px;
  min-width:28px;
  padding:0;
  display:grid;
  place-items:center;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--ui-muted);
  cursor:pointer;
}
.ui-task-dismiss:hover{background:var(--ui-surface-2);color:var(--ui-text)}
.ui-task-list{max-height:126px}
.ui-task{padding:6px 9px}
.ui-task-row{gap:5px}
.ui-task-title{font-size:11.5px}
.ui-task-status{font-size:10px}
.ui-task .ui-progress{height:3px;margin-top:4px}
.ui-modal [data-close],
.ui-bottom-sheet-close,
.ui-toast-close{
  display:grid!important;
  place-items:center!important;
}
.ui-modal [data-close] .ui-icon,
.ui-bottom-sheet-close .ui-icon,
.ui-toast-close .ui-icon{
  display:block;
  width:14px;
  height:14px;
}

@media(max-width:720px){
  html:has(.tm-user-body),
  body.tm-user-body{
    background:var(--ui-surface);
  }
  .tm-user-body .tm-user-shell{
    padding-bottom:calc(72px + env(safe-area-inset-bottom,0px));
  }
  .tm-user-body .tm-user-header{
    position:sticky;
    top:0;
    z-index:70;
    padding-top:calc(10px + env(safe-area-inset-top,0px));
    padding-bottom:10px;
    background:color-mix(in srgb,var(--ui-surface) 96%,transparent);
    border-bottom:1px solid color-mix(in srgb,var(--ui-border) 80%,transparent);
    backdrop-filter:blur(18px);
  }
  .tm-user-body .tm-user-mobile-nav{
    inset-inline:8px;
    bottom:0;
    min-height:64px;
    padding:7px 7px max(7px,env(safe-area-inset-bottom,0px));
    border-radius:18px 18px 0 0;
    background:color-mix(in srgb,var(--ui-surface) 97%,transparent);
    box-shadow:0 -10px 30px rgba(30,28,73,.13);
  }
  .tm-user-body .tm-user-main{
    padding-bottom:20px;
  }
  .tm-user-body .ui-task-center{
    inset-inline-start:10px;
    bottom:calc(68px + env(safe-area-inset-bottom,0px));
    width:min(285px,calc(100vw - 20px));
    max-width:calc(100vw - 20px);
    border-radius:13px;
  }
  .tm-user-body .ui-task-list{max-height:92px}
  .tm-user-body .ui-task:nth-child(n+3){display:none}
}


/* Keep current-operation UI intentionally small: latest task only, count keeps context. */
.ui-task-center .ui-task:nth-child(n+2){display:none}
.ui-task-list{max-height:54px;overflow:hidden}

@media(max-width:720px){
  body.tm-user-body::before,
  body.tm-user-body::after{
    content:"";
    position:fixed;
    inset-inline:0;
    pointer-events:none;
  }
  body.tm-user-body::before{
    top:0;
    height:env(safe-area-inset-top,0px);
    z-index:69;
    background:var(--ui-surface);
  }
  body.tm-user-body::after{
    bottom:0;
    height:env(safe-area-inset-bottom,0px);
    z-index:59;
    background:var(--ui-surface);
  }
  .tm-user-body .ui-task-list{max-height:48px}
}


/* TiMail 0.1.22 — restore native vertical scrolling for subscriber workspace */
html:has(body.tm-user-body){
  min-height:100%;
  height:auto;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
body.tm-user-body{
  min-height:100dvh;
  height:auto!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:auto;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
}
.tm-user-body .tm-user-shell{
  min-height:100dvh;
  height:auto!important;
  overflow:visible!important;
  touch-action:pan-y;
}
.tm-user-body .tm-user-main,
.tm-user-body .tm-user-app,
.tm-user-body .tm-user-panel{
  height:auto!important;
  min-height:0;
  overflow:visible;
  touch-action:pan-y;
}
@media(max-width:768px){
  html:has(body.tm-user-body),
  body.tm-user-body{
    overflow-y:auto!important;
    overscroll-behavior-y:auto!important;
    touch-action:pan-y!important;
  }
}


/* TiMail 0.1.23 — background mail arrival UX */
.tm-latest-message-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border:1px solid color-mix(in srgb,var(--tm-user-accent) 18%,var(--ui-border));
  border-radius:18px;
  background:linear-gradient(100deg,color-mix(in srgb,var(--tm-user-accent) 6%,var(--ui-surface)),var(--ui-surface));
  box-shadow:0 8px 28px rgba(38,35,92,.055);
}
.tm-latest-message-card[hidden]{display:none!important}
.tm-latest-message-icon{
  width:44px;height:44px;display:grid;place-items:center;border-radius:14px;
  color:var(--tm-user-accent);background:var(--tm-user-soft)
}
.tm-latest-message-copy{display:grid;gap:4px;min-width:0}
.tm-latest-message-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tm-latest-message-copy>strong{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-latest-message-copy>small{color:var(--ui-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-latest-message-link{
  border-color:color-mix(in srgb,#1a9d70 34%,var(--ui-border));
  background:linear-gradient(100deg,color-mix(in srgb,#1a9d70 7%,var(--ui-surface)),var(--ui-surface));
}
.tm-latest-message-link .tm-latest-message-icon{color:#147d70;background:#e6f8f2}
.tm-latest-message-otp .tm-latest-message-icon{color:#147d70;background:#e6f8f2}
.tm-message-card-link{border-color:color-mix(in srgb,#1a9d70 24%,var(--ui-border))}
.tm-message-card-link .tm-message-avatar{background:#e6f8f2;color:#147d70}
.tm-message-link-label{background:#e6f8f2!important;color:#147d70!important}
.tm-message-card-unread{box-shadow:inset -3px 0 0 var(--tm-user-accent)}
@keyframes tm-arrival-pulse{
  0%{transform:scale(1);box-shadow:0 8px 28px rgba(38,35,92,.055)}
  40%{transform:scale(1.008);box-shadow:0 12px 34px rgba(109,93,252,.18)}
  100%{transform:scale(1);box-shadow:0 8px 28px rgba(38,35,92,.055)}
}
.tm-arrival-flash{animation:tm-arrival-pulse .65s ease-out 1}
@media(max-width:720px){
  .tm-latest-message-card{
    grid-template-columns:40px minmax(0,1fr);
    gap:10px;padding:12px;border-radius:15px
  }
  .tm-latest-message-card>.ui-btn{grid-column:1/-1;width:100%;justify-content:center}
  .tm-latest-message-icon{width:40px;height:40px;border-radius:12px}
  .tm-latest-message-copy>strong{font-size:.9rem}
  .tm-latest-message-copy>small{font-size:.7rem}
}


/* External-domain onboarding */
.tm-domain-manual-result{
  display:grid;gap:12px;margin-top:8px;padding:16px;
  border:1px solid var(--ui-border);border-radius:16px;background:var(--ui-surface-2,var(--ui-surface2))
}
.tm-domain-manual-result h3{margin:0}
.tm-domain-manual-result p{margin:0;color:var(--ui-muted);line-height:1.85}
.tm-domain-manual-result ol{margin:0;padding-inline-start:22px;display:grid;gap:7px;line-height:1.8}
.tm-domain-copy-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;
  padding:9px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface)
}
.tm-domain-copy-value{display:grid;gap:4px;min-width:0}
.tm-domain-copy-value small{color:var(--ui-muted)}
.tm-domain-copy-value code{direction:ltr;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.72rem}
@media(max-width:720px){
  .tm-domain-copy-row{grid-template-columns:1fr}
  .tm-domain-copy-row .ui-btn{width:100%;justify-content:center}
}


.tm-message-safe-link{
  color:var(--tm-user-accent);
  text-decoration:underline;
  text-decoration-thickness:1.5px;
  text-underline-offset:3px;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.tm-message-safe-link:hover{opacity:.82}


/* TiMail 0.1.24 — federated/mobile authentication */
.tm-auth-divider{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:16px 0 12px;
  color:var(--ui-muted);
  font-size:.72rem;
}
.tm-auth-divider::before,.tm-auth-divider::after{
  content:"";height:1px;flex:1;background:var(--ui-border);
}
.tm-auth-divider span{padding:0 10px}
.tm-auth-alternatives{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tm-auth-provider{justify-content:center;min-height:44px}
.tm-auth-provider[hidden],.tm-auth-divider[hidden],.tm-auth-alternatives[hidden]{display:none!important}
.tm-auth-otp-hint{
  padding:10px 12px;border-radius:12px;background:var(--ui-surface-2,var(--ui-surface2));
  color:var(--ui-muted);font-size:.8rem
}
.tm-auth-otp-input{direction:ltr;text-align:center;font-size:1.35rem;letter-spacing:.2em;font-weight:800}
.tm-auth-back{width:100%;margin-top:8px;justify-content:center}
@media(max-width:640px){.tm-auth-alternatives{grid-template-columns:1fr}}

/* TiMail 0.1.24 — public shared inbox + conversion path */
.tm-shared-section,.tm-pricing-section{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:84px 0 18px;position:relative;z-index:2}
.tm-shared-warning{margin:22px 0 14px;padding:12px 15px;border:1px solid rgba(255,190,80,.28);border-radius:14px;background:rgba(255,178,64,.08);color:#ffd18a;font-size:.82rem;line-height:1.8}
.tm-shared-inboxes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tm-shared-inbox-card{display:grid;gap:8px;padding:18px;border:1px solid rgba(142,162,196,.2);border-radius:18px;background:rgba(16,26,46,.7);backdrop-filter:blur(14px)}
.tm-shared-inbox-card small,.tm-shared-inbox-card span{color:#9fb1c7;font-size:.74rem}.tm-shared-inbox-card strong{font-size:1.08rem;overflow-wrap:anywhere}.tm-shared-inbox-card .ui-btn{justify-self:start}
.tm-shared-messages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.tm-shared-message-group{display:grid;align-content:start;gap:8px;padding:16px;border:1px solid rgba(142,162,196,.17);border-radius:18px;background:rgba(9,17,32,.68)}
.tm-shared-message-group h3{margin:0 0 3px;font-size:.95rem}.tm-shared-message-card{display:grid;gap:6px;padding:12px;border-radius:13px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.055)}
.tm-shared-message-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.tm-shared-message-head strong{font-size:.83rem}.tm-shared-message-head small,.tm-shared-sender{color:#9fb1c7;font-size:.7rem}
.tm-shared-message-card p{margin:0;color:#bdcad8;font-size:.76rem;line-height:1.75;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.tm-shared-otp{justify-self:start;border:0;border-radius:10px;padding:7px 10px;background:#dff8f3;color:#147d70;font-weight:900;cursor:pointer}
.tm-shared-links{display:flex;gap:6px;flex-wrap:wrap}.tm-shared-links .ui-btn{min-height:32px;font-size:.72rem}.tm-shared-empty,.tm-shared-loading{padding:24px;text-align:center;color:#8fa2b7;border:1px dashed rgba(142,162,196,.2);border-radius:13px}
.tm-shared-limit{margin-top:14px;padding:18px 20px;border-radius:17px;background:linear-gradient(120deg,rgba(90,75,235,.18),rgba(49,91,255,.13));border:1px solid rgba(123,111,255,.28)}.tm-shared-limit[hidden]{display:none!important}.tm-shared-limit strong{display:block;margin-bottom:4px}.tm-shared-limit p{margin:0 0 12px;color:#adbed1}.tm-shared-status{margin-top:10px;color:#8599ae;font-size:.72rem}
.tm-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:14px;margin-top:22px}.tm-plan-card{display:flex;flex-direction:column;gap:14px;min-height:250px;padding:24px;border-radius:20px;border:1px solid rgba(142,162,196,.2);background:rgba(15,24,43,.75);backdrop-filter:blur(16px)}.tm-plan-card h3{margin:8px 0 0;font-size:1.35rem}.tm-plan-card>strong{font-size:1.4rem;color:#fff}.tm-plan-card p{margin:0;color:#a9bbcf;line-height:1.8;flex:1}.tm-plan-tag{display:inline-flex;padding:5px 9px;border-radius:999px;background:rgba(109,93,252,.15);color:#bdb6ff;font-size:.7rem;font-weight:800}
@media(max-width:720px){.tm-shared-section,.tm-pricing-section{width:calc(100% - 20px);padding-top:54px}.tm-shared-inboxes,.tm-shared-messages,.tm-plan-grid{grid-template-columns:1fr}}


/* Auth onboarding / profile controls */
.tm-auth-link-btn{
  width:100%;
  min-height:38px;
  border:0;
  background:transparent;
  color:var(--ui-accent,#6557e8);
  font-weight:700;
}
.tm-auth-link-btn:hover{background:var(--ui-surface-2);color:var(--ui-text)}
.tm-auth-otp-hint{
  padding:11px 13px;
  border:1px solid var(--ui-border);
  border-radius:12px;
  background:var(--ui-surface-2);
  color:var(--ui-muted);
  font-size:12px;
  line-height:1.8;
}
.tm-account-card .ui-btn{margin-top:8px;align-self:stretch}
.tm-account-profile-card strong{font-size:16px}


/* TiMail 0.1.27 — compact public shared inbox inside landing hero */
.tm-sky-hero{
  min-height:calc(100svh - 72px);
  padding:clamp(28px,4vh,52px) 0 30px;
  box-sizing:border-box;
}
.tm-hero-center{width:min(900px,100%)}
.tm-hero-center h1{
  margin:14px 0 10px;
  font-size:clamp(2.2rem,4.45vw,4.25rem);
}
.tm-hero-center>p{margin-bottom:12px;line-height:1.75}
.tm-hero-actions{margin-top:8px}
.tm-hero-proof{margin-top:10px}
.tm-scroll-cue{display:none}

.tm-shared-hero-panel{
  width:min(880px,100%);
  box-sizing:border-box;
  margin-top:14px;
  padding:11px;
  border:1px solid rgba(116,205,224,.18);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(11,27,46,.82),rgba(7,20,36,.78));
  box-shadow:inset 0 1px rgba(255,255,255,.04),0 18px 55px rgba(0,0,0,.18);
  backdrop-filter:blur(18px);
  text-align:start;
}
.tm-shared-hero-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
  padding-inline:2px;
}
.tm-shared-hero-head>div{display:flex;align-items:center;gap:8px;min-width:0}
.tm-shared-hero-head span{
  padding:3px 7px;
  border-radius:999px;
  background:rgba(72,222,181,.1);
  color:#75e6c7;
  font-size:.65rem;
  font-weight:800;
  white-space:nowrap;
}
.tm-shared-hero-head strong{color:#eef8ff;font-size:.86rem}
.tm-shared-hero-head small{color:#8da3b7;font-size:.66rem;white-space:nowrap}

.tm-shared-inboxes-compact{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}
.tm-shared-inbox-card.is-compact{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:8px 9px;
  border-radius:12px;
  border:1px solid rgba(142,162,196,.15);
  background:rgba(255,255,255,.035);
}
.tm-shared-inbox-meta{display:grid;gap:2px;min-width:0}
.tm-shared-inbox-meta small{color:#7f96aa;font-size:.62rem}
.tm-shared-inbox-meta strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#f2f8fd;
  font:700 .76rem/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;
}
.tm-shared-inbox-card.is-compact .ui-btn{
  min-height:30px;
  padding-inline:8px;
  flex:0 0 auto;
  font-size:.68rem;
}

.tm-shared-messages-compact{
  display:flex;
  gap:7px;
  margin-top:8px;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
  padding-bottom:2px;
  scroll-snap-type:x proximity;
}
.tm-shared-message-card.is-compact{
  flex:0 0 215px;
  min-width:0;
  display:grid;
  gap:4px;
  padding:8px 9px;
  border-radius:11px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.05);
  scroll-snap-align:start;
}
.tm-shared-message-card.is-compact .tm-shared-message-head{align-items:center;gap:7px}
.tm-shared-message-card.is-compact .tm-shared-message-head strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.72rem;
}
.tm-shared-message-card.is-compact .tm-shared-message-head small{
  flex:0 0 auto;
  font-size:.58rem;
}
.tm-shared-message-card.is-compact .tm-shared-sender{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.6rem;
}
.tm-shared-message-actions{display:flex;align-items:center;gap:5px;margin-top:1px}
.tm-shared-message-card.is-compact .tm-shared-otp{
  min-height:27px;
  padding:4px 7px;
  border-radius:8px;
  font-size:.66rem;
}
.tm-shared-message-card.is-compact .ui-btn{
  min-height:27px;
  padding:4px 7px;
  font-size:.62rem;
}
.tm-shared-hero-panel .tm-shared-empty,
.tm-shared-hero-panel .tm-shared-loading{
  width:100%;
  box-sizing:border-box;
  padding:9px;
  border-radius:10px;
  font-size:.68rem;
}
.tm-shared-limit-compact{
  margin-top:7px;
  padding:7px 9px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border-radius:11px;
}
.tm-shared-limit-compact strong{margin:0;font-size:.7rem}
.tm-shared-limit-compact .ui-btn{min-height:29px;font-size:.65rem}
.tm-shared-hero-panel .tm-shared-status{
  min-height:0;
  margin-top:5px;
  font-size:.6rem;
  line-height:1.5;
}
.tm-shared-hero-panel .tm-shared-status:empty{display:none}

@media(max-width:720px){
  .tm-sky-hero{padding:22px 0 24px;place-items:start center}
  .tm-hero-center h1{font-size:clamp(2rem,9vw,3rem);margin-top:11px}
  .tm-hero-center>p{font-size:.88rem;line-height:1.7;margin-bottom:10px}
  .tm-shared-hero-panel{margin-top:11px;padding:9px;border-radius:15px}
  .tm-shared-hero-head{align-items:flex-start}
  .tm-shared-hero-head small{white-space:normal;text-align:end;max-width:45%;line-height:1.5}
  .tm-shared-inboxes-compact{grid-template-columns:1fr}
  .tm-shared-message-card.is-compact{flex-basis:min(230px,78vw)}
}


/* TiMail 0.1.28 — session guest inbox, snap landing, permanent mailbox */
.tm-shared-inboxes-compact:has(.tm-shared-inbox-card:only-child){
  grid-template-columns:minmax(0,1fr)!important;
}
.tm-shared-inbox-card:only-child{
  width:100%;
  max-width:none;
  min-height:76px;
  padding-inline:18px;
}
.tm-shared-inbox-card:only-child .tm-shared-inbox-meta strong{
  font-size:clamp(1rem,2.2vw,1.35rem);
}
.tm-landing-body{overflow:hidden!important}
.tm-landing-shell{
  height:100dvh;
  min-height:100dvh;
  overflow-y:auto;
  overflow-x:hidden;
  scroll-snap-type:y mandatory;
  scroll-behavior:smooth;
  overscroll-behavior-y:contain;
}
.tm-landing-nav{
  position:fixed!important;
  inset-block-start:0;
  inset-inline:0;
  width:min(1180px,calc(100% - 32px))!important;
  z-index:80!important;
}
.tm-page-snap{
  min-height:100dvh!important;
  box-sizing:border-box;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  position:relative;
}
.tm-sky-hero{padding-top:78px}
.tm-story-section,.tm-pricing-section,.tm-support-section{
  padding-top:110px!important;
  padding-bottom:80px!important;
  align-content:center;
}
.tm-landing-logo img{
  animation:tmLogoFloat 4.6s ease-in-out infinite;
  transform-origin:50% 60%;
}
.tm-landing-logo>span{
  display:inline-flex;
  letter-spacing:-.02em;
  animation:tmBrandPulse 4.8s ease-in-out infinite;
}
@keyframes tmLogoFloat{
  0%,100%{transform:translateY(0) rotate(-2deg)}
  42%{transform:translateY(-5px) rotate(2.5deg)}
  70%{transform:translateY(-2px) rotate(-1deg)}
}
@keyframes tmBrandPulse{
  0%,100%{transform:translateY(0);text-shadow:0 0 0 transparent}
  50%{transform:translateY(-2px);text-shadow:0 8px 24px rgba(86,195,231,.28)}
}
.tm-page-snap [data-reveal]{
  transform:translateY(30px) scale(.985);
  opacity:0;
}
.tm-page-snap [data-reveal].is-visible{
  transform:none;
  opacity:1;
}
.tm-user-footer{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px clamp(16px,3vw,42px) calc(12px + env(safe-area-inset-bottom,0px));
  box-sizing:border-box;
  color:var(--ui-muted);
  font-size:.72rem;
  border-top:1px solid color-mix(in srgb,var(--ui-border),transparent 25%);
  background:var(--ui-surface);
}
.tm-permanent-mailbox-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:20px;
  margin:14px 0;
  padding:20px;
  border:1px solid color-mix(in srgb,#6d5dfc 28%,var(--ui-border));
  border-radius:20px;
  background:linear-gradient(135deg,color-mix(in srgb,#6d5dfc 8%,var(--ui-surface)),var(--ui-surface));
}
.tm-permanent-mailbox-card h2{margin:5px 0 7px;font-size:1.15rem}
.tm-permanent-mailbox-card p{margin:0;color:var(--ui-muted);line-height:1.8}
.tm-permanent-mailbox-side{display:grid;gap:10px;justify-items:end}
.tm-permanent-mailbox-side strong{font-size:1.05rem;overflow-wrap:anywhere}
.tm-inbox-card-permanent{
  border-color:color-mix(in srgb,#6d5dfc 38%,var(--ui-border))!important;
  background:linear-gradient(145deg,color-mix(in srgb,#6d5dfc 7%,var(--ui-surface)),var(--ui-surface))!important;
}
@media(max-width:720px){
  .tm-landing-nav{min-height:64px}
  .tm-sky-hero{padding-top:64px}
  .tm-story-section,.tm-pricing-section,.tm-support-section{
    padding-top:84px!important;
    padding-bottom:70px!important;
  }
  .tm-permanent-mailbox-card{grid-template-columns:1fr}
  .tm-permanent-mailbox-side{justify-items:stretch}
  .tm-permanent-mailbox-side .ui-btn{width:100%;justify-content:center}
  .tm-user-footer{
    padding-bottom:calc(80px + env(safe-area-inset-bottom,0px));
    flex-direction:column;
    align-items:flex-start;
  }
}
@media(prefers-reduced-motion:reduce){
  .tm-landing-logo img,.tm-landing-logo>span{animation:none}
  .tm-landing-shell{scroll-behavior:auto}
}

.tm-logo-word{display:inline-flex!important;gap:.015em}
.tm-logo-word i{font-style:normal;display:inline-block;animation:tmLetterWave 3.8s ease-in-out infinite}
.tm-logo-word i:nth-child(2){animation-delay:.08s}
.tm-logo-word i:nth-child(3){animation-delay:.16s}
.tm-logo-word i:nth-child(4){animation-delay:.24s}
.tm-logo-word i:nth-child(5){animation-delay:.32s}
.tm-logo-word i:nth-child(6){animation-delay:.40s}
@keyframes tmLetterWave{
  0%,65%,100%{transform:translateY(0) rotate(0);color:inherit}
  20%{transform:translateY(-3px) rotate(-2deg);color:#83e1ec}
  36%{transform:translateY(1px) rotate(1deg);color:#fff}
}
@media(prefers-reduced-motion:reduce){.tm-logo-word i{animation:none}}

.tm-landing-footer{
  position:absolute;
  inset-inline:0;
  bottom:max(10px,env(safe-area-inset-bottom,0px));
  z-index:4;
}
.tm-support-section{padding-bottom:150px!important}


/* TiMail official brand identity — 2026-10 */
:root{
  --tm-brand-blue:#014db2;
  --tm-brand-green:#70c206;
  --tm-brand-lime:#bbc206;
  --tm-brand-blue-soft:#eaf3ff;
  --tm-brand-green-soft:#f1f9e8;
  --tm-brand-ink:#10254a;
}
body.tm-user-body,
body[data-ui-profile="enterprise"],
body[data-ui-profile="saas"]{
  --ui-primary:var(--tm-brand-blue);
  --ui-success:var(--tm-brand-green);
  --ui-warning:var(--tm-brand-lime);
}
.tm-workspace-brand-logo{
  display:block!important;
  width:clamp(118px,10vw,150px)!important;
  height:40px!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:0!important;
  filter:none!important;
}
.tm-user-brand .tm-workspace-brand-logo{
  width:132px!important;
  height:36px!important;
}
.tm-auth-full-logo{
  width:150px!important;
  height:42px!important;
  object-fit:contain!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.tm-auth-brand{
  min-height:44px;
}
@media(max-width:720px){
  .tm-user-brand .tm-workspace-brand-logo{width:116px!important;height:32px!important}
  .tm-workspace-brand-logo{width:120px!important;height:34px!important}
}

/* Landing: bright official palette */
.tm-landing-body{
  background:
    radial-gradient(circle at 18% 8%,rgba(112,194,6,.10),transparent 27%),
    radial-gradient(circle at 83% 18%,rgba(1,77,178,.11),transparent 29%),
    linear-gradient(180deg,#fbfdff 0%,#f3f8ff 45%,#fbfff6 100%)!important;
  color:var(--tm-brand-ink)!important;
}
.tm-sky-canvas{opacity:.23}
.tm-mail-stream{color:rgba(1,77,178,.11)}
.tm-landing-shell{
  color:var(--tm-brand-ink);
}
.tm-landing-nav{
  background:rgba(255,255,255,.84);
  border-bottom:1px solid rgba(1,77,178,.10);
  box-shadow:0 10px 30px rgba(1,77,178,.055);
  backdrop-filter:blur(18px);
}
.tm-landing-logo{
  color:var(--tm-brand-blue)!important;
}
.tm-landing-logo img{
  width:48px!important;
  height:48px!important;
  border-radius:0!important;
  object-fit:contain;
  filter:drop-shadow(0 10px 22px rgba(1,77,178,.18))!important;
}
.tm-logo-word{
  font-size:1.2rem;
  font-weight:950;
}
.tm-logo-word i:nth-child(1),
.tm-logo-word i:nth-child(2),
.tm-logo-word i:nth-child(3){color:var(--tm-brand-blue)}
.tm-logo-word i:nth-child(4),
.tm-logo-word i:nth-child(5){color:var(--tm-brand-green)}
.tm-logo-word i:nth-child(6){color:var(--tm-brand-lime)}
@keyframes tmLetterWave{
  0%,68%,100%{transform:translateY(0) rotate(0);filter:none}
  20%{transform:translateY(-4px) rotate(-2deg);filter:brightness(1.12)}
  36%{transform:translateY(1px) rotate(1deg);filter:saturate(1.18)}
}
@keyframes tmBrandPulse{
  0%,100%{transform:translateY(0);text-shadow:none}
  50%{transform:translateY(-2px);text-shadow:0 7px 20px rgba(1,77,178,.18)}
}
.tm-landing-nav nav>a:not(.ui-btn),
.tm-landing-footer a{
  color:#4e6483!important;
}
.tm-landing-nav nav>a:not(.ui-btn):hover,
.tm-landing-footer a:hover{color:var(--tm-brand-blue)!important}
.tm-landing-body .ui-btn-primary,
.tm-hero-primary{
  background:linear-gradient(135deg,var(--tm-brand-blue),#0873d8)!important;
  border-color:var(--tm-brand-blue)!important;
  color:#fff!important;
  box-shadow:0 12px 30px rgba(1,77,178,.18)!important;
}
.tm-landing-body .ui-btn-primary:hover{filter:brightness(1.06)}
.tm-glass-button{
  border-color:rgba(1,77,178,.16)!important;
  background:rgba(255,255,255,.78)!important;
  color:var(--tm-brand-blue)!important;
  box-shadow:0 8px 26px rgba(1,77,178,.06);
}
.tm-sky-hero:before{
  background:
    radial-gradient(circle at 50% 35%,rgba(1,77,178,.09),transparent 35%),
    radial-gradient(circle at 42% 62%,rgba(112,194,6,.07),transparent 48%)!important;
}
.tm-sky-hero:after{
  border-color:rgba(1,77,178,.07)!important;
  box-shadow:
    0 0 0 54px rgba(112,194,6,.018),
    0 0 0 110px rgba(187,194,6,.014)!important;
}
.tm-persian-orbit{
  border-color:rgba(1,77,178,.10)!important;
}
.tm-persian-orbit:before{border-color:rgba(112,194,6,.11)!important}
.tm-persian-orbit:after{border-color:rgba(187,194,6,.12)!important}
.tm-hero-badge{
  border-color:rgba(112,194,6,.24)!important;
  background:rgba(255,255,255,.82)!important;
  color:#4c8500!important;
  box-shadow:0 8px 28px rgba(112,194,6,.07);
}
.tm-hero-center h1{
  color:#0d346b!important;
}
.tm-hero-center h1 strong{
  background:linear-gradient(90deg,var(--tm-brand-blue) 0 38%,var(--tm-brand-green) 62%,var(--tm-brand-lime) 100%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  color:transparent!important;
}
.tm-hero-center>p,
.tm-section-heading p,
.tm-support-panel p{
  color:#5d718e!important;
}
.tm-hero-proof span{
  color:#657995!important;
}
.tm-hero-proof svg{color:var(--tm-brand-green)}
.tm-section-heading>span,
.tm-support-kicker{
  color:var(--tm-brand-green)!important;
}
.tm-section-heading h2,
.tm-support-panel h2{
  color:#113b73!important;
}
.tm-how-card,
.tm-plan-card,
.tm-shared-hero-panel,
.tm-contact-grid article{
  border-color:rgba(1,77,178,.10)!important;
  background:rgba(255,255,255,.90)!important;
  color:var(--tm-brand-ink)!important;
  box-shadow:0 18px 55px rgba(1,77,178,.07)!important;
}
.tm-how-card:after{border-color:rgba(187,194,6,.16)!important}
.tm-step-number{color:rgba(1,77,178,.18)!important}
.tm-how-icon{
  background:rgba(112,194,6,.10)!important;
  color:#5da600!important;
}
.tm-how-card p,
.tm-plan-card p,
.tm-contact-grid span{
  color:#687d99!important;
}
.tm-pricing-section{
  background:
    linear-gradient(180deg,transparent,rgba(112,194,6,.025) 30%,rgba(1,77,178,.025) 100%);
}
.tm-support-panel{
  border-color:rgba(1,77,178,.12)!important;
  background:
    radial-gradient(circle at 82% 20%,rgba(112,194,6,.08),transparent 34%),
    linear-gradient(150deg,rgba(255,255,255,.95),rgba(244,249,255,.96))!important;
  box-shadow:0 26px 70px rgba(1,77,178,.08)!important;
}
.tm-contact-grid strong{color:#193e70!important}
.tm-landing-footer{
  border-top-color:rgba(1,77,178,.11)!important;
  color:#70829a!important;
}
.tm-page-dots a span{background:rgba(1,77,178,.22)!important}
.tm-page-dots a.active span{background:var(--tm-brand-green)!important}
.tm-back-top{
  background:#fff!important;
  border-color:rgba(1,77,178,.13)!important;
  color:var(--tm-brand-blue)!important;
  box-shadow:0 12px 28px rgba(1,77,178,.10)!important;
}
.tm-shared-hero-head span{color:var(--tm-brand-green)!important}
.tm-shared-status{color:#5f7390!important}

/* Brand-tinted working surfaces without forcing dark-mode colors. */
html:not([data-mode="dark"]) .tm-user-body .tm-user-header,
html:not([data-mode="dark"]) .tm-header{
  border-bottom-color:rgba(1,77,178,.09);
}
html:not([data-mode="dark"]) .tm-user-body .tm-user-header{
  background:rgba(255,255,255,.96);
}
html:not([data-mode="dark"]) .tm-user-body .tm-current-mail-card,
html:not([data-mode="dark"]) .tm-user-body .tm-home-otp-card,
html:not([data-mode="dark"]) .tm-user-body .tm-inbox-card{
  border-color:rgba(1,77,178,.10);
}
html:not([data-mode="dark"]) .tm-user-body .tm-home-otp-code{
  color:var(--tm-brand-blue);
}


/* TiMail 0.1.30-dev — workspace styling hotfix */
.tm-user-body{
  background:var(--ui-bg,#f4f7fb)!important;
  color:var(--ui-text,#172033);
}
.tm-user-shell{min-height:100dvh;display:flex;flex-direction:column;background:var(--ui-bg,#f4f7fb)}
.tm-mail-topbar{
  position:sticky;top:0;z-index:60;
  display:grid;grid-template-columns:auto minmax(240px,1fr) auto auto;
  align-items:center;gap:16px;
  min-height:64px;padding:10px clamp(14px,2vw,28px);
  border-bottom:1px solid var(--ui-border,#e1e7ef);
  background:color-mix(in srgb,var(--ui-surface,#fff) 94%,transparent);
  box-shadow:0 4px 18px rgba(22,34,55,.045);
  backdrop-filter:blur(14px);
}
.tm-mail-brand-group,.tm-user-head-actions,.tm-user-desktop-nav{display:flex;align-items:center;gap:8px}
.tm-mail-menu{display:none}
.tm-global-mail-search{
  min-width:0;display:flex;align-items:center;gap:10px;
  height:42px;padding:0 14px;border:1px solid var(--ui-border,#dce3ec);
  border-radius:14px;background:var(--ui-surface-2,#f7f9fc);color:var(--ui-muted,#718096)
}
.tm-global-mail-search input{
  min-width:0;flex:1;border:0;outline:0;background:transparent;color:inherit;font:inherit
}
.tm-user-desktop-nav{
  padding:4px;border:1px solid var(--ui-border,#e1e7ef);
  border-radius:14px;background:var(--ui-surface,#fff)
}
.tm-user-desktop-nav button{
  display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:0 11px;
  border:0;border-radius:10px;background:transparent;color:var(--ui-muted,#68768b);
  font:inherit;font-size:.78rem;cursor:pointer
}
.tm-user-desktop-nav button:hover,.tm-user-desktop-nav button.active{
  background:var(--ui-surface-2,#f1f5f9);color:var(--ui-primary,#014db2)
}
.tm-top-profile{
  width:38px;height:38px;display:grid;place-items:center;overflow:hidden;
  border:1px solid var(--ui-border,#dce3ec);border-radius:50%;
  background:var(--ui-surface-2,#f5f7fb);color:var(--ui-primary,#014db2);cursor:pointer
}
.tm-top-profile img,[data-top-profile-avatar] img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.tm-user-main{width:100%;flex:1;box-sizing:border-box;padding:20px clamp(12px,2.2vw,30px)}
.tm-user-app{width:min(1440px,100%);margin:0 auto}
.tm-user-panel{min-width:0}
.tm-mail-home-panel{display:grid;gap:16px}
.tm-mail-home-toolbar{
  display:flex;align-items:flex-end;justify-content:space-between;gap:16px;
  padding:4px 2px
}
.tm-mail-home-toolbar h1{margin:4px 0 0;font-size:clamp(1.25rem,2vw,1.65rem)}
.tm-mail-home-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tm-mail-home-summary{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px
}
.tm-mail-home-summary article{
  display:grid;gap:5px;padding:14px 16px;border:1px solid var(--ui-border,#e1e7ef);
  border-radius:16px;background:var(--ui-surface,#fff);box-shadow:0 7px 20px rgba(19,34,60,.04)
}
.tm-mail-home-summary small{color:var(--ui-muted,#748197);font-size:.72rem}
.tm-mail-home-summary strong{font-size:1.25rem;color:var(--ui-text,#172033)}
.tm-mail-quickbar{
  display:grid;grid-template-columns:minmax(180px,.7fr) minmax(300px,1.5fr) auto;
  align-items:center;gap:10px;padding:11px;
  border:1px solid var(--ui-border,#e1e7ef);border-radius:16px;background:var(--ui-surface,#fff)
}
.tm-mailbox-picker{
  min-width:0;display:flex;align-items:center;gap:8px;padding:0 10px;
  height:40px;border:1px solid var(--ui-border,#dce3ec);border-radius:11px;background:var(--ui-surface-2,#f7f9fc)
}
.tm-mailbox-picker select{
  min-width:0;flex:1;border:0;outline:0;background:transparent;color:var(--ui-text,#172033);font:inherit
}
.tm-current-address-line{
  min-width:0;display:flex;align-items:center;gap:8px;height:40px;padding:0 11px;
  border:1px solid var(--ui-border,#dce3ec);border-radius:11px;background:var(--ui-surface-2,#f7f9fc)
}
.tm-current-address-line strong{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tm-current-address-line button{
  flex:0 0 auto;width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:9px;
  background:var(--ui-surface,#fff);color:var(--ui-primary,#014db2);cursor:pointer
}
.tm-mail-expiry{white-space:nowrap;color:var(--ui-muted,#748197);font-size:.76rem}
.tm-mail-home-list-head{
  display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 2px
}
.tm-mail-home-list-head>div{display:grid;gap:2px}
.tm-mail-home-list-head span{font-size:.7rem;color:var(--ui-muted,#748197)}
.tm-gmail-message-list{
  min-height:220px;overflow:hidden;border:1px solid var(--ui-border,#e1e7ef);
  border-radius:16px;background:var(--ui-surface,#fff)
}
.tm-gmail-message-list>*{box-sizing:border-box}
.tm-gmail-message-list>button,.tm-gmail-message-list>article,.tm-gmail-message-list>.tm-message-card{
  width:100%;display:grid;grid-template-columns:minmax(140px,.8fr) minmax(220px,1.6fr) auto;
  align-items:center;gap:12px;padding:12px 14px;border:0;border-bottom:1px solid var(--ui-border,#edf0f4);
  background:transparent;color:inherit;text-align:start
}
.tm-gmail-message-list>button:hover,.tm-gmail-message-list>article:hover,.tm-gmail-message-list>.tm-message-card:hover{
  background:var(--ui-surface-2,#f7f9fc)
}
.tm-gmail-shell{
  display:grid;grid-template-columns:220px minmax(0,1fr);min-height:620px;
  border:1px solid var(--ui-border,#dfe5ed);border-radius:18px;overflow:hidden;background:var(--ui-surface,#fff)
}
.tm-gmail-sidebar{
  display:flex;flex-direction:column;gap:5px;padding:14px;
  border-inline-end:1px solid var(--ui-border,#e1e7ef);background:var(--ui-surface-2,#f7f9fc)
}
.tm-gmail-compose{
  display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;margin-bottom:8px;
  border:0;border-radius:13px;background:var(--ui-primary,#014db2);color:#fff;font:inherit;font-weight:800;cursor:pointer
}
.tm-gmail-folder{
  display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:8px;
  min-height:38px;padding:0 10px;border:0;border-radius:10px;background:transparent;color:var(--ui-muted,#66758a);
  font:inherit;text-align:start;cursor:pointer
}
.tm-gmail-folder:hover,.tm-gmail-folder.active{background:color-mix(in srgb,var(--ui-primary,#014db2) 9%,transparent);color:var(--ui-primary,#014db2)}
.tm-gmail-folder:disabled{opacity:.52;cursor:not-allowed}
.tm-gmail-sidebar-note{margin-top:auto;padding:10px;color:var(--ui-muted,#7a8798);font-size:.68rem;line-height:1.8}
.tm-gmail-main{min-width:0;display:flex;flex-direction:column;background:var(--ui-surface,#fff)}
.tm-gmail-toolbar{
  display:grid;grid-template-columns:minmax(180px,.6fr) minmax(220px,1.4fr) auto;
  align-items:center;gap:10px;padding:12px;border-bottom:1px solid var(--ui-border,#e1e7ef)
}
.tm-gmail-search{
  display:flex;align-items:center;gap:8px;height:40px;padding:0 10px;
  border:1px solid var(--ui-border,#dce3ec);border-radius:11px;background:var(--ui-surface-2,#f7f9fc)
}
.tm-gmail-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:inherit;font:inherit}
.tm-gmail-search button{border:0;background:transparent;color:var(--ui-muted,#7a8798);cursor:pointer}
.tm-gmail-context{
  display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;
  border-bottom:1px solid var(--ui-border,#edf0f4)
}
.tm-gmail-context>div{display:grid;gap:3px}
.tm-gmail-context span{color:var(--ui-muted,#748197);font-size:.72rem}
.tm-gmail-context-count{white-space:nowrap}
.tm-profile-avatar-editor{
  position:relative;width:76px;height:76px;padding:0;border:1px solid var(--ui-border,#dce3ec);
  border-radius:50%;overflow:visible;background:var(--ui-surface-2,#f5f7fb);color:var(--ui-primary,#014db2);cursor:pointer
}
.tm-profile-avatar-editor>span{width:100%;height:100%;display:grid;place-items:center;overflow:hidden;border-radius:50%}
.tm-profile-avatar-editor img{width:100%;height:100%;object-fit:cover}
.tm-profile-avatar-editor i{
  position:absolute;inset-inline-end:-2px;bottom:2px;width:25px;height:25px;display:grid;place-items:center;
  border:2px solid var(--ui-surface,#fff);border-radius:50%;background:var(--ui-primary,#014db2);color:#fff
}
/* Admin safety layout: retain Kimia surfaces even if branding changes. */
body[data-ui-profile="enterprise"] .tm-workspace{min-width:0}
body[data-ui-profile="enterprise"] .tm-main{min-width:0;background:var(--ui-bg,#f4f7fb)}
body[data-ui-profile="enterprise"] .tm-workspace-app{width:min(1500px,100%);margin:0 auto}
body[data-ui-profile="enterprise"] .tm-workspace-panel{min-width:0}

/* Landing is intentionally dark. */
.tm-landing-body{
  background:
    radial-gradient(circle at 18% 8%,rgba(61,115,255,.15),transparent 28%),
    radial-gradient(circle at 82% 16%,rgba(50,220,190,.09),transparent 30%),
    linear-gradient(180deg,#07101d 0%,#091526 48%,#07101b 100%)!important;
  color:#eef6ff!important
}
.tm-landing-shell{color:#eef6ff!important}
.tm-landing-nav{
  background:rgba(7,16,29,.82)!important;border-bottom-color:rgba(151,174,207,.12)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.18)!important
}
.tm-landing-nav nav>a:not(.ui-btn),.tm-landing-footer a{color:#aebed2!important}
.tm-landing-nav nav>a:not(.ui-btn):hover,.tm-landing-footer a:hover{color:#fff!important}
.tm-hero-center h1,.tm-section-heading h2,.tm-support-panel h2{color:#f4f9ff!important}
.tm-hero-center>p,.tm-section-heading p,.tm-support-panel p,.tm-hero-proof span{color:#a9bbcf!important}
.tm-hero-badge,.tm-glass-button{
  background:rgba(10,27,47,.78)!important;border-color:rgba(126,160,202,.18)!important;color:#dcecff!important
}
.tm-how-card,.tm-plan-card,.tm-shared-hero-panel,.tm-contact-grid article{
  background:rgba(11,25,44,.82)!important;border-color:rgba(142,162,196,.16)!important;color:#eef6ff!important;
  box-shadow:0 20px 60px rgba(0,0,0,.16)!important
}
.tm-how-card p,.tm-plan-card p,.tm-contact-grid span,.tm-shared-status{color:#9fb2c8!important}
.tm-support-panel{
  background:radial-gradient(circle at 82% 20%,rgba(58,214,178,.08),transparent 35%),linear-gradient(150deg,rgba(10,23,40,.96),rgba(8,19,34,.96))!important;
  border-color:rgba(142,162,196,.16)!important;box-shadow:0 25px 70px rgba(0,0,0,.18)!important
}
.tm-contact-grid strong{color:#f0f7ff!important}
.tm-back-top{background:#0d1c31!important;border-color:rgba(142,162,196,.18)!important;color:#dcecff!important}
.tm-sky-canvas{opacity:.7!important}
.tm-mail-stream{color:rgba(136,184,255,.11)!important}

@media(max-width:1050px){
  .tm-mail-topbar{grid-template-columns:auto minmax(180px,1fr) auto}
  .tm-user-desktop-nav{display:none}
  .tm-mail-menu{display:grid}
  .tm-mail-home-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .tm-mail-topbar{grid-template-columns:1fr auto;gap:10px;min-height:58px;padding:8px 10px}
  .tm-global-mail-search{grid-column:1/-1;grid-row:2;height:38px}
  .tm-mail-brand-group{min-width:0}
  .tm-user-head-actions{justify-self:end}
  .tm-user-main{padding:12px 10px 88px}
  .tm-mail-home-toolbar{align-items:stretch;flex-direction:column}
  .tm-mail-home-actions{width:100%}
  .tm-mail-home-actions .ui-btn{flex:1;justify-content:center}
  .tm-mail-home-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tm-mail-quickbar{grid-template-columns:1fr}
  .tm-mail-expiry{padding-inline:3px}
  .tm-gmail-shell{grid-template-columns:1fr;min-height:0}
  .tm-gmail-sidebar{display:none}
  .tm-gmail-toolbar{grid-template-columns:1fr auto}
  .tm-mailbox-picker-main{grid-column:1/-1}
  .tm-gmail-message-list>button,.tm-gmail-message-list>article,.tm-gmail-message-list>.tm-message-card{
    grid-template-columns:1fr;gap:5px;padding:11px
  }
}


/* TiMail 0.1.31-dev — landing + unified mail workspace */
.tm-landing-body{overflow:hidden!important}
.tm-landing-shell{
  height:100dvh!important;
  min-height:100dvh!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
.tm-landing-shell::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.tm-landing-nav{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.tm-page-dots{
  position:fixed!important;
  z-index:110!important;
  left:clamp(8px,1.8vw,24px)!important;
  right:auto!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  display:grid!important;
  gap:12px!important;
  padding:10px 6px!important;
}
.tm-page-dots a{
  width:20px!important;height:20px!important;display:grid!important;place-items:center!important;
  border-radius:999px!important;text-decoration:none!important;
}
.tm-page-dots a span{
  display:block!important;width:7px!important;height:7px!important;border-radius:999px!important;
  background:rgba(184,204,229,.36)!important;
  transition:height .26s ease,width .26s ease,transform .26s ease,background .26s ease,box-shadow .26s ease!important;
}
.tm-page-dots a:hover span{transform:scale(1.35)!important;background:#e9f4ff!important}
.tm-page-dots a.active span{
  width:8px!important;height:28px!important;
  background:linear-gradient(180deg,#70c206,#39c7aa)!important;
  box-shadow:0 0 0 5px rgba(112,194,6,.09),0 0 22px rgba(57,199,170,.34)!important;
  animation:tmSectionDotPulse 1.8s ease-in-out infinite!important;
}
@keyframes tmSectionDotPulse{
  0%,100%{transform:scale(1);filter:brightness(1)}
  50%{transform:scale(1.09);filter:brightness(1.22)}
}
.tm-back-top{
  position:fixed!important;z-index:111!important;left:clamp(12px,1.8vw,26px)!important;right:auto!important;
  bottom:clamp(16px,2vw,26px)!important;width:42px!important;height:42px!important;
  display:grid!important;place-items:center!important;border-radius:50%!important;cursor:pointer!important;
  opacity:0!important;visibility:hidden!important;transform:translateY(10px) scale(.92)!important;
  transition:opacity .22s ease,transform .22s ease,visibility .22s!important;
}
.tm-back-top.is-visible{opacity:1!important;visibility:visible!important;transform:none!important}
.tm-how-flow,.tm-how-grid{
  width:100%!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;gap:18px!important;
}
.tm-how-connector{display:none!important}
.tm-how-card{min-height:280px!important;display:grid!important;grid-template-rows:auto auto 1fr!important;align-content:start!important;border-radius:26px!important}
.tm-plan-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important;gap:18px!important}
.tm-plan-card{height:100%!important;box-sizing:border-box!important;border-radius:24px!important}
.tm-plan-error{grid-column:1/-1}

.tm-user-body{height:100dvh!important;overflow:hidden!important}
.tm-user-shell{height:100dvh!important;min-height:0!important;overflow:hidden!important}
.tm-user-footer{display:none!important}
.tm-user-main{flex:1!important;min-height:0!important;overflow:auto!important}
.tm-user-main:has(.tm-gmail-panel:not([hidden])){
  overflow:hidden!important;
  padding-top:12px!important;
  padding-bottom:12px!important;
}
.tm-user-app{height:100%;min-height:0}
.tm-gmail-panel{height:100%!important;min-height:0!important}
.tm-gmail-shell{
  height:100%!important;min-height:0!important;
  grid-template-columns:210px minmax(0,1fr)!important;
  border-radius:20px!important;
  box-shadow:0 16px 45px rgba(24,39,63,.08)!important;
}
.tm-gmail-sidebar{min-height:0!important;padding:12px!important}
.tm-gmail-main{min-height:0!important;height:100%!important;overflow:hidden!important}
.tm-gmail-toolbar{
  grid-template-columns:minmax(210px,.7fr) minmax(260px,1.5fr) auto!important;
  padding:10px 12px!important;background:var(--ui-surface,#fff)!important;
}
.tm-mailbox-picker-main{
  height:42px!important;border-radius:13px!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ui-primary,#014db2) 3%,transparent)!important;
}
.tm-mailbox-picker-main select{
  appearance:none!important;-webkit-appearance:none!important;
  cursor:pointer!important;font-weight:700!important;
}
.tm-gmail-context{padding:10px 16px!important;min-height:48px!important}
.tm-inline-otp{
  margin:10px 12px 0!important;padding:10px 13px!important;border-radius:15px!important;
  border:1px solid color-mix(in srgb,#70c206 28%,var(--ui-border,#dce3ec))!important;
  background:linear-gradient(135deg,color-mix(in srgb,#70c206 8%,var(--ui-surface,#fff)),var(--ui-surface,#fff))!important;
  box-shadow:0 7px 20px rgba(75,146,20,.06)!important;
}
.tm-inline-otp>div{display:flex!important;align-items:center!important;gap:10px!important}
.tm-inline-otp strong{font-size:1.25rem!important;letter-spacing:.12em!important}
.tm-mail-stage{position:relative!important;flex:1!important;min-height:0!important;margin-top:10px!important;overflow:hidden!important}
.tm-gmail-message-list{
  height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
  border:0!important;border-top:1px solid var(--ui-border,#e7ebf0)!important;border-radius:0!important;
  scrollbar-width:thin!important;
}
.tm-gmail-row{
  width:100%;min-height:48px;display:grid;
  grid-template-columns:26px minmax(135px,.62fr) minmax(280px,2fr) auto 92px;
  align-items:center;gap:10px;padding:0 14px;box-sizing:border-box;
  border-bottom:1px solid var(--ui-border,#edf0f4);
  background:var(--ui-surface,#fff);color:var(--ui-text,#172033);
  cursor:pointer;transition:background .15s ease,box-shadow .15s ease;
}
.tm-gmail-row:hover{background:var(--ui-surface-2,#f5f8fc);box-shadow:inset 0 1px 0 rgba(0,0,0,.015),inset 0 -1px 0 rgba(0,0,0,.015)}
.tm-gmail-row.is-selected{background:color-mix(in srgb,var(--ui-primary,#014db2) 7%,var(--ui-surface,#fff))}
.tm-gmail-row.is-unread{
  background:color-mix(in srgb,var(--ui-primary,#014db2) 4%,var(--ui-surface,#fff));
  box-shadow:inset -3px 0 0 color-mix(in srgb,var(--ui-primary,#014db2) 72%,#70c206);
}
.tm-gmail-row.is-unread .tm-gmail-sender,
.tm-gmail-row.is-unread .tm-gmail-subject b,
.tm-gmail-row.is-unread time{font-weight:900!important;color:var(--ui-text,#172033)!important}
.tm-gmail-star{display:grid;place-items:center;color:var(--ui-muted,#8794a7);opacity:.7}
.tm-gmail-sender{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem}
.tm-gmail-subject{min-width:0;display:flex;align-items:baseline;gap:5px;overflow:hidden;white-space:nowrap}
.tm-gmail-subject b{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:.79rem;font-weight:650}
.tm-gmail-subject small{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--ui-muted,#7a8798);font-size:.72rem}
.tm-gmail-row time{white-space:nowrap;text-align:end;color:var(--ui-muted,#7b8798);font-size:.68rem}
.tm-gmail-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-width:0}
.tm-row-action,.tm-row-link-indicator{
  min-height:27px;display:inline-flex;align-items:center;justify-content:center;gap:5px;
  padding:0 7px;border:1px solid var(--ui-border,#dfe5ec);border-radius:9px;
  background:var(--ui-surface,#fff);color:var(--ui-muted,#66758a);text-decoration:none;font:inherit;font-size:.66rem;
}
button.tm-row-action{cursor:pointer}
.tm-row-action:hover{border-color:color-mix(in srgb,var(--ui-primary,#014db2) 35%,var(--ui-border,#dfe5ec));color:var(--ui-primary,#014db2)}
.tm-row-action-otp{color:#4f8d08!important;border-color:rgba(112,194,6,.22)!important;background:rgba(112,194,6,.06)!important}
.tm-row-action-link{width:29px;padding:0!important}
.tm-row-link-indicator{width:27px;padding:0;opacity:.7}

.tm-message-reader{
  height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;
  background:var(--ui-surface,#fff)!important;overflow:hidden!important;
}
.tm-message-reader[hidden]{display:none!important}
.tm-message-reader-head{
  min-height:62px;display:flex;align-items:center;gap:11px;padding:10px 14px;
  border-bottom:1px solid var(--ui-border,#e5eaf0);background:var(--ui-surface,#fff)
}
.tm-message-reader-head>div{min-width:0;display:grid;gap:3px}
.tm-message-reader-head strong{font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tm-message-reader-head span{font-size:.7rem;color:var(--ui-muted,#748197)}
.tm-message-reader-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:9px 14px;border-bottom:1px solid var(--ui-border,#edf0f4)}
.tm-reader-chip{
  min-height:31px;display:inline-flex;align-items:center;gap:6px;padding:0 9px;border:1px solid var(--ui-border,#dfe5ec);
  border-radius:10px;background:var(--ui-surface-2,#f7f9fc);color:var(--ui-text,#172033);text-decoration:none;font:inherit;cursor:pointer
}
.tm-reader-otp{border-color:rgba(112,194,6,.25);color:#568f10}
.tm-message-reader-body{flex:1;min-height:0;overflow:auto;padding:18px}
.tm-message-reader-body .tm-user-message-body{max-width:980px;margin:0 auto;border:0!important;background:transparent!important;padding:0!important}
.tm-modal-links{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.tm-locked-summary{margin:12px 0;padding:12px 14px;border-radius:12px;background:var(--ui-surface-2,#f6f8fb);line-height:1.9;color:var(--ui-text,#172033)}

@media(max-width:760px){
  .tm-page-dots{left:4px!important;gap:8px!important;padding:6px 3px!important}
  .tm-page-dots a.active span{height:22px!important}
  .tm-how-flow,.tm-how-grid,.tm-plan-grid{grid-template-columns:1fr!important}
  .tm-user-main:has(.tm-gmail-panel:not([hidden])){padding:6px 6px 78px!important}
  .tm-gmail-shell{grid-template-columns:1fr!important;border-radius:14px!important}
  .tm-gmail-sidebar{display:none!important}
  .tm-gmail-toolbar{grid-template-columns:1fr auto!important}
  .tm-mailbox-picker-main{grid-column:1/-1!important}
  .tm-gmail-row{
    grid-template-columns:minmax(90px,.7fr) minmax(0,1.8fr) auto!important;
    gap:7px!important;min-height:58px!important;padding:7px 10px!important
  }
  .tm-gmail-star{display:none!important}
  .tm-gmail-row-actions{grid-column:2/4;justify-content:flex-start!important}
  .tm-gmail-row time{grid-column:3;grid-row:1}
  .tm-gmail-subject small{display:none}
}


/* TiMail 0.1.31-dev visual regression follow-up */
.tm-inbox-card-grid[hidden]{display:none!important}
.tm-user-app:has(.tm-gmail-panel:not([hidden])){
  display:block!important;
  height:100%!important;
  min-height:0!important;
}
.tm-gmail-panel:not([hidden]){
  display:block!important;
  height:100%!important;
  min-height:0!important;
}
@media(max-width:760px){
  .tm-persian-orbit{display:none!important}
  .tm-landing-shell{max-width:100vw!important}
}


/* TiMail 0.1.32-dev — scrollbar, pricing and full-height workspace refinements */
html.tm-landing-root,
html.tm-landing-root body{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
}
html.tm-landing-root body.tm-landing-body{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  min-height:100dvh!important;
}
html.tm-landing-root .tm-landing-shell{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  max-width:100vw!important;
  height:100dvh!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
html.tm-landing-root .tm-landing-shell::-webkit-scrollbar,
html.tm-landing-root::-webkit-scrollbar,
html.tm-landing-root body::-webkit-scrollbar{
  display:none!important;
  width:0!important;
  height:0!important;
}
.tm-pricing-section{
  background:transparent!important;
  box-shadow:none!important;
}
.tm-pricing-section::before,
.tm-pricing-section::after{
  background:transparent!important;
  box-shadow:none!important;
}
.tm-pricing-section .tm-section-heading,
.tm-pricing-section .tm-plan-grid{
  position:relative;
  z-index:2;
}

.tm-user-shell{
  height:100dvh!important;
  min-height:100dvh!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.tm-user-main{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  overflow:auto!important;
}
.tm-user-app{
  min-height:100%!important;
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
}
.tm-user-panel:not([hidden]){
  flex:1 1 auto!important;
  min-height:0!important;
}
.tm-mail-home-panel:not([hidden]){
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-height:0!important;
  align-content:initial!important;
}
.tm-mail-home-panel .tm-gmail-message-list-home{
  flex:1 1 240px!important;
  min-height:240px!important;
  max-height:none!important;
}
.tm-user-upgrade-strip{
  flex:0 0 auto!important;
}
.tm-user-footer{
  display:flex!important;
  flex:0 0 auto!important;
  min-height:44px!important;
  position:relative!important;
  z-index:45!important;
  margin-top:auto!important;
  padding:8px clamp(14px,2vw,28px)!important;
  border-top:1px solid var(--ui-border,#e1e7ef)!important;
  background:color-mix(in srgb,var(--ui-surface,#fff) 97%,transparent)!important;
  backdrop-filter:blur(12px)!important;
}
.tm-user-footer nav{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
}
.tm-user-footer a{
  color:var(--ui-muted,#66758a)!important;
  text-decoration:none!important;
}
.tm-user-footer a:hover{color:var(--ui-primary,#014db2)!important}

.tm-mailbox-picker{
  position:relative!important;
  overflow:hidden!important;
  border-color:color-mix(in srgb,var(--ui-primary,#014db2) 14%,var(--ui-border,#dce3ec))!important;
  background:var(--ui-surface-2,#f7f9fc)!important;
  box-shadow:0 5px 15px rgba(21,40,72,.035)!important;
}
.tm-mailbox-picker select{
  width:100%!important;
  min-width:0!important;
  height:100%!important;
  padding:0 8px!important;
  border:0!important;
  border-radius:10px!important;
  outline:0!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  background:transparent!important;
  color:var(--ui-text,#172033)!important;
  font:inherit!important;
  font-size:.76rem!important;
  font-weight:750!important;
  cursor:pointer!important;
  color-scheme:light dark;
}
.tm-mailbox-picker select:focus{
  box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--ui-primary,#014db2) 22%,transparent)!important;
}
.tm-mailbox-picker select option{
  background:var(--ui-surface,#fff)!important;
  color:var(--ui-text,#172033)!important;
  font:inherit!important;
  padding:10px!important;
}

@media(max-width:760px){
  .tm-user-footer{
    padding:7px 10px calc(72px + env(safe-area-inset-bottom,0px))!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    font-size:.63rem!important;
  }
  .tm-user-footer nav{display:none!important}
  .tm-mail-home-panel .tm-gmail-message-list-home{min-height:200px!important}
}

.tm-mailbox-picker::after{
  content:""!important;
  flex:0 0 auto!important;
  width:7px!important;
  height:7px!important;
  margin-inline-start:2px!important;
  border-inline-end:2px solid var(--ui-muted,#718096)!important;
  border-block-end:2px solid var(--ui-muted,#718096)!important;
  transform:rotate(45deg) translateY(-2px)!important;
  pointer-events:none!important;
  opacity:.75!important;
}
.tm-mailbox-picker select{padding-inline-end:4px!important}


/* TiMail 0.1.33-dev — Gmail-height workspace + polished account surface */
.tm-user-body{
  height:100dvh!important;
  min-height:100dvh!important;
  overflow:hidden!important;
}
.tm-user-body .tm-user-shell{
  height:100dvh!important;
  min-height:100dvh!important;
  padding-bottom:0!important;
  overflow:hidden!important;
}
.tm-user-body .tm-user-main{
  flex:1 1 0!important;
  min-height:0!important;
  height:auto!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  padding:12px clamp(12px,2.2vw,30px) 10px!important;
}
.tm-user-body .tm-user-app{
  flex:1 1 auto!important;
  width:100%!important;
  max-width:none!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.tm-user-body .tm-user-panel:not([hidden]){
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
}
.tm-user-body .tm-mail-home-panel:not([hidden]){
  display:flex!important;
  flex-direction:column!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
}
.tm-user-body .tm-mail-home-panel .tm-gmail-message-list-home{
  flex:1 0 150px!important;
  min-height:150px!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  align-content:start!important;
}
.tm-user-body .tm-gmail-panel:not([hidden]){
  display:flex!important;
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  overflow:hidden!important;
}
.tm-user-body .tm-gmail-panel .tm-gmail-shell{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
}
.tm-user-body .tm-user-panel:not([hidden]):not(.tm-gmail-panel):not(.tm-mail-home-panel){
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.tm-user-body .tm-user-footer{
  flex:0 0 auto!important;
  margin-top:0!important;
}

/* Account page — compact identity card + settings rows, modeled on Gmail account UX. */
.tm-account-panel{
  gap:18px!important;
  padding:2px 0 10px!important;
}
.tm-account-page-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  padding:8px 4px 2px;
}
.tm-account-page-head h1{
  margin:4px 0 5px;
  font-size:clamp(1.45rem,2.3vw,2rem);
  color:var(--ui-text,#172033);
}
.tm-account-page-head p{
  margin:0;
  color:var(--ui-muted,#748197);
  font-size:.82rem;
  line-height:1.75;
}
.tm-account-layout{
  display:grid;
  grid-template-columns:minmax(260px,320px) minmax(0,1fr);
  gap:16px;
  align-items:start;
  width:min(1180px,100%);
  margin:0 auto;
}
.tm-account-identity{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  padding:28px 22px 22px;
  border:1px solid var(--ui-border,#dfe5ed);
  border-radius:24px;
  background:var(--ui-surface,#fff);
  box-shadow:0 12px 34px rgba(24,39,63,.06);
  text-align:center;
}
.tm-profile-avatar-editor-large{
  width:104px!important;
  height:104px!important;
  box-shadow:0 0 0 6px color-mix(in srgb,var(--ui-primary,#014db2) 7%,transparent);
}
.tm-profile-avatar-editor-large i{
  width:31px!important;
  height:31px!important;
  bottom:3px!important;
  inset-inline-end:2px!important;
}
.tm-account-identity-copy{
  min-width:0;
  width:100%;
  display:grid;
  justify-items:center;
  gap:5px;
}
.tm-account-identity-copy>small{
  color:var(--ui-primary,#014db2);
  font-size:.7rem;
  font-weight:850;
}
.tm-account-identity-copy h2{
  max-width:100%;
  margin:0;
  font-size:1.25rem;
  overflow-wrap:anywhere;
  color:var(--ui-text,#172033);
}
.tm-account-identity-copy>span{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--ui-muted,#748197);
  font-size:.78rem;
}
.tm-account-badges{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px;
  margin-top:6px;
}
.tm-account-badges b{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:0 9px;
  border:1px solid color-mix(in srgb,var(--ui-primary,#014db2) 14%,var(--ui-border,#dfe5ed));
  border-radius:999px;
  background:color-mix(in srgb,var(--ui-primary,#014db2) 5%,var(--ui-surface,#fff));
  color:var(--ui-muted,#607087);
  font-size:.66rem;
  font-weight:800;
}
.tm-account-identity>.ui-btn{width:100%}
.tm-account-settings{
  overflow:hidden;
  border:1px solid var(--ui-border,#dfe5ed);
  border-radius:24px;
  background:var(--ui-surface,#fff);
  box-shadow:0 12px 34px rgba(24,39,63,.055);
}
.tm-account-setting-row{
  min-height:96px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  padding:17px 20px;
  border-bottom:1px solid var(--ui-border,#e9edf2);
  transition:background .15s ease;
}
.tm-account-setting-row:last-child{border-bottom:0}
.tm-account-setting-row:hover{background:var(--ui-surface-2,#f7f9fc)}
.tm-account-setting-row .tm-account-icon{
  width:44px;
  height:44px;
  margin:0;
  border-radius:14px;
}
.tm-account-setting-copy{
  min-width:0;
  display:grid;
  gap:3px;
}
.tm-account-setting-copy small{
  color:var(--ui-muted,#748197);
  font-size:.69rem;
}
.tm-account-setting-copy strong{
  min-width:0;
  overflow-wrap:anywhere;
  font-size:.92rem;
  color:var(--ui-text,#172033);
}
.tm-account-setting-copy span{
  color:var(--ui-muted,#748197);
  font-size:.72rem;
  line-height:1.55;
}
.tm-account-setting-row>.ui-btn{
  min-width:106px;
  margin:0!important;
}
.tm-account-setting-state{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(40,167,113,.09);
  color:#17845c;
}
.tm-account-setting-danger .tm-account-icon{
  background:#fff0f0!important;
  color:#bd3636!important;
}

@media(max-width:900px){
  .tm-user-body .tm-user-main{padding:10px 10px 84px!important}
  .tm-account-layout{grid-template-columns:1fr}
  .tm-account-identity{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    text-align:start;
    padding:18px;
  }
  .tm-account-identity-copy{justify-items:start}
  .tm-account-badges{justify-content:flex-start}
  .tm-account-identity>.ui-btn{width:auto}
  .tm-profile-avatar-editor-large{width:82px!important;height:82px!important}
}
@media(max-width:620px){
  .tm-account-identity{grid-template-columns:1fr;justify-items:center;text-align:center}
  .tm-account-identity-copy{justify-items:center}
  .tm-account-badges{justify-content:center}
  .tm-account-identity>.ui-btn{width:100%}
  .tm-account-setting-row{
    grid-template-columns:44px minmax(0,1fr);
    min-height:88px;
    padding:14px;
  }
  .tm-account-setting-row>.ui-btn,
  .tm-account-setting-row>.tm-account-setting-state{
    grid-column:2;
    justify-self:start;
  }
  .tm-account-setting-row>.ui-btn{min-width:0}
  .tm-mail-home-panel .tm-mail-home-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tm-mail-home-panel .tm-gmail-message-list-home{min-height:120px!important;flex-basis:120px!important}
}


/* TiMail 0.1.34-dev — guest reader, Gmail message density and viewport-locked mail pane */
.tm-shared-message-openable{
  cursor:pointer!important;
  transition:border-color .15s ease,background .15s ease,transform .15s ease!important;
}
.tm-shared-message-openable:hover,
.tm-shared-message-openable:focus-visible{
  border-color:rgba(112,194,6,.34)!important;
  background:rgba(255,255,255,.065)!important;
  outline:none!important;
  transform:translateY(-1px);
}
.tm-guest-message-modal{display:grid;gap:16px;min-width:0}
.tm-guest-message-meta{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
  padding:12px;border:1px solid var(--ui-border,#dfe5ed);border-radius:16px;
  background:var(--ui-surface-2,#f7f9fc)
}
.tm-guest-message-meta>div{display:grid;gap:4px;min-width:0}
.tm-guest-message-meta small{color:var(--ui-muted,#748197);font-size:.68rem}
.tm-guest-message-meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem}
.tm-guest-message-access{display:flex;align-items:stretch;gap:9px;flex-wrap:wrap}
.tm-guest-otp-large{
  min-width:180px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 12px;
  padding:12px 14px;border:1px solid rgba(112,194,6,.28);border-radius:15px;
  background:color-mix(in srgb,#70c206 7%,var(--ui-surface,#fff));color:var(--ui-text,#172033);
  cursor:pointer;text-align:start
}
.tm-guest-otp-large small{grid-column:1;color:var(--ui-muted,#748197);font-size:.67rem}
.tm-guest-otp-large strong{grid-column:1;font-size:1.35rem;letter-spacing:.12em;color:#4f8d08}
.tm-guest-otp-large span{grid-column:2;grid-row:1/3;color:var(--ui-primary,#014db2);font-weight:800;font-size:.72rem}
.tm-guest-link-action{min-height:54px!important;align-self:stretch!important}
.tm-guest-extracted-empty{
  width:100%;padding:12px 14px;border-radius:13px;background:var(--ui-surface-2,#f7f9fc);
  color:var(--ui-muted,#748197);font-size:.76rem
}
.tm-guest-message-locked{
  display:grid;gap:7px;padding:15px;border:1px solid color-mix(in srgb,var(--ui-primary,#014db2) 16%,var(--ui-border,#dfe5ed));
  border-radius:16px;background:color-mix(in srgb,var(--ui-primary,#014db2) 4%,var(--ui-surface,#fff))
}
.tm-guest-message-locked strong{font-size:.92rem}
.tm-guest-message-locked p{margin:0;color:var(--ui-muted,#748197);font-size:.76rem;line-height:1.8}
.tm-guest-message-locked .ui-btn{justify-self:start;margin-top:3px}

/* Defeat older :has() display:block rule and let the mail application consume all remaining viewport height. */
.tm-user-body .tm-user-main:has(.tm-gmail-panel:not([hidden])){
  display:flex!important;
  flex:1 1 0!important;
  min-height:0!important;
  height:auto!important;
  overflow:hidden!important;
  padding:8px 10px!important;
}
.tm-user-body .tm-user-main .tm-user-app:has(.tm-gmail-panel:not([hidden])){
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  min-height:0!important;
  height:auto!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
.tm-user-body .tm-user-main .tm-user-app:has(.tm-gmail-panel:not([hidden])) .tm-gmail-panel:not([hidden]){
  display:flex!important;
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
}
.tm-user-body .tm-user-main .tm-user-app:has(.tm-gmail-panel:not([hidden])) .tm-gmail-shell{
  flex:1 1 auto!important;
  min-height:0!important;
  height:100%!important;
  max-height:100%!important;
  border-radius:14px!important;
}
.tm-user-body .tm-gmail-main{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  height:100%!important;
}
.tm-user-body .tm-mail-stage{flex:1 1 auto!important;min-height:0!important}
.tm-user-body .tm-gmail-message-list:not(.tm-gmail-message-list-home){
  flex:1 1 auto!important;
  min-height:0!important;height:100%!important;
}

/* Denser Gmail-like inbox rows with clearer visual hierarchy. */
.tm-user-body .tm-gmail-row{
  min-height:40px!important;
  grid-template-columns:22px minmax(130px,.52fr) minmax(260px,2.2fr) auto 108px!important;
  gap:8px!important;
  padding:0 11px!important;
  border-bottom-color:color-mix(in srgb,var(--ui-border,#dfe5ed) 88%,transparent)!important;
}
.tm-user-body .tm-gmail-row:nth-child(even):not(.is-unread){
  background:color-mix(in srgb,var(--ui-surface-2,#f7f9fc) 28%,var(--ui-surface,#fff))!important;
}
.tm-user-body .tm-gmail-row:hover{
  background:color-mix(in srgb,var(--ui-primary,#014db2) 5%,var(--ui-surface,#fff))!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ui-primary,#014db2) 8%,transparent),
             inset 0 -1px 0 color-mix(in srgb,var(--ui-primary,#014db2) 8%,transparent)!important;
}
.tm-user-body .tm-gmail-row.is-unread{
  background:color-mix(in srgb,var(--ui-primary,#014db2) 7%,var(--ui-surface,#fff))!important;
}
.tm-user-body .tm-gmail-sender{font-size:.74rem!important}
.tm-user-body .tm-gmail-subject b{font-size:.76rem!important}
.tm-user-body .tm-gmail-subject small{font-size:.69rem!important}
.tm-user-body .tm-gmail-row time{font-size:.65rem!important}
.tm-user-body .tm-row-action,.tm-user-body .tm-row-link-indicator{
  min-height:25px!important;border-radius:8px!important;font-size:.63rem!important
}

/* Gmail-style opened message header and content canvas. */
.tm-message-reader-head{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  min-height:78px!important;
  padding:10px 14px!important;
  gap:12px!important;
  align-items:center!important;
  border-bottom:1px solid var(--ui-border,#dfe5ed)!important;
}
.tm-message-reader-title{min-width:0!important;display:grid!important;gap:7px!important}
.tm-message-reader-title>strong{
  display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:1.08rem!important;font-weight:760!important;color:var(--ui-text,#172033)
}
.tm-message-reader-envelope{
  min-width:0;display:flex;align-items:center;gap:6px;flex-wrap:wrap;
  color:var(--ui-muted,#748197);font-size:.69rem
}
.tm-message-reader-envelope b{color:var(--ui-text,#172033);font-size:.73rem}
.tm-message-reader-envelope span{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tm-message-reader-envelope small{color:var(--ui-muted,#748197)}
.tm-message-reader-envelope time{
  margin-inline-start:auto;white-space:nowrap;color:var(--ui-muted,#748197);font-size:.66rem
}
.tm-message-reader-unread{align-self:center}
.tm-message-reader-actions{
  min-height:46px!important;padding:7px 14px!important;
  background:var(--ui-surface-2,#f7f9fc)!important;
  border-bottom:1px solid var(--ui-border,#e7ebf0)!important
}
.tm-message-reader-body{
  flex:1 1 auto!important;min-height:0!important;overflow:auto!important;
  padding:24px clamp(18px,3vw,42px)!important;background:var(--ui-surface,#fff)!important
}
.tm-message-reader-body .tm-user-message-body{
  width:min(980px,100%)!important;min-height:100%!important;margin:0 auto!important;
  color:var(--ui-text,#172033)!important;font-size:.91rem!important;line-height:1.9!important
}
.tm-message-reader-body .tm-user-message-body img{max-width:100%;height:auto}

/* Admin inboxes: active by default; guest mailboxes use the same inspection surface. */
.tm-admin-message-card{min-height:54px!important;padding:9px 11px!important}
.tm-admin-message-card-main strong{font-size:.78rem!important}
.tm-admin-message-card-main small,.tm-admin-message-card-side small{font-size:.67rem!important}

@media(max-width:760px){
  .tm-guest-message-meta{grid-template-columns:1fr}
  .tm-user-body .tm-user-main:has(.tm-gmail-panel:not([hidden])){padding:5px 5px 76px!important}
  .tm-user-body .tm-gmail-row{
    grid-template-columns:minmax(90px,.72fr) minmax(0,1.8fr) auto!important;
    min-height:52px!important;padding:6px 9px!important
  }
  .tm-message-reader-head{grid-template-columns:auto minmax(0,1fr) auto!important;min-height:86px!important}
  .tm-message-reader-envelope time{width:100%;margin-inline-start:0}
}


/* TiMail 0.1.34-dev follow-up — compact guest rows, dark-safe modal, Gmail selection, clean account */
.tm-landing-body .ui-modal{
  --ui-surface:#0e1827;
  --ui-surface-2:#142235;
  --ui-text:#eef5ff;
  --ui-muted:#9fb1c7;
  --ui-border:#2b3c52;
  background:#0e1827!important;
  color:#eef5ff!important;
  border-color:#2b3c52!important;
}
.tm-landing-body .ui-modal-header,
.tm-landing-body .ui-modal-footer{border-color:#2b3c52!important}
.tm-landing-body .ui-modal-title,
.tm-landing-body .tm-guest-message-modal,
.tm-landing-body .tm-guest-message-modal strong{color:#eef5ff!important}
.tm-landing-body .tm-guest-message-meta{
  background:#142235!important;
  border-color:#2b3c52!important;
}
.tm-landing-body .tm-guest-message-meta small,
.tm-landing-body .tm-guest-message-locked p,
.tm-landing-body .tm-guest-extracted-empty{color:#a9bacd!important}
.tm-landing-body .tm-guest-message-locked{
  background:#122238!important;
  border-color:#294a70!important;
}
.tm-landing-body .tm-guest-extracted-empty{background:#142235!important}

/* Guest messages are rows, not cards. */
.tm-shared-messages-compact{
  display:block!important;
  margin-top:7px!important;
  overflow:visible!important;
  border:1px solid rgba(141,164,194,.14)!important;
  border-radius:12px!important;
  background:rgba(7,15,28,.28)!important;
}
.tm-shared-message-card.is-compact{
  width:100%!important;
  min-width:0!important;
  min-height:40px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.6fr) minmax(120px,.72fr) auto!important;
  align-items:center!important;
  gap:9px!important;
  padding:6px 9px!important;
  border:0!important;
  border-bottom:1px solid rgba(141,164,194,.12)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.tm-shared-message-card.is-compact:last-child{border-bottom:0!important}
.tm-shared-message-card.is-compact:hover,
.tm-shared-message-card.is-compact:focus-visible{
  background:rgba(66,128,216,.08)!important;
  transform:none!important;
}
.tm-shared-message-card.is-compact .tm-shared-message-head{
  min-width:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
}
.tm-shared-message-card.is-compact .tm-shared-message-head strong{
  font-size:.7rem!important;
  font-weight:780!important;
}
.tm-shared-message-card.is-compact .tm-shared-message-head small{font-size:.57rem!important}
.tm-shared-message-card.is-compact .tm-shared-sender{
  min-width:0!important;
  font-size:.61rem!important;
}
.tm-shared-message-card.is-compact .tm-shared-message-actions{
  margin:0!important;
  justify-content:flex-end!important;
  flex-wrap:nowrap!important;
}
.tm-shared-message-card.is-compact .tm-shared-otp,
.tm-shared-message-card.is-compact .ui-btn{
  min-height:25px!important;
  padding:3px 7px!important;
  font-size:.61rem!important;
}

/* Gmail-style selection. */
.tm-user-body .tm-gmail-row{
  grid-template-columns:22px 22px minmax(125px,.52fr) minmax(240px,2.2fr) auto 108px!important;
}
.tm-gmail-check,
.tm-gmail-select-all{
  position:relative;
  width:20px;height:20px;display:grid;place-items:center;
  cursor:pointer;flex:0 0 auto
}
.tm-gmail-check input,
.tm-gmail-select-all input{
  position:absolute;opacity:0;pointer-events:none
}
.tm-gmail-check>span,
.tm-gmail-select-all>span{
  width:15px;height:15px;border:1.5px solid var(--ui-muted,#7d8a9c);
  border-radius:3px;background:var(--ui-surface,#fff);box-sizing:border-box;
  transition:.12s ease
}
.tm-gmail-check input:checked+span,
.tm-gmail-select-all input:checked+span,
.tm-gmail-select-all input:indeterminate+span{
  border-color:var(--ui-primary,#014db2);background:var(--ui-primary,#014db2);
  box-shadow:inset 0 0 0 2px var(--ui-surface,#fff)
}
.tm-gmail-check:focus-within>span,
.tm-gmail-select-all:focus-within>span{outline:2px solid color-mix(in srgb,var(--ui-primary,#014db2) 30%,transparent);outline-offset:2px}
.tm-gmail-context-main,
.tm-gmail-context-actions{display:flex;align-items:center;gap:9px;min-width:0}
.tm-gmail-context-main>div{display:grid;gap:2px;min-width:0}
.tm-gmail-context-actions{justify-content:flex-end}
.tm-gmail-context-actions [hidden]{display:none!important}
.tm-gmail-message-list-home .tm-gmail-check{display:none!important}
.tm-gmail-message-list-home .tm-gmail-row{
  grid-template-columns:22px minmax(125px,.52fr) minmax(240px,2.2fr) auto 108px!important;
}

/* Admin inbox filter */
.tm-admin-inbox-tools{align-items:center!important;flex-wrap:wrap!important}
.tm-admin-inbox-filter{
  min-height:36px;display:flex;align-items:center;gap:7px;padding:0 9px;
  border:1px solid var(--ui-border,#dce3ec);border-radius:10px;background:var(--ui-surface,#fff);
  color:var(--ui-muted,#66758a);font-size:.72rem
}
.tm-admin-inbox-filter select{
  border:0;outline:0;background:transparent;color:var(--ui-text,#172033);
  font:inherit;font-weight:750;cursor:pointer
}

/* Account surface */
.tm-account-panel{
  padding:8px 0 18px!important;
  gap:12px!important;
}
.tm-account-page-head{
  width:min(1000px,100%)!important;
  margin:0 auto!important;
  padding:2px 2px 6px!important;
}
.tm-account-page-head h1{margin:0 0 3px!important;font-size:1.45rem!important}
.tm-account-page-head p{font-size:.74rem!important;line-height:1.5!important}
.tm-account-layout{
  width:min(1000px,100%)!important;
  grid-template-columns:280px minmax(0,1fr)!important;
  gap:14px!important;
}
.tm-account-identity{
  gap:12px!important;
  padding:22px 18px 18px!important;
  border-radius:18px!important;
  box-shadow:0 8px 26px rgba(24,39,63,.05)!important;
}
.tm-profile-avatar-wrap{
  --avatar-progress:0;
  position:relative;
  width:112px;height:112px;
  display:grid;place-items:center;
}
.tm-profile-avatar-editor-large{
  position:relative!important;
  z-index:2!important;
  width:94px!important;height:94px!important;
  box-shadow:none!important;
  border:2px solid var(--ui-surface,#fff)!important;
}
.tm-profile-avatar-wrap .tm-avatar-upload-ring{
  position:absolute;inset:0;z-index:1;border-radius:50%;
  opacity:0;transform:scale(.95);
  background:conic-gradient(var(--ui-primary,#014db2) calc(var(--avatar-progress) * 1%), color-mix(in srgb,var(--ui-border,#dce3ec) 72%,transparent) 0);
  transition:opacity .16s ease,transform .16s ease,background .12s linear;
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 0);
  mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 0);
}
.tm-profile-avatar-wrap.is-uploading .tm-avatar-upload-ring{opacity:1;transform:scale(1)}
.tm-profile-avatar-wrap.is-uploading .tm-profile-avatar-editor-large{opacity:.74}
.tm-profile-avatar-wrap.is-uploading .tm-profile-avatar-editor-large i{opacity:0}
.tm-avatar-upload-progress{
  position:absolute;z-index:4;bottom:-7px;left:50%;transform:translateX(-50%);
  min-width:40px;padding:3px 7px;border-radius:999px;
  background:var(--ui-primary,#014db2);color:#fff;font-size:.61rem;font-weight:850;text-align:center;
  box-shadow:0 4px 12px rgba(1,77,178,.24)
}
.tm-account-identity-copy{gap:4px!important}
.tm-account-identity-copy h2{font-size:1.12rem!important}
.tm-account-identity-copy>span{font-size:.72rem!important}
.tm-account-badges{margin-top:4px!important}
.tm-account-badges b{min-height:24px!important;font-size:.62rem!important}
.tm-account-identity-actions{
  width:100%;display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:2px
}
.tm-account-identity-actions .ui-btn{min-width:0!important;justify-content:center!important}
.tm-account-settings{
  border-radius:18px!important;
  box-shadow:0 8px 26px rgba(24,39,63,.045)!important;
}
.tm-account-settings-head{
  min-height:48px;display:flex;align-items:center;padding:0 18px;
  border-bottom:1px solid var(--ui-border,#e7ebf0);
  background:var(--ui-surface-2,#f8fafc)
}
.tm-account-settings-head strong{font-size:.84rem}
.tm-account-setting-row{
  min-height:78px!important;
  grid-template-columns:42px minmax(0,1fr) auto!important;
  gap:12px!important;padding:12px 16px!important
}
.tm-account-setting-row .tm-account-icon{width:38px!important;height:38px!important;border-radius:11px!important}
.tm-account-setting-copy{gap:2px!important}
.tm-account-setting-copy small{font-size:.65rem!important}
.tm-account-setting-copy strong{font-size:.83rem!important}
.tm-account-setting-copy span{font-size:.66rem!important}
.tm-account-setting-row>.ui-btn{min-width:92px!important;min-height:34px!important}

/* Mobile */
@media(max-width:760px){
  .tm-shared-message-card.is-compact{
    grid-template-columns:minmax(0,1fr) auto!important;
    min-height:46px!important
  }
  .tm-shared-message-card.is-compact .tm-shared-sender{grid-column:1}
  .tm-shared-message-card.is-compact .tm-shared-message-actions{grid-column:2;grid-row:1/3}
  .tm-user-body .tm-gmail-row{
    grid-template-columns:22px minmax(88px,.72fr) minmax(0,1.8fr) auto!important
  }
  .tm-user-body .tm-gmail-star{display:none!important}
  .tm-user-body .tm-gmail-row-actions{grid-column:3/5!important}
  .tm-user-body .tm-gmail-row time{grid-column:4!important;grid-row:1!important}
  .tm-gmail-message-list-home .tm-gmail-row{
    grid-template-columns:minmax(88px,.72fr) minmax(0,1.8fr) auto!important
  }
  .tm-account-layout{grid-template-columns:1fr!important}
  .tm-account-identity{
    display:flex!important;flex-direction:column!important;text-align:center!important;
    padding:18px!important
  }
  .tm-account-identity-copy{justify-items:center!important}
  .tm-account-badges{justify-content:center!important}
  .tm-account-identity-actions{max-width:360px}
}


@media(max-width:900px){
  .tm-account-layout{grid-template-columns:1fr!important}
  .tm-account-identity{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    text-align:center!important
  }
  .tm-account-identity-copy{justify-items:center!important}
  .tm-account-badges{justify-content:center!important}
  .tm-account-identity-actions{max-width:380px}
}


/* TiMail 0.1.37-dev — avatar upload feedback */
.tm-avatar-upload-status{
  width:100%;
  margin:0;
  min-height:20px;
  text-align:center;
  color:var(--ui-muted,#748197);
  font-size:.66rem;
  line-height:1.55;
  transition:color .15s ease,background .15s ease;
}
.tm-avatar-upload-status.is-danger{
  color:#b42318;
  font-weight:760;
}
.tm-avatar-upload-status.is-success{
  color:#15835d;
  font-weight:760;
}
.tm-avatar-upload-status.is-progress{
  color:var(--ui-primary,#014db2);
  font-weight:760;
}


/* TiMail 0.1.38-dev — Pro avatar ring, growth nudges and plan-targeted ads */
.tm-top-profile{
  position:relative!important;
  padding:2px!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
.tm-top-profile>[data-top-profile-avatar]{
  width:100%!important;
  height:100%!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  border-radius:50%!important;
  background:var(--ui-surface-2,#f5f7fb)!important;
}
.tm-top-profile>[data-top-profile-avatar] img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
  border-radius:50%!important;
}
.tm-top-profile.is-pro{
  border-color:transparent!important;
  background:conic-gradient(
    from 0deg,
    #ff4d67,
    #ffb020,
    #7bcf35,
    #22b8cf,
    #4c6ef5,
    #a855f7,
    #ff4d67
  )!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--ui-surface,#fff) 90%,transparent),
             0 0 16px rgba(111,91,255,.24)!important;
  animation:tm-pro-avatar-glow 5s linear infinite;
}
.tm-profile-avatar-wrap.is-pro .tm-profile-avatar-editor-large{
  box-shadow:0 0 0 3px var(--ui-surface,#fff),
             0 0 0 6px #7c5cff,
             0 8px 24px rgba(96,72,220,.18)!important;
}
@keyframes tm-pro-avatar-glow{
  0%,100%{filter:hue-rotate(0deg)}
  50%{filter:hue-rotate(18deg)}
}

.tm-user-upgrade-strip{position:relative!important}
.tm-upgrade-strip-close{
  position:absolute;inset-inline-end:10px;top:9px;
  width:28px;height:28px;display:grid;place-items:center;
  border:0;border-radius:50%;background:rgba(255,255,255,.08);color:#d9daea;
  cursor:pointer
}
.tm-upgrade-strip-close:hover{background:rgba(255,255,255,.15);color:#fff}

.tm-ad-slot[hidden]{display:none!important}
.tm-ad-slot{
  width:100%;min-width:0;display:grid;gap:8px;
}
.tm-ad-slot-banner{margin:0 0 10px}
.tm-ad-slot-inline{margin:2px 0}
.tm-ad-unit{
  position:relative;min-width:0;display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  align-items:center;gap:12px;
  border:1px solid color-mix(in srgb,var(--ui-primary,#014db2) 14%,var(--ui-border,#dfe5ed));
  border-radius:14px;
  background:color-mix(in srgb,var(--ui-primary,#014db2) 3%,var(--ui-surface,#fff));
  padding:10px 12px;
  box-shadow:0 6px 20px rgba(24,39,63,.035)
}
.tm-ad-badge{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:24px;padding:0 8px;border-radius:999px;
  background:var(--ui-surface-2,#f3f6fa);color:var(--ui-muted,#748197);
  font-size:.61rem;font-weight:800
}
.tm-ad-body{min-width:0;display:grid;gap:3px}
.tm-ad-body>strong{font-size:.78rem;color:var(--ui-text,#172033)}
.tm-ad-body>p{margin:0;color:var(--ui-muted,#748197);font-size:.69rem;line-height:1.6}
.tm-ad-body>img{
  display:block;max-width:100%;max-height:110px;width:auto;height:auto;
  object-fit:contain;border-radius:9px
}
.tm-ad-html{font-size:.74rem;line-height:1.7;color:var(--ui-text,#172033)}
.tm-ad-html p{margin:.25em 0}
.tm-ad-cta{white-space:nowrap}
.tm-ad-close{
  width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:50%;
  background:transparent;color:var(--ui-muted,#748197);cursor:pointer
}
.tm-ad-close:hover{background:var(--ui-surface-2,#f2f5f9);color:var(--ui-text,#172033)}
.tm-ad-slot-sticky{
  position:fixed;z-index:58;
  inset-inline:clamp(12px,4vw,64px);
  bottom:58px;
  width:auto!important;
  pointer-events:none
}
.tm-ad-slot-sticky .tm-ad-unit{
  pointer-events:auto;
  width:min(920px,100%);
  margin:0 auto;
  box-shadow:0 16px 42px rgba(17,31,53,.18);
  backdrop-filter:blur(16px)
}
.tm-ad-popup-unit{border:0!important;box-shadow:none!important;padding:4px!important}
.tm-ad-popup-unit .tm-ad-badge{display:none}
.tm-ad-popup-unit .tm-ad-close{display:none}
.tm-admin-ad-note{margin-bottom:12px}

@media(max-width:760px){
  .tm-ad-unit{
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:8px;padding:9px
  }
  .tm-ad-cta{grid-column:2;justify-self:start}
  .tm-ad-close{grid-column:3;grid-row:1}
  .tm-ad-slot-sticky{bottom:82px;inset-inline:8px}
}


/* TiMail 0.1.33 — discounts, customer-domain wizard and inbound security */
.tm-plan-offer-card{min-height:365px;overflow:hidden}
.tm-plan-offer-top,.tm-market-plan-badges{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.tm-plan-duration{display:block;color:#96a5c4;margin-top:5px}
.tm-plan-discount,.tm-plan-sale-badge{
  display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;
  background:linear-gradient(135deg,#ffedd1,#ffe0b2);color:#864900;font-size:.73rem;font-weight:950
}
.tm-plan-special{border-color:#ffbd6670;box-shadow:0 18px 60px #ff9f2220,inset 0 1px #ffffff20}
.tm-plan-price-wrap{display:grid;gap:5px;align-content:start}
.tm-plan-price-wrap del{color:#7988a6;font-size:.86rem}
.tm-plan-price-wrap strong{font-size:1.7rem}
.tm-plan-price-wrap span{color:#9eabc3;margin-inline-start:6px}
.tm-plan-countdown,.tm-market-countdown{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  border:1px solid #ffba6c4d;background:#ffb45f12;border-radius:13px;padding:10px 12px
}
.tm-plan-countdown small,.tm-market-countdown small{color:#a36a24}
.tm-plan-countdown b,.tm-market-countdown b{font-variant-numeric:tabular-nums;letter-spacing:.06em}
.tm-market-plan-special{border-color:color-mix(in srgb,#f1a23b 52%,var(--ui-border));box-shadow:0 18px 48px rgba(222,139,34,.12)}
.tm-market-price{display:grid;gap:5px;align-items:start}
.tm-market-price del{font-size:.8rem;color:var(--ui-muted)}
.tm-market-price>div{display:flex;align-items:flex-end;gap:7px}
.tm-market-plan-badges{justify-content:flex-start}
.tm-market-countdown{background:color-mix(in srgb,#f1a23b 7%,var(--ui-surface));border-color:color-mix(in srgb,#f1a23b 30%,var(--ui-border))}
.tm-market-countdown small{color:var(--ui-muted)}
.tm-market-countdown b{color:#9a621c}

.tm-purchase-auth{display:grid;gap:16px}
.tm-purchase-auth-summary{
  display:grid;gap:5px;padding:16px;border:1px solid var(--ui-border,#d8e0e9);
  border-radius:16px;background:var(--ui-surface-2,#f7f9fc)
}
.tm-purchase-auth-summary span,.tm-purchase-auth-summary small{color:var(--ui-muted,#66758a)}
.tm-purchase-auth-summary strong{font-size:1.05rem}
.tm-purchase-auth-tabs{
  display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:14px;background:var(--ui-surface-2,#f7f9fc)
}
.tm-purchase-auth-tabs button{
  min-height:40px;border:0;border-radius:11px;background:transparent;color:var(--ui-muted,#66758a);
  font:inherit;font-weight:850;cursor:pointer
}
.tm-purchase-auth-tabs button.is-active{background:var(--ui-surface,#fff);color:var(--ui-text,#162033);box-shadow:0 4px 14px rgba(28,38,65,.08)}
.tm-purchase-auth-form{display:grid;gap:12px}
.tm-purchase-auth-form label{display:grid;gap:6px;font-size:.85rem}
.tm-purchase-auth-form>small{color:var(--ui-muted,#66758a);line-height:1.8}
.tm-purchase-auth-status,.tm-checkout-status{padding:10px 12px;border-radius:12px;font-size:.82rem;line-height:1.75}
.tm-purchase-auth-status.is-success,.tm-checkout-status.is-success{background:#e9f8ef;color:#17623a}
.tm-purchase-auth-status.is-danger,.tm-checkout-status.is-danger{background:#fff0f0;color:#8e2832}
.tm-purchase-auth-status.is-info,.tm-checkout-status.is-info{background:#edf3ff;color:#294d95}

.tm-checkout-modal{display:grid;gap:14px}
.tm-checkout-summary{
  display:flex;align-items:stretch;justify-content:space-between;gap:16px;
  padding:18px;border:1px solid var(--ui-border);border-radius:18px;background:var(--ui-surface-2,var(--ui-surface2))
}
.tm-checkout-summary>div:first-child{display:grid;align-content:center;gap:4px}
.tm-checkout-summary span,.tm-checkout-summary small{color:var(--ui-muted)}
.tm-checkout-price-box{display:flex!important;align-items:center!important;gap:18px!important}
.tm-checkout-price-box>span{display:grid;gap:4px}
.tm-checkout-price-box strong{font-size:1.45rem;color:var(--tm-user-accent,var(--ui-primary))}
.tm-checkout-price-box del{font-size:.86rem;color:var(--ui-muted)}
.tm-checkout-special{
  padding:11px 13px;border-radius:13px;border:1px solid color-mix(in srgb,#f1a23b 30%,var(--ui-border));
  background:color-mix(in srgb,#f1a23b 8%,var(--ui-surface));color:#93601f;font-weight:800
}
.tm-checkout-coupon{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:9px}
.tm-checkout-coupon label{display:grid;gap:6px;font-size:.82rem}
.tm-checkout-discount-detail{min-height:24px;color:var(--ui-muted);font-size:.8rem;line-height:1.8}

.tm-custom-domain-panel{gap:16px}
.tm-domain-wizard-info{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:2px
}
.tm-domain-wizard-info article{
  display:flex;align-items:flex-start;gap:11px;padding:15px;border:1px solid var(--ui-border);
  border-radius:17px;background:var(--ui-surface)
}
.tm-domain-wizard-info article>span{
  flex:0 0 32px;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;
  background:var(--tm-user-soft);color:var(--tm-user-accent);font-weight:950
}
.tm-domain-wizard-info article div{display:grid;gap:4px}
.tm-domain-wizard-info article small{color:var(--ui-muted);line-height:1.65}
.tm-custom-domain-list{display:grid;gap:13px}
.tm-custom-domain-card{
  display:grid;gap:15px;padding:20px;border:1px solid var(--ui-border);border-radius:20px;background:var(--ui-surface);
  box-shadow:0 9px 30px rgba(34,38,68,.045)
}
.tm-custom-domain-card.is-active{border-color:color-mix(in srgb,#1b9d69 38%,var(--ui-border))}
.tm-custom-domain-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tm-custom-domain-card>header>div{display:grid;gap:4px}
.tm-custom-domain-card h2{margin:0;font-size:1.1rem}
.tm-domain-state{font-size:.72rem;color:var(--ui-muted);font-weight:850}
.tm-domain-step{font-size:.75rem;padding:6px 9px;border-radius:999px;background:var(--ui-surface-2,var(--ui-surface2));color:var(--ui-muted)}
.tm-domain-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.tm-domain-progress span{
  position:relative;min-height:36px;display:grid;place-items:center;border-radius:10px;
  background:var(--ui-surface-2,var(--ui-surface2));color:var(--ui-muted);font-size:.72rem;font-weight:800
}
.tm-domain-progress span.is-done{background:#e8f8ef;color:#176d43}
.tm-domain-progress span.is-current{background:var(--tm-user-soft);color:var(--tm-user-accent)}
.tm-domain-dns-list{display:grid;gap:8px}
.tm-domain-dns-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px;border:1px solid var(--ui-border);border-radius:13px;background:var(--ui-surface-2,var(--ui-surface2))
}
.tm-domain-dns-row>div{display:grid;gap:3px;min-width:0}
.tm-domain-dns-row small{color:var(--ui-muted)}
.tm-domain-dns-row strong,.tm-domain-dns-row code{overflow-wrap:anywhere}
.tm-domain-dns-row code{font-size:.75rem;color:var(--tm-user-accent);background:transparent}
.tm-domain-health-note{padding:10px 12px;border-radius:12px;background:var(--ui-surface-2,var(--ui-surface2));color:var(--ui-muted);font-size:.8rem;line-height:1.8}
.tm-domain-health-note.is-warning{background:#fff7e5;color:#80540c}
.tm-domain-health-note.is-success{background:#eaf8f0;color:#17623a}
.tm-custom-domain-actions{display:flex;gap:8px;flex-wrap:wrap}

.tm-mail-security-admin>.ui-card:nth-child(n+3){grid-column:1/-1}
.tm-security-summary-chips{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:9px}
.tm-security-summary-chips article{
  display:grid;gap:5px;padding:14px;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-surface-2,var(--ui-surface2))
}
.tm-security-summary-chips small{color:var(--ui-muted)}
.tm-security-summary-chips strong{font-size:1.4rem}

@media(max-width:760px){
  .tm-plan-grid{grid-template-columns:1fr}
  .tm-checkout-summary{display:grid}
  .tm-checkout-price-box{justify-content:space-between}
  .tm-domain-wizard-info{grid-template-columns:1fr}
  .tm-domain-progress{grid-template-columns:1fr 1fr}
  .tm-domain-dns-row{align-items:stretch;flex-direction:column}
  .tm-domain-dns-row .ui-btn{width:100%;justify-content:center}
  .tm-custom-domain-card>header{align-items:flex-start;flex-direction:column}
  .tm-custom-domain-actions{display:grid;grid-template-columns:1fr}
  .tm-checkout-coupon{grid-template-columns:1fr}
  .tm-purchase-auth-tabs{grid-template-columns:1fr 1fr}
}


/* TiMail 0.1.43-dev — concise two-plan public comparison */
.tm-pricing-section{
  display:grid!important;
  align-content:start!important;
  gap:22px!important;
  padding-top:118px!important;
  padding-bottom:42px!important;
}
.tm-plan-grid-compare{
  width:min(1040px,100%);
  margin:0 auto!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;
}
.tm-plan-compare-card{
  min-height:0!important;
  padding:24px!important;
  gap:16px!important;
  border-radius:22px!important;
  border-color:rgba(146,169,201,.22)!important;
  background:linear-gradient(180deg,rgba(20,31,52,.94),rgba(10,19,34,.9))!important;
  box-shadow:0 18px 55px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.035)!important;
}
.tm-plan-compare-card.tm-plan-compare-emphasis{
  border-color:rgba(92,139,255,.48)!important;
  box-shadow:0 20px 64px rgba(36,91,213,.15),inset 0 1px rgba(255,255,255,.05)!important;
}
.tm-plan-compare-head{
  display:grid;
  gap:15px;
}
.tm-plan-identity{
  display:grid;
  gap:7px;
}
.tm-plan-identity h3{
  margin:0!important;
  font-size:1.55rem!important;
  letter-spacing:-.02em;
}
.tm-plan-period-switch{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  padding:4px;
  border:1px solid rgba(146,169,201,.16);
  border-radius:999px;
  background:rgba(255,255,255,.055);
}
.tm-plan-period-switch button{
  min-height:37px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:#9caec5;
  font:inherit;
  font-size:.76rem;
  font-weight:850;
  cursor:pointer;
  transition:background .16s ease,color .16s ease,box-shadow .16s ease;
}
.tm-plan-period-switch button:hover:not(:disabled){color:#fff}
.tm-plan-period-switch button.is-active{
  background:rgba(255,255,255,.13);
  color:#fff;
  box-shadow:0 3px 13px rgba(0,0,0,.16),inset 0 1px rgba(255,255,255,.06);
}
.tm-plan-period-switch button:disabled{
  opacity:.34;
  cursor:not-allowed;
}
.tm-plan-price-area{
  display:grid;
  gap:7px;
  min-height:92px;
  align-content:start;
}
.tm-plan-compare-card .tm-plan-price-wrap{
  gap:4px;
}
.tm-plan-compare-card .tm-plan-price-wrap>div{
  display:flex;
  align-items:baseline;
  gap:8px;
}
.tm-plan-compare-card .tm-plan-price-wrap strong{
  font-size:clamp(1.8rem,3vw,2.35rem)!important;
  line-height:1.1;
  color:#fff;
}
.tm-plan-compare-card .tm-plan-price-wrap span{
  margin:0!important;
  color:#b7c5d8;
  font-size:.78rem;
}
.tm-plan-yearly-saving{
  width:max-content;
  max-width:100%;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(80,199,154,.12);
  color:#81e1bd;
  font-size:.68rem;
  font-weight:850;
}
.tm-plan-feature-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px 12px;
  margin:0;
  padding:0;
  list-style:none;
  flex:1;
}
.tm-plan-feature-list li{
  display:flex;
  align-items:flex-start;
  gap:8px;
  min-width:0;
  color:#c1ccdb;
  font-size:.72rem;
  line-height:1.65;
}
.tm-plan-feature-list li>span:first-child{
  flex:0 0 18px;
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  margin-top:1px;
  border-radius:50%;
  font-size:.68rem;
  font-weight:950;
}
.tm-plan-feature-list li.is-enabled>span:first-child{
  background:rgba(82,206,158,.12);
  color:#7fe0ba;
}
.tm-plan-feature-list li.is-disabled{
  color:#70849e;
}
.tm-plan-feature-list li.is-disabled>span:first-child{
  background:rgba(255,255,255,.045);
  color:#71849d;
}
.tm-plan-compare-card .tm-plan-discount{
  width:max-content;
  max-width:100%;
}
.tm-plan-compare-card .tm-plan-buy{
  min-height:45px;
  margin-top:2px;
}
@media(max-width:860px){
  .tm-pricing-section{
    align-content:start!important;
    padding-top:86px!important;
  }
  .tm-plan-grid-compare{
    grid-template-columns:1fr!important;
    width:min(560px,100%);
  }
}
@media(max-width:560px){
  .tm-pricing-section{gap:14px!important;padding-bottom:24px!important}
  .tm-plan-compare-card{padding:18px!important;border-radius:18px!important}
  .tm-plan-feature-list{grid-template-columns:1fr}
}
