:root {
    --bg: #f5f5f3;
    --surface: #ffffff;
    --surface-muted: #fafaf9;
    --surface-soft: #f0f1ec;
    --line: #e6e7e1;
    --line-strong: #d5d8d0;
    --text: #191919;
    --muted: #6f6f6a;
    --accent: #111827;
    --accent-soft: #eef2f7;
    --danger: #b42318;
    --danger-soft: #fff1f0;
    --success: #027a48;
    --success-soft: #ecfdf3;
    --note: #2563eb;
    --note-soft: #eff6ff;
    --warning: #b54708;
    --warning-soft: #fff7ed;
    --check: #047857;
    --check-soft: #ecfdf5;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Source Sans 3", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, #fcfcfa 0%, var(--bg) 44%);
}

a {
    color: inherit;
}

input,
textarea,
select,
button {
    font: inherit;
}

button,
a {
    transition: border-color 0.14s ease, background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.page-shell {
    min-height: 100vh;
    max-width: 1680px;
    margin: 0 auto;
    padding: 20px 24px 32px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0 18px;
    margin-bottom: 24px;
    background: linear-gradient(to bottom, rgba(245, 245, 243, 0.96), rgba(245, 245, 243, 0.92), rgba(245, 245, 243, 0));
}

.topbar-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.brand strong {
    display: block;
    font-size: 1.08rem;
    font-weight: 700;
}

.brand small,
.user-chip small,
.eyebrow,
.tree-link,
.breadcrumbs a,
.helper-text,
.notice,
.paragraph-meta,
.doc-index-row small,
.child-card span,
.meta-list dt {
    color: var(--muted);
}

.global-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--line);
}

.nav-link.active {
    color: white;
    background: var(--accent);
    border-color: var(--accent);
}

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

.user-chip {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
}

.card,
.sidebar,
.auth-copy,
.auth-form,
.result-item,
.child-card,
.inline-edit-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card,
.sidebar,
.auth-copy,
.auth-form {
    padding: 18px;
}

.slim-card {
    padding: 12px 14px;
}

.documentation-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.documentation-shell--article {
    grid-template-columns: 280px minmax(0, 1fr);
}

.document-main,
.admin-shell,
.stacked-sections,
.result-list,
.doc-index-list,
.user-list,
.search-form,
.checkbox-grid,
.checkbox-list,
.translation-grid,
.inline-grid,
.stacked-form,
.paragraph-stack,
.media-grid,
.feature-list,
.auth-panel,
.library-list,
.context-card {
    display: grid;
    gap: 16px;
}

.sidebar {
    position: sticky;
    top: 90px;
}

.document-main {
    max-width: 1280px;
}

.sidebar-search {
    margin-bottom: 4px;
}

.sidebar-head,
.section-head,
.section-head.compact,
.document-header,
.result-topline,
.paragraph-meta,
.inline-actions,
.admin-nav,
.mode-switch,
.topline-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.section-head h1,
.section-head h2,
.sidebar-head h2,
.document-header h1,
.card h1,
.card h2,
.card h3,
.auth-panel h1 {
    margin: 0;
}

.eyebrow {
    display: inline-block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tree-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tree-list li + li {
    margin-top: 4px;
}

.tree-list .tree-list {
    margin-top: 6px;
    margin-left: 12px;
    padding-left: 10px;
    border-left: 1px solid var(--line);
}

.tree-link {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    line-height: 1.35;
}

.tree-title {
    color: var(--text);
}

.tree-link:hover {
    background: var(--surface-muted);
    color: var(--text);
}

.tree-link.active {
    background: var(--accent);
    color: white;
}

.tree-link.active .tree-title {
    color: white;
}

.document-card {
    padding: 32px;
}

.document-header {
    align-items: flex-start;
}

.document-header h1 {
    font-size: 2.15rem;
    line-height: 1.08;
}

.document-subtitle {
    margin: 10px 0 0;
    max-width: 74ch;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #374151;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2px;
}

.breadcrumbs a {
    text-decoration: none;
    font-size: 0.92rem;
}

.breadcrumbs a:hover {
    color: var(--text);
}

.search-panel h1 {
    font-size: 1.55rem;
}

.search-input-wrap {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-muted);
}

