.esms-shell-content-card > :last-child {
    margin-bottom: 0;
}

.esms-shell-content-card .table-responsive:last-child,
.esms-shell-content-card .card:last-child,
.esms-shell-content-card .panel:last-child {
    margin-bottom: 0;
}

.esms-shell-content-card > .content,
.esms-shell-content-card > .card,
.esms-shell-content-card > .small-box {
    max-width: 100%;
}

.esms-operational-panel {
    display: grid;
    gap: 1rem;
}

.esms-operational-toolbar,
.esms-operational-table-shell {
    border: 1px solid var(--esms-shell-border, #dce6f0);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.96));
    box-shadow: 0 0.65rem 1.4rem rgba(15, 23, 42, 0.06);
}

.esms-operational-toolbar {
    padding: 1.15rem;
}

.esms-operational-toolbar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.esms-operational-toolbar-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--esms-shell-title, #18324a);
}

.esms-operational-toolbar-copy {
    margin: 0.25rem 0 0;
    color: var(--esms-shell-muted, #6f8296);
    font-size: 0.84rem;
    line-height: 1.6;
    max-width: 58rem;
}

.esms-operational-loading {
    display: none;
    align-items: center;
    gap: 0.45rem;
    color: var(--esms-shell-muted, #6c757d);
    font-size: 0.84rem;
    font-weight: 600;
}

.esms-operational-loading.is-visible {
    display: inline-flex;
}

.esms-operational-results.is-loading {
    opacity: 0.56;
    transition: opacity 0.2s ease;
}

.esms-operational-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.esms-operational-summary-card {
    min-height: 112px;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1rem;
    background:
        radial-gradient(circle at top right, rgba(148, 163, 184, 0.08), transparent 38%),
        linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 0.4rem 1rem rgba(15, 23, 42, 0.05);
}

.esms-operational-summary-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6d84a0;
    margin-bottom: 0.25rem;
}

.esms-operational-summary-value {
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 800;
    color: var(--esms-shell-title, #18324a);
}

.esms-operational-summary-copy {
    margin-top: 0.42rem;
    color: var(--esms-shell-muted, #6f8296);
    font-size: 0.82rem;
}

.esms-operational-table-shell {
    overflow: hidden;
}

.esms-operational-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(244, 248, 252, 0.92));
}

.esms-operational-table-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--esms-shell-title, #18324a);
}

