/* X Mail Soft Navy — softer contrast and subtle effects, presentation only. */
:root {
  color-scheme: dark;
  --bg: #1c2739;
  --surface: #263449;
  --surface2: #2d3d54;
  --surface3: #354963;
  --border: rgba(198,213,238,.15);
  --border2: rgba(198,213,238,.26);
  --text: #f4f7fc;
  --text2: #d9e2f0;
  --text3: #b6c2d5;
  --text4: #a6b5ce;
  --green: #64d9a6;
  --red: #ff8897;
  --red-dim: rgba(255,136,151,.08);
  --orange-dim: rgba(var(--accent-rgb),.08);
  --orange-border: rgba(var(--accent-rgb),.25);
  --ui-accent: var(--orange);
  --ui-solid: #a34f1d;
  --ui-glass: rgba(38,52,73,.95);
  --ui-ambient: rgba(142,174,225,.09);
  --shadow-sm: 0 6px 20px -10px rgba(8,17,32,.32);
  --shadow-md: 0 20px 52px -24px rgba(8,17,32,.5);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
}
:root[data-appearance="light"] {
  color-scheme: light;
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface2: #f4f5f9;
  --surface3: #eaeef5;
  --border: #e4e7ef;
  --border2: #d5dbe6;
  --text: #202939;
  --text2: #4e5b70;
  --text3: #647087;
  --text4: #6e798d;
  --green: #15845c;
  --red: #c93d4c;
  --red-dim: rgba(201,61,76,.07);
  --ui-accent: #a34f1d;
  --ui-glass: rgba(255,255,255,.94);
  --ui-ambient: rgba(142,174,225,.05);
  --shadow-sm: 0 2px 8px rgba(29,42,70,.025);
  --shadow-md: 0 20px 64px -26px rgba(29,42,70,.2);
}
@supports (color: color-mix(in srgb, red, black)) {
  :root { --ui-accent: color-mix(in srgb, var(--orange) 84%, #ffffff); --ui-solid: color-mix(in srgb, var(--orange) 67%, #172139); }
  :root[data-appearance="light"] { --ui-accent: color-mix(in srgb, var(--orange) 67%, #172139); }
}
html { scroll-padding-top: 100px; }
body { background: var(--bg); background-image: radial-gradient(ellipse at 15% 0%,var(--ui-ambient),transparent 48%),radial-gradient(ellipse at 92% 75%,rgba(var(--accent-rgb),.035),transparent 48%); color: var(--text); font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.5; min-height: 100vh; min-height: 100svh; }
button,input,textarea,select { font-family: inherit; }
button,a,input,textarea,select,summary,[role="button"] { -webkit-tap-highlight-color: transparent; }
button,a,[role="button"] { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
input,textarea,select { min-width: 0; max-width: 100%; }
input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--ui-solid); cursor: pointer; }
a { color: var(--ui-accent); }
:focus-visible { outline: 3px solid var(--ui-accent); outline-offset: 3px; }
::selection { background: rgba(var(--accent-rgb),.2); }
.orb { display: none; }
.topbar { height: 76px; min-height: 76px; background: var(--ui-glass); padding: 0 max(24px, calc((100vw - 1160px) / 2)); gap: 18px; animation: none; }
.brand { font-size: 21px; letter-spacing: -.6px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; }
.brand em,.sidebar-brand em { display: inline-flex; justify-content: center; align-items: center; width: 35px; height: 35px; border-radius: 11px; background: var(--ui-solid); color: #fff; -webkit-text-fill-color: #fff; font-size: 22px; font-style: normal; font-weight: 800; }
.nav-links,.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar > .nav-btn,.topbar > .tag { margin-left: auto; }
.nav-btn,.btn-top,.logout { min-height: 40px; border-radius: 10px; background: var(--surface); border-color: var(--border); color: var(--text2); font-size: 12px; font-weight: 600; padding: 9px 14px; }
.nav-btn:hover,.btn-top:hover,.logout:hover { color: var(--ui-accent); background: var(--orange-dim); transform: none; }
.nav-btn svg,.btn svg { width: 16px; height: 16px; }
.ui-appearance { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 40px; height: 40px; min-width: 40px; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--text2); flex: 0 0 auto; font-size: 12px; }
.ui-appearance:hover { background: var(--surface2); color: var(--ui-accent); transform: none; }
.ui-appearance svg { width: 18px; height: 18px; }
.ui-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--ui-accent); font-size: 11px; letter-spacing: 1.8px; font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.ui-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ui-hero-copy { color: var(--text3); font-size: 15px; line-height: 1.8; max-width: 360px; }
.btn-login,.btn-create,#btnClaim { background: var(--ui-solid); color: #fff; border-radius: 11px; min-height: 44px; padding: 11px 18px; font-weight: 650; box-shadow: 0 4px 12px rgba(var(--accent-rgb),.12); }
.btn-login:hover,.btn-create:hover,#btnClaim:hover { background: var(--ui-solid); filter: brightness(1.08); transform: none; }
.field input,.lf input,.finput,.page-token .main input { background: var(--surface); border-color: var(--border2); min-height: 46px; border-radius: 11px; }
.field label,.lf label,.form-label,.page-token .main label { font-size: 12px; color: var(--text2); text-transform: none; letter-spacing: 0; font-weight: 600; }
.form-label .step { background: var(--ui-solid); width: 21px; height: 21px; }
.field input:focus,.lf input:focus,.finput:focus { border-color: var(--ui-accent); }
footer { position: static; padding: 22px 16px; color: var(--text3); font-size: 11px; background: transparent; border: 0; }
.toast { background: var(--text); color: var(--surface); max-width: min(440px, calc(100vw - 32px)); line-height: 1.5; overflow-wrap: anywhere; }

/* Public temporary inbox: a clear two-column workspace. */
body.page-tempmail { padding: 116px 24px 0; justify-content: flex-start; align-items: stretch; }
.ui-workspace { display: grid; grid-template-columns: minmax(0,.94fr) minmax(0,1.1fr); gap: 52px; width: 100%; max-width: 1120px; margin: auto; align-items: start; padding: 44px 0; }
.ui-compose { min-width: 0; padding: 20px 0; }
.page-tempmail .hero { text-align: left; margin: 0 0 30px; animation: none; }
.page-tempmail .hero h1 { font-size: clamp(40px,4.3vw,60px); line-height: 1.12; letter-spacing: -2.8px; margin-bottom: 18px; font-weight: 750; }
.page-tempmail .hero h1 span { display: block; color: var(--ui-accent); }
.page-tempmail .tagline { justify-content: flex-start; gap: 10px; margin-top: 14px; }
.page-tempmail .tagline span { font-size: 11px; color: var(--text3); }
.page-tempmail .tagline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text3); font-size: 0; }
.ui-field-label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 9px; color: var(--text2); }
.page-tempmail .email-box { max-width: none; background: var(--surface); border-color: var(--border2); border-radius: 14px; box-shadow: var(--shadow-sm); animation: none; min-height: 62px; margin-bottom: 12px; }
.page-tempmail .email-icon { color: var(--ui-accent); padding: 0 12px 0 16px; }
.page-tempmail .email-field { font-size: 15px; padding: 18px 0; }
.page-tempmail .copy-btn { padding: 0; width: 42px; height: 44px; margin: 7px 0; color: var(--text2); }
.page-tempmail .copy-btn svg { margin: auto; width: 17px; height: 17px; }
.page-tempmail .apply-btn { padding: 12px 8px; color: var(--ui-accent); letter-spacing: 0; }
.page-tempmail .btns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0 0 16px; animation: none; }
.page-tempmail .btn { justify-content: center; padding: 10px 8px; font-size: 12px; min-height: 43px; background: transparent; border-color: var(--border2); color: var(--text2); }
.page-tempmail .btn:hover { background: var(--surface); transform: none; }
.ui-helper { font-size: 11px; line-height: 1.7; color: var(--text3); }
.page-tempmail .inbox { max-width: none; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 0; min-height: 370px; box-shadow: var(--shadow-md); animation: none; scroll-margin-top: 90px; overflow: hidden; }
.page-tempmail .inbox-hdr { padding: 23px 24px; border-bottom: 1px solid var(--border); margin-bottom: 0; gap: 8px; }
.page-tempmail .inbox-hdr > span:first-child { font-size: 14px; font-weight: 650; letter-spacing: -.2px; text-transform: none; color: var(--text); }
.page-tempmail #inboxMeta { font-size: 10px; letter-spacing: 0; text-transform: none; color: var(--text3); text-align: right; }
.live-dot,.live,.dot-live { background: var(--green); box-shadow: none; animation: none; }
.page-tempmail #inboxList { padding: 8px 0; }
.page-tempmail .email-card { background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 17px 24px; margin: 0; box-shadow: none; animation: none; }
.page-tempmail .email-card:last-child { border-bottom: 0; }
.page-tempmail .email-card.unread { background: var(--orange-dim); box-shadow: inset 3px 0 var(--orange); }
.page-tempmail .email-card:hover { background: var(--surface2); transform: none; }
.page-tempmail .card-subj { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.page-tempmail .card-from,.page-tempmail .card-preview { font-size: 12px; overflow-wrap: anywhere; }
.page-tempmail .card-time { font-size: 10px; margin-top: 8px; opacity: 1; }
.page-tempmail .empty { padding: 64px 24px; font-size: 13px; }
.page-tempmail .empty svg { width: 46px; height: 46px; opacity: .4; color: var(--ui-accent); }
.page-tempmail .ui-initial-empty p { color: var(--text2); font-size: 14px; font-weight: 600; }
.page-tempmail .ui-initial-empty span { font-size: 12px; }
.page-tempmail footer { margin-top: auto; }
.domain-item .d-name { color: var(--text); overflow-wrap: anywhere; min-width: 0; }
.domain-item:hover .d-name,.domain-item:hover .d-use { color: var(--ui-accent); }

/* Login and token entry. Form names, method and event handlers remain original. */
.page-login .main { width: 100%; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,420px); gap: 100px; padding: 60px 30px; align-content: center; }
.ui-login-intro { min-width: 0; }
.ui-login-intro h2 { font-size: clamp(40px,4vw,57px); line-height: 1.15; letter-spacing: -2.3px; margin-bottom: 20px; }
.ui-login-intro h2 span { color: var(--ui-accent); }
.ui-mail-art { width: 204px; height: 140px; margin-top: 36px; position: relative; }
.ui-mail-art::before { content: ''; position: absolute; width: 160px; height: 112px; border-radius: 26px; background: var(--orange-dim); top: 12px; left: 30px; transform: rotate(-10deg); }
.ui-mail-art svg { width: 112px; height: 86px; padding: 23px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; position: absolute; top: 24px; left: 51px; color: var(--ui-accent); box-shadow: var(--shadow-md); transform: rotate(7deg); }
.page-login .card,.page-token .main .card,.login-card { max-width: 420px; padding: 34px; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-md); animation: none; }
.page-login .card-brand,.login-brand { text-align: left; margin-bottom: 28px; }
.page-login .card-brand h1,.login-brand h1 { font-size: 26px; letter-spacing: -.8px; margin-bottom: 7px; }
.page-login .card-brand p,.login-brand p { font-size: 13px; color: var(--text3); line-height: 1.6; }
.field,.lf { margin-bottom: 19px; }
.ui-card-note { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 22px; font-size: 11px; line-height: 1.7; color: var(--text3); }
.page-token .main { background: none; padding: 42px 20px; }
.page-token .main .card h1 { text-align: left; font-size: 27px; letter-spacing: -.8px; }
.page-token .main .sub { text-align: left; margin-bottom: 25px; font-size: 13px; }
.page-token .main .note { text-align: left; font-size: 12px; }
.page-token .topbar { justify-content: space-between; }
.page-admin .login-wrap { min-height: calc(100svh - 70px); }
.ui-admin-login-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.ui-admin-login-tools .ui-eyebrow { margin: 0; }

