:root{--brand-primary:#2563eb;--brand-accent:#0f172a;--bg:#f8fafc;--surface:#ffffff;--text:#0f172a;--muted:#64748b;--border:#e2e8f0;--radius:12px;color-scheme:light}*{box-sizing:border-box}body,html{margin:0;padding:0;min-height:100%;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text)}a{color:var(--brand-primary);text-decoration:none}a:hover{text-decoration:underline}.shell{min-height:100vh}.container{width:min(1100px,calc(100% - 2rem));margin:0 auto}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border:none;border-radius:999px;padding:.75rem 1.25rem;font-weight:600;cursor:pointer;background:var(--brand-primary);color:white}.btn.secondary{background:transparent;color:var(--brand-accent)}.btn.secondary,.card{border:1px solid var(--border)}.card{background:var(--surface);border-radius:var(--radius);padding:1.25rem}.muted{color:var(--muted)}.grid-3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.app-nav{display:flex;gap:.75rem;flex-wrap:wrap;padding:1rem 0;border-bottom:1px solid var(--border);margin-bottom:1.5rem}.app-nav a{padding:.4rem .75rem;border-radius:8px;color:var(--text);font-weight:500}.app-nav a:hover{background:#e2e8f0;text-decoration:none}.field{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.75rem;font-size:.9rem;font-weight:500}.field input,.field select,.field textarea{font:inherit;font-weight:400;padding:.65rem .75rem;border:1px solid var(--border);border-radius:8px;background:#fff;width:100%}.mail-layout{display:grid;grid-template-columns:minmax(220px,320px) 1fr;grid-gap:1rem;gap:1rem}@media (max-width:800px){.mail-layout{grid-template-columns:1fr}}.mail-list-header{padding:.65rem 1rem;font-weight:600;background:#f1f5f9;border-bottom:1px solid var(--border)}.mail-row{display:flex;flex-direction:column;align-items:flex-start;gap:.15rem;width:100%;text-align:left;padding:.75rem 1rem;border:none;border-bottom:1px solid var(--border);background:transparent;cursor:pointer;font:inherit}.mail-row.active,.mail-row:hover{background:#eff6ff}.message-body{white-space:pre-wrap;font-family:inherit;background:#f8fafc;padding:1rem;border-radius:8px;border:1px solid var(--border)}.sentence-display{margin:.75rem 0;padding:1rem 1.25rem;background:#0f172a;color:#f8fafc;border-radius:12px;font-size:1.15rem;line-height:1.45}.warn-card{border-color:#fcd34d;background:#fffbeb}.success-card{border-color:#86efac;background:#f0fdf4}.grid-2{grid-gap:1rem;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));margin-bottom:1.5rem}.grid-2,.grid-3{display:grid;gap:1rem}.grid-3{grid-gap:1rem;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.mail-page{padding-bottom:8rem}.mail-topbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.75rem;margin-bottom:1rem}.mail-shell{display:grid;grid-template-columns:220px minmax(220px,320px) 1fr;grid-gap:.75rem;gap:.75rem;align-items:start}@media (max-width:960px){.mail-shell{grid-template-columns:1fr}}.mail-sidebar{padding:.5rem}.mail-sidebar-section{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:.75rem .5rem .35rem;align-items:center}.mail-folder-btn,.mail-sidebar-section{display:flex;justify-content:space-between}.mail-folder-btn{width:100%;border:none;background:transparent;padding:.45rem .5rem;border-radius:8px;cursor:pointer;font:inherit;text-align:left}.mail-folder-btn.active,.mail-folder-btn:hover{background:#eff6ff}.mail-folder-create{display:flex;gap:.35rem;padding:.35rem .5rem .75rem}.mail-folder-create input{flex:1 1;min-width:0;padding:.4rem .5rem;border:1px solid var(--border);border-radius:8px;font:inherit}.filter-form{display:flex;flex-direction:column;gap:.35rem;padding:.35rem .5rem}.filter-form input,.filter-form select{padding:.4rem .5rem;border:1px solid var(--border);border-radius:8px;font:inherit}.filter-row{display:flex;justify-content:space-between;gap:.5rem;padding:.4rem .5rem;font-size:.9rem}.linkish{border:none;background:none;color:var(--brand-primary);cursor:pointer;font:inherit;padding:0}.mail-row.unread strong{font-weight:800}.mail-labels{font-size:.75rem;color:var(--brand-primary)}.compose-dock{position:fixed;right:1rem;bottom:0;z-index:100;display:flex;flex-direction:column;align-items:flex-end;gap:.5rem;pointer-events:none}.compose-dock-minimized{display:flex;flex-wrap:wrap;gap:.35rem;justify-content:flex-end;pointer-events:auto}.compose-chip{pointer-events:auto;border:none;background:var(--brand-accent);color:#fff;padding:.55rem .9rem;border-radius:8px 8px 0 0;cursor:pointer;font:inherit;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compose-dock-windows{display:flex;flex-wrap:wrap-reverse;gap:.75rem;justify-content:flex-end;align-items:flex-end;pointer-events:auto}.compose-window{width:min(380px,calc(100vw - 2rem));background:var(--surface);border:1px solid var(--border);border-radius:12px 12px 0 0;box-shadow:0 12px 40px rgba(15,23,42,.18);overflow:hidden}.compose-window-title{display:flex;justify-content:space-between;align-items:center;gap:.5rem;background:var(--brand-accent);color:#fff;padding:.55rem .75rem;font-weight:600;font-size:.9rem}.compose-window-actions button{border:none;background:transparent;color:#fff;font-size:1.1rem;cursor:pointer;width:1.75rem}.compose-window-body{padding:.75rem;max-height:70vh;overflow:auto}.compose-check{display:flex;align-items:center;gap:.4rem;font-size:.9rem;margin-bottom:.5rem}.compose-lifetime{display:flex;gap:.35rem;margin-bottom:.5rem}.compose-lifetime input,.compose-lifetime select{flex:1 1;padding:.4rem;border:1px solid var(--border);border-radius:8px;font:inherit}.compose-footer{display:flex;gap:.5rem}.compose-status{margin:.5rem 0 0;font-size:.85rem}.sheet-table{border-collapse:collapse;width:100%;font-size:.85rem}.sheet-table td,.sheet-table th{border:1px solid var(--border);padding:0;min-width:4.5rem}.sheet-table th{background:#f1f5f9;padding:.35rem;text-align:center;font-weight:600}.sheet-table td input{width:100%;border:none;padding:.4rem .35rem;font:inherit;background:transparent}.sheet-table td input:focus,.sheet-table-pro td.sheet-active{outline:2px solid var(--brand-primary);outline-offset:-2px}.sheet-table-pro td.sheet-range-pick{background:#dbeafe!important;outline:1px solid #3b82f6;outline-offset:-1px}.sheet-table-pro td.sheet-range-pick input{background:transparent}.sheet-table-pro td.sheet-sel{background:#eff6ff}.sheet-toolbar-wrap{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-bottom:.5rem}.sheet-title-input{flex:1 1;min-width:160px;padding:.45rem .65rem;border:1px solid var(--border);border-radius:8px;font:inherit;font-weight:600}.sheet-tb-sep{width:1px;height:1.5rem;background:var(--border);margin:0 .15rem}.secure-line-list{display:flex;flex-direction:column;gap:.4rem;margin-top:.75rem}.secure-line-row{display:flex;align-items:center;gap:.5rem;padding:.45rem .55rem;border:1px solid var(--border);border-radius:8px;background:#f8fafc}.secure-line-row.open{background:#fff;border-color:#86efac}.secure-line-num{font-size:.75rem;font-weight:700;color:var(--muted);min-width:1.5rem;text-align:right}.secure-line-content{flex:1 1;min-width:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.9rem;white-space:pre-wrap;word-break:break-word}.secure-line-mask{color:#94a3b8;letter-spacing:.05em;-webkit-user-select:none;-moz-user-select:none;user-select:none}.secure-line-btn{padding:.35rem .75rem;font-size:.85rem;flex-shrink:0}.totp-panel{margin:.75rem 0;padding:.75rem 1rem;background:#0f172a;border-radius:12px;color:#f8fafc;text-align:center}.totp-code{font-size:2rem;font-weight:800;letter-spacing:.35em;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.totp-bar{height:4px;background:#334155;border-radius:999px;margin-top:.65rem;overflow:hidden}.totp-bar-fill{height:100%;background:#22c55e;transition:width .5s linear}.sheet-table-pro .sheet-corner{min-width:2.5rem;background:#e2e8f0}.sheet-toolbar{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}.sheet-toolbar .sheet-tb{min-width:2.25rem;padding:.4rem .55rem;font-weight:700}.sheet-toolbar .sheet-tb.on{background:#dbeafe;border-color:var(--brand-primary)}.sheet-toolbar select{padding:.4rem .5rem;border:1px solid var(--border);border-radius:8px;font:inherit;background:#fff}.sheet-color{display:inline-flex;align-items:center;gap:.25rem;font-size:.8rem;color:var(--muted)}.sheet-color input[type=color]{width:1.75rem;height:1.75rem;border:1px solid var(--border);border-radius:6px;padding:0;background:transparent}.sheet-formula-bar{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem;padding:.45rem .65rem}.sheet-formula-bar .sheet-addr{min-width:2.5rem;padding:.35rem .5rem;background:#f1f5f9;border-radius:6px;font-size:.85rem}.sheet-formula-bar input{flex:1 1;border:none;outline:none;font:inherit;min-width:0;background:transparent}.quota-bar{height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden}.quota-bar>div{height:100%;background:var(--brand-primary)}.files-table{width:100%;border-collapse:collapse}.files-table td,.files-table th{text-align:left;padding:.75rem 1rem;border-bottom:1px solid var(--border)}.files-table th{background:#f8fafc;font-size:.85rem}.search-bar{display:flex;align-items:center;gap:.35rem;background:#fff;border:1px solid var(--border);border-radius:999px;padding:.35rem .75rem;min-width:min(280px,100%)}.search-bar input{border:none;outline:none;flex:1 1;font:inherit;min-width:0;background:transparent}.search-clear,.search-icon{color:var(--muted);font-size:1.1rem}.search-clear{border:none;background:transparent;cursor:pointer;line-height:1}.sheet-hit{background:#fef08a!important}.cal-layout{display:grid;grid-template-columns:1fr minmax(280px,340px);grid-gap:1rem;gap:1rem;align-items:start}@media (max-width:960px){.cal-layout{grid-template-columns:1fr}}.cal-month-nav{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem;flex-wrap:wrap}.cal-grid,.cal-grid-head{display:grid;grid-template-columns:repeat(7,1fr);grid-gap:2px;gap:2px}.cal-grid-head{margin-bottom:.35rem;font-size:.75rem;font-weight:700;color:var(--muted);text-align:center}.cal-cell{min-height:88px;border:1px solid var(--border);border-radius:8px;background:#fff;padding:.25rem;text-align:left;cursor:pointer;font:inherit;display:flex;flex-direction:column;gap:.15rem}.cal-cell.empty{background:#f8fafc;border-style:dashed;cursor:default}.cal-cell.today{border-color:var(--brand-primary)}.cal-cell.selected{background:#eff6ff;box-shadow:inset 0 0 0 2px var(--brand-primary)}.cal-day-num{font-size:.8rem;font-weight:700}.cal-cell-events{display:flex;flex-direction:column;gap:2px;overflow:hidden}.cal-pill{font-size:.65rem;padding:.1rem .25rem;border-radius:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#dbeafe;color:#1e3a8a}.cal-pill.inv{background:#dcfce7;color:#14532d}.cal-day-event{display:flex;flex-direction:column;align-items:flex-start;width:100%;border:1px solid var(--border);border-radius:8px;background:#fff;padding:.5rem .65rem;margin-bottom:.35rem;cursor:pointer;font:inherit;text-align:left}.cal-day-event.active{border-color:var(--brand-primary);background:#eff6ff}.cal-side{display:flex;flex-direction:column;gap:.75rem}.login-boot-overlay{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:rgba(15,23,42,.55);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.login-boot-modal{width:min(360px,100%);text-align:center;box-shadow:0 24px 64px rgba(15,23,42,.28);animation:login-boot-in .25s ease-out}@keyframes login-boot-in{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}.login-boot-spinner{width:2.5rem;height:2.5rem;margin:0 auto 1rem;border:3px solid #e2e8f0;border-top:3px solid var(--brand-primary);border-radius:50%;animation:login-boot-spin .75s linear infinite}@keyframes login-boot-spin{to{transform:rotate(1turn)}}.login-boot-counter{display:inline-flex;align-items:center;justify-content:center;width:4.5rem;height:4.5rem;margin:0 auto;border-radius:50%;background:#eff6ff;border:3px solid var(--brand-primary);color:var(--brand-primary);font-size:2rem;font-weight:800;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;line-height:1}