
/* Основная ширина страницы с карточкой участника. */
.registry-page {
    width: min(920px, calc(100% - 32px));
    margin: 48px auto;
}

/* Верхний заголовок страницы. */
.registry-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.registry-kicker {
    margin: 0 0 10px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.registry-title {
    margin: 0;
    font-family: var(--mono);
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.04;
}

.registry-subtitle {
    margin: 10px 0 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.5;
}

.operator-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.operator-toolbar__item,
.operator-toolbar__item:visited {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-bottom-color: var(--border-soft);
    color: var(--muted-soft);
    text-decoration: none;
}

.operator-toolbar__item:hover {
    color: var(--text);
    text-decoration: none;
}

.operator-toolbar__item--active {
    border-color: var(--border);
    border-bottom-color: var(--panel);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
}

.archive-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.archive-toolbar__item,
.archive-toolbar__item:visited {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-bottom-color: var(--border-soft);
    color: var(--muted-soft);
    text-decoration: none;
}

.archive-toolbar__item:hover {
    color: var(--text);
    text-decoration: none;
}

.archive-toolbar__item--active {
    border-color: var(--border);
    border-bottom-color: var(--panel);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
}

.registry-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 8px;
    color: var(--muted-soft);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.registry-breadcrumb,
.registry-breadcrumb:visited {
    color: inherit;
    text-decoration: none;
}

.registry-breadcrumb:hover {
    color: var(--text);
}

.registry-breadcrumb--current {
    color: var(--text);
}

.registry-breadcrumb-separator {
    margin: 0 8px;
    color: var(--muted-soft);
}

.registry-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.registry-link {
    color: var(--muted);
    text-decoration: none;
}

.registry-link:hover {
    color: var(--accent);
}

/* Внешняя рамка всей записи. */
.record {
    display: flex;
    flex-direction: column;
    min-height: 420px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--panel), var(--panel-soft));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

/* Верхняя строка с меткой и служебной информацией. */
.record-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-soft);
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--muted-soft);
    text-transform: uppercase;
}

.record-top__left,
.record-top__right {
    white-space: nowrap;
}

.record-top__left {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.record-top__right {
    text-align: right;
}

.record-top__center {
    min-width: 0;
}

.record-top-switcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.record-top-switcher__item,
.record-top-switcher__item:visited {
    color: var(--muted-soft);
    text-decoration: none;
}

.record-top-switcher__item:hover {
    color: var(--text);
}

.record-top-switcher__item--active {
    color: var(--text);
}

.record-top-switcher__divider {
    color: rgba(143, 147, 140, 0.52);
}

.record-top-alert {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid rgba(182, 122, 111, 0.5);
    background: rgba(182, 122, 111, 0.08);
    color: #ddb0a8;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.45;
}

/* Двухколоночная сетка: фото слева, форма справа. */
.record-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0 28px;
    flex: 1;
}

.record-grid--single {
    grid-template-columns: 1fr;
    gap: 0;
}

.record-grid--single .record-content {
    padding: 18px;
}
/* Колонка с фото и кнопкой загрузки. */
.photo-slot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-right: 1px solid var(--border-soft);
}

.photo-slot--project {
    position: relative;
    overflow: hidden;
    border-right: 0;
    background: var(--panel-soft);
}

.project-side-status {
    padding: 0 4px 4px;
}

.project-side-status .field-label {
    margin-bottom: 6px;
}

/* Фото и плейсхолдер одного размера. */
.member-photo,
.photo-placeholder {
    width: 100%;
    aspect-ratio: 7 / 9;

    object-fit: cover;

    border: 1px solid var(--border);
}

.project-photo,
.project-photo-placeholder {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 7 / 9;
    object-fit: cover;
    border: 0;
}

/* Заглушка вместо фото. */
.photo-placeholder {
    display: grid;
    place-items: center;

    border-style: dashed;

    color: rgba(104, 109, 104, 0.58);
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    text-align: center;
}

