/*
 * Benutzerbereich (Mitarbeiter im Web): Anmelden, Firmenwahl, "Was fehlt noch?",
 * Seiten je Punkt, Konto. Nach der genehmigten Vorschau vom 14.11.2026
 * (eventjob-master 2026-11-13-cosmetics/vorschau/mitarbeiter-login/).
 *
 * Mobil zuerst. Auf diesen Seiten ist die Grundschrift 16 px (iOS zoomt ein
 * Feld unter 16 px beim Antippen heran); die Größen kommen aus den Tokens von
 * framework.css, hier im Bereich .ej-me überschrieben, immer mit Fallback.
 * Alles ist unter .ej-me geschachtelt, damit nichts auf andere Seiten wirkt.
 */
body#ej-me-body,
body#authentication-bg:has(.ej-me) {
    background: #f6f7fb;
}

.ej-me {
    --ej-fs-body: 1rem;
    --ej-lh-body: 1.5rem;
    --ej-fs-title: 1.375rem;
    --ej-lh-title: 1.8rem;
    --ej-fs-section: 1.125rem;
    --ej-lh-section: 1.5rem;

    --me-primary: #6731a1;
    --me-primary-rgb: 103, 49, 161;
    --me-primary-dark: #5a2a8d;
    --me-primary-soft: #f2edf8;
    --me-primary-line: #d9c9ec;
    --me-bg: #f6f7fb;
    --me-text: #495057;
    --me-muted: #6c757d;
    --me-faint: #8a939c;
    --me-heading: #313a46;
    --me-border: #e3e6ec;
    --me-input: #d5dae1;
    --me-light: #eef2f7;
    --me-ok: #08805e;
    --me-ok-bg: #e1f8f1;
    --me-ok-line: #0acf97;
    --me-warn: #9a6114;
    --me-warn-bg: #fff4e0;
    --me-bad: #c4314f;
    --me-bad-bg: #fee7ec;
    --me-bad-line: #fa5c7c;

    min-height: 100vh;
    background: var(--me-bg);
    color: var(--me-text);
    font-size: var(--ej-fs-body, 1rem);
    line-height: var(--ej-lh-body, 1.5rem);
    -webkit-font-smoothing: antialiased;
}

.ej-me *,
.ej-me *::before,
.ej-me *::after {
    box-sizing: border-box;
}

.ej-me [hidden] {
    display: none !important;
}

.ej-me a {
    color: var(--me-primary);
    text-decoration: none;
}

.ej-me a:hover {
    text-decoration: underline;
}

.ej-me button,
.ej-me input,
.ej-me select,
.ej-me textarea {
    font: inherit;
    color: inherit;
}

