body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #f5f2f2;
}

main {
    flex: 1 0 auto;
}

.nav-link-custom {
    color: #000;
    font-weight: bold;
    margin-left: 15px;
    opacity: 0.7;
    /* padding-bottom: 2px; */
}
.nav-link-custom:hover {
    /* padding-bottom: 7px; */
    opacity: 1;
    transition: all 0.3s ease;
    /* border-bottom: 2px solid #000; */
}
.nav-link-custom.active {
    opacity: 1;
    /* padding-bottom: 7px; */
    /* border-bottom: 2px solid #000; */
}
.nav-quick-search-form {
    align-items: center;
    gap: 8px;
}

.nav-quick-search-control {
    min-width: 220px;
    min-height: 34px;
    border: 1px solid #dc3545;
    border-radius: 10px;
    padding: 6px 10px;
    background: #fff5f5;
    color: #6b0f17;
    outline: none;
}

.nav-quick-search-control::placeholder {
    color: #9f2d35;
}

.nav-quick-search-control:focus {
    border-color: #b42318;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.2);
}
.search-jumbotron {
    margin-top: 20vh;
    transition: margin-top .22s ease;
}

.scope-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(26, 36, 58, 0.12);
    max-width: 920px;
    margin: 0 auto 16px;
    background: #fff;
}

.scope-switch-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    text-decoration: none;
    color: #4f5573;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: all .18s ease;
    opacity: 0.7;
    background: #00000009;
    transition: 0.2s all ease;
}

.scope-switch-item:hover {
    background: #f5f7ff;
    color: #364174;
}

.scope-switch-item.is-active {
    background: #ffffff;
    color: #23294d;
    transition: 0.2s all ease;
    opacity: 1;
}

.search-jumbotron.search-jumbotron-compact {
    margin-top: 2vh;
}

.search-container {
    background: #ffffff;
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 5px;
    border-radius: 50px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.search-container input {
    border: none;
    background: transparent;
    padding: 10px 20px;
    width: 100%;
    font-size: 16px;
    text-decoration: none;
    outline: none;
    padding-right: 5px;
}
.search-container button {
    background: transparent;
    border: none;
    color: #333;
    font-size: 18px;
    cursor: pointer;
}

.icon-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
}

.btn-sm.icon-action-btn {
    /* width: 31px;
    height: 31px; */
}

.icon-action-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    pointer-events: none;
}

.quick-search-panel {
    max-width: 700px;
    margin: 12px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.quick-search-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, .12);
    font-size: .88rem;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .04);
    opacity: 0.5;
    transition: all 0.2s ease;
}

.quick-search-link:hover {
    border-color: #1a81f7;
    color: #1a81f7;
    opacity: 1;

}

.search-empty-state {
    max-width: 760px;
    margin: 26px auto 0;
    text-align: center;
    color: #5d6470;
}

.search-empty-title {
    margin: 0;
    font-weight: 600;
    color: #344054;
}

.search-empty-subtitle {
    margin: 6px 0 0;
    font-size: .95rem;
}

.research-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.research-search-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, .1);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .06);
    padding: 18px;
}

.research-search-form .field {
    margin-bottom: 0;
}

.research-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.research-grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.research-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 10px;
}

.advanced-filter-toggle {
    margin: 2px 0 10px;
}

.documents-advanced {
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 12px;
    background: #f9fbff;
}

.research-flag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.research-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .12);
    background: #fff;
    padding: 6px 10px;
    font-size: .85rem;
}

.research-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.researchers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.researcher-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.researcher-name {
    margin: 0 0 6px;
    font-size: 1rem;
}

.researcher-name a {
    text-decoration: none;
    color: #0f172a;
}

.researcher-name a:hover {
    color: #1a81f7;
}

.researcher-meta {
    margin: 0;
    font-size: .88rem;
    color: #5f6974;
}

.researcher-extra {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: .85rem;
    color: #334155;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    max-height: 280px;
    overflow-y: auto;
    z-index: 30;
}

.search-suggestion-item {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 10px 14px;
    font-size: .95rem;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    color: #1c232f;
}

.search-suggestion-item:last-child {
    border-bottom: 0;
}

.search-suggestion-item:hover,
.search-suggestion-item:focus-visible {
    background: #f2f6ff;
    outline: none;
}

.result-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.result-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 12px;
    padding: 14px 14px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    position: relative;
}
.results-header {
    color: #5f6974;
}

.result-meta-tools {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.resultShowOptionBtns {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
}

.result-view-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, .14);
    background: #fff;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .18s ease;
}

.result-view-btn:hover {
    border-color: #1a81f7;
    color: #1a81f7;
}

.result-view-btn.is-active {
    background: #1a81f7;
    color: #fff;
    border-color: #1a81f7;
}

.results-table-wrap {
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 12px;
    background: #fff;
}

.results-table {
    margin-bottom: 0;
    box-shadow: 0 0 20px #000000;
}

