[hidden] { display: none !important; }
:root {
  --bg: #f3f5fb; --card: #fff; --ink: #131629; --dim: #82869e; --line: #e9eaf2;
  --accent: #5a5bd8; --accent-deep: #4344c0; --accent-soft: #eeeefc;
  --green: #17a34a; --green-soft: #e7f8ee; --orange: #d97706; --orange-soft: #fdf3e3; --red: #e11d48; --red-soft: #fdebef;
  --grad-side: linear-gradient(178deg, #1b1747 0%, #221a5e 45%, #2b1e78 100%);
  --radius: 14px; --shadow-card: 0 1px 2px rgba(19,22,41,.04), 0 8px 24px -12px rgba(19,22,41,.10);
}
* { box-sizing: border-box; margin: 0; }
body { font: 14px/1.5 Inter, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
.ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic.big { width: 48px; height: 48px; stroke-width: 1.2; opacity: .35; }
.layout { display: flex; min-height: 100vh; }
.sidebar, .m-side { width: 226px; flex-shrink: 0; background: var(--grad-side); color: #c9c9e8; display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 11px; align-items: center; color: #fff; padding: 2px 8px 22px; }
.brand strong { font-size: 14px; letter-spacing: .04em; display: block; line-height: 1.1; }
.brand small { display: block; color: #8f8fc0; font-size: 11px; font-weight: 500; }
.brand.dark { color: var(--ink); justify-content: center; }
.brand.dark small { color: var(--dim); }
.sidebar nav, .folders { display: flex; flex-direction: column; gap: 3px; }
.sidebar nav a, .folders a, .sidebar-foot a, .sites a { display: flex; align-items: center; gap: 11px; color: #c9c9e8; padding: 9px 13px; border-radius: 10px; font-weight: 500; transition: background .15s, color .15s; }
.sidebar nav a:hover, .folders a:hover, .sidebar-foot a:hover, .sites a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar nav a.active, .folders a.active, .sites a.active { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.sidebar-foot { margin-top: auto; }
.sidebar-foot a { color: #8f8fc0; }
.lang-switch { display: flex; gap: 6px; padding: 6px 13px 8px; }
.lang-switch.center { justify-content: center; padding-top: 14px; }
.lang-switch a { color: #8f8fc0; font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 7px; border: 1px solid transparent; }
.lang-switch a.on { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.1); }
.login-wrap .lang-switch a { color: var(--dim); }
.login-wrap .lang-switch a.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.main { flex: 1; padding: 24px 28px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.page-head p { color: var(--dim); margin-top: 2px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 9px 15px; border-radius: 10px; font-weight: 600; font-size: 13.5px; box-shadow: var(--shadow-card); transition: border-color .15s, color .15s, background .15s; white-space: nowrap; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-deep); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn.danger:hover { border-color: var(--red); color: var(--red); }
.btn.wide { width: 100%; justify-content: center; margin-top: 8px; }
.btn.google { border-color: #dadce0; }
.btn.zoho { border-color: #f7d3c9; }
.glogo, .zlogo { display: inline-flex; width: 20px; height: 20px; border-radius: 6px; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; color: #fff; }
.glogo { background: linear-gradient(135deg, #4285f4, #ea4335 50%, #fbbc05 75%, #34a853); }
.zlogo { background: #e42527; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 18px 20px; margin-bottom: 14px; }
.card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.form-card p.dim { margin-bottom: 12px; }
.form-card code { background: var(--accent-soft); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.form-card label, .login-card label, .acc-edit label { display: block; font-weight: 600; font-size: 12.5px; color: var(--dim); margin-bottom: 10px; }
.form-card input:not([type=checkbox]):not([type=color]), .form-card select, .login-card input:not([type=checkbox]), .acc-edit input:not([type=checkbox]):not([type=color]), .acc-edit select { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
.form-card input:focus, .login-card input:focus, .acc-edit input:focus, .acc-edit select:focus, .form-card select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.grid2, .grid3 { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.grid3 { grid-template-columns: repeat(3, 1fr); }
.alert { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 500; }
.alert.err { background: var(--red-soft); color: var(--red); }
.alert.ok { background: var(--green-soft); color: var(--green); }
.alert.small { font-size: 12.5px; padding: 7px 10px; }
.dim { color: var(--dim); }
.small { font-size: 12px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.badge.ok { background: var(--green-soft); color: var(--green); }
.badge.warn { background: var(--orange-soft); color: var(--orange); }
.badge.err { background: var(--red-soft); color: var(--red); }
.site-tag { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--accent-soft); color: var(--accent-deep); }
.prov { font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; }
.prov-gmail { background: #e8f0fe; color: #1a56db; } .prov-zoho { background: #fde8e8; color: #c81e1e; } .prov-imap { background: #eef; color: #555; }
.acc-card .acc-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.acc-id { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.acc-status { display: flex; gap: 10px; align-items: center; }
.acc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.acc-actions form { display: inline; }
.acc-edit { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.empty-card { color: var(--dim); text-align: center; padding: 40px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl.small td { font-size: 12.5px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 12.5px; font-weight: 500; cursor: pointer; background: #fff; }
.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 380px; max-width: 100%; background: var(--card); border-radius: 18px; box-shadow: var(--shadow-card); padding: 30px 28px; }
.login-card h1 { font-size: 20px; margin-bottom: 16px; text-align: center; }
.chk { display: flex !important; align-items: center; gap: 8px; }
.sig-editor { margin-top: 4px; background: #fff; border-radius: 9px; min-height: 120px; font-weight: 400; color: var(--ink); }
.sig-editor .ql-editor { min-height: 100px; }
.ql-toolbar.ql-snow { border-radius: 9px 9px 0 0; border-color: var(--line); }
.ql-container.ql-snow { border-radius: 0 0 9px 9px; border-color: var(--line); font: inherit; }
@media (max-width: 900px) { .layout { flex-direction: column; } .sidebar { width: 100%; height: auto; position: static; } .grid2, .grid3 { grid-template-columns: 1fr; } .main { padding: 16px; } }
.steps { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.steps code { background: var(--accent-soft); padding: 2px 7px; border-radius: 5px; font-size: 12.5px; user-select: all; }
