/* ENDISM client panel — works inside endism.tr (site.css) and standalone on the license server. */
html[lang="fa"] #endism-panel,
html[lang="fa"] .ep-overlay,
html[lang="fa"] .ep-drawer-overlay,
html[lang="fa"] .ep-toasts {
  font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif;
  line-height: 1.75;
}
#endism-panel, .ep-overlay, .ep-drawer-overlay, .ep-toasts {
  --ep-bg: #050912;
  --ep-card: rgba(255, 255, 255, .04);
  --ep-card-2: rgba(255, 255, 255, .065);
  --ep-line: rgba(255, 255, 255, .09);
  --ep-line-2: rgba(255, 255, 255, .16);
  --ep-text: #eef3fa;
  --ep-text-2: #c9d3e1;
  --ep-muted: #8f9db2;
  --ep-green: #1be27f;
  --ep-cyan: #38bdf8;
  --ep-amber: #fbbf24;
  --ep-rose: #fb7185;
  --ep-r: 22px;
  color: var(--ep-text);
  font-size: 15.5px;
  line-height: 1.6;
}
#endism-panel *, #endism-panel *::before, #endism-panel *::after,
.ep-overlay *, .ep-drawer-overlay *, .ep-toasts * { box-sizing: border-box; }
.ep-ico { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; }
.ep-ico svg { width: 100%; height: 100%; }