.results-table thead th {
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
    font-size: .86rem;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.results-table td {
    vertical-align: top;
    font-size: .92rem;
}

.results-table-title {
    min-width: 320px;
}

.results-table-subtitle {
    margin-top: 3px;
    color: #64748b;
    font-size: .8rem;
    word-break: break-word;
}

.table-open-link {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(26, 129, 247, .35);
    color: #1a81f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.table-open-link:hover {
    background: #eef5ff;
    border-color: #1a81f7;
}
.result-title {
    font-size: 1rem;
    margin-bottom: 8px;
}

.result-title-link {
    color: inherit;
    text-decoration: none;
}

.result-title-link:hover {
    text-decoration: underline;
}

.result-meta {
    margin-bottom: 6px;
    color: #5d6470;
    font-size: .92rem;
}

.result-link {
    margin-bottom: 0;
    font-size: .92rem;
}

.result-open-link {
    position: absolute;
    right: 12px;
    bottom: 10px;
    margin: 0;
    font-size: 25px;
}

.publication-detail {
    max-width: 1100px;
    margin: 0 auto;
}

.employee-card {
    border: 0;
    border-radius: 16px;
}

.employee-card-clickable {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.employee-card-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(22, 28, 45, 0.1) !important;
}

.employee-card-clickable:focus-visible {
    outline: 3px solid rgba(26, 129, 247, 0.35);
    outline-offset: 2px;
}

.employee-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.employee-avatar-wrap {
    flex: 0 0 auto;
}

.employee-avatar {
    width: 74px;
    height: 74px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.employee-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg, #3176da, #18a999);
}

.employee-meta {
    min-width: 0;
}

.employee-meta h2 {
    line-height: 1.3;
    word-break: break-word;
}

.employee-name-link {
    color: inherit;
    text-decoration: none;
}

.employee-name-link:hover {
    color: #1a81f7;
}

.employee-username code {
    font-size: 0.8rem;
}

.employee-gender-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #5d6470;
    font-size: 0.92rem;
}

.gender-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gender-icon.female {
    background: #ffe9f1;
    color: #b12f64;
}

.gender-icon.male {
    background: #e9f1ff;
    color: #1e5ec7;
}

.gender-icon.unknown {
    background: #eef1f4;
    color: #5f6974;
}

.employee-card .btn {
    border-radius: 999px;
}

.employee-card details summary {
    cursor: pointer;
}

.profile-page {
    --profile-accent: #1d4ed8;
    --profile-accent-strong: #0f3d8f;
    --profile-emerald: #0d9488;
    --profile-border: rgba(15, 23, 42, 0.08);
    --profile-text: #0f172a;
    --profile-muted: #64748b;
    max-width: 1120px;
    margin: 0 auto;
}

.profile-shell {
    background: linear-gradient(180deg, #f7fbff 0, #ffffff 220px);
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.1);
}

.profile-inline-alert {
    background: #ebfff3;
    color: #166534;
    padding: 12px 24px;
}

.profile-cover {
    position: relative;
    min-height: 210px;
    padding: 28px 28px 78px;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.34), transparent 34%),
        radial-gradient(circle at 88% 24%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(125deg, #0f3d8f, #1765c4 48%, #0ea5a3);
}

.profile-cover::before,
.profile-cover::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(2px);
}

.profile-cover::before {
    width: 240px;
    height: 240px;
    right: -52px;
    top: -72px;
}

.profile-cover::after {
    width: 132px;
    height: 132px;
    left: 42%;
    bottom: -40px;
}

.profile-cover-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.profile-cover-note {
    color: rgba(239, 246, 255, 0.92);
    font-size: 0.96rem;
    line-height: 1.6;
}

.profile-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.18);
    color: #f8fbff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    margin-bottom: 12px;
}

.profile-kicker-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.profile-kicker-row .profile-kicker {
    margin-bottom: 0;
}

.profile-kicker-soft {
    background: #eef4ff;
    color: var(--profile-accent);
    border-color: rgba(29, 78, 216, 0.16);
}

.profile-kicker-muted {
    background: #f8fafc;
    color: #475569;
    border-color: rgba(15, 23, 42, 0.08);
}

.profile-head {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 24px;
    padding: 0 28px 26px;
    margin-top: -62px;
}

.profile-avatar-wrap {
    flex: 0 0 auto;
}

.profile-avatar {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 16px 34px rgba(10, 20, 40, 0.22);
    background: #f8fafc;
}

.profile-head-main {
    min-width: 0;
    flex: 1 1 auto;
    padding: 26px 28px 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
}

.profile-identity-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.profile-identity-copy {
    min-width: 0;
    flex: 1 1 420px;
}

.profile-name {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--profile-text);
    word-break: break-word;
}

.profile-username {
    margin: 8px 0 0;
    color: var(--profile-muted);
    font-size: 0.98rem;
}

.profile-inline-meta {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-inline-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #334155;
    font-size: 0.84rem;
}

.profile-inline-meta i {
    color: var(--profile-accent);
}

.profile-inline-meta a {
    color: inherit;
    text-decoration: none;
}

.profile-inline-meta a:hover {
    color: var(--profile-accent);
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.profile-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.profile-action-btn.btn-light {
    color: var(--profile-accent-strong);
}

.profile-action-btn.btn-light:hover {
    color: var(--profile-accent-strong);
    background: #f8fbff;
}

.profile-action-btn-danger {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.38);
    color: #fff;
}

.profile-action-btn-danger:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.profile-stats {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.profile-stat {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 14px;
    text-align: left;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-stat::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 0;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--profile-accent), var(--profile-emerald));
}