.search-input-wrap i {
    color: var(--muted);
}

.search-input-wrap input,
input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    padding: 10px 12px;
}

.search-input-wrap input {
    border: 0;
    padding: 0;
    background: transparent;
}

.search-input-wrap input:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--line-strong);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.05);
}

label {
    display: grid;
    gap: 8px;
}

label span,
legend {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
}

fieldset {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    min-width: 0;
}

legend {
    padding: 0 6px;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.primary-button,
.ghost-button,
.mode-pill,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    width: auto;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
}

.primary-button {
    background: var(--accent);
    color: white;
}

.primary-button:hover {
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.12);
}

.ghost-button,
.mode-pill {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}

.ghost-button:hover,
.mode-pill:hover {
    border-color: var(--line-strong);
    background: var(--surface-muted);
}

.mode-pill.active {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.danger-button {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: #fecdca;
}

.compact-switch {
    justify-content: flex-start;
}

.notice {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.notice.success {
    background: var(--success-soft);
    border-color: #abefc6;
    color: var(--success);
}

.notice.error {
    background: var(--danger-soft);
    border-color: #fecdca;
    color: var(--danger);
}

.result-item h3,
.child-card strong {
    margin: 0;
    font-size: 1.05rem;
}

.result-item h3 a,
.child-card {
    text-decoration: none;
}

.result-item p,
.child-card span,
.empty-state p,
.card p,
.auth-copy p {
    margin: 0;
    line-height: 1.65;
}

.library-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.library-item {
    min-height: 158px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    font-size: 0.82rem;
    color: #374151;
}

.paragraph-stack {
    gap: 0;
}

.paragraph-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 24px;
    padding: 24px 0;
}

.paragraph-stack > .paragraph-row + .paragraph-row {
    border-top: 1px solid var(--line);
}

.paragraph-main {
    min-width: 0;
    padding-block: 12px;
}

.paragraph-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1f2937;
}

.paragraph-content p {
    margin: 0;
}

.paragraph-content p + p,
.paragraph-content .content-list + p,
.paragraph-content p + .content-list,
.paragraph-content .content-list + .content-list {
    margin-top: 16px;
}

.content-list {
    margin: 0;
    padding-left: 22px;
    display: grid;
    gap: 10px;
}

.content-list--ordered {
    padding-left: 26px;
}

.content-list--checklist {
    list-style: square;
}

.paragraph-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.paragraph-row.note .paragraph-main {
    padding-left: 16px;
    border-left: 3px solid #93c5fd;
    background: linear-gradient(to right, var(--note-soft), transparent 55%);
}

.paragraph-row.warning .paragraph-main {
    padding-left: 16px;
    border-left: 3px solid #fdba74;
    background: linear-gradient(to right, var(--warning-soft), transparent 55%);
}

.paragraph-row.checklist .paragraph-main,
.paragraph-row.steps .paragraph-main {
    padding-left: 16px;
    border-left: 3px solid #6ee7b7;
    background: linear-gradient(to right, var(--check-soft), transparent 55%);
}

.tag-drawer {
    display: grid;
    justify-items: end;
}

.tag-toggle {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
}

.tag-toggle::-webkit-details-marker {
    display: none;
}

.tag-toggle:hover,
.tag-drawer[open] .tag-toggle {
    color: var(--text);
    border-color: var(--line-strong);
    background: var(--accent-soft);
}

.tag-toggle svg {
    width: 16px;
    height: 16px;
}

.tag-side-form {
    display: grid;
    gap: 10px;
    width: min(250px, 100%);
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-muted);
}