/* Cards & layout */
.ep-card {
  position: relative; border: 1px solid var(--ep-line); border-radius: var(--ep-r);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018));
  padding: 26px; min-width: 0;
}
.ep-card h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.ep-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.ep-card-head p { margin: 4px 0 0; color: var(--ep-muted); font-size: 14px; }
.ep-dash { display: grid; gap: 22px; animation: ep-in .45s cubic-bezier(.2, .7, .1, 1); }
.ep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ep-span-2 { grid-column: span 2; }
.ep-span-3 { grid-column: span 3; }
@keyframes ep-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Buttons */
.ep-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 inherit; font-family: inherit; color: var(--ep-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s, opacity .2s;
}
.ep-btn:hover:not(:disabled) { transform: translateY(-1px); }
.ep-btn:disabled { opacity: .45; cursor: not-allowed; }
.ep-btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.ep-btn-block { width: 100%; }
.ep-btn-primary { background: linear-gradient(135deg, #3bf297, var(--ep-green) 45%, #00c853); color: #03140a; box-shadow: 0 10px 28px -12px rgba(27, 226, 127, .6), inset 0 1px 0 rgba(255, 255, 255, .35); }
.ep-btn-ghost { background: var(--ep-card); border-color: var(--ep-line-2); }
.ep-btn-ghost:hover:not(:disabled) { background: var(--ep-card-2); }
.ep-btn-danger { background: var(--ep-rose); color: #2a0610; }
.ep-btn-danger-ghost { background: rgba(251, 113, 133, .08); border-color: rgba(251, 113, 133, .3); color: #fecdd3; }
.ep-btn-danger-ghost:hover:not(:disabled) { background: rgba(251, 113, 133, .14); }
.ep-btn.is-loading { opacity: .85; cursor: progress; }
.ep-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(3, 20, 10, .3); border-top-color: #03140a; animation: ep-spin .7s linear infinite; }
@keyframes ep-spin { to { transform: rotate(360deg); } }
.ep-icon-btn {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--ep-line); background: transparent;
  color: var(--ep-text-2); display: inline-grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.ep-icon-btn:hover:not(:disabled) { background: var(--ep-card-2); color: var(--ep-text); border-color: var(--ep-line-2); }
.ep-icon-danger:hover:not(:disabled) { color: var(--ep-rose); border-color: rgba(251, 113, 133, .4); background: rgba(251, 113, 133, .08); }
.ep-icon-btn:disabled { opacity: .35; cursor: not-allowed; }
#endism-panel :focus-visible, .ep-overlay :focus-visible, .ep-drawer-overlay :focus-visible { outline: 2px solid var(--ep-green); outline-offset: 2px; }

/* Login */
.ep-login { max-width: 470px; margin: 0 auto; padding: 38px 34px 30px; text-align: center; animation: ep-in .45s cubic-bezier(.2, .7, .1, 1); }
.ep-login::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px 180px at 50% 0%, rgba(27, 226, 127, .16), transparent 70%);
}
.ep-login-mark {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 20px; display: grid; place-items: center;
  color: var(--ep-green); background: rgba(27, 226, 127, .1); border: 1px solid rgba(27, 226, 127, .25);
  box-shadow: 0 0 40px -6px rgba(27, 226, 127, .45);
}
.ep-login-mark .ep-ico { width: 30px; height: 30px; }
.ep-login-title { margin: 0 0 10px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.ep-login-sub { margin: 0 0 26px; color: var(--ep-muted); font-size: 15px; }
.ep-login-form { display: grid; gap: 10px; text-align: start; }
.ep-field { display: grid; gap: 8px; }
.ep-field-label { font-size: 13.5px; font-weight: 600; color: var(--ep-text-2); }
.ep-input-wrap { position: relative; display: flex; align-items: center; }
.ep-input {
  width: 100%; height: 54px; border-radius: 16px; border: 1px solid var(--ep-line-2); background: rgba(3, 7, 15, .6);
  color: var(--ep-text); font: 500 16px/1 inherit; font-family: inherit; padding: 0 16px; transition: border-color .2s, box-shadow .2s;
}
.ep-input:focus { outline: none; border-color: rgba(27, 226, 127, .6); box-shadow: 0 0 0 4px rgba(27, 226, 127, .14); }
.ep-input-key { padding: 0 52px; letter-spacing: .14em; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 17px; text-align: left; direction: ltr; }
.ep-input-key::placeholder { letter-spacing: .14em; color: #4a5568; }
.ep-input-email { padding: 0 16px 0 52px; text-align: left; direction: ltr; letter-spacing: .01em; }
.ep-input-email::placeholder { color: #4a5568; }
.ep-input[aria-invalid="true"] { border-color: rgba(251, 113, 133, .65); box-shadow: 0 0 0 4px rgba(251, 113, 133, .13); }
.ep-input-wrap { direction: ltr; }
.ep-input-icon { position: absolute; left: 17px; color: var(--ep-muted); pointer-events: none; transition: color .2s; }
.ep-input-wrap:focus-within .ep-input-icon { color: var(--ep-green); }
.ep-input-wrap:has(.ep-input[aria-invalid="true"]) .ep-input-icon { color: var(--ep-rose); }
.ep-login-form .ep-help + .ep-field { margin-top: 6px; }
.ep-input-btn {
  position: absolute; right: 8px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent;
  color: var(--ep-muted); cursor: pointer; display: grid; place-items: center;
}
.ep-input-btn:hover { color: var(--ep-text); background: var(--ep-card-2); }
.ep-help { margin: 0 0 6px; color: var(--ep-muted); font-size: 13px; }
.ep-alert {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px;
  background: rgba(251, 113, 133, .08); border: 1px solid rgba(251, 113, 133, .3); color: #fecdd3; font-size: 14px;
}
.ep-alert[hidden] { display: none; }
.ep-alert .ep-ico { margin-top: 2px; color: var(--ep-rose); }
.ep-login-form .ep-btn { margin-top: 8px; height: 52px; font-size: 16px; }
.ep-login-note { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--ep-muted); font-size: 13px; }
.ep-login-note .ep-ico { width: 15px; height: 15px; color: var(--ep-green); }
.ep-login-guard { margin-top: 10px; font-size: 12.5px; text-align: center; line-height: 1.7; }
.ep-login-guard .ep-ico { color: var(--ep-amber); flex-shrink: 0; }
.ep-alert-body { display: grid; gap: 4px; min-width: 0; line-height: 1.65; }
.ep-alert-sub { color: var(--ep-amber); font-size: 13px; font-weight: 600; }
.ep-alert-ban { padding: 16px; gap: 12px; background: linear-gradient(180deg, rgba(251, 113, 133, .13), rgba(251, 113, 133, .05)); }
.ep-alert-ban > .ep-ico { width: 34px; height: 34px; margin: 0; display: grid; place-items: center; flex-shrink: 0; border-radius: 11px; background: rgba(251, 113, 133, .16); }
.ep-alert-ban > .ep-ico svg { width: 18px; height: 18px; }
.ep-alert-ban .ep-alert-sub { font-variant-numeric: tabular-nums; }
.ep-alert-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: #fecdd3; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.ep-alert-link:hover { color: #fff; }
.ep-alert-link .ep-ico { width: 15px; height: 15px; margin: 0; color: inherit; }
.ep-login-form .ep-input:disabled, .ep-login-form .ep-input-btn:disabled { opacity: .5; cursor: not-allowed; }
.ep-login-form .ep-btn:disabled .ep-ico { width: 17px; height: 17px; }
.ep-act-login_failed { background: var(--ep-rose); box-shadow: 0 0 0 4px rgba(251, 113, 133, .12); }

/* Header */
.ep-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ep-eyebrow { display: block; color: var(--ep-green); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
html[lang="fa"] .ep-eyebrow { letter-spacing: 0; text-transform: none; }
.ep-owner { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; min-width: 0; }
.ep-owner-avatar {
  width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px;
  border: 1px solid rgba(27, 226, 127, .3); color: var(--ep-green);
  background: linear-gradient(135deg, rgba(27, 226, 127, .2), rgba(56, 189, 248, .1));
}
.ep-owner-avatar .ep-ico { width: 20px; height: 20px; }
.ep-owner-text { display: grid; gap: 2px; min-width: 0; }
.ep-owner-text b { font-size: 16px; font-weight: 700; color: var(--ep-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-owner-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 13px; color: var(--ep-muted); min-width: 0; }
.ep-owner-meta bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ep-owner-sep { opacity: .5; }
.ep-head-main { min-width: 0; flex: 1; }
.ep-head-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ep-keyline { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.ep-keyline .ep-icon-btn[hidden] { display: none !important; }
.ep-key { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: clamp(20px, 3vw, 28px); font-weight: 600; letter-spacing: .08em; color: var(--ep-text); overflow-wrap: anywhere; }
.ep-key.is-open { font-size: clamp(16px, 2.2vw, 22px); letter-spacing: .04em; user-select: all; }
.ep-head-actions { display: flex; gap: 10px; }
.ep-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid; }
.ep-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.ep-pill-active { color: var(--ep-green); border-color: rgba(27, 226, 127, .3); background: rgba(27, 226, 127, .08); }
.ep-pill-unused { color: var(--ep-amber); border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .08); }
.ep-pill-expired, .ep-pill-deactivated { color: var(--ep-rose); border-color: rgba(251, 113, 133, .3); background: rgba(251, 113, 133, .08); }

/* License */
.ep-license { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; }
.ep-ring { position: relative; width: 150px; height: 150px; }
.ep-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ep-ring-track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 10; }
.ep-ring-fill { fill: none; stroke: var(--ep-green); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2, .7, .1, 1); filter: drop-shadow(0 0 8px rgba(27, 226, 127, .5)); }
.ep-ring-expired .ep-ring-fill, .ep-ring-deactivated .ep-ring-fill { stroke: var(--ep-rose); filter: none; }
.ep-ring-unused .ep-ring-fill { stroke: var(--ep-amber); filter: none; }
.ep-ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ep-ring-center b { font-size: 38px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.ep-ring-center span { color: var(--ep-muted); font-size: 12.5px; margin-top: 4px; }
.ep-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.ep-stat { display: grid; gap: 4px; min-width: 0; }
.ep-stat-label { color: var(--ep-muted); font-size: 13px; }
.ep-stat-value { font-size: 16.5px; font-weight: 600; overflow-wrap: anywhere; }
.ep-meter-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.ep-meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.ep-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ep-green), var(--ep-cyan)); transition: width .8s cubic-bezier(.2, .7, .1, 1); }

/* License list */
.ep-lic-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ep-lic {
  padding: 14px 16px; border-radius: 16px; border: 1px solid var(--ep-line); background: rgba(255, 255, 255, .025);
}
.ep-lic.is-current { border-color: rgba(27, 226, 127, .35); background: rgba(27, 226, 127, .05); }
.ep-lic-main { display: grid; gap: 8px; min-width: 0; }
.ep-lic-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ep-lic-key { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 16px; font-weight: 600; letter-spacing: .06em; color: var(--ep-text); overflow-wrap: anywhere; }
.ep-lic-key.is-open { user-select: all; letter-spacing: .04em; }
.ep-lic-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ep-muted); font-size: 13px; }
.ep-lic-badge {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--ep-green); border: 1px solid rgba(27, 226, 127, .3); background: rgba(27, 226, 127, .08);
}