.profile-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(29, 78, 216, 0.18);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.profile-stat strong {
    display: block;
    color: var(--profile-text);
    font-size: 1.45rem;
    line-height: 1.05;
    font-weight: 800;
}

.profile-stat span {
    display: block;
    font-size: 0.78rem;
    color: var(--profile-muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-highlight-grid {
    padding: 0 28px 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.profile-highlight-card {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--profile-border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.profile-highlight-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.profile-highlight-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: linear-gradient(135deg, #ebf2ff, #edfcf9);
    color: var(--profile-accent-strong);
    font-size: 1.15rem;
}

.profile-highlight-title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--profile-text);
}

.profile-highlight-text {
    color: var(--profile-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.profile-id-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.profile-id-item {
    min-width: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 14px 12px;
    background: #f8fbff;
}

.profile-id-item span {
    display: block;
    font-size: 0.74rem;
    color: var(--profile-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.profile-id-item strong {
    display: block;
    font-size: 0.94rem;
    color: var(--profile-text);
    word-break: break-word;
}

.profile-id-item.is-empty {
    background: #f8fafc;
}

.profile-id-item.is-empty strong {
    color: #94a3b8;
    font-weight: 600;
}

.profile-chip-group + .profile-chip-group {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.profile-chip-group-title {
    display: block;
    margin-bottom: 10px;
    color: var(--profile-muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-chip-list,
.profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fbff;
    color: #334155;
    font-size: 0.85rem;
}

.profile-chip i {
    color: var(--profile-accent);
}

.profile-empty-note {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px dashed rgba(15, 23, 42, 0.12);
    background: #f8fafc;
    color: var(--profile-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.profile-content {
    padding: 0 28px 28px;
}

.profile-block {
    background: #fff;
    border: 1px solid var(--profile-border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.profile-block-primary {
    background: linear-gradient(180deg, #ffffff, #fcfdff);
}

.profile-side-stack {
    display: grid;
    gap: 16px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.profile-form-field {
    display: grid;
    gap: 6px;
}

.profile-form-field .form-control,
.profile-form-field .form-select {
    min-height: 44px;
    border-radius: 14px;
    border-color: rgba(15, 23, 42, 0.12);
    background: #fbfdff;
    font-size: 0.9rem;
}

.profile-form-field .form-control:focus,
.profile-form-field .form-select:focus {
    border-color: var(--profile-accent);
    box-shadow: 0 0 0 0.22rem rgba(29, 78, 216, 0.14);
}

.profile-block-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.profile-block-subtitle {
    color: var(--profile-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 34ch;
}

.profile-mini-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--profile-accent);
    text-decoration: none;
    background: #eef4ff;
}

.profile-mini-link:hover {
    background: #dfeaff;
    color: var(--profile-accent-strong);
    text-decoration: none;
}

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

.profile-post-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(29, 78, 216, 0.12);
    border-radius: 20px;
    padding: 16px;
    background: linear-gradient(180deg, #fbfdff, #f3f8ff);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(29, 78, 216, 0.22);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.profile-post-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-post-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: #e8f0ff;
    color: #2456b9;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.profile-post-badge.is-soft {
    background: #ecfdf5;
    color: #0f766e;
    min-width: 0;
}

.profile-post-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
}

.profile-post-title a {
    color: var(--profile-text);
    text-decoration: none;
}

.profile-post-title a:hover {
    color: var(--profile-accent);
}

.profile-post-meta {
    margin: 0;
    font-size: 0.84rem;
    color: var(--profile-muted);
}

.profile-post-extra {
    margin: 0;
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.55;
}

.profile-post-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    width: fit-content;
    color: var(--profile-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.18s ease, color 0.18s ease;
}

.profile-post-link:hover {
    gap: 10px;
    color: var(--profile-accent-strong);
}

.profile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-bottom: 12px;
}

.profile-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-list span {
    color: var(--profile-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-list strong {
    font-size: 0.95rem;
    text-align: right;
    word-break: break-word;
    color: var(--profile-text);
}

.profile-list strong a {
    color: inherit;
    text-decoration: none;
}

.profile-list strong a:hover {
    color: var(--profile-accent);
}

.profile-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--profile-accent);
    background: #fff;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.profile-links a:hover {
    transform: translateY(-1px);
    border-color: var(--profile-accent);
    background: #f2f7ff;
}

.profile-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-doc-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 0.88rem;
    background: #fbfdff;
}

.profile-doc-list li span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-doc-list li a {
    text-decoration: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--profile-accent);
}

.profile-doc-list li a:hover {
    border-color: var(--profile-accent);
    background: #f2f7ff;
}

.profile-save-btn {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--profile-accent), var(--profile-emerald));
    font-weight: 700;
}

.profile-save-btn:hover,
.profile-save-btn:focus {
    filter: brightness(0.97);
}

.profile-sync-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-sync-actions .btn {
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 600;
    border-color: rgba(29, 78, 216, 0.18);
}

.profile-sync-actions .btn:hover {
    background: #eef4ff;
    color: var(--profile-accent);
    border-color: rgba(29, 78, 216, 0.34);
}

.profile-sync-log-wrap {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #f6faff;
}

.profile-sync-log {
    max-height: 260px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-sync-log-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 0.82rem;
}

.profile-sync-log-time {
    color: var(--profile-muted);
    font-variant-numeric: tabular-nums;
    font-size: 0.78rem;
}

.profile-sync-log-text {
    color: var(--profile-text);
    word-break: break-word;
}

.profile-sync-log-row.level-success {
    border-color: rgba(22, 163, 74, 0.35);
    background: #f0fdf4;
}

.profile-sync-log-row.level-warning {
    border-color: rgba(234, 179, 8, 0.38);
    background: #fefce8;
}

.profile-sync-log-row.level-danger {
    border-color: rgba(239, 68, 68, 0.32);
    background: #fef2f2;
}

.staff-filter-alert {
    margin-bottom: 12px;
}

.auth-shell {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.auth-shell-narrow {
    max-width: 560px;
}

.auth-hero {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(20, 30, 50, 0.12);
    background:
        radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.24), transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.22), transparent 42%),
        linear-gradient(130deg, #0f3f87, #0ea5a3);
    padding: 26px;
    color: #f8fbff;
    box-shadow: 0 18px 42px rgba(15, 40, 90, 0.25);
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #eaf4ff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 6px 11px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.auth-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.auth-hero p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: 690px;
    color: rgba(240, 248, 255, 0.92);
}

.auth-chooser-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.llm-response {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 260px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
}

.llm-message {
    max-width: 92%;
    padding: 10px 12px;
    border-radius: 14px;
    word-break: break-word;
    line-height: 1.45;
}

.llm-message-role {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 5px;
    opacity: 0.7;
}

.llm-message-text {
    white-space: pre-wrap;
    color: #0f172a;
    font-size: 0.92rem;
}

.llm-message-assistant {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.llm-message-user {
    align-self: flex-end;
    background: #0f172a;
    border: 1px solid #0f172a;
}

.llm-message-user .llm-message-role,
.llm-message-user .llm-message-text {
    color: #ffffff;
    opacity: 1;
}

.llm-examples {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.llm-example-btn {
    border: 1px solid rgba(15, 23, 42, 0.18);
    background: #ffffff;
    color: #334155;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 0.8rem;
    line-height: 1.25;
    transition: all 0.15s ease;
}

.llm-example-btn:hover {
    border-color: rgba(15, 23, 42, 0.3);
    background: #e3e8ef;
}

.llm-example-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.llm-input {
    border: 1px solid rgba(15, 23, 42, 0.16);
    margin-top: 12px;
    padding: 6px;
    border-radius: 999px;
    align-items: center;
    gap: 6px;
    background: #ffffff;
}

.llm-input input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0 10px;
}

.llm-input button {
    border: 0;
    background: #0f172a;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.llm-input button:disabled {
    opacity: 0.5;
}
.auth-chooser-card,
.auth-card {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.auth-chooser-card {
    padding: 20px;
    display: grid;
    gap: 11px;
}

.auth-chooser-card h2 {
    margin: 0;
    font-size: 1.15rem;
}

.auth-chooser-card p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.auth-card {
    padding: 22px;
}

.auth-card-head {
    margin-bottom: 14px;
}

.auth-card-head h1 {
    margin: 0 0 4px;
    font-size: 1.4rem;
}

.auth-card-head p {
    margin: 0;
    color: #64748b;
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-field {
    display: grid;
    gap: 6px;
}

.auth-field label {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
}

.auth-field .form-control {
    min-height: 44px;
    border-radius: 12px;
    border-color: rgba(15, 23, 42, 0.16);
}

.auth-field .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.23rem rgba(37, 99, 235, 0.18);
}

.auth-help {
    color: #64748b;
    font-size: 0.8rem;
}

.auth-error {
    color: #b42318;
    font-size: 0.84rem;
}

.auth-alert {
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 10px 12px;
    font-size: 0.9rem;
}

.auth-alert-danger {
    background: #fef2f2;
    border-color: rgba(220, 38, 38, 0.26);
    color: #991b1b;
}

.auth-alert-success {
    background: #ecfdf3;
    border-color: rgba(22, 163, 74, 0.26);
    color: #166534;
}

.auth-alert-info {
    background: #eff6ff;
    border-color: rgba(37, 99, 235, 0.26);
    color: #1d4ed8;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.auth-btn-wide {
    width: 100%;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #0d9488);
    color: #fff;
}

.auth-btn-primary:hover,
.auth-btn-primary:focus {
    color: #fff;
    filter: brightness(0.96);
}

.auth-btn-outline {
    background: #fff;
    border-color: rgba(29, 78, 216, 0.35);
    color: #1d4ed8;
}

.auth-btn-outline:hover,
.auth-btn-outline:focus {
    background: #eef5ff;
    color: #1d4ed8;
}

.auth-links {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.09);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.92rem;
}

.auth-links a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 700;
}

.auth-links a:hover {
    text-decoration: underline;
}

footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e1e1e1;
    margin-top: auto;
}
/* Панель */
.filter-panel{
  position: relative;
  margin: 12px auto;
  margin-top: 0;
  max-width: 700px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  transition: all .22s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  overflow: hidden;
  display: none;

}
.filter-panel.open{ display:block; }

.filter-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: #fbfbfc;
}
.filter-title{ font-weight: 700; }
.filter-close{
  border:0; background:transparent;
  font-size: 18px; cursor:pointer;
  opacity:.7;
}
.filter-close:hover{ opacity:1; }

.filter-form{ padding: 12px 14px 14px; }

/* Группы */
.filter-group{
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow:hidden;
}
.group-toggle{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 12px 12px;
  background: #fff;
  border:0;
  cursor:pointer;
  font-weight: 650;
}
.group-toggle .chev{ transition: transform .18s ease; opacity:.7; }
.filter-group.open .group-toggle .chev{ transform: rotate(180deg); }

.group-body{
  height: 0;
  overflow: hidden;
  transition: height .22s ease;
  border-top: 1px solid rgba(0,0,0,.06);
  background: #fcfcfd;
}
.group-body-inner{ padding: 12px; } /* если захочешь вложить */

.field{ display:flex; flex-direction:column; gap:6px; margin-bottom: 10px; }
.label{ font-size: 12px; opacity:.75; }
.control{
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  outline: none;
}
.control:focus{ border-color: rgba(26,129,247,.6); box-shadow: 0 0 0 3px rgba(26,129,247,.12); }

.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
@media (max-width: 640px){
  .grid-2{ grid-template-columns: 1fr; }
}

/* Пиллы (теги) */
.pill-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 999px;
  background:#fff;
  cursor:pointer;
  user-select:none;
}
.pill input{ display:none; }
.pill:has(input:checked){
  border-color: rgba(26,129,247,.65);
  box-shadow: 0 0 0 3px rgba(26,129,247,.10);
}

.hint{ font-size: 12px; opacity:.65; margin-top: 6px; }

/* Chips */
.chips{ display:flex; flex-wrap:wrap; gap:8px; margin: 6px 0 12px; }
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
  font-size: 12px;
}
.chip button{
  border:0; background:transparent;
  cursor:pointer; opacity:.7;
}
.chip button:hover{ opacity:1; }

/* Кнопки */
.filter-actions{
  display:flex; gap:10px; justify-content:flex-end;
  margin-top: 10px;
}
.btn-primary{
  padding: 10px 14px; border-radius: 10px;
  border:0; cursor:pointer;
  background: #1a81f7; color:#fff;
}
.btn-ghost{
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff; cursor:pointer;
}

@media (max-width: 992px) {
    .profile-head {
        flex-direction: column;
        margin-top: -78px;
    }

    .profile-head-main {
        width: 100%;
    }

    .profile-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .profile-highlight-grid {
        grid-template-columns: 1fr;
    }

    .profile-id-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    #brandText {
        display: none !important;
    }

    #mainContainer {
        margin-top: 2vh;
    }

    .quick-search-panel {
        justify-content: flex-start;
    }

    .staff-filter-alert {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .scope-switch-item {
        padding: 12px 8px;
        font-size: .88rem;
    }

    .nav-quick-search-form {
        width: 100%;
    }

    .nav-quick-search-control {
        min-width: 0;
        width: 100%;
    }

    .research-grid-2,
    .research-grid-3 {
        grid-template-columns: 1fr;
    }

    .research-actions {
        justify-content: stretch;
    }

    .research-actions .btn {
        flex: 1 1 auto;
    }

    .result-meta-tools {
        width: 100%;
        justify-content: space-between;
        margin-top: 6px;
    }

    .profile-cover {
        min-height: 220px;
        padding: 22px 18px 88px;
    }

    .profile-head {
        margin-top: -92px;
        padding: 0 18px 18px;
        gap: 14px;
    }

    .profile-avatar {
        width: 118px;
        height: 118px;
    }

    .profile-head-main {
        padding: 18px;
    }

    .profile-identity-row {
        flex-direction: column;
    }

    .profile-inline-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-inline-meta span {
        border-radius: 14px;
    }

    .profile-actions {
        width: 100%;
    }

    .profile-action-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .profile-highlight-grid,
    .profile-content {
        padding-left: 18px;
        padding-right: 18px;
        padding-bottom: 18px;
    }

    .profile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-id-grid {
        grid-template-columns: 1fr;
    }

    .profile-post-grid {
        grid-template-columns: 1fr;
    }

    .profile-block,
    .profile-highlight-card {
        border-radius: 18px;
        padding: 18px;
    }

    .profile-block-head {
        flex-direction: column;
    }

    .profile-list li {
        flex-direction: column;
    }

    .profile-list strong {
        text-align: left;
    }

    .auth-chooser-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .employee-top {
        gap: 10px;
    }

    .employee-avatar {
        width: 64px;
        height: 64px;
        border-radius: 12px;
    }
}

.app-toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.app-toast {
    min-width: 160px;
    max-width: 320px;
    background: #1f2937;
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    font-size: 0.92rem;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.app-toast-success {
    background: #0f766e;
}

.app-toast-danger {
    background: #b42318;
}

.app-toast-info {
    background: #1d4ed8;
}
#navSearchItem {
    border: 1px solid #878787;
    border-radius: 25px;
    padding: 2px;
}
#navSearchItem input {
    border: none;
    outline: none;
    padding: 6px 12px;
    width: 100%;
    background: transparent;
}
#navSearchItem button {
    border: none;
    background: transparent;
    padding: 3px 12px;
    cursor: pointer;
    color: #1a81f7;
    opacity: 0.8;
    border-left: 2px solid #878787;
}

