.icon-button { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 39px; padding: 0; border: 1px solid rgba(255, 255, 255, .11); border-radius: 12px; color: #d8e1dc; background: rgba(255, 255, 255, .06); }
.icon-button.app-header__menu { display: none; }
.icon-button svg { width: 18px; height: 18px; }
.global-search { position: relative; width: min(580px, 42vw); }
.global-search__field { height: 42px; display: flex; align-items: center; gap: 9px; margin: 0; padding: 0 11px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 13px; color: #91a198; background: rgba(255, 255, 255, .065); }
.global-search__field:focus-within { border-color: rgba(217, 107, 79, .75); box-shadow: 0 0 0 3px rgba(217, 107, 79, .12); }
.global-search__field svg { width: 17px; flex: 0 0 auto; }
.global-search__field input { min-width: 0; flex: 1; margin: 0; padding: 0; border: 0; outline: 0; color: var(--white); background: transparent; }
.global-search__field input::placeholder { color: #91a198; }
.global-search__field kbd { padding: 3px 6px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px; color: #81938a; font: 9px var(--font-ui); }
.global-search__results { position: absolute; top: 50px; right: 0; left: 0; max-height: min(480px, 70vh); overflow: auto; padding: 7px; border: 1px solid var(--line); border-radius: 16px 16px 6px 16px; color: var(--ink-900); background: var(--paper); box-shadow: var(--shadow-float); }
.global-search__results .home-search-results__heading { padding: 8px 10px; color: var(--ink-400); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.global-search__results .home-search-results__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 9px; padding: 10px; border-radius: 10px; text-decoration: none; }
.global-search__results .home-search-results__item:hover, .global-search__results .home-search-results__item.is-active { background: var(--green-100); }
.global-search__results .home-search-results__name { overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.global-search__results .home-search-results__meta { grid-column: 1 / -1; color: var(--ink-400); font-size: 9px; }
.global-search__results .home-type-badge { padding: 2px 7px; border-radius: 999px; color: var(--green-700); background: var(--green-100); font-size: 8px; font-weight: 750; }
.global-search__results .home-search-results__empty { margin: 0; padding: 15px; color: var(--ink-500); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding: 0 2px 21px; border-bottom: 1px solid #d8d1c5; }
.page-heading__kicker { color: var(--terra-600); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.page-heading h1 { margin: 5px 0 0; font-family: var(--font-display); font-size: clamp(28px, 3vw, 36px); line-height: 1.12; letter-spacing: -.035em; font-weight: 600; }
.page-heading p { max-width: 850px; margin: 8px 0 0; color: var(--ink-500); }
.page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 13px; background: transparent; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn--primary, .btn:not([class*="btn--"]):not(.secondary):not(.button-ghost):not(.button-danger) { color: var(--white); border-color: var(--green-600); background: var(--green-600); }
.btn--primary:hover { background: var(--green-700); }
.btn--secondary, .btn.secondary { color: var(--ink-700); border-color: #d7d0c3; background: var(--paper); }
.btn--terra { color: var(--white); border-color: var(--terra-600); background: var(--terra-600); }
.btn--ghost, .button-ghost { color: var(--ink-500); }
.btn--danger, .button-danger { color: var(--white); background: var(--red-700); }
.btn--sm { min-height: 33px; padding: 0 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.card, .panel { border: 1px solid var(--line); border-radius: var(--radius-xl); background: rgba(255, 253, 249, .97); box-shadow: none; }
.card__head { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; border-bottom: 1px solid var(--line-soft); }
.card__head h2, .card__head h3 { margin: 0; font-size: 14px; }
.card__head p { margin: 3px 0 0; color: var(--ink-400); font-size: 10px; }
.card__body { padding: 20px; }
.table-scroll { max-width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; }
.data-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.data-table th { padding: 12px 15px; border-bottom: 1px solid #d9d2c6; color: #627169; background: #eee9df; font-size: 9px; font-weight: 800; letter-spacing: .045em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px 15px; border-bottom: 1px solid #ece6dc; color: var(--ink-700); font-size: 11px; vertical-align: middle; }
.data-table tbody tr:hover td { background: #fbf3ee; }
.data-table tbody tr.is-selected td { background: #edf6f2; }
.data-table a { font-weight: 750; text-decoration: none; }
.data-table a:hover { color: var(--terra-600); }
.form-field label, .form-label { display: block; margin: 0 0 5px; color: #7a8881; font-size: 9px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.form-field input, .form-field select, .form-field textarea, .form-control { width: 100%; min-height: 39px; margin: 0; padding: 8px 10px; border: 1px solid #d9d2c6; border-radius: 11px; outline: 0; color: #34443c; background: #f9f6ef; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .form-control:focus { border-color: var(--terra-600); box-shadow: 0 0 0 3px rgba(217, 107, 79, .1); }
.form-field__error, .errorlist { margin: 5px 0 0; padding: 0; color: var(--red-700); font-size: 10px; list-style: none; }
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; }
.checkbox-row input, .row-checkbox { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--green-600); }
.status-badge { min-height: 24px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 999px; color: #66756e; background: #ece8de; font-size: 9px; font-weight: 800; white-space: nowrap; }
.status-badge > span { width: 5px; height: 5px; border-radius: 50%; background: #8d9993; }
.status-badge--success { color: #2c6e5f; background: var(--green-100); }
.status-badge--success > span { background: var(--green-600); }
.status-badge--warning { color: #8b601c; background: var(--amber-100); }
.status-badge--warning > span { background: var(--amber-600); }
.status-badge--danger { color: var(--red-700); background: var(--red-100); }
.status-badge--danger > span { background: var(--red-700); }
.flash-stack { display: grid; gap: 8px; margin-bottom: 16px; }
.flash { padding: 11px 14px; border: 1px solid #b7d8ce; border-left: 4px solid var(--green-600); border-radius: 11px; color: var(--green-700); background: #edf7f3; }
.flash--error { border-color: #e8bbb5; border-left-color: var(--red-700); color: var(--red-700); background: #fff1ef; }
.empty-state { padding: 34px 20px; color: var(--ink-500); text-align: center; }
.empty-state__icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 11px; border-radius: 16px; color: var(--green-600); background: var(--green-100); font-size: 24px; }
.empty-state h3 { margin: 0; font-family: var(--font-display); color: var(--ink-900); font-size: 20px; }
.empty-state p { max-width: 480px; margin: 7px auto 0; }
.pagination { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: var(--ink-500); font-size: 10px; }
.pagination__buttons { display: flex; gap: 6px; }
.page-button { min-height: 34px; display: inline-flex; align-items: center; padding: 0 11px; border: 1px solid #d9d2c6; border-radius: 10px; color: var(--ink-700); background: var(--white); text-decoration: none; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; color: #2a675a; background: var(--green-100); font-size: 10px; font-weight: 650; }
.filter-chip a { color: inherit; text-decoration: none; }
.modal-overlay, .modal-backdrop { position: fixed; z-index: 110; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 29, 26, .5); }
.modal-overlay[hidden], .modal-backdrop[aria-hidden="true"] { display: none; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--paper); }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.modal__head h2 { margin: 0; font-family: var(--font-display); }
.modal__close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream-50); }
.modal__body { padding: 18px; }

@media (max-width: 900px) {
    .page-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 760px) {
    .icon-button.app-header__menu { display: grid; }
    .global-search { width: min(100%, 560px); flex: 1; }
    .global-search__field kbd { display: none; }
    .page-heading { gap: 14px; margin-bottom: 16px; padding-bottom: 16px; }
    .page-actions { width: 100%; }
    .page-actions .btn { flex: 1; }
}
@media (max-width: 590px) {
    .global-search__results { position: fixed; top: 72px; right: 8px; left: 8px; }
    .app-account { margin-left: 0; }
    .pagination { align-items: flex-start; flex-direction: column; gap: 10px; padding: 14px; }
}