/* Devices */
.ep-devices { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ep-device {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--ep-line); background: rgba(255, 255, 255, .025); transition: border-color .2s, background .2s;
}
.ep-device:hover { border-color: var(--ep-line-2); background: rgba(255, 255, 255, .04); }
.ep-device-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; color: var(--ep-cyan); background: rgba(56, 189, 248, .1); }
.ep-device-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ep-device-name { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-device-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ep-muted); font-size: 12.5px; }
.ep-device-meta code { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--ep-text-2); }
.ep-device-actions { display: flex; gap: 6px; flex: none; }
.ep-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 28px 12px; color: var(--ep-muted); border: 1px dashed var(--ep-line-2); border-radius: 16px; }
.ep-empty .ep-ico { width: 30px; height: 30px; color: var(--ep-cyan); }
.ep-empty p { margin: 0; max-width: 360px; }
.ep-note { display: flex; gap: 9px; align-items: flex-start; margin: 16px 0 0; color: var(--ep-muted); font-size: 13.5px; }
.ep-note .ep-ico { width: 16px; height: 16px; margin-top: 2px; color: var(--ep-green); }
.ep-note-warn, .ep-note-warn .ep-ico { color: #fcd34d; }

/* Security & activity */
.ep-big-stat { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.ep-big-stat b { font-size: 34px; font-weight: 700; line-height: 1; }
.ep-big-stat span { color: var(--ep-muted); font-size: 14px; }
.ep-activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-height: 340px; overflow: auto; padding-inline-end: 4px; }
.ep-activity li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; }
.ep-activity li > div { display: grid; gap: 1px; min-width: 0; }
.ep-activity b { font-size: 14px; font-weight: 600; }
.ep-act-detail { color: var(--ep-text-2); font-size: 13px; overflow-wrap: anywhere; }
.ep-act-meta { color: var(--ep-muted); font-size: 12.5px; }
.ep-act-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--ep-cyan); box-shadow: 0 0 0 4px rgba(56, 189, 248, .12); }
.ep-act-device_removed, .ep-act-devices_reset { background: var(--ep-rose); box-shadow: 0 0 0 4px rgba(251, 113, 133, .12); }
.ep-act-login { background: var(--ep-green); box-shadow: 0 0 0 4px rgba(27, 226, 127, .12); }
.ep-act-device_renamed { background: var(--ep-amber); box-shadow: 0 0 0 4px rgba(251, 191, 36, .12); }
.ep-muted { color: var(--ep-muted); margin: 0; }
.ep-help-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  background: radial-gradient(500px 160px at 0% 0%, rgba(27, 226, 127, .12), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018)); }
.ep-help-card p { margin: 4px 0 0; color: var(--ep-muted); }