.ej-me svg.i {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Anmelde-Seiten ---------- */
.ej-me .auth {
    padding: 16px 16px 32px;
}

@media (min-width: 600px) {
    .ej-me .auth {
        padding: 56px 16px 40px;
    }
}

.ej-me .auth-wrap {
    max-width: 440px;
    margin: 0 auto;
}

.ej-me .card {
    background: #fff;
    border: 1px solid var(--me-border);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(49, 58, 70, .04);
    margin: 0;
}

.ej-me .auth .card {
    padding: 24px 20px;
}

@media (min-width: 600px) {
    .ej-me .auth .card {
        padding: 32px 32px 28px;
    }
}

.ej-me .brand {
    display: flex;
    justify-content: center;
    margin: 4px 0 20px;
}

.ej-me .brand img {
    height: 50px;
    width: auto;
}

.ej-me .co {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: var(--me-primary-soft);
    margin-bottom: 20px;
}

.ej-me .co-logo {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
    color: var(--me-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--ej-fs-small, .875rem);
    overflow: hidden;
}

.ej-me .co-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ej-me .co-text {
    font-size: var(--ej-fs-small, .875rem);
    line-height: 1.35;
    color: var(--me-muted);
    min-width: 0;
}

.ej-me .co-text strong {
    display: block;
    color: var(--me-heading);
    font-weight: 600;
    font-size: var(--ej-fs-body, 1rem);
    overflow-wrap: anywhere;
}

.ej-me h1 {
    font-size: var(--ej-fs-title, 1.375rem);
    line-height: var(--ej-lh-title, 1.8rem);
    font-weight: 700;
    color: var(--me-heading);
    margin: 0 0 6px;
}

.ej-me .lead {
    margin: 0 0 22px;
    color: var(--me-muted);
    font-size: var(--ej-fs-body, 1rem);
    font-weight: 400;
}

.ej-me .field {
    margin-bottom: 18px;
}

.ej-me .label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.ej-me .form-label {
    display: block;
    font-weight: 600;
    color: var(--me-heading);
    margin-bottom: 6px;
    font-size: var(--ej-fs-body, 1rem);
}

.ej-me .form-label .opt {
    font-weight: 400;
    color: var(--me-muted);
}

.ej-me .label-row .form-label {
    margin: 0;
}

.ej-me .label-row a {
    font-size: var(--ej-fs-small, .875rem);
    font-weight: 600;
}

.ej-me .hint {
    font-size: var(--ej-fs-small, .875rem);
    line-height: var(--ej-lh-small, 1.25rem);
    color: var(--me-muted);
    margin-top: 6px;
}

.ej-me .form-control {
    display: block;
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    font-size: var(--ej-fs-body, 1rem);
    color: var(--me-heading);
    background: #fff;
    border: 1px solid var(--me-input);
    border-radius: 10px;
    outline: none;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}

.ej-me textarea.form-control {
    height: auto;
    min-height: 110px;
    resize: vertical;
}

.ej-me select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%236c757d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.ej-me .form-control:focus {
    border-color: #a988cf;
    box-shadow: 0 0 0 3px rgba(var(--me-primary-rgb), .14);
}

.ej-me .form-control.is-invalid {
    border-color: var(--me-bad-line);
}

.ej-me .form-control[readonly] {
    background: var(--me-light);
    color: var(--me-muted);
}

.ej-me .input-group {
    display: flex;
    flex-wrap: nowrap;
}

.ej-me .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    min-width: 0;
}