.project-photo-placeholder {
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 14px;
    border: 1px solid rgba(69, 74, 70, 0.52);
    background:
        linear-gradient(180deg, rgba(26, 29, 27, 0.96), rgba(13, 15, 14, 0.98));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        inset 0 0 22px rgba(0, 0, 0, 0.35);
}

.project-photo-placeholder::before {
    content: "";
    position: absolute;
    inset: 14px;
    z-index: 2;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            180deg,
            rgba(170, 182, 163, 0.045) 0,
            rgba(170, 182, 163, 0.045) 1px,
            transparent 1px,
            transparent 4px
        );
    opacity: 0.44;
}

.project-photo-placeholder-stack {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(101, 110, 102, 0.2);
    background: #090a09;
    overflow: hidden;
}

.project-photo-placeholder-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter:
        grayscale(0.92)
        sepia(0.18)
        hue-rotate(50deg)
        saturate(0.48)
        contrast(0.84)
        brightness(0.66);
    opacity: 0;
    animation-duration: 4.05s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.project-photo-placeholder-media--frame-1 {
    animation-name: registry-project-frame-1;
}

.project-photo-placeholder-media--frame-2 {
    animation-name: registry-project-frame-2;
}

.project-photo-placeholder-media--frame-3 {
    animation-name: registry-project-frame-3;
}

@keyframes registry-project-frame-1 {
    0%,
    31% {
        opacity: 0.9;
    }

    35%,
    96% {
        opacity: 0;
    }

    100% {
        opacity: 0.9;
    }
}

@keyframes registry-project-frame-2 {
    0%,
    31% {
        opacity: 0;
    }

    35%,
    64% {
        opacity: 0.9;
    }

    68%,
    100% {
        opacity: 0;
    }
}

@keyframes registry-project-frame-3 {
    0%,
    64% {
        opacity: 0;
    }

    68%,
    96% {
        opacity: 0.9;
    }

    100%,
    100% {
        opacity: 0;
    }
}

/* Правая колонка с полями формы. */
.record-content {
    padding: 18px 18px 18px 0;
}

.record-content--directory {
    padding: 18px 18px 0 8px;
}

.record-content--not-found {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 220px;
    padding-top: 18px;
}

/* Форма lookup для member_id. */
.lookup-form {
    width: 100%;
    max-width: 520px;
    padding-left: 24px;
}

/* Поле member_id в lookup. */
.lookup-input {
    width: min(100%, 500px);
    font-size: 24px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Вертикальный стек элементов поиска. */
.lookup-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Текст состояния поиска. */
.search-message {
    margin: 0;
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.55;
}

.search-message--hint {
    color: var(--muted);
}

.search-message--error {
    color: var(--accent);
}

/* Текстовая метка поля lookup. */
.lookup-stack .field-label {
    margin-bottom: 6px;
    color: rgba(143, 147, 140, 0.68);
    font-size: 10px;
    letter-spacing: 0.1em;
}

/* Кнопка lookup с более спокойной шириной. */
.lookup-stack .record-button {
    width: min(100%, 300px);
    justify-self: start;
}

.workspace-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.workspace-module {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 260px;
    padding: 18px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.015);
}

.workspace-module--link {
    color: var(--text);
    text-decoration: none;
}

.workspace-module--link:hover {
    border-color: var(--border);
    color: var(--text);
    text-decoration: none;
}