/* Profile */
.ep-card-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ep-card-ico {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 15px; color: var(--ep-green);
  border: 1px solid rgba(27, 226, 127, .28); background: linear-gradient(135deg, rgba(27, 226, 127, .18), rgba(56, 189, 248, .08));
}
.ep-card-ico .ep-ico { width: 21px; height: 21px; }
.ep-profile.is-editing { border-color: rgba(27, 226, 127, .32); box-shadow: 0 0 0 4px rgba(27, 226, 127, .06), 0 24px 60px -30px rgba(27, 226, 127, .35); }
.ep-profile { transition: border-color .25s, box-shadow .25s; }
.ep-pf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ep-pf-item {
  display: flex; align-items: center; gap: 13px; min-width: 0; padding: 15px 16px; border-radius: 16px;
  border: 1px solid var(--ep-line); background: rgba(255, 255, 255, .025); transition: border-color .2s, background .2s;
}
.ep-pf-item:hover { border-color: var(--ep-line-2); background: rgba(255, 255, 255, .04); }
.ep-pf-item-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--ep-cyan); background: rgba(56, 189, 248, .1); }
.ep-pf-item-ico .ep-ico { width: 18px; height: 18px; }
.ep-pf-item.is-locked .ep-pf-item-ico { color: var(--ep-muted); background: rgba(255, 255, 255, .05); }
.ep-pf-item-body { display: grid; gap: 3px; min-width: 0; flex: 1; }
.ep-pf-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ep-muted); font-size: 12.5px; min-width: 0; }
.ep-pf-lock { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--ep-text-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--ep-line); }
.ep-pf-lock .ep-ico { width: 11px; height: 11px; }
.ep-pf-value { display: block; font-size: 15.5px; font-weight: 600; color: var(--ep-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-pf-value[dir="ltr"] { text-align: left; unicode-bidi: isolate; }
[dir="rtl"] .ep-pf-value[dir="ltr"] { text-align: right; }
.ep-pf-value.is-empty { color: var(--ep-muted); font-weight: 500; font-size: 14.5px; }

.ep-pf-form { display: grid; gap: 22px; animation: ep-in .3s cubic-bezier(.2, .7, .1, 1); }
.ep-pf-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.ep-pf-field { align-content: start; }
.ep-affix { position: relative; display: flex; align-items: center; }
.ep-affix .ep-input { height: 52px; padding-inline-start: 48px; }
.ep-affix .ep-ico { position: absolute; color: var(--ep-muted); pointer-events: none; transition: color .2s; }
.ep-affix-start { inset-inline-start: 16px; }
.ep-affix-end { inset-inline-end: 16px; width: 16px; height: 16px; }
.ep-affix:focus-within .ep-affix-start { color: var(--ep-green); }
.ep-affix:has(.ep-input[aria-invalid="true"]) .ep-affix-start { color: var(--ep-rose); }
.ep-pf-field.is-locked .ep-input { padding-inline-end: 44px; color: var(--ep-text-2); background: rgba(255, 255, 255, .025); border-style: dashed; cursor: not-allowed; opacity: 1; }
.ep-input::placeholder { color: #4a5568; }
.ep-input[type="tel"] { letter-spacing: .03em; }
.ep-pf-note { display: flex; align-items: flex-start; gap: 7px; margin: 0; color: var(--ep-muted); font-size: 12.5px; line-height: 1.6; }
.ep-pf-note[hidden] { display: none; }
.ep-pf-note.is-error { color: #fecdd3; }
.ep-pf-note .ep-ico { width: 15px; height: 15px; margin-top: 2px; color: var(--ep-rose); }
.ep-pf-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--ep-line); }
.ep-pf-buttons { display: flex; gap: 10px; margin-inline-start: auto; }
.ep-pf-buttons .ep-btn { min-width: 120px; }
.ep-pf-quota:empty { display: none; }
.ep-pf-quota { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ep-muted); font-size: 13px; }
.ep-pf-quota .ep-ico { width: 15px; height: 15px; color: var(--ep-cyan); }
.ep-pf-quota.is-warn, .ep-pf-quota.is-warn .ep-ico { color: #fcd34d; }
.ep-pf-editing { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ep-green); border: 1px solid rgba(27, 226, 127, .3); background: rgba(27, 226, 127, .08); }
.ep-pf-editing .ep-dot { animation: ep-pulse 1.6s ease-in-out infinite; }
@keyframes ep-pulse { 50% { opacity: .35; } }
.ep-act-profile_updated { background: #a78bfa; box-shadow: 0 0 0 4px rgba(167, 139, 250, .14); }

/* Support tickets */
.ep-help-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ep-tickets h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ep-tk-actions { display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.ep-tickets .ep-tk-refresh { min-width: 0; color: var(--ep-text-2); }
.ep-tickets .ep-tk-refresh:hover:not(:disabled) { color: var(--ep-text); }
.ep-tk-unread {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0;
  color: #03140a; background: var(--ep-green); box-shadow: 0 0 0 4px rgba(27, 226, 127, .14), 0 8px 18px -8px rgba(27, 226, 127, .7);
}
.ep-tk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ep-tk-row {
  position: relative; width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--ep-line); background: rgba(255, 255, 255, .025); color: inherit; font: inherit; text-align: start; cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.ep-tk-row:hover { border-color: var(--ep-line-2); background: rgba(255, 255, 255, .045); }
.ep-tk-row:active { transform: scale(.995); }
.ep-tk-row.is-unread { border-color: rgba(27, 226, 127, .35); background: linear-gradient(90deg, rgba(27, 226, 127, .08), rgba(255, 255, 255, .02) 60%); }
[dir="rtl"] .ep-tk-row.is-unread { background: linear-gradient(270deg, rgba(27, 226, 127, .08), rgba(255, 255, 255, .02) 60%); }
.ep-tk-row.is-closed { opacity: .78; }
.ep-tk-row-ico {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px;
  color: var(--ep-cyan); background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .18);
}
.ep-tk-row.is-open .ep-tk-row-ico { color: var(--ep-amber); background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .22); }
.ep-tk-row.is-answered .ep-tk-row-ico { color: var(--ep-green); background: rgba(27, 226, 127, .1); border-color: rgba(27, 226, 127, .24); }
.ep-tk-row.is-closed .ep-tk-row-ico { color: var(--ep-muted); background: rgba(255, 255, 255, .05); border-color: var(--ep-line); }
.ep-tk-row-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ep-tk-row-subject { font-size: 15px; font-weight: 600; color: var(--ep-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-tk-row-subject, .ep-tk-subject { text-align: left; }
html[dir="rtl"] .ep-tk-row-subject, html[dir="rtl"] .ep-tk-subject { text-align: right; }
.ep-tk-row-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--ep-muted); font-size: 12.5px; }
.ep-tk-no { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 600; color: var(--ep-text-2); direction: ltr; unicode-bidi: isolate; }
.ep-tk-row-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; flex: none; }
.ep-tk-row-arrow { width: 16px; height: 16px; color: var(--ep-muted); transition: transform .2s; }
[dir="rtl"] .ep-tk-row-arrow, [dir="rtl"] .ep-flip { transform: scaleX(-1); }
.ep-tk-row:hover .ep-tk-row-arrow { transform: translateX(3px); color: var(--ep-text); }
[dir="rtl"] .ep-tk-row:hover .ep-tk-row-arrow { transform: scaleX(-1) translateX(3px); }
.ep-tk-new { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ep-green); white-space: nowrap; }
.ep-tk-new .ep-dot { width: 7px; height: 7px; animation: ep-pulse 1.6s ease-in-out infinite; }
.ep-tk-row-rating { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; color: var(--ep-amber); }
.ep-tk-row-rating .ep-ico { width: 14px; height: 14px; }
.ep-tk-row-rating svg, .ep-tk-star.is-on svg { fill: currentColor; }