.profile-shell.profile-dashboard {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: #f8fafc;
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    min-height: 100vh;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.app-brand:hover {
    color: inherit;
}

.app-brand img {
    flex: 0 0 auto;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px;
}

.app-brand-title {
    color: #f8fafc;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.2;
}

.profile-dashboard .profile-inline-alert {
    grid-column: 1 / -1;
    margin: 0;
    padding: 14px 20px;
    background: #ebfff3;
    color: #166534;
    border-bottom: 1px solid rgba(22, 101, 52, 0.12);
}

.profile-dashboard .profile-rail {
    background: #0f172a;
    color: #e2e8f0;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 100%;
}

.profile-dashboard .profile-rail-head {
    display: grid;
    gap: 10px;
}

.profile-dashboard .profile-rail-eyebrow {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #94a3b8;
}

.profile-dashboard .profile-rail-title {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.15;
    color: #f8fafc;
}

.profile-dashboard .profile-rail-copy {
    margin: 0;
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
}

.profile-dashboard .profile-nav {
    display: grid;
    gap: 8px;
}

.profile-dashboard .profile-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 16px;
    color: #cbd5e1;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-weight: 500;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.profile-dashboard .profile-nav-item i {
    font-size: 1rem;
}

.profile-dashboard .profile-nav-item:hover,
.profile-dashboard .profile-nav-item.is-active {
    color: #0f172a;
    background: #ffffff;
    border-color: #ffffff;
}

