
      * { box-sizing: border-box; margin: 0; padding: 0; }
      body {
        background-color: #0b0f17;
        color: #e2e8f0;
        font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        min-height: 100vh;
      }
      .inbox-shell {
        position: relative;
        max-width: 860px;
        margin: 0 auto;
        padding: 24px 16px 60px;
        min-height: 100vh;
      }
      .center-content {
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .glow-bg {
        position: absolute;
        top: -100px;
        left: 50%;
        transform: translateX(-50%);
        width: 600px;
        height: 300px;
        background: radial-gradient(circle, rgba(147, 197, 253, 0.12) 0%, rgba(11, 15, 23, 0) 70%);
        pointer-events: none;
        z-index: 0;
      }
      .inbox-header {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      }
      .brand-group {
        display: flex;
        align-items: center;
        gap: 12px;
      }
      .brand-badge {
        width: 44px;
        height: 44px;
        background: #10150d;
        border: 1px solid #93c5fd;
        color: #93c5fd;
        font-weight: 900;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
      }
      .inbox-header h1 { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
      .subtitle { font-size: 12px; color: #94a3b8; margin-top: 2px; }
      .status-badge {
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.05);
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 11px;
        color: #cbd5e1;
        border: 1px solid rgba(255, 255, 255, 0.1);
      }
      .live-dot {
        width: 8px;
        height: 8px;
        background: #10b981;
        border-radius: 50%;
      }
      .search-form {
        margin-bottom: 24px;
      }
      .input-wrapper {
        display: flex;
        align-items: center;
        background: rgba(30, 41, 59, 0.6);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(147, 197, 253, 0.3);
        border-radius: 14px;
        padding: 6px 8px 6px 16px;
        gap: 10px;
        transition: border-color 0.2s, box-shadow 0.2s;
      }
      .input-wrapper:focus-within {
        border-color: #93c5fd;
        box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.15);
      }
      .search-icon { font-size: 16px; opacity: 0.7; }
      .search-input {
        flex: 1;
        background: transparent;
        border: none;
        outline: none;
        color: #fff;
        font-size: 14px;
        font-family: inherit;
      }
      .search-btn {
        background: #93c5fd;
        color: #0b0f17;
        border: none;
        padding: 10px 18px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 800;
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.2s;
      }
      .search-btn:hover { background: #bfdbfe; }
      .empty-card, .loader-card {
        background: rgba(30, 41, 59, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        padding: 48px 24px;
        text-align: center;
        max-width: 480px;
        margin: 40px auto;
      }
      .empty-icon { font-size: 48px; margin-bottom: 16px; }
      .empty-card h3 { font-size: 18px; color: #fff; margin-bottom: 8px; }
      .empty-card p { font-size: 13px; color: #94a3b8; line-height: 1.5; }
      .hint-text { color: #64748b; font-size: 11px; margin-top: 12px; display: block; }
      .btn-primary {
        display: inline-block;
        margin-top: 18px;
        padding: 10px 18px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 800;
        text-decoration: none;
        background: #93c5fd;
        color: #0b0f17;
        transition: background 0.2s;
      }
      .btn-primary:hover { background: #bfdbfe; }
      .loader-card .spinner {
        width: 36px; height: 36px; border: 3px solid rgba(147, 197, 253, 0.2);
        border-top-color: #93c5fd; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px;
      }
      @keyframes spin { to { transform: rotate(360deg); } }
      .message-grid {
        display: grid;
        gap: 16px;
      }
      .message-card {
        background: rgba(30, 41, 59, 0.5);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 18px;
        cursor: pointer;
        transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
      }
      .message-card:hover {
        transform: translateY(-2px);
        border-color: rgba(147, 197, 253, 0.3);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      }
      .card-top {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: #94a3b8;
        margin-bottom: 8px;
      }
      .sender { font-weight: 700; color: #cbd5e1; }
      .subject { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
      .recipient-tag { font-size: 12px; color: #64748b; margin-bottom: 14px; }
      .recipient-tag code { color: #94a3b8; }
      .otp-box {
        background: rgba(147, 197, 253, 0.08);
        border: 1px solid rgba(147, 197, 253, 0.25);
        border-radius: 12px;
        padding: 12px 14px;
        margin-bottom: 12px;
      }
      .otp-label { font-size: 10px; font-weight: 800; color: #93c5fd; letter-spacing: 0.1em; margin-bottom: 6px; }
      .otp-row { display: flex; align-items: center; justify-content: space-between; }
      .otp-code { font-family: monospace; font-size: 24px; font-weight: 900; color: #fff; letter-spacing: 2px; }
      .copy-btn {
        background: #93c5fd;
        color: #0b0f17;
        border: none;
        padding: 8px 14px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 800;
        cursor: pointer;
        transition: 0.2s;
      }
      .copy-btn:hover { background: #bfdbfe; }
      .copy-btn.success { background: #10b981; color: #fff; }
      .card-footer { font-size: 12px; color: #38bdf8; font-weight: 600; text-align: right; }
      .modal-backdrop {
        position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(6px);
        display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px;
      }
      .modal-content {
        background: #1e293b; border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 20px; width: min(700px, 100%); max-height: 85vh; display: flex; flex-direction: column;
        overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
      }
      .modal-header {
        padding: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: flex; justify-content: space-between; align-items: flex-start;
      }
      .modal-header h2 { font-size: 18px; color: #fff; margin-bottom: 4px; }
      .modal-header p { font-size: 12px; color: #94a3b8; }
      .close-btn { background: none; border: none; color: #94a3b8; font-size: 20px; cursor: pointer; }
      .modal-otp-banner {
        background: #0f172a; border-bottom: 1px solid rgba(147, 197, 253, 0.2);
        padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
      }
      .modal-otp-banner small { font-size: 10px; font-weight: 800; color: #93c5fd; letter-spacing: 1px; display: block; }
      .modal-otp-banner strong { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: 2px; }
      .modal-body { flex: 1; overflow: auto; padding: 20px; background: #ffffff; color: #1e293b; }
      .email-iframe { width: 100%; height: 400px; border: none; background: #fff; }
      .plain-text-body { white-space: pre-wrap; font-family: monospace; font-size: 13px; color: #334155; }
    
/* Neutral palette and responsive/accessibility refinements. */
[hidden]{display:none!important}
button,input{font:inherit}
button{touch-action:manipulation}
button:focus-visible{outline:2px solid #93c5fd;outline-offset:4px}
.inbox-shell{overflow-x:clip}
.glow-bg{width:min(600px,100%)}
.brand-badge{flex-shrink:0;background:#111c2e;font-size:24px}
.inbox-header{gap:16px;flex-wrap:wrap}
.brand-group{min-width:0}
.status-badge{max-width:100%;overflow-wrap:anywhere}
.live-dot{flex-shrink:0;background:#60a5fa}
.search-input{min-width:0;min-height:40px}
.search-btn{font-size:13px;font-weight:800;min-height:42px}
.empty-card p,.hint-text,.subject,.recipient-tag,.sender,.modal-header p,.modal-header h2{overflow-wrap:anywhere}
.loader-card h2{font-size:17px;line-height:1.5;overflow-wrap:anywhere}
.loader-card p{font-size:13px;line-height:1.6;color:#94a3b8;margin-top:10px}
.card-top{gap:12px}
.time{flex-shrink:0}
.read-more{background:none;border:0;color:#93c5fd;font-size:12px;font-weight:600;cursor:pointer;padding:7px 0}
.otp-row{gap:12px}.otp-code{overflow-wrap:anywhere;min-width:0}.copy-btn{flex-shrink:0;min-height:40px;font-size:12px;font-weight:800}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
dialog.modal-content{margin:auto;padding:0;color:#e2e8f0;max-height:85dvh}
dialog.modal-content:not([open]){display:none}
dialog.modal-content::backdrop{background:rgba(0,0,0,.8);backdrop-filter:blur(6px)}
.modal-header{gap:12px;flex-shrink:0}.modal-header>div{min-width:0}
.close-btn{flex-shrink:0;min-width:36px;min-height:36px}
.modal-otp-banner{gap:12px;flex-shrink:0}
.modal-body{min-height:100px}.plain-text-body{overflow-wrap:anywhere}
.modal-open{overflow:hidden}
#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:200;background:#e2e8f0;color:#172033;border-radius:10px;padding:12px 20px;font-size:12px;max-width:90vw}
@media(max-width:540px){
.inbox-shell{padding:20px 14px 40px}
.inbox-header{align-items:flex-start;gap:12px}
.inbox-header h1{font-size:19px}.subtitle{font-size:11px;line-height:1.6}
.input-wrapper{flex-wrap:wrap;padding:8px 10px;gap:7px}
.search-input{font-size:16px;width:calc(100% - 30px)}
.search-btn{width:100%}
.empty-card,.loader-card{margin:26px auto;padding:35px 20px}
.card-top{flex-direction:column;gap:5px}
.message-card{padding:16px}
.modal-header{padding:15px}.modal-header h2{font-size:16px}
.modal-otp-banner{padding:14px 15px}.modal-body{padding:12px}
dialog.modal-content{width:calc(100% - 24px);max-height:90dvh;border-radius:14px}
.email-iframe{height:350px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