.ej-me .eye {
    flex: none;
    width: 52px;
    border: 1px solid var(--me-input);
    border-left: 0;
    background: #fff;
    border-radius: 0 10px 10px 0;
    color: var(--me-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ej-me .code-input {
    letter-spacing: 10px;
    font-size: var(--ej-fs-kpi, 1.5rem);
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
    height: 56px;
}

.ej-me .rules {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    font-size: var(--ej-fs-small, .875rem);
    line-height: 1.4;
    color: var(--me-muted);
}

.ej-me .rules li {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.ej-me .rules .dot {
    flex: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ej-me .rules .dot svg {
    width: 11px;
    height: 11px;
    display: none;
    stroke: #fff;
    fill: none;
    stroke-width: 2.2;
}

.ej-me .rules li.ok {
    color: var(--me-ok);
}

.ej-me .rules li.ok .dot {
    border-color: var(--me-ok-line);
    background: var(--me-ok-line);
}

.ej-me .rules li.ok .dot svg {
    display: block;
}

.ej-me .rules li.bad {
    color: var(--me-bad);
}

.ej-me .rules li.bad .dot {
    border-color: var(--me-bad-line);
}

.ej-me .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: var(--ej-fs-body, 1rem);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    line-height: 1.25;
    background: none;
    text-decoration: none;
    box-shadow: none;
}

.ej-me .btn:hover {
    text-decoration: none;
}

.ej-me .btn-block {
    display: flex;
    width: 100%;
}

.ej-me .btn-primary {
    background: var(--me-primary);
    border-color: var(--me-primary);
    color: #fff;
}

.ej-me .btn-primary:hover,
.ej-me .btn-primary:focus {
    background: var(--me-primary-dark);
    border-color: var(--me-primary-dark);
    color: #fff;
}

.ej-me .btn-primary[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

.ej-me .btn-ghost {
    color: var(--me-primary);
    background: #fff;
    border-color: var(--me-primary-line);
}

.ej-me .btn-ghost:hover {
    color: var(--me-primary);
    background: var(--me-primary-soft);
}

.ej-me .btn-quiet {
    color: var(--me-text);
    background: var(--me-light);
}

.ej-me .btn-quiet:hover {
    color: var(--me-heading);
    background: #e4e9f0;
}

.ej-me .btn-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.ej-me .alert {
    border: 0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: var(--ej-fs-body, 1rem);
    line-height: 1.45;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ej-me .alert .i {
    margin-top: 2px;
}

.ej-me .alert-bad {
    background: var(--me-bad-bg);
    color: #8f2238;
}

.ej-me .alert-ok {
    background: var(--me-ok-bg);
    color: #065f46;
}

.ej-me .alert-info {
    background: var(--me-primary-soft);
    color: #4a2377;
}

.ej-me .alert b {
    overflow-wrap: anywhere;
}

.ej-me .below {
    text-align: center;
    margin-top: 18px;
    font-size: var(--ej-fs-small, .875rem);
    line-height: var(--ej-lh-small, 1.25rem);
    color: var(--me-muted);
}

.ej-me .below a {
    font-weight: 600;
}

.ej-me .me-foot {
    text-align: center;
    color: var(--me-faint);
    font-size: var(--ej-fs-small, .875rem);
    margin-top: 24px;
}

.ej-me .status-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 4px auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ej-me .status-icon .i {
    width: 30px;
    height: 30px;
}

.ej-me .status-icon.ok {
    background: var(--me-ok-bg);
    color: var(--me-ok);
}

.ej-me .status-icon.info {
    background: var(--me-primary-soft);
    color: var(--me-primary);
}

.ej-me .center {
    text-align: center;
}

.ej-me .back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--me-muted);
    font-weight: 600;
    margin: 0 0 14px;
    min-height: 40px;
}

/* ---------- Angemeldet: Rahmen ---------- */
.ej-me .top {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    border-bottom: 1px solid var(--me-border);
}

.ej-me .top-in {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 60px;
    padding: 0 16px;
    max-width: 1120px;
    margin: 0 auto;
}

.ej-me .top-logo img {
    height: 38px;
    width: auto;
    display: block;
}

.ej-me .top-sp {
    flex: 1;
}

.ej-me .switch {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    min-width: 0;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--me-border);
    border-radius: 999px;
    background: #fff;
    color: var(--me-heading);
    max-width: 56%;
}

.ej-me a.switch:hover {
    text-decoration: none;
    background: #fafbfd;
}

.ej-me .switch .co-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--me-primary-soft);
}

.ej-me .switch .nm {
    font-weight: 600;
    color: var(--me-heading);
    font-size: var(--ej-fs-small, .875rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ej-me .avatar {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8e3f0;
    color: var(--me-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--ej-fs-small, .875rem);
}

.ej-me a.avatar:hover {
    text-decoration: none;
}

.ej-me .main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}

@media (min-width: 960px) {
    .ej-me .main {
        padding: 32px 24px 56px;
    }
}

.ej-me .grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

@media (min-width: 960px) {
    .ej-me .grid {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 28px;
        align-items: start;
    }
}

.ej-me .only-wide {
    display: none;
}

@media (min-width: 960px) {
    .ej-me .only-wide {
        display: block;
    }
}

.ej-me .hello {
    font-size: var(--ej-fs-title, 1.375rem);
    line-height: var(--ej-lh-title, 1.8rem);
    font-weight: 700;
    color: var(--me-heading);
    margin: 0 0 4px;
}

.ej-me .sub {
    color: var(--me-muted);
    margin: 0 0 18px;
}

/* Fortschritt */
.ej-me .progress-card {
    padding: 18px;
}

.ej-me .pc-top {
    display: flex;
    gap: 16px;
    align-items: center;
}

.ej-me .ring {
    flex: none;
    width: 72px;
    height: 72px;
    position: relative;
}

.ej-me .ring svg {
    width: 72px;
    height: 72px;
    transform: rotate(-90deg);
}

.ej-me .ring b {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ej-fs-section, 1.125rem);
    color: var(--me-heading);
    font-weight: 700;
}