.profile-dashboard .profile-rail-card {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-dashboard .profile-rail-card-title {
    margin-bottom: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.profile-dashboard .profile-rail-stats {
    display: grid;
    gap: 12px;
}

.profile-dashboard .profile-rail-stat {
    display: grid;
    gap: 4px;
}

.profile-dashboard .profile-rail-stat span {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.profile-dashboard .profile-rail-stat strong {
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 600;
    word-break: break-word;
}

.profile-dashboard .profile-rail-actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.profile-dashboard .profile-rail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    color: #e2e8f0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.profile-dashboard .profile-rail-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.profile-dashboard .profile-rail-btn.is-primary {
    background: #ffffff;
    color: #0f172a;
    border-color: #ffffff;
}

.profile-dashboard .profile-workspace {
    padding: 28px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-main {
    flex: 1 0 auto;
}

.app-footer {
    margin-top: 28px;
    padding: 20px 22px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

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

.app-footer h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #0f172a;
}

.app-footer p {
    margin: 0 0 8px;
}

.app-footer a {
    color: #334155;
    text-decoration: none;
}

.app-footer a:hover {
    color: #1d4ed8;
}

.profile-dashboard .profile-stage {
    display: grid;
    gap: 20px;
}

.profile-dashboard .profile-stage-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.profile-dashboard .profile-stage-copy {
    min-width: 0;
}

.profile-dashboard .profile-stage-title {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 700;
    color: #0f172a;
}

.profile-dashboard .profile-stage-subtitle {
    margin: 6px 0 0;
    max-width: 52ch;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.profile-dashboard .profile-stage-actions {
    flex: 0 0 auto;
}

.profile-dashboard .profile-stage-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    color: #334155;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.profile-dashboard .profile-stage-btn:hover {
    color: #0f172a;
    background: #f8fafc;
}

.profile-dashboard .profile-hero-card,
.profile-dashboard .profile-panel,
.profile-dashboard .profile-block,
.profile-dashboard .profile-metric-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.profile-dashboard .profile-hero-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 20px;
    padding: 22px;
}

.profile-dashboard .profile-hero-avatar {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.profile-dashboard .profile-avatar {
    width: 112px;
    height: 112px;
    border-radius: 26px;
    object-fit: cover;
    background: #e2e8f0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

.profile-dashboard .profile-hero-body {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.profile-dashboard .profile-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.profile-dashboard .profile-hero-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-dashboard .profile-hero-name {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 700;
    color: #0f172a;
}

.profile-dashboard .profile-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
}

.profile-dashboard .profile-hero-subtitle {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.profile-dashboard .profile-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.profile-dashboard .profile-hero-meta-item,
.profile-dashboard .profile-info-chip,
.profile-dashboard .profile-tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.86rem;
    text-decoration: none;
}

.profile-dashboard .profile-hero-meta-item,
.profile-dashboard .profile-info-chip {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #334155;
}

.profile-dashboard .profile-hero-meta-item.is-link:hover,
.profile-dashboard .profile-info-chip.is-link:hover {
    color: #1d4ed8;
    border-color: rgba(29, 78, 216, 0.22);
    background: #eef4ff;
}

.profile-dashboard .profile-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-dashboard .profile-tag-chip {
    background: #edf2f7;
    color: #475569;
    border: 1px solid transparent;
}

.profile-dashboard .profile-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.profile-dashboard .profile-metric-card {
    padding: 18px;
}

.profile-dashboard .profile-metric-label {
    display: block;
    font-size: 0.84rem;
    color: #64748b;
}

.profile-dashboard .profile-metric-value {
    display: block;
    margin-top: 10px;
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
    color: #0f172a;
}

.profile-dashboard .profile-metric-sub {
    display: block;
    margin-top: 8px;
    font-size: 0.84rem;
    color: #94a3b8;
}

.profile-dashboard .profile-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
    gap: 18px;
    align-items: start;
}

.profile-dashboard .profile-panel,
.profile-dashboard .profile-block {
    padding: 20px;
}

.profile-dashboard .profile-panel-head,
.profile-dashboard .profile-block-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.profile-dashboard .profile-panel-title,
.profile-dashboard .profile-block-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.profile-dashboard .profile-panel-subtitle,
.profile-dashboard .profile-block-subtitle {
    margin: 6px 0 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #64748b;
}

.profile-dashboard .profile-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.profile-dashboard .profile-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #475569;
    font-size: 0.82rem;
}

.profile-dashboard .profile-publication-list,
.profile-dashboard .profile-sidebar-grid {
    display: grid;
    gap: 12px;
}

.profile-dashboard .profile-publication-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.profile-dashboard .profile-publication-text {
    min-width: 0;
}

.profile-dashboard .profile-publication-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
    color: #0f172a;
}

.profile-dashboard .profile-publication-meta {
    margin-top: 6px;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.5;
}

.profile-dashboard .profile-publication-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.profile-dashboard .profile-publication-link:hover {
    color: #0f172a;
    background: #f8fafc;
}

.profile-dashboard .profile-empty-note {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px dashed rgba(15, 23, 42, 0.12);
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.55;
}

.profile-dashboard .profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-dashboard .profile-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #334155;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
}