/* Personal inbox and public viewers. */
.page-inbox .page,.page-viewer .wrap,.page-token > .wrap { max-width: 980px; width: 100%; padding: 38px 24px; }
.page-inbox .page-head { gap: 16px; flex-wrap: wrap; margin-bottom: 23px; }
.page-inbox .page-head h2 { font-size: 29px; letter-spacing: -.8px; }
.page-inbox .meta-info { font-size: 12px; }
.page-inbox #emailList,.page-viewer #list,.page-token #list { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.page-inbox .email-card,.page-viewer #list .card,.page-token .ecard { background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; margin: 0; padding: 21px 24px; animation: none; min-width: 0; }
.page-inbox .email-card:last-child,.page-viewer #list .card:last-child,.page-token .ecard:last-child { border-bottom: 0; }
.page-inbox .email-card:hover,.page-viewer #list .card:hover,.page-token .ecard:hover { background: var(--surface2); transform: none; box-shadow: none; }
.page-inbox .email-card.unread { background: var(--orange-dim); box-shadow: inset 3px 0 var(--orange); }
.page-inbox .card-subj,.page-viewer .s,.page-token .ecard .s { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.page-inbox .card-field .val { overflow-wrap: anywhere; min-width: 0; }
.page-inbox .card-fields { gap: 5px; }
.page-inbox .btn-view,.page-inbox .btn-dash { color: var(--ui-accent); }
.page-inbox .user-tag { font-size: 11px; }
.page-viewer { padding: 76px 0 0; }
.page-viewer .hero { text-align: left; margin: 0 0 30px; }
.page-viewer .hero h1 { font-size: 32px; letter-spacing: -1px; }
.page-viewer .hero p { font-size: 13px; overflow-wrap: anywhere; }
.page-viewer .hdr { font-size: 12px; letter-spacing: 0; text-transform: none; gap: 16px; }
.page-viewer .card .t,.page-token .ecard .t { opacity: 1; margin-top: 10px; }
.page-token .ihdr { gap: 14px; }
.page-token .ihdr .em { color: var(--ui-accent); min-width: 0; }
.page-token .logout { flex-shrink: 0; }
.page-viewer .empty,.page-token .empty { padding: 54px 24px; }

/* Email modals: content stays in the original sandboxed iframe. */
.modal { background: rgba(16,24,40,.46); backdrop-filter: blur(5px); padding: 24px; }
.modal-box,.mbox { border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 24px 90px rgba(0,0,0,.2); min-width: 0; }
.modal-head,.mh { align-items: center; padding: 19px 22px; gap: 14px; }
.modal-head h3,.mh h3 { min-width: 0; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; }
.close-btn,.cl { min-height: 38px; flex: 0 0 auto; width: auto; margin: 0; background: var(--surface2); color: var(--text2); border-color: var(--border); border-radius: 9px; white-space: nowrap; padding: 8px 12px; }
.close-btn:hover,.cl:hover { background: var(--surface3); color: var(--text); transform: none; }
.modal-meta,#mf { overflow-wrap: anywhere; }
iframe.modal-body { padding: 0; background: #fff; }
.badge-html { background: var(--surface2); color: var(--text3); border-color: var(--border); }

/* Admin shell. */
.page-admin { overflow-x: visible; }
.admin-shell { min-height: calc(100svh - 48px); }
.sidebar { width: 236px; padding: 30px 16px 22px; background: var(--surface); height: 100vh; height: 100dvh; }
.sidebar-brand { font-size: 21px; padding: 0 12px 34px; gap: 8px; }
.sidebar-brand small { font-size: 8px; margin-left: auto; background: var(--surface2); border: 0; }
.side-nav { gap: 7px; }
.side-nav::before { content: 'WORKSPACE'; font-size: 10px; letter-spacing: 1.7px; color: var(--text3); padding: 0 14px 12px; font-weight: 650; }
.side-nav .tab { font-size: 13px; padding: 13px 15px; min-height: 46px; border-radius: 12px; gap: 12px; animation: none; }
.side-nav .tab .ic svg { width: 18px; height: 18px; }
.side-nav .tab:hover { background: var(--surface2); }
.side-nav .tab.active { background: var(--orange-dim); color: var(--ui-accent); box-shadow: inset 3px 0 var(--orange); }
.side-nav .tab.active::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-left: auto; }
.sidebar-bottom { gap: 12px; }
.sidebar-bottom .ui-appearance { width: 100%; justify-content: flex-start; padding: 0 12px; }
.sidebar-bottom .btn-out { min-height: 42px; }
.main-topbar { background: var(--ui-glass); padding: 23px 32px; gap: 16px; animation: none; }
.mt-left h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.8px; }
.mt-left p { font-size: 12px; line-height: 1.6; margin-top: 7px; }
.mt-right { gap: 12px; }
.stat-chips { gap: 0; }
.chip { background: transparent; border: 0; border-right: 1px solid var(--border); border-radius: 0; padding: 2px 12px; font-size: 10px; animation: none; }
.chip:last-child { border-right: 0; padding-right: 0; }
.chip b { font-size: 13px; }
.chip.hi b { color: var(--ui-accent); }
.chip svg { display: none; }
.theme-dots { gap: 5px; }
.t-dot { width: 23px; height: 23px; border: 5px solid var(--ui-glass); box-shadow: 0 0 0 1px transparent; animation: none; }
.t-dot.on { border-color: var(--ui-glass); box-shadow: 0 0 0 1.5px var(--text3); transform: none; }
.theme-mode-btn { padding: 6px 10px; font-size: 11px; background: var(--surface); color: var(--text2); }
.theme-mode-btn.on { color: var(--ui-accent); }
.hamburger { width: 42px; height: 42px; background: var(--surface); }
.main-content { max-width: 1320px; padding: 28px 32px 40px; }
.pane.active { animation: none; }
.toolbar { margin-bottom: 18px; }
.search-wrap { background: var(--surface); max-width: 460px; min-width: 0; border-color: var(--border); padding: 0 14px; border-radius: 12px; }
.search-wrap input { padding: 13px 0; font-size: 13px; min-width: 0; }
.live-tag { font-size: 11px; background: var(--surface); border: 1px solid var(--border); padding: 7px 10px; border-radius: 8px; }
.page-admin #emailList { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.page-admin .email-card { padding: 20px 22px; border-radius: 0; gap: 16px; animation: none; }
.page-admin .email-card:first-child { padding-top: 20px; }
.page-admin .email-card:last-child { border-bottom: 0; }
.page-admin .email-card:hover { transform: none; }
.page-admin .email-card:not(.unread) .ec-subj { color: var(--text2); }
.ec-avatar { width: 40px; height: 40px; border-radius: 13px; font-size: 14px; color: var(--ui-accent); margin-top: 3px; }
.ec-subj { font-size: 14px; font-weight: 650; }
.ec-fields { gap: 3px 16px; margin-top: 6px; }
.ec-field { font-size: 11px; }
.ec-preview { margin-top: 5px; font-size: 12px; }
.ec-time { font-size: 10px; }
.ec-actions { opacity: 1; gap: 3px; }
.ec-actions button { min-width: 34px; min-height: 38px; padding: 8px; }
.ec-actions .btn-del-card { color: var(--text3); }
.panel { box-shadow: var(--shadow-sm); border-radius: 18px; animation: none; }
.panel-head { padding: 19px 22px; gap: 12px; }
.panel-head h4 { text-transform: none; letter-spacing: -.2px; font-size: 14px; color: var(--text); font-weight: 650; }
.form-sec { padding: 18px 22px; }
.atype { padding: 14px; background: var(--surface); min-width: 0; }
.atype b { font-size: 13px; }
.atype small { font-size: 11px; line-height: 1.6; }
.atype.on b,.radio-opt.on,.panel-head .sel { color: var(--ui-accent); }
.radio-opt { min-width: 0; min-height: 42px; font-size: 12px; background: var(--surface); }
.create-bar { padding: 16px 22px; background: var(--surface2); flex-wrap: wrap; }
.create-sum { font-size: 12px; white-space: normal; line-height: 1.5; min-width: 110px; }
.u-header { gap: 12px; }
.u-header h4 { font-size: 15px; }
.tbl-wrap { max-width: 100%; }
.u-table { min-width: 0; table-layout: fixed; }
.u-table th { font-size: 10px; letter-spacing: .5px; padding: 13px 16px; background: var(--surface2); }
.u-table td { font-size: 12px; line-height: 1.6; padding: 16px; overflow-wrap: anywhere; }
.u-access,.u-wl { white-space: normal; overflow-wrap: anywhere; }
.u-pin { color: var(--ui-accent) !important; font-size: 12px; }
.u-table a { color: var(--ui-accent) !important; }
.u-table tr { animation: none !important; }
.u-table .action-row { flex-wrap: wrap; }
.btn-tog,.btn-del { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.btn-tog:hover { color: var(--ui-accent); border-color: var(--ui-accent); }
.dash-cards { gap: 16px; }
.dash-cards > div { background: var(--surface) !important; box-shadow: var(--shadow-sm); animation: none; }
.dash-cards .dash-num { font-size: 33px !important; letter-spacing: -1px !important; font-variant-numeric: tabular-nums; }
.dash-bottom { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.dash-bottom > div { min-width: 0; animation: none; }
.dash-bottom > div[style],#pane-dash .pane-inner > div[style],#pane-xpage .pane-inner > div[style],#pane-tokens .pane-inner > div[style]:not(.dash-bottom) { background: var(--surface) !important; }
#pane-tokens .pane-inner > div:hover,#pane-xpage .pane-inner > div:hover,#pane-dash .pane-inner > div:hover { transform: none !important; }
#tpageList { overflow-wrap: anywhere; }
#tpageList button { min-height: 36px; }
#claimTable td a,#xpageTable td a { overflow-wrap: anywhere; }
.ui-create-panel { scroll-margin-top: 140px; }
.ui-create-panel > summary { cursor: pointer; list-style: none; }
.ui-create-panel > summary::-webkit-details-marker { display: none; }
.ui-fold-icon { font-size: 22px; color: var(--ui-accent); line-height: 1; }
.ui-create-panel[open] .ui-fold-icon { transform: rotate(45deg); }
.page-admin > footer { margin-left: 236px; padding: 14px !important; }
.page-admin:has(.login-wrap) > footer { margin-left: 0; }

@media (min-width:1500px) { .ui-workspace { padding-top: 80px; padding-bottom: 80px; } }
@media (max-width:1100px) {
  .main-topbar { padding: 20px 24px; }
  .main-content { padding: 24px; }
  .sidebar { width: 208px; padding-left: 12px; padding-right: 12px; }
  .sidebar-brand { padding-left: 8px; padding-right: 8px; }
  .page-admin > footer { margin-left: 208px; }
  .page-login .main { gap: 50px; }
  .ui-workspace { gap: 30px; }
  .ec-subj-row { flex-wrap: wrap; gap: 4px 8px; }
  .ec-subj { flex-basis: 70%; }
  .ec-time { width: 100%; margin: 0; }
  .ec-fields { flex-direction: column; }
  .ec-field .val { max-width: 100%; }
  .form-2col { display: block; }
  .form-2col .form-sec { border-left: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width:820px) {
  body.ui-drawer-open { overflow: hidden; }
  .ui-workspace { grid-template-columns: 1fr; max-width: 600px; gap: 28px; padding: 16px 0 30px; }
  .ui-compose { padding: 0; }
  .page-tempmail .hero h1 { font-size: 44px; letter-spacing: -1.8px; }
  .page-tempmail .hero { margin-bottom: 24px; }
  .page-tempmail .inbox { min-height: 260px; }
  .page-login .main { grid-template-columns: minmax(0,430px); justify-content: center; gap: 28px; padding: 36px 24px; }
  .ui-login-intro h2 { font-size: 37px; line-height: 1.2; letter-spacing: -1.3px; margin-bottom: 12px; }
  .ui-login-intro h2 br { display: none; }
  .ui-mail-art { display: none; }
  .ui-login-intro .ui-hero-copy { max-width: none; font-size: 13px; }
  .page-login .card { max-width: none; }
  .hamburger { display: flex; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; max-width: calc(100vw - 44px); transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow-md); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(16,24,40,.45); z-index: 55; }
  .sidebar-overlay.show { display: block; }
  .page-admin > footer { margin-left: 0; }
  .main-topbar { padding: 16px 20px; }
  .main-content { padding: 24px 20px; }
  .mt-left h1 { font-size: 23px; }
  .mt-right { width: 100%; display: flex; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
  .stat-chips { display: flex; width: auto; gap: 0; }
  .chip { padding: 2px 10px; justify-content: flex-start; }
  .chip:first-child { padding-left: 0; }
  .theme-dots { justify-content: flex-start; }
  .dash-bottom { grid-template-columns: 1fr; }
  .u-table { width: 100%; table-layout: auto; }
  .u-table thead { display: none; }
  .u-table,.u-table tbody { display: block; }
  .u-table tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 16px; padding: 18px; border-bottom: 1px solid var(--border); }
  .u-table tbody tr:last-child { border-bottom: 0; }
  .u-table td { display: flex; flex-direction: column; border: 0; padding: 0; min-width: 0; max-width: none; font-size: 12px; align-items: flex-start; white-space: normal; overflow-wrap: anywhere; }
  .u-table td::before { content: attr(data-label); font-size: 10px; font-weight: 500; color: var(--text3); margin-bottom: 3px; font-family: inherit; letter-spacing: 0; }
  .u-table td[data-label=""]::before { display: none; }
  .u-table td:last-child { grid-column: 1 / -1; }
  .u-table .empty-row td { grid-column: 1 / -1; padding: 20px 0; align-items: center; }
  .u-table .empty-row td::before { display: none; }
  .u-table:has(#uSelectAll) thead { display: block; border-bottom: 1px solid var(--border); }
  .u-table:has(#uSelectAll) thead tr { display: block; }
  .u-table:has(#uSelectAll) thead th { display: none; }
  .u-table:has(#uSelectAll) thead th:first-child { display: flex; align-items: center; gap: 10px; width: 100% !important; border-bottom: 0; font-size: 11px; text-transform: none; letter-spacing: 0; padding: 13px 18px; }
  .u-table:has(#uSelectAll) thead th:first-child::after { content: 'Pilih semua'; }
  #userTable tr:not(.empty-row) { grid-template-columns: 22px minmax(0,1fr) minmax(0,1fr); gap: 10px 12px; }
  #userTable td:first-child { grid-column: 1; grid-row: 1; padding-top: 4px; }
  #userTable td:nth-child(2) { grid-column: 2 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
  #userTable td:nth-child(2)::before { display: none; }
  #userTable td:nth-child(3),#userTable td:nth-child(5) { grid-column: 2; }
  #userTable td:nth-child(4) { grid-column: 3; }
  #userTable td:last-child { grid-column: 2 / -1; }
  .u-table .btn-tog,.u-table .btn-del { min-height: 38px; }
  .u-table tr:hover td { background: transparent; }
  .tbl-wrap { overflow-x: visible !important; }
}
@media (max-width:520px) {
  .topbar { height: auto; min-height: 66px; padding: 12px 16px; gap: 10px; }
  .brand { font-size: 18px; gap: 6px; }
  .brand em { width: 30px; height: 30px; font-size: 20px; border-radius: 9px; }
  .nav-links,.topbar-right { gap: 6px; }
  .nav-btn,.btn-top,.logout { padding: 8px 10px; font-size: 11px; }
  .nav-btn svg { display: none; }
  .ui-appearance { width: 36px; height: 38px; min-width: 36px; }
  body.page-tempmail { padding: 90px 18px 0; }
  .ui-workspace { padding: 12px 0 20px; gap: 23px; margin: 0 auto; }
  .ui-eyebrow { font-size: 10px; margin-bottom: 12px; }
  .page-tempmail .hero h1 { font-size: 38px; letter-spacing: -1.6px; margin-bottom: 12px; }
  .ui-hero-copy { font-size: 13px; line-height: 1.7; }
  .page-tempmail .tagline { margin-top: 10px; gap: 8px; }
  .page-tempmail .tagline span { font-size: 10px; }
  .page-tempmail .hero { margin-bottom: 23px; }
  .page-tempmail .email-box { min-height: 58px; flex-wrap: wrap; }
  .page-tempmail .email-icon { padding-left: 12px; padding-right: 8px; }
  .page-tempmail .copy-btn { width: 36px; }
  .page-tempmail .email-field { width: 1px; font-size: 16px; }
  .page-tempmail .email-box:has(.apply-btn.show) .apply-btn { order: 5; width: 100%; justify-content: center; border: 0; border-top: 1px solid var(--border); background: var(--orange-dim); padding: 11px; }
  .page-tempmail .btn { font-size: 11px; gap: 5px; padding: 10px 4px; }
  .page-tempmail .btn svg { width: 14px; height: 14px; }
  .page-tempmail .btns { gap: 7px; margin-bottom: 12px; }
  .page-tempmail .inbox { border-radius: 18px; min-height: 240px; box-shadow: var(--shadow-sm); }
  .page-tempmail .inbox-hdr { padding: 18px; }
  .page-tempmail .email-card { padding: 16px 18px; }
  .page-login .main { padding: 28px 18px; gap: 22px; }
  .page-login .card,.page-token .main .card,.login-card { padding: 25px 23px; border-radius: 20px; }
  .page-login .card-brand h1 { font-size: 23px; }
  .ui-login-intro h2 { font-size: 32px; letter-spacing: -1px; }
  .ui-login-intro .ui-eyebrow { display: none; }
  .page-login .card-brand { margin-bottom: 23px; }
  .ui-card-note { margin-top: 18px; padding-top: 15px; }
  .page-inbox .topbar { align-items: flex-start; }
  .page-inbox .topbar > div:first-child { min-width: 0; }
  .page-inbox .user-tag { display: block; margin: 6px 0 0; font-size: 10px; overflow-wrap: anywhere; }
  .page-inbox .page,.page-viewer .wrap,.page-token > .wrap { padding: 26px 18px; }
  .page-inbox .email-card { padding: 18px; gap: 12px; }
  .page-inbox .card-body { width: 100%; }
  .page-inbox .card-fields .card-field:last-child { display: none; }
  .page-inbox .card-actions { flex-direction: row; width: 100%; min-width: 0; }
  .page-inbox .page-head { gap: 8px; }
  .page-inbox .page-head h2 { font-size: 25px; }
  .modal { padding: 12px; }
  .modal-head,.mh { padding: 16px; gap: 10px; }
  .modal-head h3,.mh h3 { font-size: 14px; }
  .modal-meta { padding: 12px 16px; }
  .modal-box,.mbox { border-radius: 16px; }
  .toast { left: 16px; right: 16px; bottom: 18px; text-align: center; }
  .main-topbar { padding: 15px 16px; gap: 13px; position: static; }
  .mt-left h1 { font-size: 23px; }
  .mt-left p { font-size: 11px; margin-top: 5px; }
  .mt-right { gap: 13px; }
  .stat-chips { width: 100%; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .chip { flex-direction: column; gap: 2px; align-items: flex-start; padding: 0 10px; font-size: 10px; white-space: normal; text-align: left; }
  .chip b { font-size: 18px; line-height: 1.35; font-variant-numeric: tabular-nums; }
  .theme-dots { gap: 6px; }
  .main-content { padding: 18px 14px 26px; }
  .search-wrap { padding: 0 12px; }
  .search-wrap input { font-size: 16px; padding: 11px 0; }
  .search-wrap input::placeholder { font-size: 12px; }
  .toolbar { gap: 9px; }
  .page-admin .email-card { padding: 17px 14px; gap: 10px; }
  .page-admin .email-card:first-child { padding-top: 17px; }
  .ec-avatar { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
  .ec-subj { font-size: 13px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; flex-basis: 100%; }
  .ec-subj-row .badge-html { display: none; }
  .ec-time { font-size: 9px; }
  .ec-actions { flex-direction: column; gap: 0; }
  .ec-actions button { min-width: 32px; min-height: 34px; }
  .ec-field { font-size: 10px; width: 100%; }
  .ec-field .val { max-width: 100%; min-width: 0; }
  .ec-preview { font-size: 11px; }
  .panel-head { padding: 16px; }
  .form-sec { padding: 16px; }
  .atype-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .atype { padding: 10px 8px; }
  .atype b { font-size: 11px; }
  .atype small { font-size: 10px; line-height: 1.5; }
  .form-row { gap: 7px; }
  #fPin { max-width: 88px !important; }
  .radio-opt { padding: 10px 6px; font-size: 11px; }
  .create-bar { padding: 14px 16px; }
  .create-sum { flex-basis: 100%; }
  .create-bar .btn-create { flex: 1; }
  .u-header .search-wrap { flex-basis: 100%; max-width: none !important; }
  .dash-cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .dash-cards > div { padding: 16px !important; border-radius: 15px !important; }
  .dash-cards .dash-num { font-size: 28px !important; }
  .dash-bottom { gap: 14px; }
  .dash-bottom > div[style],#pane-xpage .pane-inner > div[style],#pane-tokens .pane-inner > div[style]:not(.dash-bottom) { padding: 17px !important; }
  .ui-create-panel { scroll-margin-top: 16px; }
  #qrImg { max-width: 100%; height: auto !important; aspect-ratio: 1; }
}
@media (max-width:360px) {
  .topbar { padding-left: 12px; padding-right: 12px; gap: 6px; }
  .nav-links { gap: 4px; }
  .nav-btn { padding: 8px; font-size: 10px; }
  .page-tempmail .hero h1 { font-size: 34px; }
  .page-tempmail .copy-btn { width: 32px; }
  .atype-grid { grid-template-columns: 1fr; }
  .atype { display: flex; align-items: center; gap: 10px; }
  .atype b { width: 85px; flex: 0 0 auto; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Consistent outline symbols for application controls. */
.ui-icon { display: inline-block; width: 17px; height: 17px; flex: 0 0 auto; vertical-align: -.2em; }
.ui-icon-control { display: inline-flex; align-items: center; justify-content: center; gap: 7px; line-height: 1.4; }
.apply-btn.ui-icon-control { display: none; }
.apply-btn.ui-icon-control.show { display: inline-flex; }
.ui-icon-heading { display: flex; align-items: center; gap: 9px; }
.ui-icon-heading .ui-icon { color: var(--ui-accent); width: 20px; height: 20px; }
.btn-login .ui-icon { width: 19px; height: 19px; }
.btn-out .ui-icon,.logout .ui-icon { width: 16px; height: 16px; }
.btn-tog .ui-icon,.btn-del .ui-icon { width: 14px; height: 14px; }
.btn-create { gap: 8px; }
.side-nav .tab .ic { display: flex; align-items: center; justify-content: center; width: 21px; opacity: 1; }
.side-nav .tab .ic .ui-icon { width: 20px; height: 20px; }
.side-nav .tab.active { background: rgba(var(--accent-rgb),.1); }
.brand em,.sidebar-brand em { border: 1px solid rgba(var(--accent-rgb),.25); }
.ui-fold-icon { display: inline-flex; transition: transform .16s ease; }
.ui-fold-icon .ui-icon { width: 19px; height: 19px; }
.ui-create-panel[open] .ui-fold-icon { transform: rotate(180deg); }
.card-field .icon { display: inline-flex; align-items: center; color: var(--text3); }
.card-field .icon .ui-icon { width: 14px; height: 14px; }
.atype b { display: flex; align-items: center; gap: 7px; }
.atype b .ui-icon { width: 16px; height: 16px; color: var(--text3); }
.atype.on b .ui-icon { color: var(--ui-accent); }
.empty > .ui-icon,.empty-card > .ui-icon,.empty-state > .ui-icon { display: block; width: 38px; height: 38px; margin: 0 auto 16px; color: var(--ui-accent); opacity: .65; }
.toast { display: flex; align-items: center; gap: 9px; }
.toast .ui-icon { width: 18px; height: 18px; }
.err > .ui-icon,.login-err > .ui-icon { margin-right: 6px; }
.page-tempmail .badge-html,.page-inbox .badge-html { display: none; }
.ec-actions .ui-icon { width: 17px; height: 17px; }
.ec-actions .btn-del-card:hover { color: var(--red); }
.page-admin .email-card.unread { background: rgba(var(--accent-rgb),.045); }
.page-admin .email-card.unread:hover { background: rgba(var(--accent-rgb),.075); }
:root:not([data-appearance="light"]) .panel,
:root:not([data-appearance="light"]) .page-admin #emailList,
:root:not([data-appearance="light"]) .page-tempmail .inbox { box-shadow: 0 1px 0 rgba(255,255,255,.045) inset,var(--shadow-sm); }
@media (min-width:1101px) {
  .u-table th:last-child { width: 220px; }
}
@media (max-width:520px) {
  .page-inbox .topbar { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
  .page-inbox .user-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-inbox .ui-user-label { display: none; }
  .page-inbox .btn-dash { font-size: 0; width: 38px; padding: 8px; gap: 0; }
  .nav-btn .ui-icon { display: inline-block; width: 14px; height: 14px; }
  .nav-btn.ui-icon-control { gap: 5px; padding: 8px; }
  .atype b { gap: 5px; align-items: flex-start; }
  .atype b .ui-icon { width: 14px; height: 14px; margin-top: 2px; }
  .u-table .action-row { gap: 6px; }
  .ec-actions button { width: 36px; min-width: 36px; min-height: 38px; }
}
@media (max-width:360px) {
  .nav-btn .ui-icon { display: none; }
}

/* Gentle feedback without changing control visibility or application state. */
.btn-login,.btn-create,#btnClaim,.ui-appearance,.nav-btn,.btn-top,.logout,
.page-tempmail .btn,.side-nav .tab,.email-card,.page-viewer #list .card,
.page-token .ecard,.ui-create-panel > summary {
  transition: background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.search-wrap:focus-within,.page-tempmail .email-box:focus-within {
  border-color: var(--ui-accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.12);
}
.btn-login:active,.btn-create:active,#btnClaim:active { transform: translateY(0); }
@media (hover:hover) and (pointer:fine) {
  .btn-login:not(:disabled):hover,.btn-create:not(:disabled):hover,#btnClaim:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px -6px rgba(var(--accent-rgb),.38);
  }
  .btn-login:active,.btn-create:active,#btnClaim:active { transform: translateY(0); }
  .ui-appearance:hover,.nav-btn:hover,.btn-top:hover { border-color: var(--border2); box-shadow: var(--shadow-sm); }
}
@media (prefers-reduced-motion:no-preference) {
  @keyframes ui-soft-enter {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
  .pane.active { animation: ui-soft-enter .2s ease-out; }
  .page-login .card,.page-token .main .card,.login-card { animation: ui-soft-enter .26s ease-out; }
  .modal.show .modal-box,.modal.show .mbox { animation: ui-soft-enter .18s ease-out; }
}