.ej-me .pc-text strong {
    display: block;
    color: var(--me-heading);
    font-size: var(--ej-fs-section, 1.125rem);
    font-weight: 700;
    line-height: 1.3;
}

.ej-me .pc-text span {
    color: var(--me-muted);
    font-size: var(--ej-fs-small, .875rem);
    line-height: var(--ej-lh-small, 1.25rem);
}

.ej-me .pc-status {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--me-border);
    font-size: var(--ej-fs-small, .875rem);
    line-height: var(--ej-lh-small, 1.25rem);
    color: var(--me-muted);
}

.ej-me .pc-status .i {
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.ej-me .pc-status b {
    color: var(--me-heading);
}

/* Listen */
.ej-me .sec {
    margin-top: 26px;
}

.ej-me .sec-h {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 10px;
    font-size: var(--ej-fs-body, 1rem);
    font-weight: 700;
    color: var(--me-heading);
}

.ej-me .sec-h .n {
    font-size: var(--ej-fs-small, .875rem);
    font-weight: 600;
    color: var(--me-muted);
}

.ej-me .list {
    background: #fff;
    border: 1px solid var(--me-border);
    border-radius: 14px;
    overflow: hidden;
}

.ej-me .me-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    min-height: 64px;
    margin: 0;
    color: inherit;
    border-top: 1px solid var(--me-border);
    cursor: pointer;
    flex-wrap: nowrap;
}

.ej-me .list > .me-row:first-child,
.ej-me .list > :first-child .me-row:first-child {
    border-top: 0;
}

.ej-me a.me-row:hover {
    background: #fafbfd;
    text-decoration: none;
}