.tag-side-form .ghost-button {
    justify-self: start;
}

.paragraph-side {
    align-self: start;
}

.paragraph-side .tag-side-form input {
    width: 100%;
}

.meta-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.meta-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.meta-list dd {
    margin: 0;
    font-weight: 600;
    color: #374151;
}

.context-block {
    display: grid;
    gap: 12px;
}

.media-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.media-grid--nested {
    margin-top: 16px;
}

.media-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.media-card img,
.media-card iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.media-card strong {
    display: block;
    padding: 10px 12px;
}

.children-panel {
    display: grid;
    gap: 14px;
}

.child-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.child-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    color: var(--text);
}

.child-card:hover {
    border-color: var(--line-strong);
    background: var(--surface-muted);
}

.empty-state {
    padding: 24px;
}

.empty-state--article {
    padding: 16px 0 4px;
}

.auth-shell {
    min-height: calc(100vh - 88px);
    display: grid;
    place-items: center;
}

.auth-panel {
    width: min(980px, 100%);
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
}

.feature-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.feature-list li {
    display: flex;
    gap: 10px;
    align-items: center;
}

.feature-list i {
    color: var(--muted);
}

.admin-shell {
    display: grid;
    gap: 20px;
}

.admin-nav {
    justify-content: flex-start;
}

.grid.two-col,
.admin-grid,
.editor-grid,
.translation-grid,
.inline-grid.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.checkbox-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.table-card,
.stacked-form,
.inline-edit-card,
.checkbox-list,
.doc-index-list,
.user-list {
    display: grid;
    gap: 14px;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.checkbox-row input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.doc-index-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 100px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
}

.doc-index-row:hover {
    border-color: var(--line-strong);
    background: var(--surface-muted);
}

.inline-edit-card {
    padding: 14px;
}

.compact-empty {
    padding: 12px 0 0;
}

@media (max-width: 1360px) {
    .documentation-shell--article {
        grid-template-columns: 260px minmax(0, 1fr);
    }
}

@media (max-width: 1120px) {
    .documentation-shell,
    .documentation-shell--article,
    .auth-panel,
    .grid.two-col,
    .admin-grid,
    .editor-grid,
    .translation-grid,
    .inline-grid,
    .inline-grid.two-up,
    .paragraph-row {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .paragraph-side {
        order: -1;
    }
}

@media (max-width: 760px) {
    .page-shell {
        padding: 16px;
    }

    .topbar {
        position: static;
        padding-top: 0;
    }

    .topbar,
    .topbar-main,
    .topbar-actions,
    .document-header,
    .section-head,
    .sidebar-head,
    .inline-actions,
    .doc-index-row {
        align-items: stretch;
    }

    .global-nav {
        width: 100%;
    }

    .doc-index-row {
        grid-template-columns: 1fr;
    }

    .document-card {
        padding: 20px;
    }
}
.admin-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-hero h1,
.user-card-head h3 {
    margin: 0;
}

.admin-workspace {
    display: grid;
    gap: 20px;
}

.admin-workspace--users {
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: start;
}

.admin-create-card {
    position: sticky;
    top: 90px;
}

.admin-list-card {
    min-width: 0;
}

.user-directory {
    display: grid;
    gap: 14px;
}

.user-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-muted);
}

.user-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.user-card-head p {
    margin: 4px 0 0;
    color: var(--muted);
}

.user-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: white;
    color: #374151;
    font-size: 0.84rem;
}

.badge--dark {
    color: white;
    background: var(--accent);
    border-color: var(--accent);
}

.badge--warning {
    color: var(--warning);
    background: var(--warning-soft);
    border-color: #fed7aa;
}

.compact-grid {
    gap: 10px;
}