.profile-dashboard .profile-links a:hover {
    color: #1d4ed8;
    border-color: rgba(29, 78, 216, 0.2);
    background: #eef4ff;
}

.profile-dashboard .profile-list,
.profile-dashboard .profile-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.profile-dashboard .profile-list li,
.profile-dashboard .profile-doc-list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.profile-dashboard .profile-list span {
    color: #64748b;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-dashboard .profile-list strong {
    color: #0f172a;
    font-size: 0.92rem;
    text-align: right;
    word-break: break-word;
}

.profile-dashboard .profile-list strong a {
    color: inherit;
    text-decoration: none;
}

.profile-dashboard .profile-list strong a:hover {
    color: #1d4ed8;
}

.profile-dashboard .profile-doc-list li span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dashboard .profile-doc-list li a {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #ffffff;
    color: #334155;
    text-decoration: none;
}

.profile-dashboard .profile-doc-list li a:hover {
    color: #1d4ed8;
    background: #eef4ff;
    border-color: rgba(29, 78, 216, 0.2);
}

.profile-dashboard .profile-form-grid {
    display: grid;
    gap: 12px;
}

.profile-dashboard .profile-form-field {
    display: grid;
    gap: 6px;
}

.profile-dashboard .profile-form-field .form-control,
.profile-dashboard .profile-form-field .form-select {
    min-height: 44px;
    border-radius: 14px;
    border-color: rgba(15, 23, 42, 0.12);
    background: #ffffff;
}