.workspace-module__title {
    color: var(--text);
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.workspace-module__copy {
    margin: 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.6;
    max-width: 30ch;
}

.workspace-module__command {
    margin-top: auto;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.search-results {
    display: grid;
    gap: 18px;
    margin-top: 26px;
    padding-left: 24px;
}

.search-section {
    display: grid;
    gap: 10px;
}

/* Заголовок имени участника. */
.member-name {
    margin: 0 0 6px;
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

/* Подпись с member id. */
.member-id {
    margin: 0 0 22px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: 0.03em;
}

.registry-record-id,
.registry-record-id:visited {
    color: inherit;
    text-decoration: none;
}

.registry-record-id:hover {
    color: var(--accent);
}

/* Сетка полей формы. */
.fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--border-soft);
    border-left: 1px solid var(--border-soft);
}

/* Отдельная ячейка поля. */
.field {
    min-height: 72px;
    border-right: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    padding: 12px;
}

/* Маленькая подпись над значением поля. */
.field-label {
    margin-bottom: 10px;
    color: rgba(143, 147, 140, 0.62);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Значение внутри поля. */
.field-value {
    position: relative;
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.55;
}

.registry-reference-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 196px;
    overflow-y: auto;
    padding-right: 6px;
}

.registry-reference {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.registry-reference__body {
    min-width: 0;
}

.registry-reference__id,
.registry-reference__id:visited,
.registry-reference__name,
.registry-reference__name:visited {
    color: var(--text);
    text-decoration: none;
}

.registry-reference__id {
    color: rgba(143, 147, 140, 0.78);
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.registry-reference__id:hover,
.registry-reference__name:hover {
    color: var(--accent);
}

.registry-reference__name {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 500;
}

.registry-reference__meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Поле summary требует места под счётчик. */
.field-value--summary {
    padding-bottom: 18px;
}

.field-value--empty {
    color: rgba(143, 147, 140, 0.72);
}

/* Статус с цветной точкой. */
.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ok);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.status--unknown {
    color: rgba(143, 147, 140, 0.88);
}

.status--active,
.status--stable {
    color: #8eaf84;
}

.status--on-break,
.status--planning {
    color: #b0a06d;
}

.status--building {
    color: #97a9c2;
}

.status--archived {
    color: #8a8178;
}

/* Дополнительный маркер у статуса. */
.status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

/* Нижний служебный футер карточки. */
.record-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    border-top: 1px solid var(--border-soft);
    padding: 14px 16px;
    color: var(--muted-soft);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.directory-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 13px;
    table-layout: fixed;
}

.directory-table th,
.directory-table td {
    border-bottom: 1px solid var(--border-soft);
    padding: 13px 10px;
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
}

.directory-table th:nth-child(1),
.directory-table td:nth-child(1) {
    width: 20%;
}

.directory-table th:nth-child(2),
.directory-table td:nth-child(2) {
    width: 12%;
}

.directory-table th:nth-child(3),
.directory-table td:nth-child(3) {
    width: 12%;
}

.directory-table th:nth-child(4),
.directory-table td:nth-child(4) {
    width: 14%;
}

.directory-table th:nth-child(5),
.directory-table td:nth-child(5) {
    width: 34%;
}

.directory-table th:nth-child(6),
.directory-table td:nth-child(6) {
    width: 8%;
}

.directory-table--invitations th:nth-child(1),
.directory-table--invitations td:nth-child(1) {
    width: 20%;
}

.directory-table--invitations th:nth-child(2),
.directory-table--invitations td:nth-child(2),
.directory-table--invitations th:nth-child(3),
.directory-table--invitations td:nth-child(3) {
    width: 12%;
}

.directory-table--invitations th:nth-child(4),
.directory-table--invitations td:nth-child(4) {
    width: 14%;
}

.directory-table--invitations th:nth-child(5),
.directory-table--invitations td:nth-child(5) {
    width: 24%;
}

.directory-table--invitations th:nth-child(6),
.directory-table--invitations td:nth-child(6) {
    width: 18%;
    text-align: right;
}

.invitation-actions-cell {
    padding-right: 0;
}

.invitation-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-left: auto;
    width: min(100%, 128px);
}

.invitation-actions form {
    margin: 0;
}

.invitation-actions .record-button {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    font-size: 11px;
    text-align: center;
}

