:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.6;font-weight:400;background-color:#0a0f1c;color:#e5e7eb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 20% 20%,#111827,#0a0f1c 50%)}#root{min-height:100vh}.app-root,body,html{background:#f7f9fc;color:#0f172a}.page{max-width:1600px;margin:0 auto;padding:32px 20px 64px;display:flex;flex-direction:column;gap:28px;min-height:calc(100vh - 100px);background:#f7f9fc}.welcome-banner{background:linear-gradient(135deg,#3b82f61f,#2563eb14);border:1px solid rgba(59,130,246,.22);border-radius:12px;padding:24px 28px;text-align:center;max-width:800px;margin:0 auto}.welcome-banner h2{margin:0 0 12px;font-size:24px;color:#0f172a;font-weight:600}.welcome-banner p{margin:0;color:#334155;font-size:15px;line-height:1.6}.hero{background:linear-gradient(135deg,#e8f0ff,#f4f7ff 55%,#edf2ff);color:#0f172a;padding:28px;border-radius:16px;border:1px solid #e2e8f0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;box-shadow:0 14px 40px #0f172a1f}.badge{display:inline-block;padding:6px 12px;border-radius:999px;background:#3b82f61f;color:#0f172a;font-weight:600;letter-spacing:.2px;margin:0 0 10px}.hero h1{margin:0 0 10px;font-size:28px;letter-spacing:-.4px}.lead{margin:0;color:#0f172a;max-width:720px;line-height:1.5}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.primary,.secondary,.ghost{border:none;border-radius:10px;padding:12px 18px;font-weight:600;cursor:pointer;transition:transform .12s ease,box-shadow .16s ease,background .16s ease}.primary{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;box-shadow:0 14px 36px #2563eb66}.primary:hover{transform:translateY(-1px);box-shadow:0 18px 44px #2563eb7a}.secondary{background:#0f172a;color:#dbeafe;border:1px solid rgba(148,163,184,.2)}.secondary:hover{transform:translateY(-1px);background:#111827}.ghost{background:transparent;color:#0f172a;border:1px solid rgba(148,163,184,.2)}.ghost:hover{transform:translateY(-1px);background:#ffffff08}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}.card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:20px;color:#0f172a;box-shadow:0 10px 30px #0f172a14}.card h3{margin:0 0 12px}.card p{margin:0}.profile .card-header{display:flex;gap:6px;margin-bottom:14px}.dot{width:10px;height:10px;border-radius:50%;background:#334155}.profile-body{display:flex;gap:12px;align-items:center;margin-bottom:12px}.avatar{width:48px;height:48px;border-radius:12px;background:linear-gradient(135deg,#2563eb,#1d4ed8);display:grid;place-items:center;font-weight:700;color:#fff;letter-spacing:.5px}.muted{color:#0f172a;font-size:14px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.value{font-size:20px;font-weight:700}.pill{display:inline-block;padding:6px 10px;border-radius:999px;background:#34d3991f;color:#34d399;font-weight:600;font-size:14px}.ghost-pill{background:#94a3b81f;color:#0f172a}.form-card{display:flex;flex-direction:column;gap:14px}.login-card{grid-column:1 / -1;width:100%;max-width:800px;margin:0 auto;padding:40px;justify-self:center}.login-form{gap:20px}.login-form label{font-size:15px}.login-form input{padding:14px 16px;font-size:15px}.login-form button{padding:14px 24px;font-size:16px;margin-top:8px}.form{display:flex;flex-direction:column;gap:10px}label{display:flex;flex-direction:column;gap:6px;font-weight:600;color:#0f172a;font-size:14px}input{border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;background:#fff;color:#0f172a;outline:none;transition:border .14s ease,box-shadow .16s ease}input:focus{border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f62e}.block{width:100%;text-align:center;margin-top:6px}.user-list{display:flex;flex-direction:column;gap:8px;max-height:340px;overflow-y:auto}.user-row{width:100%;display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid rgba(148,163,184,.2);background:#0f172a99;color:#e5e7eb;border-radius:10px;cursor:pointer;justify-content:space-between;text-align:left;transition:border .12s ease,background .12s ease}.user-row:hover{border-color:#3b82f680;background:#2563eb14}.user-row.active{border-color:#3b82f6cc;background:#3b82f61f}.user-name{font-weight:700;letter-spacing:-.2px}.small-text{font-size:13px}.avatar.small{width:36px;height:36px;font-size:12px}.detail p{margin:6px 0;color:#0f172a}.detail textarea{border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;background:#fff;color:#0f172a;outline:none;transition:border .14s ease,box-shadow .16s ease;resize:vertical}.detail textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f62e}.email-body{min-height:200px;font-family:Monaco,Menlo,Courier New,monospace;font-size:14px;line-height:1.6;width:100%}.email-form{max-width:100%}.message-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.toolbar{display:flex;gap:8px;margin:8px 0}.toolbar button{border:1px solid #e2e8f0;background:#f8fafc;color:#0f172a;padding:6px 10px;border-radius:8px;cursor:pointer;font-weight:600;transition:all .15s ease}.toolbar button:hover{background:#e2e8f0}.field-group{display:flex;flex-direction:column;gap:6px}.field-label{font-weight:600;color:#0f172a;font-size:14px}.rte{min-height:220px;border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;background:#fff;color:#0f172a;font-size:14px;line-height:1.6;outline:none;cursor:text;transition:border .14s ease,box-shadow .16s ease;overflow-y:auto}.rte:focus{border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f62e}.rte:empty:before{content:attr(data-placeholder);color:#94a3b8;pointer-events:none}.mode-toggle{display:flex;gap:8px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;padding:2px}.mode-toggle button{padding:6px 12px;border:none;background:transparent;color:#475569;font-size:12px;font-weight:600;border-radius:6px;cursor:pointer;transition:all .2s ease}.mode-toggle button.active{background:#3b82f629;color:#1d4ed8}.mode-toggle button:hover{color:#0f172a}.alert{background:#fff7ed;border:1px solid #fdba74;color:#9a3412;padding:10px 12px;border-radius:10px;margin:0 0 10px}.row-actions{display:flex;gap:8px;margin-top:10px}.recipient-input{display:flex;flex-wrap:wrap;gap:6px;border:1px solid #cbd5e1;border-radius:10px;padding:8px;background:#fff}.recipient-input input{flex:1;min-width:160px;border:none;background:transparent;color:#0f172a;outline:none}.recipient-input .add{border:1px dashed #cbd5e1;padding:6px 10px;border-radius:8px;color:#1d4ed8}.tag{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#2563eb1f;color:#1d4ed8;font-size:13px}.tag button{background:transparent;border:none;color:#1d4ed8;cursor:pointer;padding:0}.main-nav{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:#ffffffe6;border-bottom:1px solid #e5e7eb;margin:-32px -20px 28px;position:sticky;top:0;z-index:100;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.nav-brand a{text-decoration:none;color:inherit}.nav-links{display:flex;gap:20px;align-items:center}.nav-links a{color:#0f172a;text-decoration:none;font-weight:500;font-size:14px;padding:8px 12px;border-radius:8px;transition:all .2s ease}.nav-links a:hover{color:#1d4ed8;background:#3b82f61f}.nav-links a.active{color:#1d4ed8;background:#3b82f629}.nav-logout{background:#ef444414;color:#b91c1c;border:1px solid rgba(239,68,68,.25);border-radius:8px;padding:8px 16px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;margin-left:12px}.nav-logout:hover{background:#ef444424;border-color:#ef444466;color:#991b1b;transform:translateY(-1px)}.content-page{max-width:900px;margin:0 auto}.content-page .card{padding:32px;line-height:1.7;background:#fff;border:1px solid #e5e7eb;box-shadow:0 10px 26px #0f172a14}.content-page h2{margin-top:32px;margin-bottom:16px;font-size:24px;color:#0f172a;border-bottom:1px solid #e2e8f0;padding-bottom:8px}.content-page h2:first-of-type{margin-top:0}.content-page h3{margin-top:24px;margin-bottom:12px;font-size:18px;color:#0f172a}.content-page p{margin:12px 0;color:#0f172a}.content-page ul{margin:12px 0;padding-left:24px;color:#0f172a}.content-page li{margin:8px 0;line-height:1.6}.content-page a{color:#0f172a;text-decoration:underline}.content-page a:hover{color:#1d4ed8}.content-page strong{color:#0f172a;font-weight:600}.button{display:inline-block;padding:12px 24px;border-radius:10px;text-decoration:none;font-weight:600;transition:all .2s ease;border:none;cursor:pointer}.button.primary{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;box-shadow:0 14px 36px #2563eb66}.button.primary:hover{transform:translateY(-1px);box-shadow:0 18px 44px #2563eb7a}@media(max-width:700px){.hero{flex-direction:column;align-items:flex-start}.main-nav{flex-direction:column;gap:12px;align-items:flex-start}.nav-links{width:100%;flex-direction:column;align-items:stretch;gap:8px}.content-page .card{padding:20px}}.app-footer{margin-top:auto;padding-top:32px;border-top:1px solid rgba(148,163,184,.1)}.footer-content{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}.footer-text{margin:0;color:#0f172a;font-size:14px}.footer-links{display:flex;align-items:center;gap:12px}.footer-links a{color:#0f172a;text-decoration:none;font-size:14px;transition:color .2s ease}.footer-links a:hover{color:#1d4ed8}.footer-separator{color:#475569}.email-layout{grid-template-columns:1fr 1fr;gap:24px}.email-form-card{min-height:600px}.email-preview-wrapper{display:flex;flex-direction:column}.email-preview{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:20px;height:100%;min-height:600px;display:flex;flex-direction:column}.preview-header{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #e2e8f0}.preview-header h3{margin:0;font-size:18px;color:#0f172a}.preview-content{flex:1;display:flex;flex-direction:column;gap:12px}.preview-field{display:flex;gap:8px;padding:8px 0}.preview-label{font-weight:600;color:#334155;min-width:60px;font-size:14px}.preview-value{color:#0f172a;font-size:14px;word-break:break-word}.preview-separator{height:1px;background:#e2e8f0;margin:12px 0}.preview-body{flex:1;padding:16px;background:#fff;border-radius:8px;border:1px solid #e5e7eb;overflow-y:auto;max-height:400px}.preview-text{color:#0f172a;font-size:14px;line-height:1.6;white-space:pre-wrap;word-wrap:break-word}.preview-html{color:#0f172a;font-size:14px;line-height:1.6}.preview-html h1,.preview-html h2,.preview-html h3{color:#0f172a;margin-top:0}.preview-html p{margin:8px 0}.preview-html a{color:#1d4ed8;text-decoration:underline}.send-progress{margin-top:16px;padding-top:12px;border-top:1px solid rgba(148,163,184,.2);display:flex;flex-direction:column;gap:8px}.progress-row{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#0f172a;flex-wrap:wrap}.progress-row.live span:first-of-type{font-weight:600}.progress-stats{display:flex;gap:8px;flex-wrap:wrap}.badge.info{background:#3b82f624;color:#1d4ed8}.badge.success{background:#34d39929;color:#047857}.badge.danger{background:#f871712e;color:#b91c1c}@media(max-width:1024px){.email-layout{grid-template-columns:1fr}.footer-content{flex-direction:column;text-align:center}}