.esms-operational-table-copy {
    margin: 0.22rem 0 0;
    color: var(--esms-shell-muted, #6f8296);
    font-size: 0.82rem;
}

.esms-operational-table-shell .table {
    margin-bottom: 0;
}

.esms-operational-table-shell thead th {
    padding: 0.72rem 0.8rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: #f5f8fb;
}

.esms-operational-table-shell tbody td {
    padding: 0.8rem;
}

.esms-operational-table-shell .app-table-primary,
.esms-operational-table-shell .app-table-subject {
    color: var(--esms-shell-title, #18324a);
}

.esms-operational-table-shell .app-table-meta {
    color: var(--esms-shell-muted, #6f8296);
    font-size: 0.8rem;
}

.esms-operational-empty {
    padding: 3rem 1rem !important;
    text-align: center;
    color: var(--esms-shell-muted, #6f8296);
    font-size: 0.9rem;
}

.esms-operational-pagination {
    padding: 0.95rem 1.05rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(248, 251, 253, 0.9);
}

@media (max-width: 991.98px) {
    .esms-operational-toolbar {
        padding: 1rem;
    }

    .esms-operational-table-head {
        padding: 0.9rem 1rem;
    }
}

.app-form-shell {
    border: 1px solid var(--esms-shell-border, #dce6f0);
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, 0.09);
    background: #fff;
}

.app-form-shell.is-modal {
    display: flex;
    flex-direction: column;
    max-height: min(90vh, 980px);
}

.app-form-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(135deg, #0f766e, #0b5f92 58%, #0b4c74);
    color: #fff;
    padding: 0.95rem 1.2rem 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.app-form-hero-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.app-form-title {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.08;
    font-weight: 700;
    color: #fff;
}

.app-form-subtitle {
    margin: 0.4rem 0 0;
    color: rgba(240, 249, 255, 0.88);
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 780px;
}

.app-form-hero .btn {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.app-form-hero .btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.app-form-body {
    padding: 1rem;
    background: linear-gradient(180deg, #fbfdff, #f6f9fc);
}

.app-form-shell.is-modal .app-form-body {
    overflow-y: auto;
}

.app-form-panel {
    border: 1px solid var(--esms-shell-border, #dce6f0);
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    background: #fff;
    box-shadow: 0 0.55rem 1.25rem rgba(15, 23, 42, 0.05);
}

.app-form-panel .card-header {
    padding: 0.9rem 1rem;
    background: linear-gradient(180deg, #f8fbfe, #f2f7fb);
    border-bottom: 1px solid var(--esms-shell-border, #dce6f0);
}

.app-form-panel .card-body {
    padding: 1rem;
}

.app-form-kicker {
    display: block;
    margin-bottom: 0.2rem;
    color: #6d84a0;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    font-weight: 700;
    text-transform: uppercase;
}

.app-form-panel-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--esms-shell-title, #18324a);
}

.app-form-shell .form-label {
    font-weight: 600;
    color: #22384d;
    margin-bottom: 0.45rem;
}

.app-form-shell .form-control,
.app-form-shell .form-select {
    min-height: 42px;
    border-radius: 0.7rem;
    border-color: #d4dde7;
    box-shadow: none;
}

.app-form-shell textarea.form-control {
    min-height: 120px;
}

.app-form-shell .form-control:focus,
.app-form-shell .form-select:focus {
    border-color: #9db9de;
    box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.08);
}

.app-form-shell .form-text,
.app-form-shell .text-muted.small {
    color: var(--esms-shell-muted, #6f8296) !important;
}

.app-form-shell .invalid-feedback {
    font-size: 0.8rem;
}

.archive-source-card,
.archive-form-section {
    border: 1px solid rgba(204, 218, 232, 0.92);
    border-radius: 1.05rem;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 32%),
        linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 0.65rem 1.35rem rgba(15, 23, 42, 0.055);
}

.archive-source-card {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
}

.archive-source-head,
.archive-section-heading,
.archive-parent-toggle,
.archive-linked-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.archive-source-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 800;
}

.archive-source-copy {
    max-width: 64rem;
    color: #597089;
    font-size: 0.86rem;
    line-height: 1.65;
}

.archive-parent-toggle {
    align-items: center;
    padding: 0.75rem 0.85rem;
    border: 1px dashed #cbdced;
    border-radius: 0.9rem;
    background: rgba(248, 251, 255, 0.86);
}

.archive-parent-panel {
    padding: 0.9rem;
    border: 1px solid rgba(203, 220, 237, 0.9);
    border-radius: 0.95rem;
    background: #fff;
}

.archive-linked-summary {
    padding: 0.9rem;
    border-radius: 0.95rem;
    background: rgba(248, 251, 255, 0.9);
    border: 1px dashed #d7e3ef;
}

.archive-file-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.65rem;
}

.archive-file-chip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.55rem;
    row-gap: 0.1rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid #dce8f4;
    background: #fff;
    color: #27435d;
}

.archive-file-chip i {
    grid-row: span 2;
    color: #2563eb;
}

.archive-file-chip span,
.archive-file-chip small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-file-chip span {
    font-weight: 700;
    font-size: 0.84rem;
}

.archive-file-chip small {
    color: #6f8296;
}

.archive-form-flow {
    display: grid;
    gap: 1rem;
}

.archive-form-section {
    padding: 1.05rem 1.1rem;
}

.archive-form-section.is-primary {
    border-color: rgba(13, 148, 136, 0.22);
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.13), transparent 34%),
        linear-gradient(180deg, #ffffff, #f2fbfa);
}

.archive-section-heading {
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0.95rem;
}

.archive-section-icon {
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    color: #0f766e;
    background: linear-gradient(135deg, #e0f7f3, #eef6ff);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.archive-section-heading h5 {
    margin: 0;
    color: var(--esms-shell-title, #18324a);
    font-size: 1rem;
    font-weight: 800;
}

.archive-section-heading p {
    margin: 0.2rem 0 0;
    color: var(--esms-shell-muted, #6f8296);
    font-size: 0.84rem;
    line-height: 1.55;
}

.archive-title-input {
    min-height: 150px !important;
    font-size: 0.98rem;
    line-height: 1.65;
    background: #fff;
}

.archive-helper-note {
    padding: 0.75rem 0.85rem;
    border-radius: 0.8rem;
    border: 1px dashed #cbdced;
    background: rgba(239, 246, 255, 0.65);
    color: #526f8a;
    font-size: 0.83rem;
    line-height: 1.55;
}

@media (max-width: 767.98px) {
    .archive-source-card,
    .archive-form-section {
        padding: 0.9rem;
    }

    .archive-section-heading {
        align-items: flex-start;
    }
}

.app-form-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: 0.95rem;
    background: linear-gradient(180deg, #eef7ff, #e4f1ff);
    border: 1px solid #cfe0f5;
    color: #24496c;
}

.app-form-note i {
    margin-top: 0.2rem;
    color: #0d6efd;
}

.app-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding: 1rem 0 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.app-form-footer.is-sticky {
    position: sticky;
    bottom: 0;
    z-index: 30;
    margin-inline: -1rem;
    margin-bottom: -1rem;
    padding: 0.95rem 1rem;
    background: rgba(248, 251, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.app-form-footer .btn {
    min-height: 44px;
    padding-inline: 1.15rem;
    border-radius: 0.85rem;
    font-weight: 700;
}

.app-form-shell.form-has-floating-guides .app-form-panel,
.app-form-shell.form-has-floating-guides .app-form-panel .card-body,
.app-form-shell.form-has-floating-guides .floating-hover-guide {
    overflow: visible;
}

.app-form-shell .floating-hover-guide,
.form-has-floating-guides .floating-hover-guide {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.app-form-shell .floating-hover-guide-label,
.form-has-floating-guides .floating-hover-guide-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.app-form-shell .inline-guide-button,
.form-has-floating-guides .inline-guide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    border: 1px solid #d8e6fb;
    background: linear-gradient(135deg, #eff6ff, #f8fbff);
    color: #2563eb;
    font-size: 0.78rem;
    box-shadow: 0 0.22rem 0.55rem rgba(37, 99, 235, 0.1);
    cursor: pointer;
    padding: 0;
}

.app-form-shell .inline-guide-kicker,
.form-has-floating-guides .inline-guide-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 0.25rem;
}

.app-form-shell .inline-guide-title,
.form-has-floating-guides .inline-guide-title {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.app-form-shell .inline-guide-subtitle,
.form-has-floating-guides .inline-guide-subtitle {
    display: block;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 0.8rem;
}

.app-form-shell .inline-guide-table,
.form-has-floating-guides .inline-guide-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 0.85rem;
    background: #fff;
    border: 1px solid #dce6f0;
}

.app-form-shell .inline-guide-table th,
.app-form-shell .inline-guide-table td,
.form-has-floating-guides .inline-guide-table th,
.form-has-floating-guides .inline-guide-table td {
    padding: 0.6rem 0.7rem;
    border-bottom: 1px solid #e6edf5;
    font-size: 0.83rem;
    text-align: left;
}

.app-form-shell .inline-guide-table th,
.form-has-floating-guides .inline-guide-table th {
    background: #f8fbfe;
    color: #476277;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.72rem;
}

.app-form-shell .inline-guide-table tr:last-child td,
.form-has-floating-guides .inline-guide-table tr:last-child td {
    border-bottom: 0;
}

.app-form-shell .inline-guide-table code,
.form-has-floating-guides .inline-guide-table code {
    background: #f8fbff;
    border: 1px solid #dce8f8;
    border-radius: 0.4rem;
    padding: 0.08rem 0.35rem;
    color: #c2410c;
}

.app-form-shell .floating-hover-guide-panel,
.form-has-floating-guides .floating-hover-guide-panel {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: min(640px, calc(100vw - 3rem));
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(216, 228, 242, 0.95);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.98));
    box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 120;
    max-height: min(68vh, 640px);
    overflow-y: auto;
    overflow-x: auto;
    scrollbar-gutter: stable both-edges;
}

.app-form-shell .floating-hover-guide-panel::before,
.form-has-floating-guides .floating-hover-guide-panel::before {
    content: "";
    position: absolute;
    top: -8px;
    left: calc(50% - 7px);
    width: 14px;
    height: 14px;
    background: #fbfdff;
    border-left: 1px solid #d8e4f2;
    border-top: 1px solid #d8e4f2;
    transform: rotate(45deg);
}

.app-form-shell .floating-hover-guide:hover .floating-hover-guide-panel,
.app-form-shell .floating-hover-guide:focus-within .floating-hover-guide-panel,
.form-has-floating-guides .floating-hover-guide:hover .floating-hover-guide-panel,
.form-has-floating-guides .floating-hover-guide:focus-within .floating-hover-guide-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.app-form-shell .inline-guide-section + .inline-guide-section,
.form-has-floating-guides .inline-guide-section + .inline-guide-section {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px dashed #d9e4ee;
}

.app-form-shell .inline-guide-list,
.form-has-floating-guides .inline-guide-list {
    margin: 0;
    color: #5f7388;
    font-size: 0.84rem;
    line-height: 1.6;
}

.app-form-shell .inline-guide-code,
.app-form-shell .number-guide-pattern code,
.form-has-floating-guides .inline-guide-code,
.form-has-floating-guides .number-guide-pattern code {
    color: #475569;
    background: #f8fafc;
    border: 1px solid #dce6f0;
    border-radius: 0.35rem;
    padding: 0.06rem 0.28rem;
}

.app-form-shell .number-guide-label,
.form-has-floating-guides .number-guide-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5f7388;
    margin-bottom: 0.4rem;
}

.app-form-shell .number-guide-pattern,
.app-form-shell .number-guide-example,
.form-has-floating-guides .number-guide-pattern,
.form-has-floating-guides .number-guide-example {
    font-size: 0.84rem;
    line-height: 1.65;
    color: #5f7388;
}

.app-form-shell .number-guide-example strong,
.form-has-floating-guides .number-guide-example strong {
    color: #26415c;
}

.app-form-shell .number-guide-example code,
.form-has-floating-guides .number-guide-example code {
    color: #db2777;
    background: #fff7fb;
    border: 1px solid #f5d0e3;
    border-radius: 0.35rem;
    padding: 0.06rem 0.28rem;
}

.form-has-floating-guides .guide-panel-left .floating-hover-guide-panel {
    left: auto;
    right: 0;
}

.form-has-floating-guides .guide-panel-left .floating-hover-guide-panel::before {
    left: auto;
    right: 1.2rem;
}

@media (max-width: 991.98px) {
    .app-form-hero-grid,
    .app-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .app-form-title {
        font-size: 1.45rem;
    }

    .app-form-shell.form-has-floating-guides.is-modal .app-form-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .app-form-shell .floating-hover-guide-panel,
    .form-has-floating-guides .floating-hover-guide-panel {
        left: 0;
        transform: translateY(8px);
        width: min(92vw, 520px);
        overflow-x: scroll;
    }

    .app-form-shell .floating-hover-guide-panel::before,
    .form-has-floating-guides .floating-hover-guide-panel::before {
        left: 1.4rem;
    }

    .app-form-shell .floating-hover-guide:hover .floating-hover-guide-panel,
    .app-form-shell .floating-hover-guide:focus-within .floating-hover-guide-panel,
    .form-has-floating-guides .floating-hover-guide:hover .floating-hover-guide-panel,
    .form-has-floating-guides .floating-hover-guide:focus-within .floating-hover-guide-panel {
        transform: translateY(0);
    }

    .app-form-shell .inline-guide-table,
    .form-has-floating-guides .inline-guide-table {
        min-width: 420px;
    }

    .form-has-floating-guides .guide-panel-left .floating-hover-guide-panel {
        left: -1rem;
        right: auto;
    }

    .form-has-floating-guides .guide-panel-left .floating-hover-guide-panel::before {
        left: 1.2rem;
        right: auto;
    }

    .app-form-shell .floating-hover-guide-panel::-webkit-scrollbar,
    .form-has-floating-guides .floating-hover-guide-panel::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    .app-form-shell .floating-hover-guide-panel::-webkit-scrollbar-track,
    .form-has-floating-guides .floating-hover-guide-panel::-webkit-scrollbar-track {
        background: rgba(226, 232, 240, 0.65);
        border-radius: 999px;
    }

    .app-form-shell .floating-hover-guide-panel::-webkit-scrollbar-thumb,
    .form-has-floating-guides .floating-hover-guide-panel::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, rgba(59, 130, 246, 0.8), rgba(37, 99, 235, 0.9));
        border-radius: 999px;
        border: 2px solid transparent;
        background-clip: padding-box;
    }
}

.esms-settings-page {
    position: relative;
    z-index: 1;
}

.esms-settings-nav {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.esms-settings-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.esms-settings-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.68rem 0.95rem;
    border-radius: 999px;
    border: 1px solid #dce6f0;
    background: #fff;
    color: #4d647d;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0.2rem 0.45rem rgba(15, 23, 42, 0.04);
}

.esms-settings-chip.active {
    background: linear-gradient(135deg, #ebf4ff, #eefbf7);
    border-color: #c9ddee;
    color: #0f4c81;
}

.esms-settings-section {
    display: grid;
    gap: 1rem;
}

.esms-settings-panel {
    border: 1px solid var(--esms-shell-border, #dce6f0);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.55rem 1.25rem rgba(15, 23, 42, 0.06);
    height: 100%;
    overflow: hidden;
}

.esms-settings-panel-head {
    padding: 1.1rem 1.15rem 0.95rem;
    border-bottom: 1px solid var(--esms-shell-border, #dce6f0);
    background: linear-gradient(180deg, #fbfdff, #f4f8fc);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.esms-settings-panel-icon {
    width: 2.55rem;
    height: 2.55rem;
    flex: 0 0 2.55rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 0.45rem 1rem rgba(15, 23, 42, 0.08);
}

.esms-settings-panel-head h4 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--esms-shell-title, #18324a);
}

.esms-settings-panel-head p {
    margin: 0.25rem 0 0;
    color: var(--esms-shell-muted, #6f8296);
    font-size: 0.84rem;
    line-height: 1.55;
}

.esms-settings-panel-body {
    padding: 1.15rem;
}

.esms-settings-helper {
    border: 1px dashed #dce6f0;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, #fbfdff, #f8fafc);
    padding: 1rem 1.05rem;
}

.esms-settings-helper code {
    background: #fff;
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    color: #d63384;
    font-size: 0.85em;
    border: 1px solid #e9ecef;
}

.esms-settings-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.esms-settings-preview-box {
    border: 1px solid #dce6f0;
    border-radius: 0.75rem;
    padding: 1rem;
    background: linear-gradient(180deg, #fbfdff, #f7fbff);
}

.esms-settings-preview-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.esms-settings-preview-value {
    font-size: 1rem;
    font-weight: 700;
    color: #343a40;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .esms-settings-preview-grid {
        grid-template-columns: 1fr;
    }
}

.esms-dashboard-shell {
    display: grid;
    gap: 1rem;
}

.esms-dashboard-summary-shell {
    display: grid;
    gap: 0.75rem;
}

.esms-dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.esms-dashboard-summary-card {
    grid-column: span 3;
    min-height: 108px;
    border: 1px solid var(--esms-shell-border, #dce6f0);
    border-radius: 1.15rem;
    background:
        radial-gradient(circle at top right, rgba(148, 163, 184, 0.08), transparent 34%),
        linear-gradient(180deg, #ffffff, #f8fbff);
    padding: 1.05rem 1.1rem;
    box-shadow: 0 0.85rem 1.8rem rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.esms-dashboard-summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.1);
    border-color: #d4dfeb;
}

.esms-dashboard-summary-icon {
    width: 54px;
    height: 54px;
    border-radius: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.12rem;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.esms-dashboard-summary-content {
    min-width: 0;
    display: grid;
    gap: 0.22rem;
}

.esms-dashboard-summary-label {
    color: #60758d;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
}

.esms-dashboard-summary-value {
    color: var(--esms-shell-title, #18324a);
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    margin-top: 0.05rem;
    letter-spacing: -0.03em;
}

.esms-dashboard-summary-note {
    margin-top: 0.15rem;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
}

.esms-dashboard-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(290px, 0.95fr);
    gap: 1rem;
}

.esms-dashboard-panel {
    border: 1px solid var(--esms-shell-border, #dce6f0);
    border-radius: 1.05rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.96));
    box-shadow: 0 0.65rem 1.4rem rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.esms-dashboard-panel-head {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(244, 248, 252, 0.92));
}

.esms-dashboard-panel-head h4 {
    margin: 0;
    color: var(--esms-shell-title, #18324a);
    font-size: 1rem;
    font-weight: 800;
}

.esms-dashboard-panel-body {
    padding: 1rem 1.15rem 1.15rem;
}

.esms-dashboard-filterbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.esms-dashboard-filterbar-input,
.esms-dashboard-filterbar-select {
    height: 40px;
    border: 1px solid #d7e0ea;
    border-radius: 0.8rem;
    background: #fff;
    padding: 0 0.9rem;
    color: #425466;
}

.esms-dashboard-filterbar-input {
    min-width: 220px;
}

.esms-dashboard-status-list {
    display: grid;
    gap: 0.7rem;
}

.esms-dashboard-status-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.86rem;
}

.esms-dashboard-status-name {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--esms-shell-title, #18324a);
    font-weight: 600;
}

.esms-dashboard-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.esms-dashboard-status-percentage {
    color: var(--esms-shell-muted, #6f8296);
    font-weight: 600;
}

.esms-dashboard-status-value {
    color: var(--esms-shell-title, #18324a);
    font-weight: 700;
}

.esms-dashboard-module-shell {
    display: grid;
    gap: 1rem;
}

.esms-dashboard-module-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1rem;
}

.esms-dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.85rem;
}

.esms-dashboard-stat-card {
    border: 1px solid var(--esms-shell-border, #dce6f0);
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    padding: 0.95rem 1rem;
}

.esms-dashboard-stat-label {
    color: var(--esms-shell-muted, #6f8296);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.esms-dashboard-stat-value {
    margin-top: 0.35rem;
    color: var(--esms-shell-title, #18324a);
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 800;
}

.esms-dashboard-stat-note {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.8rem;
}

.esms-dashboard-empty {
    padding: 2rem 1rem;
    border: 1px dashed #d7e3ef;
    border-radius: 0.95rem;
    text-align: center;
    color: #64748b;
    background: #fbfdff;
}

@media (max-width: 1199.98px) {
    .esms-dashboard-summary-card {
        grid-column: span 4;
    }

    .esms-dashboard-panel-grid,
    .esms-dashboard-module-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .esms-dashboard-summary-card {
        grid-column: span 12;
        min-height: auto;
    }

    .esms-dashboard-filterbar,
    .esms-dashboard-filterbar .toolbar-filters {
        display: grid;
    }

    .esms-dashboard-filterbar-input,
    .esms-dashboard-filterbar-select {
        width: 100%;
    }
}

.esms-action-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.1rem;
    border: 1px solid var(--esms-shell-border, #dce6f0);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.96));
    box-shadow: 0 0.65rem 1.4rem rgba(15, 23, 42, 0.06);
}

.esms-action-toolbar-copy {
    display: grid;
    gap: 0.25rem;
    max-width: 42rem;
}

.esms-action-toolbar-title {
    margin: 0;
    color: var(--esms-shell-title, #18324a);
    font-size: 1rem;
    font-weight: 800;
}

.esms-action-toolbar-text {
    margin: 0;
    color: var(--esms-shell-muted, #6f8296);
    font-size: 0.84rem;
    line-height: 1.6;
}

.esms-action-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.esms-work-modal .modal-content {
    border: 0;
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 1.4rem 3rem rgba(15, 23, 42, 0.16);
}

.esms-work-modal .modal-header {
    background: linear-gradient(180deg, #fbfdff, #f4f8fc);
    border-bottom: 1px solid #e6edf4;
    padding: 1rem 1.1rem;
}

.esms-work-modal .modal-footer {
    border-top: 1px solid #e6edf4;
    background: linear-gradient(180deg, #fbfdff, #f7fbff);
}

.esms-work-modal .modal-body {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

@media (max-width: 767.98px) {
    .esms-action-toolbar {
        padding: 0.95rem 1rem;
    }

    .esms-action-toolbar-actions {
        width: 100%;
    }
}

.esms-internal-agenda {
    --agenda-base: #0f4c81;
    --agenda-soft: #dbeafe;
    --agenda-deep: #0b3a61;
    --agenda-accent: #f59e0b;
}

.esms-internal-agenda-hero {
    border: 1px solid rgba(15, 76, 129, 0.15);
    border-radius: 1.15rem;
    padding: 1.25rem 1.35rem;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 32%),
        linear-gradient(145deg, rgba(219, 234, 254, 0.82), rgba(255, 255, 255, 0.98));
    box-shadow: 0 1rem 2.25rem rgba(15, 23, 42, 0.06);
}

.esms-internal-agenda-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--agenda-base);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.esms-internal-agenda-lead {
    margin: 0;
    color: #526579;
    font-size: 0.94rem;
    line-height: 1.75;
    max-width: 52rem;
}

.esms-internal-agenda-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.esms-internal-agenda-stat {
    grid-column: span 4;
    border: 1px solid rgba(15, 76, 129, 0.12);
    border-radius: 1rem;
    padding: 1rem 1.05rem;
    background: #fff;
    box-shadow: 0 0.75rem 1.8rem rgba(15, 23, 42, 0.05);
}

.esms-internal-agenda-stat.is-soft {
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.9), rgba(255, 255, 255, 0.98));
}

.esms-internal-agenda-stat-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #60758d;
    font-size: 0.8rem;
    font-weight: 700;
}

.esms-internal-agenda-stat-value {
    color: #17324b;
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 800;
}

.esms-internal-agenda-stat-note {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.8rem;
}

.esms-internal-agenda-list {
    display: grid;
    gap: 0.9rem;
}

.esms-internal-agenda-item {
    display: grid;
    gap: 0.8rem;
    padding: 1rem 1.05rem;
    border: 1px solid #dce6f0;
    border-radius: 1rem;
    background: #fff;
}

.esms-internal-agenda-item-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.esms-internal-agenda-item-title {
    margin: 0;
    color: #17324b;
    font-size: 1rem;
    font-weight: 800;
}

.esms-internal-agenda-item-meta {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.esms-internal-agenda-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    background: var(--agenda-soft);
    color: var(--agenda-base);
    font-size: 0.76rem;
    font-weight: 800;
}

.esms-internal-agenda-chip.is-warn {
    background: #fff3db;
    color: #a16207;
}

.esms-internal-agenda-chip.is-deep {
    background: rgba(15, 76, 129, 0.12);
    color: var(--agenda-deep);
}

.esms-internal-agenda-report-card {
    border: 1px solid rgba(15, 76, 129, 0.12);
    border-radius: 1rem;
    padding: 1rem 1.05rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
}

@media (max-width: 991.98px) {
    .esms-internal-agenda-stat {
        grid-column: span 6;
    }
}

@media (max-width: 767.98px) {
    .esms-internal-agenda-stat {
        grid-column: span 12;
    }
}
