:root{color-scheme:light;--bg: #f7f8fa;--surface: #ffffff;--surface-subtle: #f9fafb;--surface-hover: #f3f4f6;--border: #e5e7eb;--border-strong: #d1d5db;--text: #111827;--text-secondary: #374151;--muted: #6b7280;--primary: #2563eb;--primary-hover: #1d4ed8;--primary-soft: #eff6ff;--primary-border: #bfdbfe;--danger: #dc2626;--danger-hover: #b91c1c;--danger-soft: #fef2f2;--danger-border: #fecaca;--success: #059669;--success-soft: #ecfdf5;--success-border: #a7f3d0;--warning: #b45309;--warning-soft: #fffbeb;--warning-border: #fde68a;--radius-sm: 6px;--radius-md: 8px;--radius-lg: 12px;--shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);--shadow-md: 0 10px 28px rgba(15, 23, 42, .1);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}h1{font-size:1.35rem;font-weight:600;letter-spacing:-.02em;margin:0;line-height:1.25}h2{font-size:1.02rem;font-weight:600;margin:0;line-height:1.3}h3{font-size:.92rem;font-weight:600;margin:0;line-height:1.35}p{margin:0}code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.icon{flex-shrink:0;display:inline-block;vertical-align:middle}.workspace-shell{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:100vh}.mobile-topbar,.mobile-bottom-nav,.drawer-backdrop{display:none}.sidebar-nav{background:var(--surface);color:var(--text);border-right:1px solid var(--border);padding:18px 12px;display:flex;flex-direction:column;gap:18px}.sidebar-brand{display:flex;align-items:center;gap:10px;padding:2px 4px;min-width:0}.brand-badge{width:34px;height:34px;flex-shrink:0;border-radius:8px;background:#111827;color:#fff;display:grid;place-items:center;font-weight:700;font-size:.82rem;letter-spacing:-.02em}.brand-badge.sm{width:28px;height:28px;font-size:.74rem}.brand-title{font-weight:600;font-size:.95rem;color:var(--text);letter-spacing:-.01em}.nav-list{display:flex;flex-direction:column;gap:3px;flex:1}.nav-item{display:flex;align-items:center;gap:10px;background:transparent;border:none;color:var(--text-secondary);text-align:left;padding:9px 10px;border-radius:7px;cursor:pointer;font-family:inherit;font-size:.88rem;font-weight:500;transition:background .12s ease,color .12s ease}.nav-item:hover{background:var(--surface-hover);color:var(--text)}.nav-item.active{background:var(--primary-soft);color:var(--primary);font-weight:600}.sidebar-footer{display:flex;flex-direction:column;gap:10px;padding-top:12px;border-top:1px solid var(--border)}.ws-pill{display:inline-flex;align-items:center;gap:7px;font-size:.78rem;color:var(--muted);padding:0 4px}.ws-pill .dot{width:7px;height:7px;border-radius:50%;background:#9ca3af;flex-shrink:0}.ws-connected .dot{background:#10b981}.ws-reconnecting .dot{background:#f59e0b}.main-stage{padding:20px;overflow:auto;min-width:0}.card,.subcard,.modal-card,.auth-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:18px;min-width:0;box-shadow:var(--shadow-xs)}.subcard{background:var(--surface-subtle);padding:14px;box-shadow:none}.page-header{display:flex;flex-direction:column;gap:4px}.section-head{display:flex;align-items:center;gap:8px}.section-head .icon{color:var(--muted)}.mail-layout{display:grid;grid-template-columns:232px 350px minmax(0,1fr);gap:16px;min-height:calc(100vh - 40px)}.cal-layout{display:grid;grid-template-columns:276px minmax(0,1fr);gap:16px;align-items:start}.two-col-sidebar{display:grid;grid-template-columns:296px minmax(0,1fr);gap:16px;align-items:start}.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.two-col-asymmetric{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:12px;align-items:end}.panel-grid{display:flex;flex-direction:column;gap:16px}.stack{display:flex;flex-direction:column;gap:10px}.form-narrow{max-width:480px}.row{display:flex;align-items:center}.row.between{justify-content:space-between}.row.end{justify-content:flex-end}.row.wrap{flex-wrap:wrap}.row.center{align-items:center}.gap-xs{gap:4px}.gap-sm{gap:8px}.shrink-0{flex-shrink:0}.mt-sm{margin-top:8px}.mt-md{margin-top:16px}.mb-sm{margin-bottom:8px}.small{font-size:.8rem}.tiny{font-size:.72rem}.muted{color:var(--muted)}.flex-1{flex:1 1 auto;min-width:0}.min-w-0{min-width:0}.nowrap{white-space:nowrap}.tabular{font-variant-numeric:tabular-nums}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}label{display:flex;flex-direction:column;gap:5px;font-size:.84rem;font-weight:500;color:var(--text-secondary)}label.row,label.checkbox-row{flex-direction:row;align-items:center;gap:8px;cursor:pointer}input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{height:36px;border:1px solid var(--border);border-radius:var(--radius-sm);padding:7px 10px;font-size:.88rem;font-family:inherit;color:var(--text);background:var(--surface);max-width:100%;transition:border-color .12s ease,box-shadow .12s ease}textarea{height:auto;min-height:84px;line-height:1.5;resize:vertical}input:not([type=checkbox]):not([type=radio]):not([type=file]):focus,select:focus,textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #2563eb1f}input[type=checkbox],input[type=radio]{width:15px;height:15px;padding:0;margin:0;accent-color:var(--primary);cursor:pointer;flex-shrink:0}.btn{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;border:1px solid var(--border);background:var(--surface);color:var(--text);height:34px;padding:0 12px;border-radius:var(--radius-sm);cursor:pointer;font-family:inherit;font-size:.875rem;font-weight:500;line-height:1.2;white-space:nowrap;transition:background .12s ease,border-color .12s ease,color .12s ease}.btn:hover:not(:disabled){background:var(--surface-hover);border-color:var(--border-strong)}.btn:focus-visible{outline:none;box-shadow:0 0 0 3px #2563eb26}.btn:disabled{opacity:.55;cursor:not-allowed}.btn.sm{height:30px;padding:0 9px;font-size:.8rem}.btn.icon-btn{width:30px;height:30px;padding:0}.btn.full-width{width:100%;height:auto;min-height:34px;padding:7px 10px;font-size:.82rem;white-space:normal;text-align:center}.btn.ghost{background:transparent;border-color:transparent;color:var(--text-secondary)}.btn.ghost:hover:not(:disabled){background:var(--surface-hover);border-color:transparent;color:var(--text)}.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn.primary:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover)}.btn.danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn.danger:hover:not(:disabled){background:var(--danger-hover);border-color:var(--danger-hover)}.btn.danger.sm{background:var(--danger-soft);border-color:var(--danger-border);color:#b91c1c}.btn.danger.sm:hover:not(:disabled){background:#fee2e2;border-color:#fca5a5}.btn.subtle{background:transparent;border-color:var(--border);color:var(--text-secondary);width:100%;justify-content:flex-start}.btn.subtle:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}.btn.mobile-only-back,.btn.mobile-only-close,.btn.cal-sidebar-toggle,.btn.mobile-new-evt{display:none}.segmented-group{display:inline-flex;align-items:center;background:#f3f4f6;padding:3px;border-radius:var(--radius-md);gap:2px;border:1px solid var(--border)}.segmented-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:none;background:transparent;color:var(--muted);height:28px;padding:0 10px;border-radius:5px;cursor:pointer;font-family:inherit;font-size:.78rem;font-weight:500;white-space:nowrap;transition:background .12s ease,color .12s ease,box-shadow .12s ease}.segmented-btn:hover{color:var(--text)}.segmented-btn.active{background:var(--surface);color:var(--text);font-weight:600;box-shadow:0 1px 2px #0f172a14}.alert{padding:10px 12px;border-radius:var(--radius-md);font-size:.86rem;border:1px solid transparent}.alert.error{background:var(--danger-soft);border-color:var(--danger-border);color:#991b1b}.alert.success{background:var(--success-soft);border-color:var(--success-border);color:#065f46}.alert.info{background:var(--primary-soft);border-color:var(--primary-border);color:#1e40af}.badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;font-size:.74rem;font-weight:500;background:#f3f4f6;color:var(--text-secondary);border:1px solid var(--border);white-space:nowrap;font-variant-numeric:tabular-nums}.badge.active{background:var(--success-soft);border-color:var(--success-border);color:#065f46}.badge.pending{background:var(--warning-soft);border-color:var(--warning-border);color:#92400e}.badge.suspended{background:var(--danger-soft);border-color:var(--danger-border);color:#991b1b}.badge.count{background:var(--primary-soft);border-color:var(--primary-border);color:#1e40af}.mail-folders{padding:14px 16px}.mail-folders,.mail-list,.mail-viewer{display:flex;flex-direction:column}.plain-list,.message-rows{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}.message-rows>li{padding-bottom:4px;border-bottom:1px solid #f1f5f9}.message-rows>li:last-child{padding-bottom:0;border-bottom:none}.folder-btn,.msg-row{width:100%;text-align:left;background:transparent;border:1px solid transparent;border-radius:var(--radius-sm);padding:8px 10px;cursor:pointer;font-family:inherit;color:var(--text);transition:background .12s ease,border-color .12s ease}.folder-btn:hover,.msg-row:hover{background:var(--surface-hover)}.folder-btn.active,.msg-row.active{background:var(--primary-soft);border-color:var(--primary-border)}.folder-btn.active{color:var(--primary);font-weight:600}.msg-row{padding:9px 10px;min-width:0}.msg-row.unread strong{color:var(--text)}.msg-subject{font-size:.87rem;margin-top:2px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.msg-row.unread .msg-subject{font-weight:600}.unread-dot{width:7px;height:7px;border-radius:50%;background:var(--primary);flex-shrink:0;display:inline-block}.mail-viewer-head{padding-bottom:12px;border-bottom:1px solid var(--border)}.email-frame{width:100%;min-height:440px;border:1px solid var(--border);border-radius:var(--radius-md);background:#fff}.plain-mail{white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;font-family:inherit;font-size:.9rem;line-height:1.6;margin:0;padding:14px 16px;background:var(--surface-subtle);border:1px solid var(--border);border-radius:var(--radius-md)}.center-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:300px;padding:24px;text-align:center;color:var(--muted)}.center-empty.compact{min-height:140px}.table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.data-table{width:100%;border-collapse:collapse;font-size:.86rem}.data-table th{text-align:left;padding:9px 10px;font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);background:var(--surface-subtle);border-bottom:1px solid var(--border);white-space:nowrap}.data-table td{text-align:left;padding:10px;border-bottom:1px solid var(--border);vertical-align:top;font-variant-numeric:tabular-nums}.data-table tbody tr:hover{background:#fafafa}.data-table tbody tr:last-child td{border-bottom:none}.quota-bar{width:112px;height:6px;border-radius:999px;background:#e5e7eb;overflow:hidden;margin-bottom:4px}.quota-fill{height:100%;background:var(--primary)}.dkim-banner{border:1px solid var(--border);background:#f8fafc;border-radius:var(--radius-md);padding:12px;display:flex;flex-direction:column}.dkim-code-box{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:8px 10px}.dns-status-col{width:190px;min-width:160px;max-width:215px;white-space:normal}.dns-host-col{min-width:195px}.dns-value-col{min-width:240px}.dns-value{display:inline-block;overflow-wrap:anywhere;word-break:break-word;white-space:pre-wrap;font-size:.79rem;max-width:100%}.code-box{background:var(--surface-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.79rem;word-break:break-all;display:flex;flex-direction:column;gap:6px}.auth-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:var(--bg)}.auth-card{width:100%;max-width:400px;padding:30px 26px;border-radius:var(--radius-lg);box-shadow:var(--shadow-md)}.auth-header{display:flex;flex-direction:column;gap:6px;margin-bottom:18px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#1118276b;display:grid;place-items:center;padding:16px;z-index:50;overflow-y:auto}.modal-card{width:100%;max-width:480px;max-height:calc(100vh - 32px);overflow-y:auto;border-radius:var(--radius-lg);box-shadow:var(--shadow-md)}.modal-card.modal-wide{max-width:780px}.toast-stack{position:fixed;right:20px;bottom:20px;display:flex;flex-direction:column;gap:8px;z-index:60}.toast-card{background:#111827;color:#f9fafb;padding:12px 14px;border-radius:var(--radius-md);display:flex;align-items:center;gap:14px;box-shadow:var(--shadow-md)}.checkbox-pill{flex-direction:row;align-items:center;gap:7px;cursor:pointer}.cal-dot{width:9px;height:9px;flex-shrink:0;border-radius:50%;display:inline-block}.token-display{display:block;padding:9px 11px;background:#111827;color:#93c5fd;border-radius:var(--radius-sm);word-break:break-all;font-size:.82rem}.recipient-field{position:relative;display:flex;flex-direction:column;gap:5px}.recipient-label{font-size:.84rem;font-weight:500;color:var(--text-secondary)}.recipient-box{display:flex;flex-wrap:wrap;align-items:center;gap:6px;border:1px solid var(--border);border-radius:var(--radius-sm);padding:4px 8px;background:var(--surface);min-height:36px;cursor:text;transition:border-color .12s ease,box-shadow .12s ease}.recipient-box:focus-within{box-shadow:0 0 0 3px #2563eb1f;border-color:var(--primary)}.recipient-chip{display:inline-flex;align-items:center;gap:5px;background:var(--primary-soft);border:1px solid var(--primary-border);color:#1e40af;border-radius:999px;padding:2px 8px;font-size:.8rem;max-width:100%}.chip-remove{display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;color:#1e40af;cursor:pointer;padding:0 2px;font-weight:700;font-size:.95rem;line-height:1}.recipient-input{flex:1 1 140px;min-width:120px;border:none;height:26px;padding:2px 4px;outline:none;font-size:.88rem;font-family:inherit;background:transparent}.autocomplete-dropdown,.autocomplete-list{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-md);max-height:220px;overflow-y:auto;z-index:30}.autocomplete-status{padding:8px 10px}.autocomplete-item{border:none;border-bottom:1px solid #f3f4f6;background:var(--surface);text-align:left;padding:8px 10px;cursor:pointer;font-family:inherit}.autocomplete-item:last-child{border-bottom:none}.autocomplete-item:hover,.autocomplete-item.active{background:var(--primary-soft)}.cal-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--border)}.cal-range-title{margin:0;font-size:1.05rem;font-weight:600;letter-spacing:-.01em}.mini-cal{border:1px solid var(--border);border-radius:var(--radius-md);padding:10px;background:var(--surface-subtle)}.mini-cal-weekdays,.mini-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;gap:2px}.mini-cal-day{border:none;background:transparent;border-radius:999px;padding:5px 0;font-size:.76rem;font-variant-numeric:tabular-nums;cursor:pointer;color:var(--text)}.mini-cal-day:hover{background:#e5e7eb}.mini-cal-day.outside{color:#9ca3af}.mini-cal-day.today{background:var(--primary);color:#fff;font-weight:600}.mini-cal-day.selected:not(.today){background:#dbeafe;color:#1e40af;font-weight:600}.cal-time-shell{border:1px solid var(--border);border-radius:var(--radius-md);max-height:620px;overflow:auto;background:var(--surface);position:relative}.cal-time-inner{width:100%}.cal-sticky-head{position:sticky;top:0;z-index:6;background:var(--surface)}.cal-day-headers,.cal-allday-strip,.cal-time-grid{display:grid;width:100%}.cal-day-headers{background:var(--surface-subtle);border-bottom:1px solid var(--border)}.cal-gutter-head,.cal-gutter-allday{padding:6px;display:flex;align-items:center;justify-content:flex-end;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cal-day-col-head{padding:8px 4px;border-left:1px solid var(--border);display:flex;flex-direction:column;align-items:center;gap:3px}.cal-day-num{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:600;font-variant-numeric:tabular-nums}.cal-day-num.sm{width:22px;height:22px;font-size:.78rem}.cal-day-num.today{background:var(--primary);color:#fff}.cal-allday-strip{border-bottom:1px solid var(--border);background:#fcfcfd}.cal-allday-cell{border-left:1px solid var(--border);min-height:28px;padding:3px;display:flex;flex-direction:column;gap:2px;cursor:pointer}.cal-allday-pill{border:none;border-radius:4px;color:#fff;font-size:.74rem;font-weight:600;padding:2px 6px;text-align:left;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cal-hour-gutter{display:flex;flex-direction:column;min-width:0}.cal-hour-label{height:48px;padding:2px 6px;font-size:.71rem;font-variant-numeric:tabular-nums;color:var(--muted);text-align:right;transform:translateY(-7px)}.cal-day-column{position:relative;height:1152px;border-left:1px solid var(--border);background:repeating-linear-gradient(to bottom,transparent 0,transparent 47px,#f1f5f9 47px,#f1f5f9 48px)}.cal-hour-slot{display:block;width:100%;height:48px;border:none;background:transparent;cursor:pointer}.cal-hour-slot:hover{background:#2563eb0a}.cal-now-line{position:absolute;left:0;right:0;height:2px;background:var(--danger);z-index:3;pointer-events:none}.cal-now-line:before{content:"";position:absolute;left:-4px;top:-3px;width:8px;height:8px;border-radius:50%;background:var(--danger)}.cal-event-block{position:absolute;border:1px solid var(--primary-border);border-left:3px solid var(--primary);border-radius:5px;background:var(--primary-soft);color:var(--text);padding:3px 6px;text-align:left;overflow:hidden;cursor:pointer;z-index:2;display:flex;flex-direction:column;gap:1px}.cal-event-block:hover{background:#dbeafe;z-index:4}.cal-event-title{font-size:.77rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cal-event-time{font-size:.69rem;font-variant-numeric:tabular-nums;color:var(--muted)}.cal-month-shell{border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;background:var(--surface)}.cal-month-weekdays,.cal-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.cal-month-weekdays{background:var(--surface-subtle);border-bottom:1px solid var(--border)}.cal-month-wd{padding:8px 4px;text-align:center;font-weight:600}.cal-month-cell{min-height:94px;min-width:0;padding:6px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);cursor:pointer;display:flex;flex-direction:column;gap:4px}.cal-month-cell:nth-child(7n){border-right:none}.cal-month-cell:hover{background:var(--surface-subtle)}.cal-month-cell.outside{background:#fafafa;color:#9ca3af}.cal-month-date{display:flex;justify-content:flex-end}.cal-month-pills{display:flex;flex-direction:column;gap:3px;min-width:0}.cal-month-pill{border:1px solid var(--border);border-left:3px solid var(--primary);background:var(--primary-soft);border-radius:4px;padding:2px 5px;font-size:.73rem;text-align:left;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cal-month-more{border:none;background:transparent;color:var(--primary);text-align:left;cursor:pointer;padding:1px 4px}.rsvp-banner{padding:10px 12px;border-radius:var(--radius-md);background:var(--surface-subtle);border:1px solid var(--border)}.fb-timeline{border:1px solid var(--border);border-radius:var(--radius-md);padding:12px;background:var(--surface-subtle)}.fb-legend-item{display:inline-flex;align-items:center;gap:4px}.legend-dot{display:inline-block;width:10px;height:10px;border-radius:3px}.legend-dot.free{background:#bbf7d0;border:1px solid #16a34a}.legend-dot.busy{background:#fca5a5;border:1px solid #ef4444}.legend-dot.selected{background:#2563eb4d;border:1px solid var(--primary)}.fb-grid{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface)}.fb-header-row,.fb-row{display:grid;grid-template-columns:190px minmax(360px,1fr);border-bottom:1px solid var(--border)}.fb-row:last-child{border-bottom:none}.fb-member-cell{padding:6px 8px;border-right:1px solid var(--border);display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0}.fb-member-name{font-size:.81rem;font-weight:600}.fb-hours-track,.fb-track{position:relative;display:flex;align-items:stretch;min-height:44px}.fb-hours-track{min-height:26px;background:var(--surface-subtle)}.fb-track{background:#f0fdf4}.fb-hour-tick{flex:1 1 0;font-size:.7rem;font-variant-numeric:tabular-nums;color:var(--muted);text-align:center;padding:4px 0;border-left:1px solid var(--border)}.fb-slot-btn{flex:1 1 0;border:none;border-left:1px dashed #d1fae5;background:transparent;cursor:pointer}.fb-slot-btn:hover{background:#2563eb1f}.fb-busy-block{position:absolute;top:6px;bottom:6px;border-radius:4px;background:#fca5a5;border:1px solid #ef4444;opacity:.92;pointer-events:none;z-index:1}.fb-busy-block.tentative{background:#fcd34d;border-color:#d97706}.fb-busy-block.unavailable{background:repeating-linear-gradient(-45deg,#cbd5e1,#cbd5e1 4px,#94a3b8 4px,#94a3b8 8px);border-color:#64748b}.fb-selection-band{position:absolute;top:0;bottom:0;background:#2563eb33;border-left:2px solid var(--primary);border-right:2px solid var(--primary);pointer-events:none;z-index:2}@media (max-width: 1099px){.mail-layout{grid-template-columns:280px minmax(0,1fr);min-height:auto}.mail-folders{grid-column:1 / -1}.mail-folder-list{flex-direction:row;flex-wrap:wrap}.mail-folder-list li{flex:0 0 auto}}@media (max-width: 959px){.workspace-shell{grid-template-columns:1fr;grid-template-rows:auto 1fr}.mobile-topbar{display:flex;align-items:center;justify-content:space-between;background:#fffffff2;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:var(--text);border-bottom:1px solid var(--border);padding:8px 14px;position:sticky;top:0;z-index:35}.mobile-topbar-title{font-weight:600;font-size:.95rem}.mobile-ws-label{text-transform:capitalize}.drawer-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#11182759;z-index:38}.sidebar-nav{position:fixed;top:0;bottom:0;left:0;width:260px;transform:translate(-105%);transition:transform .2s ease;z-index:40}.sidebar-nav.open{transform:translate(0);box-shadow:var(--shadow-md)}.main-stage{padding:12px 12px 78px}.mobile-bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;background:var(--surface);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom,0px);z-index:34}.mobile-bottom-btn{flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:none;border-top:2px solid transparent;background:transparent;padding:7px 4px;font-family:inherit;font-size:.68rem;font-weight:500;color:var(--muted);cursor:pointer;min-width:0}.mobile-bottom-btn.active{color:var(--primary);font-weight:600;border-top-color:var(--primary)}.cal-layout{grid-template-columns:1fr}.cal-sidebar{display:none}.cal-sidebar.open{display:block}.btn.cal-sidebar-toggle,.btn.mobile-only-close,.btn.mobile-new-evt{display:inline-flex}.two-col-sidebar,.two-col,.two-col-asymmetric{grid-template-columns:1fr}}.preset-group{display:inline-flex;flex-wrap:wrap;gap:6px}.preset-btn{padding:6px 12px;border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--surface);color:var(--text-secondary);font-size:.82rem;font-weight:500;cursor:pointer}.preset-btn:hover{background:var(--surface-hover)}.preset-btn.active{background:var(--primary-soft);border-color:var(--primary);color:#1e40af;font-weight:600}.spam-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.spam-rule-form{display:grid;grid-template-columns:auto minmax(160px,1.3fr) auto minmax(130px,1fr) auto;gap:8px;align-items:center}.spam-rule-form>*{min-width:0}.spam-banner{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-subtle);padding:8px 12px;display:flex;flex-direction:column;gap:6px}.spam-banner.flagged{background:var(--warning-soft);border-color:var(--warning-border)}.spam-banner.compact{padding:6px 10px;background:var(--surface-subtle)}.select-sm{height:30px;padding:0 8px;font-size:.8rem}.mail-search-form input,.mail-search-form .btn{height:32px}.mail-action-bar{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}.mail-move-group{display:flex;align-items:center;gap:6px;flex:1 1 auto;min-width:0}.contact-add-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px;align-items:center}.admin-domain-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.admin-domain-input{max-width:340px;min-width:0}.admin-user-form{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px;align-items:center}.admin-compact-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;align-items:center}.security-disable-form{display:flex;align-items:center;gap:8px;max-width:480px}.code-textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.82rem;line-height:1.45;min-height:220px}.symbol-chips{display:flex;flex-wrap:wrap;gap:6px}.symbol-chip{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.72rem;padding:2px 7px;border-radius:4px;background:var(--surface);border:1px solid var(--border);color:var(--text-secondary)}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.kpi-card{display:flex;flex-direction:column;gap:4px;padding:14px 16px}.kpi-value{font-size:1.5rem;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.2}.svg-chart-wrap{width:100%;overflow-x:auto}.svg-chart{width:100%;min-width:320px;height:auto;display:block}.legend-item{display:inline-flex;align-items:center;gap:5px}.legend-swatch{width:10px;height:10px;border-radius:2px;display:inline-block}.swatch-received{background:#2563eb}.swatch-sent{background:#059669}.swatch-spam{background:#d97706}.outcome-list{display:flex;flex-direction:column;gap:8px}.outcome-row{display:flex;flex-direction:column;gap:4px}.outcome-bar-track{height:7px;border-radius:999px;background:#f1f5f9;overflow:hidden}.outcome-bar-fill{height:100%;border-radius:999px}.outcome-bar-fill.tone-ok{background:var(--success)}.outcome-bar-fill.tone-warn{background:#d97706}.outcome-bar-fill.tone-danger{background:var(--danger)}.outcome-bar-fill.tone-muted{background:#94a3b8}.trace-timeline{list-style:none;margin:0;padding:0 0 0 14px;border-left:2px solid var(--border);display:flex;flex-direction:column;gap:12px}.trace-step{position:relative;display:flex;flex-direction:column;gap:3px}.trace-step:before{content:"";position:absolute;left:-19px;top:5px;width:8px;height:8px;border-radius:50%;background:var(--primary);border:2px solid var(--surface)}.raw-log-box{background:var(--surface-subtle);border:1px solid var(--border);border-radius:var(--radius-sm);padding:8px 10px;max-height:220px;overflow:auto;display:flex;flex-direction:column;gap:4px}.raw-log-line{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.74rem;line-height:1.4;overflow-wrap:anywhere}.trace-table th,.trace-table td{padding:8px 9px}.trace-addr-col,.trace-relay-col{max-width:240px;overflow-wrap:anywhere;word-break:break-word}@media (max-width: 767px){.card{padding:14px}.hide-mobile{display:none}.mail-layout{grid-template-columns:1fr;gap:10px}.mail-folders{padding:10px 12px}.mail-folder-list{flex-direction:row;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding-bottom:2px;scrollbar-width:none}.mail-folder-list::-webkit-scrollbar{display:none}.mail-folder-list .folder-btn{padding:5px 10px;font-size:.8rem;border-radius:999px;border:1px solid var(--border);white-space:nowrap}.mail-folder-list .folder-btn.active{border-color:var(--primary-border)}.mail-layout:not(.mail-has-selection) .mail-viewer{display:none}.mail-layout.mail-has-selection .mail-folders,.mail-layout.mail-has-selection .mail-list{display:none}.cal-toolbar-nav{width:100%}.cal-toolbar-nav .mobile-new-evt{margin-left:auto}.cal-view-switcher{width:100%;display:flex}.cal-view-switcher .segmented-btn{flex:1 1 0}.contacts-tab-switch,.settings-tabs{width:100%;display:flex}.contacts-tab-switch .segmented-btn,.settings-tabs .segmented-btn{flex:1 1 0}.contact-add-form,.admin-user-form,.admin-compact-form{grid-template-columns:1fr}.security-disable-form{flex-direction:column;align-items:stretch}.admin-domain-form{flex-wrap:nowrap}.admin-domain-input{max-width:none}.stats-controls{width:100%}.stats-controls>select{width:100%;flex:1 1 100%}.stats-controls>.btn{margin-left:auto}.data-table th,.data-table td{padding:7px 8px;font-size:.79rem}.btn.mobile-only-back{display:inline-flex;align-self:flex-start}.modal-card,.modal-card.modal-wide,.auth-card{max-width:100%;padding:12px;gap:10px}.modal-card .subcard{padding:10px;gap:8px}.auth-card{padding:24px 18px}.cal-month-cell{min-height:64px;padding:3px}.cal-month-pill{font-size:.66rem;padding:1px 3px}.fb-header-row,.fb-row{grid-template-columns:130px minmax(280px,1fr)}.toast-stack{right:12px;left:12px;bottom:68px}.spam-form-grid,.spam-rule-form{grid-template-columns:1fr;gap:6px}.spam-rule-form>*{min-width:0;width:100%}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-bottom-btn{font-size:.63rem;padding:6px 2px}}