.ep-tk-status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid; white-space: nowrap; }
.ep-tk-status .ep-dot { width: 7px; height: 7px; }
.ep-tk-status.is-open { color: var(--ep-amber); border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .08); }
.ep-tk-status.is-pending { color: var(--ep-cyan); border-color: rgba(56, 189, 248, .3); background: rgba(56, 189, 248, .08); }
.ep-tk-status.is-answered { color: var(--ep-green); border-color: rgba(27, 226, 127, .3); background: rgba(27, 226, 127, .08); }
.ep-tk-status.is-closed { color: var(--ep-muted); border-color: var(--ep-line-2); background: rgba(255, 255, 255, .04); }
.ep-tk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; color: var(--ep-text-2); background: rgba(255, 255, 255, .05); border: 1px solid var(--ep-line); }
.ep-tk-chip .ep-ico { width: 14px; height: 14px; color: var(--ep-cyan); }

.ep-tk-more {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 11px; border-radius: 14px;
  border: 1px dashed var(--ep-line-2); background: none; color: var(--ep-text-2); font: 600 14px inherit; font-family: inherit; cursor: pointer;
}
.ep-tk-more:hover { color: var(--ep-text); background: rgba(255, 255, 255, .03); }
.ep-tk-more .ep-ico { width: 15px; height: 15px; transition: transform .2s; }
.ep-tk-more .is-down { transform: rotate(90deg); }
.ep-tk-more .is-up { transform: rotate(-90deg); }
.ep-tk-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 30px 16px; border: 1px dashed var(--ep-line-2); border-radius: 18px; }
.ep-tk-empty b { font-size: 16px; }
.ep-tk-empty p { margin: 0; max-width: 440px; color: var(--ep-muted); font-size: 14px; }
.ep-tk-empty-art, .ep-tk-new-art {
  width: 60px; height: 60px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 20px; color: var(--ep-green);
  border: 1px solid rgba(27, 226, 127, .25); background: radial-gradient(circle at 30% 25%, rgba(27, 226, 127, .25), rgba(27, 226, 127, .05));
  box-shadow: 0 18px 40px -18px rgba(27, 226, 127, .6);
}
.ep-tk-empty-art .ep-ico, .ep-tk-new-art .ep-ico { width: 26px; height: 26px; }

.ep-act-ticket_created { background: var(--ep-green); box-shadow: 0 0 0 4px rgba(27, 226, 127, .12); }
.ep-act-ticket_closed { background: var(--ep-muted); box-shadow: 0 0 0 4px rgba(143, 157, 178, .14); }