.profile-dashboard .profile-form-field .form-control:focus,
.profile-dashboard .profile-form-field .form-select:focus {
    border-color: rgba(29, 78, 216, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.12);
}

.profile-dashboard .profile-save-btn {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 0;
    background: #0f172a;
    font-weight: 600;
}

.profile-dashboard .profile-save-btn:hover,
.profile-dashboard .profile-save-btn:focus {
    background: #111827;
}

.profile-dashboard .profile-sync-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-dashboard .profile-sync-actions .btn {
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 600;
}

.profile-dashboard .profile-sync-log-wrap {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #f8fafc;
}

.profile-dashboard .profile-sync-log {
    max-height: 220px;
    overflow-y: auto;
    padding: 12px;
    display: grid;
    gap: 8px;
}

.profile-dashboard .profile-sync-log-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
    padding: 8px 10px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.profile-dashboard .profile-sync-log-time {
    color: #64748b;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.profile-dashboard .profile-sync-log-text {
    color: #0f172a;
    font-size: 0.82rem;
    word-break: break-word;
}

.profile-dashboard .profile-sync-log-row.level-success {
    background: #f0fdf4;
    border-color: rgba(22, 163, 74, 0.24);
}

.profile-dashboard .profile-sync-log-row.level-warning {
    background: #fefce8;
    border-color: rgba(234, 179, 8, 0.26);
}

.profile-dashboard .profile-sync-log-row.level-danger {
    background: #fef2f2;
    border-color: rgba(239, 68, 68, 0.22);
}

