:root{
  --bg:#111418;--outlook:#202124;--pane:#081017;--card:#0f1720;--border:#263241;
  --text:#f8fafc;--muted:#94a3b8;--accent:#e5c500;--green:#86efac;--red:#fca5a5;--blue:#93c5fd
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%}
body{background:var(--bg);color:var(--text);font-family:"Segoe UI",Arial,sans-serif}
button,input,textarea,select{font:inherit}a{color:inherit}
.topbar{height:48px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #30343a;background:#0d1014}
.brand{color:var(--accent);font-weight:800;text-decoration:none}.back{color:#aab2bd;font-size:12px;text-decoration:none}
.app{min-height:calc(100vh - 48px);display:grid;grid-template-columns:minmax(580px,1fr) 410px}
.outlook{display:flex;flex-direction:column;background:var(--outlook)}
.ribbon{min-height:82px;padding:10px 14px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #3a3f46;background:#191b1f}
.send{width:64px;height:58px;border:1px solid #555d68;border-radius:5px;background:#333840;color:#fff;cursor:pointer}
.rbtn{min-width:72px;height:56px;border:0;border-radius:5px;background:transparent;color:#d5d8dc;font-size:11px}
.riq{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.riq img{width:30px;height:30px;object-fit:contain}
.compose{flex:1;display:flex;flex-direction:column}.row{min-height:42px;display:grid;grid-template-columns:82px 1fr;align-items:center;border-bottom:1px solid #3a3d42}
.row label{padding-right:14px;color:#aab0b7;text-align:right;font-size:12px}.row input{width:100%;height:100%;padding:0 12px;border:0;outline:0;background:transparent;color:#fff}
.mail{flex:1;min-height:280px;padding:18px;border:0;outline:0;resize:none;background:#24272c;color:#f0f2f4;line-height:1.6}
.pane{padding:14px;overflow-y:auto;border-left:1px solid #374151;background:var(--pane)}
.head{display:flex;align-items:center;gap:11px;margin-bottom:12px}.head img{width:46px;height:46px;object-fit:contain}.head h1{margin:0;font-size:20px}.byline{color:#64748b;font-size:10px}
.switch{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:12px}.switch a{padding:7px 6px;border:1px solid var(--border);border-radius:7px;background:var(--card);color:var(--muted);text-align:center;text-decoration:none;font-size:10px;font-weight:700}
.switch a.active{border-color:rgba(229,197,0,.6);background:rgba(229,197,0,.08);color:var(--accent)}
.tier{margin-bottom:10px;padding:13px;border:1px solid rgba(229,197,0,.24);border-radius:9px;background:linear-gradient(180deg,rgba(229,197,0,.07),rgba(15,23,32,.9))}
.tierline{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.tiername{font-weight:800}.price{color:var(--accent);font-size:12px;font-weight:800}.desc{margin-top:6px;color:var(--muted);font-size:10px;line-height:1.5}
.panel,.rcard{margin-bottom:10px;padding:12px;border:1px solid var(--border);border-radius:9px;background:var(--card)}.ptitle{margin-bottom:9px;font-size:12px;font-weight:700}
.mode-options{display:flex;gap:18px;flex-wrap:wrap}
.mode-options label{display:flex;align-items:center;gap:6px;font-size:11px;color:#e5e7eb;cursor:pointer}
.mode-options input{accent-color:var(--accent)}
.small{color:var(--muted);font-size:10px;line-height:1.5}
.reciph{display:flex;justify-content:space-between;gap:8px;margin-bottom:10px}.email{font-size:12px;font-weight:700;overflow-wrap:anywhere}.kind{margin-top:3px;color:var(--muted);font-size:9px}
.badge{padding:2px 6px;border-radius:999px;font-size:8px;font-weight:800}.ext{background:rgba(250,204,21,.08);color:#facc15}.int{background:rgba(134,239,172,.08);color:var(--green)}
.flabel{display:block;margin:8px 0 4px;color:var(--muted);font-size:9px}
select{width:100%;padding:7px 8px;border:1px solid #334155;border-radius:5px;background:#0b141c;color:#fff;font-size:11px}
.auto{padding:8px 9px;border:1px solid #263a4e;border-radius:5px;background:#0a1520;color:var(--blue);font-size:11px}.auto strong{color:#dbeafe}
.confirm{width:100%;padding:10px;border:0;border-radius:6px;background:var(--accent);color:#081017;font-size:11px;font-weight:800;cursor:pointer}
.summary{padding:5px 0;border-bottom:1px solid #1e293b;color:#cbd5e1;font-size:10px;line-height:1.4}.status{margin-top:9px;color:var(--muted);font-size:10px}.status.ok{color:var(--green)}.status.err{color:var(--red)}
.modalbg{display:none;position:fixed;inset:0;z-index:100;padding:20px;align-items:center;justify-content:center;background:rgba(0,0,0,.72)}.modalbg.show{display:flex}
.modal{width:min(680px,100%);max-height:80vh;overflow:auto;padding:20px;border:1px solid #334155;border-radius:12px;background:#0f1720}
pre{padding:12px;border:1px solid var(--border);border-radius:7px;background:#081017;color:#dbeafe;font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}.close{padding:9px 15px;border:0;border-radius:6px;background:var(--accent);color:#081017;font-weight:800}
@media(max-width:920px){.app{grid-template-columns:1fr}.pane{border-left:0;border-top:1px solid #374151}}