/* Drawer */
html.ep-lock-scroll { overflow: hidden; }
.ep-drawer-overlay {
  position: fixed; inset: 0; z-index: 150; display: flex; justify-content: flex-end;
  background: rgba(2, 5, 12, 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0);
  transition: background .26s, backdrop-filter .26s;
}
.ep-drawer-overlay.is-open { background: rgba(2, 5, 12, .66); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.ep-drawer {
  position: relative; width: min(600px, 100%); height: 100%; display: flex; flex-direction: column; outline: none;
  background: radial-gradient(500px 220px at 100% 0%, rgba(27, 226, 127, .07), transparent 70%), #0a111e;
  border-inline-start: 1px solid var(--ep-line-2); box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .9); color: var(--ep-text);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .7, .1, 1);
}
[dir="rtl"] .ep-drawer { transform: translateX(-100%); box-shadow: 30px 0 80px -30px rgba(0, 0, 0, .9); }
.ep-drawer-overlay.is-open .ep-drawer { transform: none; }
.ep-drawer-head {
  display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--ep-line);
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
}
.ep-drawer-title { flex: 1; min-width: 0; display: grid; gap: 6px; }
.ep-drawer-title h2 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; }
.ep-drawer-head .ep-tk-close { flex: none; }
.ep-tk-head-actions { display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.ep-tk-live {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(27, 226, 127, .28); background: rgba(27, 226, 127, .08);
  color: var(--ep-green); font-size: 12px; font-weight: 700; white-space: nowrap;
}
.ep-tk-live .ep-dot { width: 7px; height: 7px; animation: ep-pulse 1.6s ease-in-out infinite; }
.ep-tk-refresh.is-loading { pointer-events: none; }
.ep-tk-refresh.is-loading .ep-ico { animation: ep-spin .8s linear infinite; }
.ep-drawer-x { flex: none; }
.ep-drawer-x .ep-ico { width: 18px; height: 18px; }
.ep-drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 22px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .22) transparent; }
.ep-drawer-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ep-drawer-form .ep-drawer-body { display: grid; align-content: start; gap: 20px; }
.ep-drawer-form .ep-note { margin: 0; }
.ep-drawer-foot {
  display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--ep-line); background: rgba(3, 7, 15, .55);
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}
.ep-drawer-form .ep-drawer-foot .ep-btn { min-width: 130px; }

.ep-tk-new-intro { display: flex; align-items: center; gap: 16px; }
.ep-tk-new-intro p { margin: 0; color: var(--ep-text-2); font-size: 14.5px; line-height: 1.7; }
.ep-tk-new-art { flex: none; width: 52px; height: 52px; margin: 0; border-radius: 17px; }
.ep-tk-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ep-tk-cat {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 14px; text-align: start;
  border: 1px solid var(--ep-line-2); background: rgba(255, 255, 255, .025); color: var(--ep-text-2); font: 600 13.5px/1.35 inherit; font-family: inherit; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.ep-tk-cat:hover { border-color: rgba(255, 255, 255, .26); color: var(--ep-text); }
.ep-tk-cat-ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--ep-cyan); background: rgba(56, 189, 248, .1); transition: inherit; }
.ep-tk-cat-ico .ep-ico { width: 16px; height: 16px; }
.ep-tk-cat.is-on { color: var(--ep-text); border-color: rgba(27, 226, 127, .55); background: rgba(27, 226, 127, .08); box-shadow: 0 0 0 3px rgba(27, 226, 127, .1); }
.ep-tk-cat.is-on .ep-tk-cat-ico { color: #03140a; background: var(--ep-green); }
.ep-tk-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ep-tk-counter { font-size: 12px; color: var(--ep-muted); font-variant-numeric: tabular-nums; }
.ep-tk-counter.is-near { color: var(--ep-amber); font-weight: 700; }
.ep-drawer-form .ep-input { height: 52px; font-size: 15.5px; }
.ep-drawer-form .ep-tk-textarea, .ep-tk-input { height: auto; padding: 14px 16px; line-height: 1.75; resize: none; display: block; }
.ep-drawer-form .ep-tk-textarea { min-height: 170px; }

/* Thread */
.ep-tk-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ep-tk-subject { overflow-wrap: anywhere; }
.ep-tk-opened { color: var(--ep-muted); font-size: 12.5px; }
.ep-tk-loading { display: grid; gap: 14px; }
.ep-tk-skel { height: 76px; width: 78%; border-radius: 18px; }
.ep-tk-skel.is-end { margin-inline-start: auto; width: 62%; }
.ep-tk-thread { display: flex; flex-direction: column; gap: 12px; }
.ep-tk-day { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; color: var(--ep-muted); font-size: 12px; font-weight: 600; }
.ep-tk-day::before, .ep-tk-day::after { content: ""; flex: 1; height: 1px; background: var(--ep-line); }
.ep-tk-msg { display: flex; align-items: flex-end; gap: 10px; max-width: 88%; animation: ep-in .3s cubic-bezier(.2, .7, .1, 1); }
.ep-tk-msg.is-mine { align-self: flex-end; }
.ep-tk-avatar {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--ep-green);
  border: 1px solid rgba(27, 226, 127, .3); background: linear-gradient(135deg, rgba(27, 226, 127, .2), rgba(56, 189, 248, .1));
}
.ep-tk-avatar .ep-ico { width: 17px; height: 17px; }
.ep-tk-bubble { min-width: 0; padding: 10px 15px 12px; border-radius: 18px; border: 1px solid var(--ep-line); background: rgba(255, 255, 255, .05); }
.ep-tk-msg.is-support .ep-tk-bubble { border-end-start-radius: 6px; }
.ep-tk-msg.is-mine .ep-tk-bubble {
  border-end-end-radius: 6px; border-color: rgba(27, 226, 127, .3);
  background: linear-gradient(135deg, rgba(27, 226, 127, .17), rgba(56, 189, 248, .07));
}
.ep-tk-bubble-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 4px; font-size: 12px; color: var(--ep-muted); }
.ep-tk-bubble-head b { font-size: 12.5px; font-weight: 700; color: var(--ep-text-2); }
.ep-tk-msg.is-support .ep-tk-bubble-head b { color: var(--ep-green); }
.ep-tk-bubble-head time { font-variant-numeric: tabular-nums; }
.ep-tk-text { font-size: 15px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ep-text); }
.ep-tk-text a { color: var(--ep-cyan); text-decoration: underline; text-underline-offset: 3px; }
.ep-tk-label-tools { display: inline-flex; align-items: center; gap: 8px; }
.ep-tk-attach-wrap { position: relative; display: inline-flex; }
.ep-tk-file { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.ep-tk-shots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ep-tk-shot { padding: 0; border: 0; background: none; cursor: zoom-in; }
.ep-tk-shot img, .ep-tk-shot-draft img { display: block; width: auto; max-width: min(240px, 100%); max-height: 160px; border-radius: 14px; object-fit: cover; }
.ep-tk-shot-draft { position: relative; display: inline-flex; margin-top: 8px; }
.ep-tk-shot-draft[hidden] { display: none; }
.ep-tk-shot-x {
  position: absolute; top: 6px; inset-inline-end: 6px; width: 26px; height: 26px;
  display: grid; place-items: center; border: 0; border-radius: 8px;
  background: rgba(7, 13, 26, .78); color: #fff; cursor: pointer;
}
.ep-tk-shot-x .ep-ico { width: 14px; height: 14px; }
.ep-shot-lightbox[hidden] { display: none !important; }
.ep-shot-lightbox {
  position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 24px;
  background: rgba(3, 7, 15, .84); backdrop-filter: blur(8px);
}
.ep-shot-lightbox img { width: auto; max-width: min(1000px, 100%); max-height: calc(100vh - 72px); border-radius: 16px; }
.ep-shot-close { position: absolute; top: 16px; inset-inline-end: 16px; }
.ep-tk-event {
  align-self: center; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--ep-line); background: rgba(255, 255, 255, .035); color: var(--ep-muted); font-size: 12.5px;
}
.ep-tk-event .ep-ico { width: 14px; height: 14px; }
.ep-tk-event time { opacity: .7; font-variant-numeric: tabular-nums; }
.ep-tk-waiting {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; padding: 12px 14px; border-radius: 14px;
  border: 1px dashed rgba(56, 189, 248, .35); background: rgba(56, 189, 248, .06); color: var(--ep-text-2); font-size: 13.5px; line-height: 1.65;
}
.ep-tk-waiting .ep-ico { width: 16px; height: 16px; margin-top: 3px; color: var(--ep-cyan); }