.ej-me .ico {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ej-me .ico.open {
    background: var(--me-bad-bg);
    color: var(--me-bad);
}

.ej-me .ico.wait {
    background: var(--me-warn-bg);
    color: var(--me-warn);
}

.ej-me .ico.done {
    background: var(--me-ok-bg);
    color: var(--me-ok);
}

.ej-me .ico.optional {
    background: var(--me-light);
    color: var(--me-muted);
}

.ej-me .ico.job {
    background: var(--me-primary-soft);
    color: var(--me-primary);
}

.ej-me .me-row .t {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.ej-me .me-row .t strong {
    display: block;
    font-weight: 600;
    color: var(--me-heading);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ej-me .me-row .t span {
    display: block;
    font-size: var(--ej-fs-small, .875rem);
    color: var(--me-muted);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.ej-me .me-row .chev {
    color: #adb5bd;
}

.ej-me .tag {
    flex: none;
    font-size: var(--ej-fs-badge, .875rem);
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.ej-me .tag.open {
    background: var(--me-bad-bg);
    color: var(--me-bad);
}

.ej-me .tag.wait {
    background: var(--me-warn-bg);
    color: var(--me-warn);
}

.ej-me .tag.done {
    background: var(--me-ok-bg);
    color: var(--me-ok);
}

@media (max-width: 479px) {
    .ej-me .me-row .tag {
        display: none;
    }
}

.ej-me details.done-list > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    color: var(--me-primary);
    font-weight: 600;
    cursor: pointer;
}

.ej-me details.done-list > summary::-webkit-details-marker {
    display: none;
}

.ej-me details.done-list[open] > summary .when-closed,
.ej-me details.done-list:not([open]) > summary .when-open {
    display: none;
}

.ej-me details.done-list[open] > summary .i {
    transform: rotate(180deg);
}

.ej-me .aside .card {
    padding: 18px;
    margin-bottom: 16px;
}

.ej-me .aside h3 {
    margin: 0 0 10px;
    font-size: var(--ej-fs-body, 1rem);
    font-weight: 700;
    color: var(--me-heading);
}

.ej-me .aside p {
    margin: 0 0 12px;
    font-size: var(--ej-fs-small, .875rem);
    color: var(--me-muted);
}

.ej-me .kv {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: var(--ej-fs-small, .875rem);
    padding: 6px 0;
    border-top: 1px solid var(--me-border);
}

.ej-me .kv:first-of-type {
    border-top: 0;
}

.ej-me .kv span {
    color: var(--me-muted);
}

.ej-me .kv b {
    color: var(--me-heading);
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

/* ---------- Seiten je Punkt ---------- */
.ej-me .step {
    max-width: 640px;
    margin: 0 auto;
}

.ej-me .step .card {
    padding: 20px;
}

@media (min-width: 600px) {
    .ej-me .step .card {
        padding: 28px;
    }
}

.ej-me .step-why {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: var(--ej-fs-small, .875rem);
    line-height: var(--ej-lh-small, 1.25rem);
    color: var(--me-muted);
    margin: 0 0 20px;
}

.ej-me .step-why .i {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: var(--me-faint);
}

.ej-me .two {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 16px;
}

@media (min-width: 600px) {
    .ej-me .two {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.ej-me .group-h {
    font-size: var(--ej-fs-body, 1rem);
    line-height: var(--ej-lh-body, 1.5rem);
    font-weight: 700;
    color: var(--me-heading);
    margin: 8px 0 12px;
    padding-top: 16px;
    border-top: 1px solid var(--me-border);
    scroll-margin-top: 76px;
}

.ej-me .group-h.first {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.ej-me .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ej-me .chip {
    position: relative;
    margin: 0;
}

.ej-me .chip input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.ej-me .chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--me-input);
    background: #fff;
    font-weight: 600;
    color: var(--me-heading);
}

.ej-me .chip input:checked + span {
    border-color: var(--me-primary);
    background: var(--me-primary-soft);
    color: var(--me-primary);
}

.ej-me .chip input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(var(--me-primary-rgb), .2);
}

.ej-me .drop {
    border: 1.5px dashed #c5cbd4;
    border-radius: 14px;
    padding: 22px 16px;
    text-align: center;
    background: #fbfcfd;
}

.ej-me .drop .i {
    width: 30px;
    height: 30px;
    color: var(--me-faint);
}

.ej-me .drop p {
    margin: 8px 0 14px;
    font-size: var(--ej-fs-small, .875rem);
    color: var(--me-muted);
}

.ej-me .drop .btn-row {
    max-width: 320px;
    margin: 0 auto;
}

.ej-me .drop label.btn {
    margin: 0;
}

.ej-me .file {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--me-border);
    border-radius: 12px;
}

.ej-me .thumb {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: linear-gradient(135deg, #dfe6f3, #c9d3e6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5d6b85;
    overflow: hidden;
}

.ej-me .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ej-me .file .t {
    flex: 1;
    min-width: 0;
}

.ej-me .file .t strong {
    display: block;
    color: var(--me-heading);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ej-me .file .t span {
    font-size: var(--ej-fs-small, .875rem);
    color: var(--me-muted);
}

.ej-me .sign {
    border: 1px solid var(--me-input);
    border-radius: 12px;
    background: #fff;
    position: relative;
    touch-action: none;
}

.ej-me .sign canvas {
    display: block;
    width: 100%;
    height: 180px;
    cursor: crosshair;
}

.ej-me .sign .base {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 40px;
    border-bottom: 1.5px solid #c5cbd4;
    pointer-events: none;
}

.ej-me .sign .ph {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    text-align: center;
    font-size: var(--ej-fs-small, .875rem);
    color: var(--me-faint);
    pointer-events: none;
}

.ej-me .sign-tools {
    display: flex;
    justify-content: flex-end;
    margin: 6px 0 12px;
}

.ej-me .sign-tools button {
    border: 0;
    background: none;
    color: var(--me-muted);
    font-weight: 600;
    font-size: var(--ej-fs-small, .875rem);
    cursor: pointer;
    min-height: 36px;
}

.ej-me .doc-sum {
    border: 1px solid var(--me-border);
    border-radius: 12px;
    padding: 4px 14px;
    margin-bottom: 16px;
}

.ej-me .check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 16px 0 18px;
    line-height: 1.45;
    cursor: pointer;
    font-weight: 400;
}

.ej-me .check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--me-primary);
}

.ej-me .lang-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--me-border);
    flex-wrap: wrap;
}

.ej-me .lang-row:first-child {
    border-top: 0;
}

.ej-me .lang-row .nm {
    flex: 1 1 140px;
    font-weight: 600;
    color: var(--me-heading);
    min-width: 0;
}

.ej-me .lang-row select.lang {
    flex: 1 1 160px;
    width: auto;
    min-width: 0;
}

.ej-me .lang-row select.lvl {
    flex: 1 1 180px;
    width: auto;
    min-width: 0;
}

.ej-me .lang-row .del {
    flex: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--me-light);
    color: var(--me-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ej-me .idcard {
    border-radius: 16px;
    background: linear-gradient(135deg, #6731a1, #8d55c9);
    color: #fff;
    padding: 18px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.ej-me .idcard .qr {
    flex: none;
    width: 92px;
    height: 92px;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
}

.ej-me .idcard .qr img {
    width: 100%;
    height: 100%;
    display: block;
}

.ej-me .idcard .who {
    min-width: 0;
}

.ej-me .idcard strong {
    display: block;
    font-size: var(--ej-fs-section, 1.125rem);
    overflow-wrap: anywhere;
}

.ej-me .idcard span {
    display: block;
    font-size: var(--ej-fs-small, .875rem);
    opacity: .92;
    overflow-wrap: anywhere;
}

.ej-me .menu {
    margin-top: 16px;
}

.ej-me .menu .me-row {
    min-height: 56px;
}

.ej-me .menu .ico {
    background: var(--me-light);
    color: var(--me-muted);
}

.ej-me .menu .val {
    flex: none;
    max-width: 50%;
    color: var(--me-muted);
    font-size: var(--ej-fs-small, .875rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ej-me .menu form.me-row {
    cursor: default;
}

.ej-me .menu form.me-row select {
    flex: none;
    width: auto;
    min-width: 130px;
    height: 44px;
}

.ej-me .stores {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ej-me .stores .btn {
    flex: 1 1 140px;
    background: #212529;
    border-color: #212529;
    color: #fff;
}

.ej-me .stores .btn svg {
    width: 18px;
    height: 18px;
}

.ej-me .me-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: #2b2f36;
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 60;
    font-weight: 600;
    max-width: calc(100% - 32px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
    transition: opacity .3s;
}

.ej-me .me-toast .i {
    color: var(--me-ok-line);
}

.ej-me .me-toast.gone {
    opacity: 0;
    pointer-events: none;
}

.ej-me .firm-list .co-logo {
    background: var(--me-primary-soft);
}

.ej-me .firm-list form {
    margin: 0;
}

.ej-me .firm-list button.me-row {
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    background: #fff;
    text-align: left;
    font: inherit;
}

.ej-me .firm-list .me-row:hover {
    background: #fafbfd;
}

.ej-me .yesno {
    display: flex;
    gap: 8px;
}

.ej-me select.form-control,
.ej-me select.form-control:not([size]):not([multiple]) {
    height: 48px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 46px;
}

.ej-me .drop .btn .i {
    width: 20px;
    height: 20px;
    color: inherit;
}
