.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }

.toolbar-auto { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: center; }

.news { padding: .75rem 0 .75rem .9rem; border-left: 4px solid #cbd5e1; border-bottom: 1px solid var(--color-border); }
.news:last-of-type { border-bottom: 0; }
.news--announcement { border-left-color: var(--color-primary); }
.news--emergency { border-left-color: var(--color-fail); background: #fef2f2; }
.news__title { margin: 0 0 .35rem; font-size: 1.1rem; }
.news__title a { color: inherit; text-decoration: none; }
.news__title a:hover { color: var(--color-primary); }
.news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin-bottom: .5rem; font-size: .85rem; }
.news__snippet { margin: 0 0 .35rem; }
.news__foot { font-size: .85rem; }
.news__body { line-height: 1.6; word-break: break-word; margin: .75rem 0 1rem; }
.news__info { margin-bottom: 1rem; }

.comment { padding: .6rem 0; border-top: 1px solid var(--color-border); }
.comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.comment p { margin: .35rem 0 0; word-break: break-word; }
.tk { padding: .75rem 0 .75rem .9rem; border-left: 4px solid #cbd5e1; border-bottom: 1px solid var(--color-border); }
.tk--high { border-left-color: #f59e0b; }
.tk--urgent { border-left-color: var(--color-fail); background: #fef2f2; }
.tk__title { margin: 0 0 .35rem; font-size: 1.05rem; }
.tk__title a { color: inherit; text-decoration: none; }
.tk__title a:hover { color: var(--color-primary); }
.tk__foot { font-size: .85rem; }

.tk-st { background: #e2e8f0; color: #334155; }
.tk-st--new { background: #fef3c7; color: #92400e; }
.tk-st--in_progress { background: #dbeafe; color: #1e40af; }
.tk-st--done { background: #dcfce7; color: #166534; }
.tk-st--closed { background: #e2e8f0; color: #334155; }
.tk-st--rejected, .tk-st--cancelled { background: #fee2e2; color: #991b1b; }

.form-inline-block { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.comment--internal { background: #fffbeb; padding-left: .6rem; border-left: 3px solid #f59e0b; }
.comment--system { color: var(--color-muted, #64748b); font-size: .9rem; }

.files { display: flex; flex-direction: column; gap: .5rem; margin: .75rem 0 1rem; }
.files__item { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; word-break: break-word; }
.files__thumb { display: block; max-width: 120px; max-height: 90px; border-radius: 6px; border: 1px solid var(--color-border); object-fit: cover; }

.uploader__tools { display: flex; gap: .5rem; margin: .5rem 0; }
.uploader__list { list-style: none; margin: .25rem 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.uploader__item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .35rem .6rem; border: 1px solid var(--color-border); border-radius: 6px; }
.uploader__name { word-break: break-word; font-size: .9rem; }

/* Индикатор загрузки */
.spinner {
    display: inline-block; width: 1em; height: 1em; flex: none;
    border: .16em solid currentColor; border-right-color: transparent; border-radius: 50%;
    animation: spin .75s linear infinite; vertical-align: -.15em;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn.is-loading { pointer-events: none; opacity: .85; }
.btn .spinner { margin-right: .5em; }

.page-loader {
    position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 1rem;
    background: rgba(255, 255, 255, .8); color: var(--color-primary, #2563eb);
    font-weight: 600;
}
.page-loader .spinner { width: 3rem; height: 3rem; border-width: .3rem; }

.uploader__status { display: flex; align-items: center; gap: .5rem; margin: .35rem 0; color: var(--color-primary, #2563eb); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
    .spinner { animation-duration: 2s; }
}