.ep-tk-foot { display: grid; gap: 12px; justify-content: stretch; }
.ep-tk-compose { display: grid; gap: 8px; }
.ep-tk-compose-row { display: flex; align-items: flex-end; gap: 10px; }
.ep-tk-input { flex: 1; min-height: 52px; max-height: 180px; border-radius: 18px; font-size: 15px; }
.ep-tk-send { flex: none; width: 52px; height: 52px; padding: 0; }
.ep-tk-send .ep-ico { width: 20px; height: 20px; }
.ep-tk-compose .ep-tk-counter:empty { display: none; }
.ep-tk-reopen { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ep-muted); font-size: 13px; }
.ep-tk-reopen .ep-ico { width: 15px; height: 15px; color: var(--ep-cyan); }
.ep-tk-rate {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, .28); background: linear-gradient(135deg, rgba(251, 191, 36, .1), rgba(251, 191, 36, .03));
}
.ep-tk-rate.is-done { border-color: rgba(27, 226, 127, .3); background: linear-gradient(135deg, rgba(27, 226, 127, .1), rgba(27, 226, 127, .03)); }
.ep-tk-rate-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
.ep-tk-rate-label .ep-ico { width: 16px; height: 16px; color: var(--ep-green); }
.ep-tk-stars { display: flex; gap: 2px; direction: ltr; }
.ep-tk-star { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: rgba(255, 255, 255, .28); cursor: pointer; transition: color .15s, transform .15s; }
.ep-tk-star .ep-ico { width: 26px; height: 26px; }
.ep-tk-star:hover { transform: scale(1.12); }
.ep-tk-star.is-on { color: var(--ep-amber); }

/* Skeleton */
.ep-skel { border-radius: var(--ep-r); background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .08), rgba(255, 255, 255, .04)); background-size: 200% 100%; animation: ep-shimmer 1.3s infinite; }
.ep-skel-bar { height: 70px; max-width: 420px; }
.ep-skel-card { height: 220px; }
@keyframes ep-shimmer { to { background-position: -200% 0; } }

/* Dialog */
.ep-overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(2, 5, 12, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: ep-fade .18s ease;
}
.ep-overlay.out { opacity: 0; transition: opacity .18s; }
@keyframes ep-fade { from { opacity: 0; } }
.ep-dialog {
  width: 100%; max-width: 440px; padding: 26px; border-radius: 22px; background: #0b1322; border: 1px solid var(--ep-line-2);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .9); color: var(--ep-text); display: grid; gap: 14px; animation: ep-pop .22s cubic-bezier(.2, .7, .1, 1);
}
@keyframes ep-pop { from { transform: scale(.96) translateY(8px); opacity: 0; } }
.ep-dialog h3 { margin: 0; font-size: 20px; }
.ep-dialog p { margin: 0; color: var(--ep-text-2); line-height: 1.65; }
.ep-dialog .ep-input { height: 48px; }
.ep-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; flex-wrap: wrap; }