@media (max-width: 1200px) {
    .profile-shell.profile-dashboard {
        grid-template-columns: 1fr;
    }

    .profile-dashboard .profile-rail {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .profile-dashboard .profile-rail-actions {
        margin-top: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .profile-dashboard .profile-workspace {
        padding: 20px;
    }

    .profile-dashboard .profile-stage-head,
    .profile-dashboard .profile-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-dashboard .profile-hero-card,
    .profile-dashboard .profile-main-grid {
        grid-template-columns: 1fr;
    }

    .profile-dashboard .profile-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-dashboard .profile-hero-meta,
    .profile-dashboard .profile-filter-row {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .profile-dashboard .profile-rail,
    .profile-dashboard .profile-workspace {
        padding: 18px;
    }

    .app-footer {
        padding: 18px;
    }

    .app-footer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .profile-dashboard .profile-rail-actions {
        grid-template-columns: 1fr;
    }

    .profile-dashboard .profile-hero-name {
        font-size: 1.55rem;
    }

    .profile-dashboard .profile-metrics-grid {
        grid-template-columns: 1fr;
    }

    .profile-dashboard .profile-publication-item,
    .profile-dashboard .profile-list li,
    .profile-dashboard .profile-doc-list li {
        flex-direction: column;
    }

    .profile-dashboard .profile-publication-link,
    .profile-dashboard .profile-list strong {
        text-align: left;
    }
}

/* ===== Research Management Mockup Layout ===== */
.rms-page {
    background: #f1f5f9;
}

.rms-app-shell {
    width: min(1380px, calc(100% - 32px));
    margin: 20px auto 24px;
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid #dce4ee;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.rms-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.rms-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #0f172a;
}

.rms-brand:hover {
    color: #0f172a;
}

.rms-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #d4dce6;
}

.rms-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.rms-brand-copy strong {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.rms-brand-copy small {
    margin-top: 4px;
    font-size: 0.86rem;
    color: #64748b;
}

.rms-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.rms-nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 22px;
    border: 1px solid #dce4ee;
    background: #f8fafc;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rms-nav-pill:hover {
    background: #eef2f7;
    color: #0f172a;
}

.rms-nav-pill.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.rms-nav-pill.is-account {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.rms-nav-pill.is-account:hover,
.rms-nav-pill.is-account.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.rms-content {
    padding: 24px;
    background: #f8fafc;
}

.rms-footer {
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 20px 24px;
}

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

.rms-footer h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #0f172a;
}

.rms-footer p {
    margin: 0 0 8px;
}

.rms-footer a {
    color: #334155;
    text-decoration: none;
}

.rms-footer a:hover {
    color: #1d4ed8;
}

.rms-section-card {
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #dce4ee;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    padding: 24px;
    display: grid;
    gap: 20px;
}

.rms-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.rms-section-title {
    margin: 0;
    color: #0f172a;
    font-size: 1.55rem;
    font-weight: 700;
}

.rms-section-subtitle {
    margin: 8px 0 0;
    color: #64748b;
    max-width: 760px;
}

.rms-section-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rms-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 18px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-weight: 600;
    text-decoration: none;
}

.rms-action-btn:hover {
    color: #0f172a;
    background: #f8fafc;
}

.rms-action-btn.is-primary {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.rms-action-btn.is-primary:hover {
    color: #ffffff;
    opacity: 0.94;
}

.rms-kpi-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rms-kpi-card {
    border-radius: 22px;
    border: 1px solid #dce4ee;
    background: #f8fafc;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rms-kpi-label {
    color: #64748b;
    font-size: 0.88rem;
}

.rms-kpi-value {
    color: #0f172a;
    font-size: 1.6rem;
    line-height: 1.1;
}

.rms-kpi-meta {
    color: #475569;
    font-size: 0.82rem;
}

.rms-demo-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.rms-demo-card {
    border-radius: 24px;
    border: 1px solid #dce4ee;
    background: #f8fafc;
    padding: 18px;
}

.rms-demo-title {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 700;
}

.rms-demo-table {
    margin-bottom: 0;
}

.rms-demo-table thead th {
    background: #eaf0f6;
    border-bottom: 0;
    font-size: 0.82rem;
    color: #475569;
}

.rms-demo-table tbody td {
    background: #ffffff;
}

.rms-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 5px 10px;
}

.rms-badge.ok {
    background: #dcfce7;
    color: #166534;
}

.rms-badge.info {
    background: #dbeafe;
    color: #1d4ed8;
}

.rms-badge.warn {
    background: #fef3c7;
    color: #92400e;
}

.rms-timeline {
    display: grid;
    gap: 10px;
}

.rms-timeline-item {
    border-radius: 18px;
    border: 1px solid #dce4ee;
    background: #ffffff;
    padding: 12px 14px;
}

.rms-timeline-item strong {
    display: block;
    color: #0f172a;
}

.rms-timeline-item p {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #475569;
}

.rms-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rms-tag-pill {
    border-radius: 999px;
    border: 1px solid #dce4ee;
    background: #ffffff;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 500;
    padding: 8px 14px;
}

@media (max-width: 1200px) {
    .rms-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rms-demo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .rms-app-shell {
        width: calc(100% - 16px);
        margin: 8px auto 14px;
        border-radius: 20px;
    }

    .rms-topbar {
        padding: 14px;
    }

    .rms-brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .rms-brand-copy strong {
        font-size: 1.2rem;
    }

    .rms-content,
    .rms-footer {
        padding: 14px;
    }

    .rms-footer-grid {
        grid-template-columns: 1fr;
    }

    .rms-section-card {
        border-radius: 20px;
        padding: 16px;
    }
}

@media (max-width: 640px) {
    .rms-kpi-grid {
        grid-template-columns: 1fr;
    }

    .rms-nav-pill {
        width: 100%;
    }

    .rms-quick-nav {
        width: 100%;
    }
}
