.communications-count,
.communication-category,
.communication-state,
.communication-file-icon,
.communication-file-empty {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.8rem;
    padding: 0.25rem 0.7rem;
    border: 1px solid rgba(214, 212, 216, 0.82);
    border-radius: 999px;
    background: #fff;
    color: #646173;
    font-size: 0.8rem;
    font-weight: 800;
}

.communications-count,
.communication-category {
    border-color: #f3c4d4;
    background: #fff5f8;
    color: var(--ecs-color-primary);
}

.communications-action,
.communications-sortbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.7rem;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.communications-action {
    padding: 0.55rem 1rem;
    border: 1px solid #f3c4d4;
    color: var(--ecs-color-primary);
    background: #fff;
}

.communications-action.is-primary {
    border-color: var(--ecs-color-primary);
    background: var(--ecs-color-primary);
    color: #fff;
}

.communications-action:hover,
.communications-action:focus-visible,
.communications-sortbar button:hover,
.communications-sortbar button:focus-visible {
    border-color: #f3c4d4;
    background: #fff5f8;
    color: var(--ecs-color-primary);
    outline: none;
}

.communications-action.is-primary:hover,
.communications-action.is-primary:focus-visible {
    border-color: var(--ecs-color-primary-border);
    background: var(--ecs-color-primary-border);
    color: #fff;
}

.communications-field {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.communications-field > span:first-child {
    color: #8a8795;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.communications-search-control {
    position: relative;
    display: block;
}

.communications-search-field input {
    width: 100%;
    height: 2.75rem;
    padding: 0 3rem 0 0.85rem;
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 0.95rem;
    background: var(--ecs-color-secondary);
    color: #17131c;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    outline: none;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.communications-search-field input:focus {
    border-color: #f3c4d4;
    background: #fff;
}

.communications-search-action {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    display: inline-grid;
    place-items: center;
    width: 2.05rem;
    height: 2.05rem;
    border: 1px solid #f3c4d4;
    border-radius: 999px;
    background: #fff;
    color: var(--ecs-color-primary);
    cursor: pointer;
}

.communications-search-action:hover,
.communications-search-action:focus-visible {
    border-color: #f3c4d4;
    background: #fff5f8;
    color: var(--ecs-color-primary);
    outline: none;
}

.communications-search-action .material-symbols-outlined {
    font-size: 1.15rem;
}

.communications-sortbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #8a8795;
    font-size: 0.82rem;
    font-weight: 800;
}

.communications-sortbar button {
    min-height: 2.2rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(214, 212, 216, 0.82);
    background: #fff;
    color: #646173;
}

.communications-sortbar button.is-active {
    border-color: #f3c4d4;
    background: #fff5f8;
    color: var(--ecs-color-primary);
}

.communications-results {
    transition: opacity 0.18s ease;
}

.communication-card {
    display: flex;
    flex-direction: column;
    min-height: 18rem;
    padding: 1rem;
    border: 1px solid rgba(214, 212, 216, 0.92);
    border-radius: 1.25rem;
    background: #fff;
    color: inherit;
    text-align: left;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.communication-card:not(.is-disabled) {
    cursor: pointer;
}

.communication-card:not(.is-disabled):hover,
.communication-card:not(.is-disabled):focus-visible {
    border-color: #f3c4d4;
    background: #fffafa;
    outline: none;
    transform: translateY(-2px);
}

.communication-card-top,
.communication-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.communication-state.is-current {
    border-color: rgba(5, 150, 105, 0.22);
    background: rgba(5, 150, 105, 0.08);
    color: #047857;
}

.communication-state.is-expired {
    border-color: rgba(100, 97, 115, 0.18);
    background: var(--ecs-color-secondary);
    color: #777586;
}

.communication-date {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.1rem;
    color: #777586;
    font-size: 0.9rem;
    font-weight: 700;
}

.communication-date .material-symbols-outlined {
    color: var(--ecs-color-primary);
    font-size: 1.1rem;
}

.communication-title {
    display: -webkit-box;
    min-height: 3.4rem;
    margin-top: 0.85rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #17131c;
    font-size: 1.28rem;
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.32;
}

.communication-description {
    display: -webkit-box;
    margin-top: 0.65rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #646173;
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.45;
}

.communication-meta {
    margin-top: auto;
    padding-top: 1rem;
}

.communication-code {
    color: #8a8795;
    font-size: 0.82rem;
    font-weight: 800;
}

.communication-file-icon,
.communication-file-empty {
    flex: 0 0 auto;
    min-height: 2.25rem;
}

.communication-file-icon-img,
.communication-file-empty .material-symbols-outlined {
    font-size: 1.2rem;
}

.communication-file-icon small,
.communication-file-empty small {
    font-size: 0.72rem;
}

.communications-empty {
    display: grid;
    justify-items: center;
    gap: 0.65rem;
    padding: 3rem 1rem;
    border: 1px dashed #f3c4d4;
    border-radius: 1.5rem;
    background: #fff5f8;
    color: #646173;
    text-align: center;
}

.communications-empty .material-symbols-outlined {
    color: var(--ecs-color-primary);
    font-size: 3rem;
}

.communications-empty h2 {
    margin: 0;
    color: #17131c;
    font-size: 1.35rem;
    font-weight: 850;
}

.communications-empty p {
    margin: 0;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .communication-card-top,
    .communication-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

.communication-edit-page {
    padding: 1rem 0 4rem;
}

.communication-edit-shell {
    overflow: visible;
}

.communication-form-grid {
    align-items: start;
}

.communication-textarea {
    min-height: 8rem;
    resize: vertical;
}

.communication-file-panel {
    display: grid;
    gap: 0.7rem;
}

.communication-dropzone {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 10rem;
    padding: 1.25rem;
    border: 1px dashed #f3c4d4;
    border-radius: 1.15rem;
    background: #fff5f8;
    color: #646173;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.communication-dropzone:hover,
.communication-dropzone.is-hover,
.communication-dropzone:focus-within {
    border-color: var(--ecs-color-primary);
    background: #fff;
}

.communication-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.communication-dropzone-content {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
}

.communication-dropzone-content .material-symbols-outlined {
    color: var(--ecs-color-primary);
    font-size: 2.6rem;
}

.communication-dropzone-content strong {
    color: #17131c;
    font-size: 1rem;
    font-weight: 850;
}

.communication-dropzone-content small {
    color: #777586;
    font-size: 0.86rem;
    font-weight: 600;
}

.communication-file-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid rgba(214, 212, 216, 0.92);
    border-radius: 1rem;
    background: var(--ecs-color-secondary);
}

.communication-file-row.is-preview {
    border-color: #f3c4d4;
    background: #fff5f8;
}

.communication-file-row > .material-symbols-outlined {
    flex: 0 0 auto;
    color: var(--ecs-color-primary);
    font-size: 1.5rem;
}

.communication-file-main {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.communication-file-main strong {
    overflow: hidden;
    color: #17131c;
    font-size: 0.95rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.communication-file-main small {
    color: #777586;
    font-size: 0.82rem;
    font-weight: 600;
}

.communication-file-action {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.15rem;
    height: 2.15rem;
    margin-left: auto;
    border: 1px solid #f3c4d4;
    border-radius: 999px;
    background: #fff;
    color: var(--ecs-color-primary);
    text-decoration: none;
}

.communication-file-action:hover,
.communication-file-action:focus-visible {
    background: #fff5f8;
    color: var(--ecs-color-primary);
    outline: none;
}

.communication-file-action .material-symbols-outlined {
    font-size: 1.15rem;
}