.delivery-status--error {
    color: var(--accent);
    cursor: help;
    text-decoration: underline dotted rgba(182, 164, 111, 0.7);
    text-underline-offset: 4px;
}

.directory-table--projects th:nth-child(1),
.directory-table--projects td:nth-child(1) {
    width: 22%;
}

.directory-table--projects th:nth-child(2),
.directory-table--projects td:nth-child(2) {
    width: 26%;
}

.directory-table--projects th:nth-child(3),
.directory-table--projects td:nth-child(3) {
    width: 16%;
}

.directory-table--projects th:nth-child(4),
.directory-table--projects td:nth-child(4) {
    width: 22%;
}

.directory-table--projects th:nth-child(5),
.directory-table--projects td:nth-child(5) {
    width: 14%;
}

.directory-table th {
    color: var(--muted-soft);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.directory-row {
    cursor: pointer;
}

.directory-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.directory-row:hover td {
    color: var(--text);
}

.directory-row:focus-visible {
    outline: 1px solid var(--border);
    outline-offset: -1px;
    background: rgba(255, 255, 255, 0.03);
}

.directory-id {
    color: var(--text);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.directory-table td a {
    color: inherit;
    text-decoration: none;
}

.directory-table td a:hover {
    color: var(--text);
}

.directory-project {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.directory-name,
.directory-timeline {
    overflow: hidden;
    text-overflow: ellipsis;
}

.directory-table--projects .directory-name,
.directory-table--projects .directory-timeline {
    white-space: nowrap;
}

.directory-empty {
    margin: 0;
    padding: 18px 0 6px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.5;
}

/* Инструмент README-шоукейса. */
.readme-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 18px;
}

/* Большая область предпросмотра README. */
.readme-preview {
    width: min(533px, 100%);
    max-height: 400px;
    display: flex;
    justify-content: center;
}

/* Само превью README держит исходное соотношение сторон 7:9. */
.readme-preview .member-photo,
.readme-preview .photo-placeholder {
    width: auto;
    height: 400px;
    max-width: 100%;
    aspect-ratio: 7 / 9;
}

/* Две кнопки под превью. */
.readme-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Общий стиль для обеих кнопок README. */
.readme-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 10px 14px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
}

.readme-action:hover {
    background: rgba(182, 164, 111, 0.08);
}

/* Ошибка формы README. */
.readme-error {
    margin: 0;
    color: var(--warning);
    font-family: var(--mono);
    font-size: 12px;
    text-align: center;
}

/* Печать-штамп внизу карточки. */
.stamp {
    display: inline-block;
    border: 1px solid var(--accent);
    padding: 4px 8px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform: rotate(-2deg);
}

/* Список в карточке просмотра. */
.record-content ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.7;
}

/* Контейнер вывода boot-экрана. */
#boot-output {
    white-space: nowrap;
}

/* Одна строка boot-лога. */
.boot-line {
    min-height: 1.7em;
    line-height: 1.9;
}

/* Мобильная перестройка карточки в одну колонку. */
@media (max-width: 720px) {
    .registry-page {
        margin: 24px auto;
    }

    .record-grid {
        grid-template-columns: 1fr;
    }

    .photo-slot {
        border-right: 0;
        border-bottom: 1px solid var(--border-soft);
    }

    .photo-slot--project {
        border-bottom: 0;
    }

    .photo-button {
        width: 100%;
    }

    .fields {
        grid-template-columns: 1fr;
    }

    .directory-table,
    .directory-table thead,
    .directory-table tbody,
    .directory-table th,
    .directory-table td,
    .directory-table tr {
        display: block;
    }

    .directory-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .directory-table tr {
        border-bottom: 1px solid var(--border-soft);
        padding: 10px 0;
    }

    .directory-table td {
        border: 0;
        padding: 6px 0;
    }

    .directory-table td::before {
        display: block;
        margin-bottom: 4px;
        color: var(--muted-soft);
        font-size: 10px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        content: attr(data-label);
    }

    .record-top,
    .record-footer {
        flex-direction: column;
    }
}