/* Toasts */
.ep-toasts { position: fixed; z-index: 300; inset-inline: 0; bottom: 22px; display: grid; justify-items: center; gap: 10px; pointer-events: none; padding: 0 16px; }
.ep-toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; max-width: 480px;
  background: #0f1b2e; border: 1px solid rgba(27, 226, 127, .3); color: #eef3fa; font-size: 14.5px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .8); animation: ep-pop .25s cubic-bezier(.2, .7, .1, 1); transition: opacity .3s, transform .3s;
}
.ep-toast .ep-ico { color: var(--ep-green); }
.ep-toast.is-error { border-color: rgba(251, 113, 133, .4); }
.ep-toast.is-error .ep-ico { color: var(--ep-rose); }
.ep-toast.out { opacity: 0; transform: translateY(8px); }

/* Responsive */
@media (max-width: 1100px) {
  .ep-pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .ep-grid { grid-template-columns: minmax(0, 1fr); }
  .ep-span-2, .ep-span-3 { grid-column: auto; }
}
@media (max-width: 620px) {
  .ep-card { padding: 20px; }
  .ep-login { padding: 30px 20px 24px; }
  .ep-login-title { font-size: 24px; }
  .ep-input-key, .ep-input-key::placeholder { letter-spacing: .06em; font-size: 16px; }
  .ep-input-key { padding: 0 46px; }
  .ep-license { grid-template-columns: 1fr; justify-items: center; gap: 22px; }
  .ep-license-info { width: 100%; }
  .ep-stats { grid-template-columns: 1fr 1fr; }
  .ep-device { flex-wrap: wrap; }
  .ep-device-main { flex-basis: calc(100% - 60px); }
  .ep-device-actions { width: 100%; justify-content: flex-end; }
  .ep-hide-sm { display: none; }
  .ep-head { align-items: flex-start; }
  .ep-dialog-actions .ep-btn { flex: 1; }
  .ep-profile .ep-card-head { flex-wrap: wrap; }
  .ep-card-ico { width: 40px; height: 40px; border-radius: 13px; }
  .ep-pf-grid, .ep-pf-fields { grid-template-columns: minmax(0, 1fr); }
  .ep-pf-grid { gap: 10px; }
  .ep-pf-item { padding: 13px 14px; }
  .ep-pf-buttons { width: 100%; }
  .ep-pf-buttons .ep-btn { flex: 1; min-width: 0; }

  .ep-help-actions { width: 100%; }
  .ep-help-actions .ep-btn { flex: 1; }
  .ep-tickets .ep-card-head { flex-wrap: wrap; }
  .ep-tickets .ep-tk-actions { width: 100%; }
  .ep-tickets .ep-tk-actions .ep-btn-primary { flex: 1; }
  .ep-tk-row { flex-wrap: wrap; gap: 10px 12px; padding: 13px 14px; }
  .ep-tk-row-ico { width: 38px; height: 38px; border-radius: 12px; }
  .ep-tk-row-main { flex-basis: calc(100% - 50px); }
  .ep-tk-row-end { width: 100%; justify-content: flex-start; padding-inline-start: 50px; }
  .ep-tk-row-arrow { display: none; }
  .ep-drawer { width: 100%; border-inline-start: 0; }
  .ep-drawer-head { padding: 14px 16px 12px; padding-top: calc(14px + env(safe-area-inset-top, 0px)); flex-wrap: wrap; }
  .ep-drawer-title { flex-basis: calc(100% - 50px); order: 1; }
  .ep-drawer-x { order: 2; }
  .ep-drawer-head .ep-tk-head-actions { order: 3; width: 100%; justify-content: flex-start; }
  .ep-drawer-head .ep-tk-close { flex: 1; min-width: 0; }
  .ep-drawer-title h2 { font-size: 17px; }
  .ep-drawer-body { padding: 16px; }
  .ep-drawer-foot { padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .ep-drawer-form .ep-drawer-foot .ep-btn { flex: 1; min-width: 0; }
  .ep-tk-new-intro { gap: 12px; }
  .ep-tk-new-intro p { font-size: 14px; }
  .ep-tk-cats { grid-template-columns: 1fr 1fr; }
  .ep-tk-cat { min-height: 48px; padding: 7px 10px; gap: 8px; font-size: 13px; }
  .ep-tk-cat-ico { width: 28px; height: 28px; }
  .ep-drawer-form .ep-input, .ep-tk-input { font-size: 16px; }
  .ep-tk-msg { max-width: 94%; }
  .ep-tk-avatar { width: 30px; height: 30px; border-radius: 10px; }
  .ep-tk-text { font-size: 14.5px; }
  .ep-tk-rate { padding: 12px; justify-content: center; text-align: center; }
  .ep-tk-star { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  #endism-panel *, .ep-overlay, .ep-toast, .ep-drawer-overlay, .ep-drawer-overlay * { animation: none !important; transition: none !important; }
}