@media (max-width: 1120px) {
    .admin-workspace--users {
        grid-template-columns: 1fr;
    }

    .admin-create-card {
        position: static;
    }
}
.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-search {
    min-width: min(420px, 100%);
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.admin-table tbody tr:hover {
    background: var(--surface-muted);
}

.table-actions {
    text-align: right;
}

.admin-form-page {
    max-width: 1180px;
}

@media (max-width: 760px) {
    .admin-toolbar {
        align-items: stretch;
    }

    .admin-search {
        min-width: 100%;
    }

    .table-actions {
        text-align: left;
    }
}
.paragraph-content a {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.paragraph-meta {
    display: none;
}

form.card.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ghost-button--small {
    min-height: 36px;
    padding: 8px 12px;
}

.admin-shell--library,
.admin-shell--editor {
    max-width: 1280px;
}

.admin-tree-card {
    overflow: hidden;
}

.admin-tree-wrap {
    display: grid;
    gap: 6px;
}

.admin-tree-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 18px;
    display: grid;
    gap: 8px;
}

.admin-tree-list:first-child {
    padding-left: 0;
}

.admin-tree-item {
    display: grid;
    gap: 8px;
}

.admin-tree-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.admin-tree-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
}

.admin-tree-link:hover {
    border-color: var(--line-strong);
    background: var(--surface-muted);
}

.admin-tree-link strong {
    min-width: 0;
}

.admin-tree-link span,
.admin-tree-link small {
    color: var(--muted);
}

.admin-tree-add {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
    font-size: 1.1rem;
    font-weight: 700;
}

.admin-tree-add:hover {
    border-color: var(--line-strong);
    background: var(--surface-muted);
}

.admin-hero--editor {
    align-items: center;
}

@media (max-width: 760px) {
    .admin-tree-row,
    .admin-tree-link {
        grid-template-columns: 1fr;
    }

    .admin-tree-add {
        width: 100%;
    }
}

.admin-shell--ai-import {
    max-width: 1380px;
}

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

.admin-preview-grid p {
    margin: 6px 0 0;
}

@media (max-width: 1120px) {
    .admin-preview-grid {
        grid-template-columns: 1fr;
    }
}

.feedback-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
}

.feedback-fab {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(16, 24, 40, 0.15);
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.feedback-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.2);
}

.feedback-fab svg {
    width: 22px;
    height: 22px;
}

.feedback-panel {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 340px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(16, 24, 40, 0.12);
    overflow: hidden;
}

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

.feedback-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.feedback-title {
    font-weight: 600;
    font-size: 1rem;
}

.feedback-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    border-radius: 8px;
}

.feedback-close:hover {
    background: var(--surface-muted);
    color: var(--text);
}

.feedback-close svg {
    width: 18px;
    height: 18px;
}

.feedback-form {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.feedback-field {
    display: grid;
    gap: 8px;
}

.feedback-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
}

.feedback-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feedback-cat {
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: border-color 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}

.feedback-cat:hover {
    border-color: var(--line-strong);
    color: var(--text);
}

.feedback-cat.active {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.feedback-input {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
}

.feedback-input:focus {
    outline: none;
    border-color: var(--line-strong);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.05);
}

.feedback-submit {
    width: 100%;
    justify-content: center;
}

.feedback-status {
    font-size: 0.88rem;
    text-align: center;
    min-height: 20px;
}

.feedback-status.success {
    color: var(--success);
}

.feedback-status.error {
    color: var(--danger);
}

.feedback-fab--sent {
    background: var(--success);
    border-color: var(--success);
}

.feedback-badge {
    display: none;
    position: absolute;
    bottom: 6px;
    right: 56px;
    white-space: nowrap;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid #abefc6;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(16, 24, 40, 0.1);
    animation: feedbackBadgeIn 0.2s ease;
}

.feedback-badge.show {
    display: flex;
}

.feedback-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@keyframes feedbackBadgeIn {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 480px) {
    .feedback-widget {
        bottom: 16px;
        right: 16px;
    }

    .feedback-panel {
        width: calc(100vw - 32px);
        right: 0;
    }
}