/* Базовый вид инпутов и textarea в форме. */
.record-form input,
.record-form select,
.record-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font: inherit;
    font-family: var(--mono);
}

/* Фокус для полей формы. */
.record-form input:focus,
.record-form select:focus,
.record-form textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

/* Единый внешний вид полей ввода. */
.record-input,
.record-select,
.record-textarea {
    width: 100%;
    padding: 0;

    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);

    color: var(--text);
    font: inherit;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.5;

    appearance: none;
}

/* Скрытый file input, управляется label-кнопкой. */
.photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Кнопка загрузки/замены фото. */
.photo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    align-self: stretch;
    padding: 9px 14px;
    border: 1px solid rgba(182, 164, 111, 0.4);
    background: rgba(182, 164, 111, 0.04);
    color: rgba(215, 210, 198, 0.88);
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}

/* Hover для кнопки загрузки фото. */
.photo-button:hover {
    background: rgba(182, 164, 111, 0.08);
    border-color: rgba(182, 164, 111, 0.55);
}

/* Повторный фокус для конкретных классов полей. */
.record-input:focus,
.record-select:focus,
.record-textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.field-value--invalid .record-input,
.field-value--invalid .record-select,
.field-value--invalid .record-textarea {
    border-bottom-color: #b67a6f;
    color: #e0b4ab;
}

/* Текстовое поле summary. */
.record-textarea {
    resize: vertical;
    min-height: 80px;
    padding-right: 48px;
}

/* Счётчик символов summary. */
.summary-counter {
    position: absolute;
    right: 0;
    bottom: 0;
    color: rgba(104, 109, 104, 0.62);
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1;
    pointer-events: none;
}

.field-error {
    margin: 6px 0 0;
    min-height: 1.2em;
    color: #b67a6f;
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1.45;
}

.field-error--headline {
    margin: 6px 0 12px;
}

/* Контейнер для поля с иконкой копирования. */
.copy-field {
    display: flex;
    align-items: center;
    gap: 3px;
    width: 100%;
}

.copy-field-display {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 13px;
    white-space: nowrap;
}

/* Кнопка копирования - легкая контурная иконка в стиле Registry. */
.copy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(143, 147, 140, 0.35);
    color: transparent;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s;
}

.copy-icon::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 14px;
    border: 1px solid rgba(143, 147, 140, 0.52);
    box-sizing: border-box;
}

.copy-icon::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 2px;
    top: -3px;
    left: 1px;
    border: 1px solid rgba(143, 147, 140, 0.52);
    border-bottom: none;
}

.copy-icon:hover {
    border-color: rgba(143, 147, 140, 0.65);
}

.copy-icon:hover::before,
.copy-icon:hover::after {
    border-color: rgba(143, 147, 140, 0.75);
}

/* Кнопка отправки формы. */
.record-button {
    padding: 10px 18px;

    background: transparent;
    border: 1px solid var(--accent);

    color: var(--accent);

    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;

    cursor: pointer;
}

/* Hover у кнопки отправки. */
.record-button:hover {
    background: rgba(182, 164, 111, .08);
}

/* Активное нажатие кнопки отправки. */
.record-button:active {
    transform: translateY(1px);
}

@media (max-width: 760px) {
    .operator-toolbar {
        gap: 8px;
    }

    .archive-toolbar {
        gap: 8px;
    }

    .operator-toolbar__item,
    .operator-toolbar__item:visited {
        min-height: 30px;
        padding: 0 10px;
    }

    .archive-toolbar__item,
    .archive-toolbar__item:visited {
        min-height: 30px;
        padding: 0 10px;
    }

    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .workspace-module {
        min-height: 0;
    }

    .search-results {
        padding-left: 0;
    }
}
