/* 2TimeMail Tool v1.0.6 — light, professional, MIUI-simple theme.
   Lightweight: system fonts, no external dependencies, minimal CSS. */

/* ---------- base ---------- */
.tm-wrap{max-width:880px;margin:0 auto;padding:20px 20px 40px;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:#374151;background:#F6F7F9;-webkit-font-smoothing:antialiased}
.tm-hero{text-align:center;margin-bottom:20px}
.tm-hero h1{font-size:34px;font-weight:800;color:#111827;margin:0 0 8px;letter-spacing:-.02em}
.tm-hero h1 span{color:#0E7C7B}
.tm-hero>p{font-size:15px;color:#6B7280;margin:0}

/* ---------- tool card ---------- */
.tm-card{background:#fff;border:1px solid #E5E7EB;border-radius:18px;padding:22px 22px 16px;box-shadow:0 4px 24px rgba(17,24,39,.06);margin-bottom:18px}
/* v1.0.7: compact, content-sized address pill — centered, no stretch, no gap */
.tm-email-row{display:flex;gap:10px;margin-bottom:8px;justify-content:center;align-items:stretch;flex-wrap:wrap}
.tm-addr{display:inline-flex;align-items:center;background:#F9FAFB;border:1.5px solid #E5E7EB;border-radius:12px;padding:0 10px 0 14px;max-width:100%;transition:border-color .15s,box-shadow .15s}
.tm-addr:focus-within{border-color:#0E7C7B;box-shadow:0 0 0 3px rgba(14,124,123,.12);background:#fff}
.tm-addr input#tm-username{width:11ch;min-width:6ch;max-width:22ch;background:transparent;border:0;color:#111827;font-size:16px;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;outline:none;padding:12px 0;cursor:text}
.tm-addr .tm-at{color:#9CA3AF;font-size:15px;white-space:nowrap;font-family:ui-monospace,Menlo,Consolas,monospace;padding:0 2px}
.tm-addr select#tm-domain{background:transparent;border:0;color:#4B5563;font-size:14px;font-family:inherit;outline:none;cursor:pointer;padding:11px 2px;max-width:150px}
.tm-btn{background:#0E7C7B;border:0;color:#fff;border-radius:12px;padding:0 20px;font-size:14px;font-weight:600;cursor:pointer;min-height:46px;transition:background .15s,transform .1s;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.tm-btn:hover{background:#0B6564}
.tm-btn:active{transform:scale(.98)}
.tm-btn.ghost{background:#F3F4F6;color:#374151;border:1px solid #E5E7EB}
.tm-btn.ghost:hover{background:#E5E7EB;border-color:#D1D5DB}
/* v1.0.9: compact copy button */
.tm-btn-copy{min-height:40px;padding:0 14px;font-size:13px;border-radius:10px}
.tm-btn-copy svg{width:14px;height:14px}
/* v1.0.9: SVG icons inside buttons */
.tm-btn svg{width:16px;height:16px;flex-shrink:0}
.tm-edit-hint{font-size:12.5px;color:#9CA3AF;margin:2px 2px 10px;text-align:center}

/* ---------- history (v1.0.9: compact professional rows) ---------- */
.tm-history{margin-bottom:12px;text-align:center}
.tm-history-toggle{background:transparent;border:0;color:#6B7280;font-size:13px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;transition:background .15s}
.tm-history-toggle:hover{background:#F3F4F6}
.tm-history-toggle svg{width:14px;height:14px}
.tm-history-list{margin-top:8px;display:flex;flex-direction:column;gap:4px;max-height:200px;overflow-y:auto;text-align:left}
.tm-history-list[hidden]{display:none}
.tm-history-item{display:flex;align-items:center;gap:4px;background:#F9FAFB;border:1px solid #EDEFF2;border-radius:8px;padding:2px 4px 2px 10px;transition:border-color .15s}
.tm-history-item:hover{border-color:#D1D5DB}
.tm-history-item.active{border-color:#0E7C7B;background:#F0FDFA}
.tm-history-addr{flex:1;background:transparent;border:0;color:#4B5563;font-size:12.5px;font-family:ui-monospace,Menlo,Consolas,monospace;text-align:left;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:7px 2px}
.tm-history-item.active .tm-history-addr{color:#0E7C7B;font-weight:600}
.tm-history-del{background:transparent;border:0;color:#9CA3AF;cursor:pointer;padding:6px;border-radius:6px;display:flex;align-items:center;flex-shrink:0;transition:color .15s,background .15s}
.tm-history-del:hover{color:#DC2626;background:#FEF2F2}
.tm-history-del svg{width:13px;height:13px}
.tm-history-empty{font-size:13px;color:#9CA3AF;padding:6px 2px;text-align:center}

/* ---------- actions (v1.0.9: primary + subtle secondary) ---------- */
.tm-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-bottom:10px}
.tm-actions .tm-btn{min-height:40px;font-size:13px;padding:0 16px;border-radius:999px}
.tm-actions-sub{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:8px 2px 2px;border-top:1px solid #F3F4F6;margin-top:2px}
.tm-subactions{display:flex;gap:4px}
.tm-link{background:transparent;border:0;color:#9CA3AF;font-size:12.5px;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:8px;transition:color .15s,background .15s}
.tm-link:hover{color:#4B5563;background:#F3F4F6}
.tm-link.tm-danger:hover{color:#DC2626;background:#FEF2F2}
.tm-link svg{width:13px;height:13px}

/* ---------- meta / ttl (v1.0.9: compact inline) ---------- */
.tm-ttl{display:flex;gap:4px;align-items:center;font-size:12px;color:#9CA3AF}
.tm-ttl span{margin-right:2px}
.tm-ttl button{background:transparent;border:1px solid transparent;color:#9CA3AF;border-radius:999px;padding:5px 10px;font-size:12px;cursor:pointer;transition:all .15s}
.tm-ttl button:hover{background:#F3F4F6;color:#4B5563}
.tm-ttl button.active{background:#0E7C7B;color:#fff;border-color:#0E7C7B}

/* ---------- inbox ---------- */
.tm-inbox{background:#fff;border:1px solid #E5E7EB;border-radius:18px;box-shadow:0 4px 24px rgba(17,24,39,.06);overflow:hidden;margin-bottom:8px}
.tm-inbox-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #F3F4F6}
.tm-tabs{display:flex;gap:4px}
.tm-tabs button{background:transparent;border:0;color:#6B7280;font-size:14px;font-weight:600;padding:8px 14px;border-radius:10px;cursor:pointer}
.tm-tabs button.active{background:#F0FDFA;color:#0E7C7B}
.tm-inbox-head .tm-btn{min-height:38px;font-size:13px}
.tm-list{max-height:480px;overflow-y:auto}
.tm-empty{text-align:center;padding:56px 20px;color:#9CA3AF}
.tm-empty .tm-big{margin-bottom:10px;color:#D1D5DB}
.tm-empty .tm-big svg{width:52px;height:52px}
.tm-msg{display:flex;gap:12px;align-items:center;padding:14px 18px;border-bottom:1px solid #F3F4F6;cursor:pointer;transition:background .15s}
.tm-msg:last-child{border-bottom:0}
.tm-msg:hover{background:#F9FAFB}
.tm-ava{width:38px;height:38px;border-radius:50%;background:#E0F2F1;color:#0E7C7B;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0}
.tm-body{flex:1;min-width:0}
.tm-from{font-size:13px;color:#6B7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-sub{font-size:14px;color:#111827;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-code{background:#ECFDF5;color:#047857;font-family:ui-monospace,Menlo,Consolas,monospace;font-weight:700;font-size:15px;padding:8px 14px;border-radius:10px;cursor:pointer;border:1px dashed #6EE7B7;transition:background .15s;flex-shrink:0}
.tm-code:hover{background:#D1FAE5}
.tm-time{font-size:12px;color:#9CA3AF;flex-shrink:0}

/* ---------- content sections (SEO) ---------- */
.tm-section{max-width:880px;margin:0 auto;padding:36px 20px}
.tm-section h2{font-size:26px;font-weight:800;color:#111827;text-align:center;margin:0 0 8px;letter-spacing:-.01em}
.tm-sub{text-align:center;color:#6B7280;font-size:15px;margin:0 0 28px}
.tm-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.tm-feat{background:#fff;border:1px solid #E5E7EB;border-radius:14px;padding:22px;transition:box-shadow .2s,transform .2s}
.tm-feat:hover{box-shadow:0 8px 28px rgba(17,24,39,.08);transform:translateY(-2px)}
.tm-ico{margin-bottom:12px;color:#0E7C7B}
.tm-ico svg{width:28px;height:28px;display:block}
.tm-feat h3{font-size:15px;font-weight:700;color:#111827;margin:0 0 8px}
.tm-feat p{font-size:13.5px;color:#6B7280;margin:0;line-height:1.6}
.tm-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.tm-step{background:#fff;border:1px solid #E5E7EB;border-radius:14px;padding:24px;text-align:center}
.tm-n{width:36px;height:36px;border-radius:50%;background:#0E7C7B;color:#fff;font-weight:700;display:inline-flex;align-items:center;justify-content:center;margin-bottom:12px}
.tm-step h3{font-size:15px;color:#111827;margin:0 0 8px}
.tm-step p{font-size:13.5px;color:#6B7280;margin:0;line-height:1.6}
.tm-prose{max-width:680px;margin:0 auto;color:#4B5563;font-size:15px;line-height:1.75}
.tm-prose p{margin:0 0 16px}
.tm-prose strong{color:#111827}
.tm-faq{max-width:680px;margin:0 auto}
.tm-faq details{background:#fff;border:1px solid #E5E7EB;border-radius:12px;margin-bottom:10px;overflow:hidden}
.tm-faq summary{padding:16px 18px;font-weight:600;font-size:14.5px;color:#111827;cursor:pointer;list-style:none}
.tm-faq summary::-webkit-details-marker{display:none}
.tm-faq details[open] summary{border-bottom:1px solid #F3F4F6}
.tm-faq details p{padding:0 18px 16px;margin:0;font-size:14px;color:#6B7280;line-height:1.65}
.tm-footer{text-align:center;padding:28px 20px 8px;color:#9CA3AF;font-size:13px}
.tm-footer div{margin-bottom:4px}

/* ---------- modals ---------- */
.tm-modal{position:fixed;inset:0;background:rgba(17,24,39,.45);display:flex;align-items:center;justify-content:center;z-index:100;padding:20px;backdrop-filter:blur(2px)}
.tm-modal[hidden]{display:none}
.tm-modal-box{background:#fff;border-radius:18px;padding:26px;max-width:420px;width:100%;box-shadow:0 20px 60px rgba(0,0,0,.18)}
.tm-modal-box h3{margin:0 0 10px;color:#111827;font-size:17px}
.tm-modal-box p{font-size:14px;color:#6B7280;margin:0 0 16px}
.tm-modal-box input{width:100%;box-sizing:border-box;border:1.5px solid #E5E7EB;border-radius:10px;padding:12px;font-size:16px;margin-bottom:12px;outline:none}
.tm-modal-box input:focus{border-color:#0E7C7B}
.tm-msgbox{max-width:560px}
.tm-msgbox-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.tm-msgbox-from{font-weight:700;color:#111827;font-size:14px}
.tm-msgbox-sub{color:#4B5563;font-size:14px;margin-top:2px}
.tm-msgbox-time{color:#9CA3AF;font-size:12px;margin-top:4px}
.tm-msgbox-code{display:flex;align-items:center;gap:10px;background:#ECFDF5;border:1px dashed #6EE7B7;border-radius:10px;padding:10px 14px;margin-bottom:14px;font-size:13px;color:#047857}
.tm-msgbox-body{max-height:50vh;overflow-y:auto;font-size:14px;color:#374151;line-height:1.7;border-top:1px solid #F3F4F6;padding-top:14px}
.tm-bodyframe{width:100%;min-height:200px;border:0}
.tm-bodytext{white-space:pre-wrap;word-break:break-word}
.tm-bodytext a{color:#0E7C7B;text-decoration:underline;overflow-wrap:anywhere}

/* ---------- toast ---------- */
.tm-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);background:#111827;color:#fff;font-size:14px;padding:12px 22px;border-radius:999px;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;z-index:200;box-shadow:0 8px 28px rgba(0,0,0,.2)}
.tm-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* ---------- responsive ---------- */
@media(max-width:640px){
  .tm-wrap{padding:14px 12px 32px}
  .tm-hero h1{font-size:28px}
  .tm-hero{margin-bottom:14px}
  .tm-email-row{flex-direction:row;align-items:center}
  .tm-addr{flex:1;min-width:0}
  .tm-addr input#tm-username{width:9ch}
  .tm-addr select#tm-domain{max-width:120px;font-size:13px}
  .tm-btn-copy{padding:0 10px}
  .tm-btn-copy span{display:none}
  .tm-card{padding:16px 14px 12px}
  .tm-actions-sub{flex-direction:column;align-items:stretch;gap:6px}
  .tm-ttl{justify-content:center}
  .tm-subactions{justify-content:center}
  .tm-msgbox-body{max-height:60vh}
  .tm-actions .tm-btn{flex:1 1 45%}
}
@media(min-width:641px) and (max-width:900px){
  .tm-addr input#tm-username{width:10ch}
}
