@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg: #f2f4f8;
    --bg-soft: #eaecf2;
    --bg-muted: #e4e7ef;
    --panel: #ffffff;
    --panel-2: #f8f9fc;
    --line: #e3e6ef;
    --line-soft: #d3d7e3;
    --text: #171b2d;
    --text-soft: #4a526a;
    --text-muted: #8590a8;
    --accent: #4c68f5;
    --accent-hover: #3a56e6;
    --accent-text: #ffffff;
    --success-bg: rgba(220, 252, 231, 0.75);
    --success-line: rgba(74, 222, 128, 0.4);
    --success-text: #14532d;
    --danger-bg: rgba(254, 226, 226, 0.75);
    --danger-line: rgba(252, 165, 165, 0.45);
    --danger-text: #7f1d1d;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 4px rgba(20, 30, 70, 0.07), 0 4px 16px rgba(20, 30, 70, 0.06);
    --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

.page-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding: 16px 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.brand {
    display: inline-flex;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}

.brand-logo {
    width: min(240px, 52vw);
    height: auto;
    max-height: 44px;
    flex: 0 0 auto;
    display: block;
    object-fit: contain;
}

.brand-subtitle {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

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

.btn-notifications {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notification-badge {
    min-width: 20px;
    height: 20px;
    margin-left: 4px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.filter-count {
    min-width: 22px;
    height: 22px;
    margin-left: 4px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--bg-muted);
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
}

.btn-primary .filter-count {
    background: rgba(255, 255, 255, 0.22);
    color: var(--accent-text);
}

.notifications-list {
    display: grid;
    gap: 12px;
}

.notification-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel-2);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.notification-card:hover,
.notification-card:focus-visible {
    border-color: rgba(76, 104, 245, 0.28);
    box-shadow: 0 0 0 3px rgba(76, 104, 245, 0.08);
    transform: translateY(-1px);
}

.notification-card--unread {
    border-color: rgba(76, 104, 245, 0.3);
    background: linear-gradient(135deg, rgba(76, 104, 245, 0.06), rgba(255, 255, 255, 0.95));
}

.notification-card__main {
    min-width: 0;
}

.notification-card__topline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.notification-card__title {
    font-weight: 700;
    color: var(--text);
}

.notification-card__body {
    margin: 8px 0 0;
    color: var(--text-soft);
}

.notification-card__meta {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    white-space: nowrap;
}

.status-message,
.error-box,
.pill,
.tag,
.status-chip {
    border-radius: 999px;
}

.status-message,
.error-box {
    margin-bottom: 20px;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.status-message {
    background: var(--success-bg);
    border-color: var(--success-line);
    color: var(--success-text);
}

.error-box {
    background: var(--danger-bg);
    border-color: var(--danger-line);
    color: var(--danger-text);
}

.error-box ul {
    margin: 0;
    padding-left: 18px;
}

.stack-lg > * + * {
    margin-top: 24px;
}

.stack-md > * + * {
    margin-top: 16px;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
}

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

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

.grid-main {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}

.grid-admin {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

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

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px 32px;
}

.panel-soft {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px 24px;
}

.surface {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
}

.vacancy-card {
    display: block;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.vacancy-card:hover,
.vacancy-card:focus-visible {
    border-color: rgba(76, 104, 245, 0.35);
    box-shadow: 0 0 0 3px rgba(76, 104, 245, 0.12);
    transform: translateY(-1px);
}

.vacancy-title {
    margin: 0;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.vacancy-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.18);
    color: #166534;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.empty-state {
    background: transparent;
    border: 1.5px dashed var(--line-soft);
    color: var(--text-muted);
    text-align: center;
    padding: 24px;
}

.hero-panel {
    background:
        radial-gradient(circle at top left, rgba(76, 104, 245, 0.07), transparent 42%),
        linear-gradient(140deg, #ffffff 0%, #f5f7ff 100%);
    border-color: rgba(76, 104, 245, 0.15);
}

.section-heading,
.page-title {
    margin: 0;
    color: var(--text);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.section-heading {
    font-size: 1.5rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    padding: 6px 13px;
    background: rgba(76, 104, 245, 0.08);
    border: 1px solid rgba(76, 104, 245, 0.18);
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lead,
.muted,
.tiny,
.note,
.metric-label {
    margin: 0;
}

.lead {
    color: var(--text-soft);
    font-size: 1rem;
}

.muted {
    color: var(--text-soft);
}

.note,
.tiny,
.metric-label {
    color: var(--text-muted);
}

.note {
    font-size: 0.92rem;
}

.tiny {
    font-size: 0.8rem;
}

.metric-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.metric-value {
    margin: 8px 0 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}

.section-copy {
    max-width: 72ch;
}

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

.toolbar {
    justify-content: space-between;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: var(--panel);
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 2px rgba(20, 30, 70, 0.05);
}

.btn:hover {
    border-color: var(--line-soft);
    background: var(--bg-soft);
    color: var(--text);
    box-shadow: 0 2px 6px rgba(20, 30, 70, 0.08);
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(76, 104, 245, 0.28);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--accent-text);
    box-shadow: 0 4px 14px rgba(76, 104, 245, 0.36);
}

.btn-disabled,
.btn:disabled,
.btn-primary:disabled {
    background: #d1d5df !important;
    border-color: #d1d5df !important;
    color: #697386 !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 1;
    pointer-events: none;
}

.btn-disabled:hover,
.btn:disabled:hover,
.btn-primary:disabled:hover {
    background: #d1d5df !important;
    border-color: #d1d5df !important;
    color: #697386 !important;
    box-shadow: none !important;
}

.btn-danger {
    border-color: rgba(239, 68, 68, 0.35);
    color: #dc2626;
    background: rgba(254, 242, 242, 0.8);
}

.btn-danger:hover {
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(254, 226, 226, 0.9);
}

.link-chip {
    display: inline-flex;
}

.text-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

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

.markdown-content {
    max-width: 78ch;
    color: var(--text-soft);
}

.markdown-content > *:first-child {
    margin-top: 0;
}

.markdown-content > *:last-child {
    margin-bottom: 0;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    margin: 28px 0 10px;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.markdown-content h1 {
    font-size: 1.7rem;
}

.markdown-content h2 {
    font-size: 1.25rem;
}

.markdown-content p,
.markdown-content ul,
.markdown-content ol,
.markdown-content blockquote {
    margin: 14px 0 0;
}

.markdown-content ul,
.markdown-content ol {
    padding-left: 22px;
}

.markdown-content a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.markdown-content a:hover {
    color: var(--accent-hover);
}

.markdown-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 16px 0 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.image-paste-zone {
    border: 1px dashed var(--line-strong);
    cursor: pointer;
}

.image-paste-zone:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(76, 104, 245, 0.18);
    outline-offset: 2px;
}

.text-danger {
    color: var(--danger-text) !important;
}

.markdown-content blockquote {
    padding: 14px 18px;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--panel-2);
    color: var(--text);
}

.data-list > * + * {
    margin-top: 12px;
}

.item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.status-chip,
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 11px;
    background: var(--bg-muted);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid var(--line);
    white-space: nowrap;
}

.status-chip.status-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: var(--success-line);
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.form-grid,
.form-grid-2,
.form-grid-3 {
    display: grid;
    gap: 14px;
}

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

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

.form-fieldset {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    border: 0;
}

.form-fieldset:disabled {
    opacity: 0.68;
}

.form-section-title {
    margin: 0;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.form-section-title--icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: block;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-label {
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 500;
}

.field-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
    color: var(--text);
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-size: 0.94rem;
}

.input::placeholder,
.textarea::placeholder {
    color: var(--text-muted);
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(76, 104, 245, 0.12);
}

.textarea {
    min-height: 110px;
    resize: vertical;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.avatar-upload-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel-2);
}

.avatar-preview {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    background: var(--panel);
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-preview--empty {
    border-style: dashed;
}

.avatar-upload-card__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

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

.choice-card {
    align-items: flex-start;
    padding: 12px 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.repeatable-list {
    display: grid;
    gap: 10px;
}

.repeatable-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

@media (max-width: 720px) {
    .choice-grid,
    .repeatable-row {
        grid-template-columns: 1fr;
    }
}

.balance-value.positive {
    color: var(--success-text);
    font-weight: 600;
}

.balance-value.negative {
    color: var(--danger-text);
    font-weight: 600;
}

/* ─── CHIP VARIANTS ─────────────────────────────────── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.chip-neutral {
    background: var(--bg-muted);
    color: var(--text-muted);
    border: 1px solid var(--line);
}

.chip-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-line);
}

.chip-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-line);
}

.chip-info {
    background: rgba(76, 104, 245, 0.1);
    color: var(--accent);
    border: 1px solid rgba(76, 104, 245, 0.22);
}

.chip-tg {
    background: rgba(39, 174, 246, 0.1);
    color: #0088cc;
    border: 1px solid rgba(39, 174, 246, 0.25);
    font-weight: 600;
}

.chip--sm {
    font-size: 0.68rem;
    padding: 3px 9px;
}

/* ─── CABINET IDENTITY BAR ───────────────────────────── */
.cab-layout {
    padding-top: 4px;
}

.cab-identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cab-identity__left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cab-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(76, 104, 245, 0.35);
    overflow: hidden;
}

.cab-avatar img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: cover;
}

.cab-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cab-tg {
    margin: 2px 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.cab-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.cab-balance-card {
    text-align: right;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(76, 104, 245, 0.06) 0%, rgba(124, 58, 237, 0.06) 100%);
    border: 1px solid rgba(76, 104, 245, 0.18);
    border-radius: var(--radius-md);
}

.cab-balance-card--link {
    display: block;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cab-balance-card--link:hover {
    border-color: rgba(76, 104, 245, 0.28);
    box-shadow: 0 6px 18px rgba(76, 104, 245, 0.12);
    transform: translateY(-1px);
}

.cab-balance-num {
    margin: 6px 0 0;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1;
}

.cab-balance-unit {
    margin: 4px 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* ─── BONUS TRACK ────────────────────────────────────── */
.bonus-track__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.bonus-track--collapsed {
    background: var(--panel);
    border-color: var(--line);
}

.bonus-track__spoiler {
    display: block;
}

.bonus-track__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    cursor: pointer;
    list-style: none;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.bonus-track__summary::-webkit-details-marker {
    display: none;
}

.bonus-track__summary:hover {
    border-color: rgba(76, 104, 245, 0.24);
    background: #f4f6fd;
}

.bonus-track__summary-copy {
    min-width: 0;
}

.bonus-track__summary-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.bonus-track__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.7);
    transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.bonus-track__spoiler[open] .bonus-track__chevron {
    transform: rotate(180deg);
    color: var(--accent);
    border-color: rgba(76, 104, 245, 0.22);
    background: rgba(76, 104, 245, 0.08);
}

.bonus-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.bonus-status__icon {
    font-size: 1rem;
}

.bonus-status--granted {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-line);
}

.bonus-status--declined {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-line);
}

.bonus-status--pending {
    background: rgba(76, 104, 245, 0.08);
    color: var(--accent);
    border: 1px solid rgba(76, 104, 245, 0.2);
}

/* Steps track */
.steps-track {
    display: flex;
    align-items: center;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    gap: 10px;
    position: relative;
}

.step__circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    border: 2px solid var(--line-soft);
    background: var(--panel);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
    z-index: 1;
}

.step--active .step__circle {
    border-color: var(--accent);
    background: rgba(76, 104, 245, 0.08);
    color: var(--accent);
    box-shadow: 0 0 0 4px rgba(76, 104, 245, 0.12);
}

.step--done .step__circle {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.step--declined .step__circle {
    border-color: #dc2626;
    background: #dc2626;
    color: #fff;
}

.step__label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-soft);
}

.step--active .step__label {
    color: var(--accent);
}

.step--done .step__label {
    color: #16a34a;
}

.step__hint {
    margin: 2px 0 0;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.step__connector {
    flex: 1;
    height: 2px;
    background: var(--line);
    margin-bottom: 32px;
    transition: background 0.3s;
}

.step__connector--done {
    background: linear-gradient(90deg, #16a34a, #4ade80);
}

/* Step 2 action cards */
.bonus-actions {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.bonus-actions__label {
    margin: 0 0 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-soft);
}

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

.action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--panel);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    color: var(--text);
}

.action-card:hover {
    border-color: rgba(76, 104, 245, 0.4);
    box-shadow: 0 0 0 3px rgba(76, 104, 245, 0.1);
    transform: translateY(-1px);
}

.action-card__icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.action-card__title {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
}

.action-card__hint {
    margin: 3px 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.action-card__arrow {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color 0.15s, transform 0.15s;
}

.action-card:hover .action-card__arrow {
    color: var(--accent);
    transform: translateX(3px);
}

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

.application-form-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--panel-2);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.application-form-card:hover {
    border-color: rgba(76, 104, 245, 0.4);
    box-shadow: 0 0 0 3px rgba(76, 104, 245, 0.1);
    transform: translateY(-1px);
}

.application-form-card__body {
    min-width: 0;
    flex: 1;
}

.application-form-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.application-form-card__meta {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.settings-notifications {
    display: grid;
    gap: 16px;
}

.settings-notification-card {
    padding: 20px;
}

.settings-notification-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.settings-notification-card__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.settings-notification-card code {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.settings-notification-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 16px;
    align-items: start;
}

.settings-notification-editors,
.settings-notification-aside {
    display: grid;
    gap: 12px;
}

.settings-channel-card,
.notification-preview,
.settings-variables {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    padding: 16px;
}

.settings-channel-card {
    display: grid;
    gap: 14px;
}

.settings-channel-card__toggle {
    font-weight: 700;
    color: var(--text);
}

.notification-preview {
    background:
        radial-gradient(circle at top left, rgba(39, 174, 246, 0.11), transparent 38%),
        linear-gradient(145deg, #f8fbff 0%, #ffffff 100%);
}

.notification-preview__label {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.notification-preview__bubble {
    margin: 0;
    min-height: 92px;
    white-space: pre-wrap;
    word-break: break-word;
    padding: 14px 16px;
    border: 1px solid rgba(39, 174, 246, 0.22);
    border-radius: 18px 18px 18px 4px;
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 8px 22px rgba(20, 30, 70, 0.08);
    font: 0.9rem/1.55 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.settings-variable-list {
    display: grid;
    gap: 8px;
}

.settings-variable {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel-2);
    color: var(--text-soft);
    font-size: 0.84rem;
}

.settings-variable code {
    display: inline-flex;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(76, 104, 245, 0.08);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.application-review-list {
    display: grid;
    gap: 16px;
}

.application-review-card {
    padding: 20px;
}

.application-review-card__head,
.application-review-card__identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.application-review-card__head {
    justify-content: space-between;
    flex-wrap: wrap;
}

.application-review-card__avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 18px;
    background: var(--bg-muted);
    color: var(--text-soft);
    font-weight: 800;
}

.application-review-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.application-review-card__name {
    margin: 0;
    font-size: 1.18rem;
    letter-spacing: -0.02em;
}

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

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

.application-review-details > div {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Section heading check */
.section-heading__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #16a34a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Wallet display */
.wallet-display {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}

.wallet-addr {
    margin: 6px 0 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: var(--text);
    word-break: break-all;
}

/* ─── MY ACTIONS LIST ────────────────────────────────── */
.actions-tabs {
    display: grid;
    gap: 18px;
}

.actions-tabs__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

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

.actions-tabs__tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-2);
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.actions-tabs__tab:hover {
    border-color: rgba(76, 104, 245, 0.24);
    color: var(--text);
}

.actions-tabs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.actions-tabs__panels {
    min-width: 0;
}

.actions-tabs__panel {
    display: none;
}

#actions-tab-review:checked ~ .actions-tabs__nav label[for="actions-tab-review"],
#actions-tab-accepted:checked ~ .actions-tabs__nav label[for="actions-tab-accepted"],
#actions-tab-rejected:checked ~ .actions-tabs__nav label[for="actions-tab-rejected"] {
    background: rgba(76, 104, 245, 0.08);
    border-color: rgba(76, 104, 245, 0.22);
    color: var(--accent);
    box-shadow: 0 0 0 3px rgba(76, 104, 245, 0.08);
}

#actions-tab-review:checked ~ .actions-tabs__nav label[for="actions-tab-review"] .actions-tabs__count,
#actions-tab-accepted:checked ~ .actions-tabs__nav label[for="actions-tab-accepted"] .actions-tabs__count,
#actions-tab-rejected:checked ~ .actions-tabs__nav label[for="actions-tab-rejected"] .actions-tabs__count {
    background: rgba(76, 104, 245, 0.14);
    border-color: rgba(76, 104, 245, 0.16);
    color: var(--accent);
}

#actions-tab-review:checked ~ .actions-tabs__panels .actions-tabs__panel--review,
#actions-tab-accepted:checked ~ .actions-tabs__panels .actions-tabs__panel--accepted,
#actions-tab-rejected:checked ~ .actions-tabs__panels .actions-tabs__panel--rejected {
    display: block;
}

.actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.act-card {
    display: flex;
    gap: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.act-card:hover {
    border-color: rgba(76, 104, 245, 0.25);
    box-shadow: 0 4px 20px rgba(20, 30, 70, 0.08);
    transform: translateY(-1px);
}

.act-card__accent {
    width: 4px;
    flex-shrink: 0;
}

.act-card__accent--copy {
    background: linear-gradient(180deg, var(--accent) 0%, #7c3aed 100%);
}

.act-card__accent--idea-article {
    background: linear-gradient(180deg, var(--accent) 0%, #7c3aed 100%);
}

.act-card__accent--idea-translation {
    background: linear-gradient(180deg, #0ea5e9 0%, #06b6d4 100%);
}

.act-card__accent--idea-rewrite {
    background: linear-gradient(180deg, #f59e0b 0%, #f97316 100%);
}

.act-card__body {
    flex: 1;
    min-width: 0;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.act-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.act-card__type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.act-card__type--copy {
    background: rgba(76, 104, 245, 0.08);
    color: var(--accent);
    border: 1px solid rgba(76, 104, 245, 0.18);
}

.act-card__type--idea-article {
    background: rgba(76, 104, 245, 0.08);
    color: var(--accent);
    border: 1px solid rgba(76, 104, 245, 0.18);
}

.act-card__type--idea-translation {
    background: rgba(14, 165, 233, 0.08);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.act-card__type--idea-rewrite {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.act-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.act-card__url {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-soft);
    overflow: hidden;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.act-card__url:hover {
    border-color: rgba(76, 104, 245, 0.3);
    background: rgba(76, 104, 245, 0.03);
}

.act-card__url-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.act-card__url-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--accent);
    font-weight: 500;
}

.act-card__note {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-soft);
    padding: 10px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    line-height: 1.5;
}

.act-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.act-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.act-card__meta-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.6;
}

.act-card__sep {
    width: 1px;
    height: 14px;
    background: var(--line);
}

.act-card__reward {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(74, 222, 128, 0.08));
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #16a34a;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .actions-tabs__nav {
        display: grid;
        grid-template-columns: 1fr;
    }

    .actions-tabs__tab {
        justify-content: space-between;
    }

    .act-card__body {
        padding: 14px 16px;
    }

    .act-card__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ─── TOPIC CARDS ────────────────────────────────────── */
.topic-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.topic-card:hover {
    border-color: rgba(76, 104, 245, 0.2);
    box-shadow: 0 4px 20px rgba(20, 30, 70, 0.07);
}

.topic-card--article:hover {
    border-color: rgba(76, 104, 245, 0.24);
}

.topic-card--translation:hover {
    border-color: rgba(14, 165, 233, 0.26);
}

.topic-card--rewrite:hover {
    border-color: rgba(245, 158, 11, 0.28);
}

.topic-card__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(76, 104, 245, 0.04) 0%, rgba(124, 58, 237, 0.03) 100%);
    border-bottom: 1px solid var(--line);
}

.topic-card__head--article {
    background: linear-gradient(135deg, rgba(76, 104, 245, 0.05) 0%, rgba(124, 58, 237, 0.03) 100%);
}

.topic-card__head--translation {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.06) 0%, rgba(6, 182, 212, 0.03) 100%);
}

.topic-card__head--rewrite {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(249, 115, 22, 0.04) 100%);
}

.topic-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    overflow: hidden;
    line-height: 1;
}

.topic-card__icon--open {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.1) 0%, rgba(74, 222, 128, 0.1) 100%);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.topic-card__icon--work {
    background: linear-gradient(135deg, rgba(76, 104, 245, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    border: 1px solid rgba(76, 104, 245, 0.18);
}

.topic-card__icon--done {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.08) 0%, rgba(74, 222, 128, 0.08) 100%);
    border: 1px solid rgba(22, 163, 74, 0.18);
}

.topic-card__icon--article {
    background: linear-gradient(135deg, rgba(76, 104, 245, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border: 1px solid rgba(76, 104, 245, 0.2);
}

.topic-card__icon--translation {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(14, 165, 233, 0.22);
}

.topic-card__icon--rewrite {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(249, 115, 22, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.24);
}

.topic-card__info {
    flex: 1;
    min-width: 0;
}

.topic-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.topic-card__badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.topic-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.topic-card__badge--open {
    background: rgba(22, 163, 74, 0.08);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.topic-card__badge--work {
    background: rgba(76, 104, 245, 0.08);
    color: var(--accent);
    border: 1px solid rgba(76, 104, 245, 0.18);
}

.topic-card__badge--done {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-line);
}

.topic-card__badge--type {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-soft);
    border: 1px solid var(--line);
    letter-spacing: 0.02em;
    text-transform: none;
}

.topic-card__badge--article {
    background: rgba(76, 104, 245, 0.08);
    color: var(--accent);
    border: 1px solid rgba(76, 104, 245, 0.18);
    letter-spacing: 0.02em;
    text-transform: none;
}

.topic-card__badge--translation {
    background: rgba(14, 165, 233, 0.08);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.2);
    letter-spacing: 0.02em;
    text-transform: none;
}

.topic-card__badge--rewrite {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.22);
    letter-spacing: 0.02em;
    text-transform: none;
}

.topic-card__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.topic-card__badge--open .topic-card__badge-dot {
    background: #16a34a;
    box-shadow: 0 0 6px rgba(22, 163, 74, 0.5);
    animation: idea-pulse 2s ease-in-out infinite;
}

.topic-card__badge--work .topic-card__badge-dot {
    background: var(--accent);
}

.topic-card__badge--done .topic-card__badge-dot {
    background: var(--success-text);
}

.topic-card__body {
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.topic-card__desc {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.6;
}

.topic-card__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.topic-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.topic-card__meta-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.6;
}

.topic-card__meta-sep {
    width: 1px;
    height: 14px;
    background: var(--line);
}

.topic-card__reward {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(74, 222, 128, 0.08));
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #16a34a;
    white-space: nowrap;
}

.topic-card__applied {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(76, 104, 245, 0.05);
    border: 1px solid rgba(76, 104, 245, 0.14);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 600;
}

.topic-card__applied-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.topic-card__spoiler {
    display: block;
}

.topic-card__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 24px;
    border-top: 1px solid var(--line);
    background: rgba(76, 104, 245, 0.02);
    cursor: pointer;
    list-style: none;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.topic-card__summary::-webkit-details-marker {
    display: none;
}

.topic-card__summary:hover {
    background: rgba(76, 104, 245, 0.04);
}

.topic-card__summary-button {
    pointer-events: none;
}

.topic-card__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.topic-card__spoiler[open] .topic-card__summary-button {
    display: none;
}

.topic-card__spoiler[open] .topic-card__chevron {
    transform: rotate(180deg);
    color: var(--accent);
    border-color: rgba(76, 104, 245, 0.22);
    background: rgba(76, 104, 245, 0.08);
}

.topic-card__form {
    border-top: 1px solid var(--line);
    padding: 18px 24px;
    background: var(--panel-2);
}

.topic-card__form-label {
    margin: 0 0 14px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.topic-card__comment {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-soft);
    padding: 10px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    line-height: 1.5;
}

@media (max-width: 720px) {
    .topic-card__head {
        padding: 16px 18px;
        flex-direction: column;
        gap: 10px;
    }

    .topic-card__summary {
        padding: 14px 18px;
    }

    .topic-card__body,
    .topic-card__form {
        padding: 14px 18px;
    }
}

/* ─── OPERATIONS TABLE ───────────────────────────────── */
.ops-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

.ops-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.ops-table th {
    padding: 11px 14px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.ops-table td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--line);
    color: var(--text-soft);
}

.ops-table tbody tr:last-child td {
    border-bottom: none;
}

.ops-table tbody tr:hover td {
    background: var(--bg-soft);
}

.ops-date {
    white-space: nowrap;
    font-size: 0.82rem;
    color: var(--text-soft);
}

.ops-time {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.ops-desc {
    max-width: 260px;
    color: var(--text);
    font-weight: 500;
}

.ops-asset {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.ops-amount {
    font-weight: 700;
    white-space: nowrap;
}

.ops-amount--pos {
    color: #16a34a;
}

.ops-amount--neg {
    color: #dc2626;
}

/* ─── BALANCE HERO ───────────────────────────────────── */
.balance-hero {
    padding: 20px;
    background: linear-gradient(135deg, rgba(76, 104, 245, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border: 1px solid rgba(76, 104, 245, 0.14);
    border-radius: var(--radius-md);
}

.balance-hero__num {
    margin: 8px 0 0;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text);
}

.balance-hero__unit {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1100px) {
    .bonus-actions__cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .steps-track {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .step {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 14px;
        padding: 10px 0;
    }

    .step__content {
        flex: 1;
    }

    .step__connector {
        width: 2px;
        height: 24px;
        margin: 0 0 0 21px;
        flex: none;
    }

    .bonus-track__head {
        flex-direction: column;
    }

    .bonus-track__summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .bonus-track__summary-meta {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 720px) {
    .cab-identity {
        flex-direction: column;
        align-items: flex-start;
    }

    .cab-balance-card {
        text-align: left;
        width: 100%;
    }
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.split {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-start;
}

.split > * {
    flex: 1 1 0;
}

.single-column {
    max-width: 760px;
    margin: 0 auto;
}

.spacer-top {
    margin-top: 20px;
}

/* ─── IDEA CARDS ─────────────────────────────────────── */
.idea-card {
    display: flex;
    gap: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.idea-card:hover {
    border-color: rgba(76, 104, 245, 0.25);
    box-shadow: 0 4px 20px rgba(20, 30, 70, 0.08);
    transform: translateY(-1px);
}

.idea-card__accent {
    width: 4px;
    flex-shrink: 0;
    border-radius: 4px 0 0 4px;
}

.idea-card__accent--article {
    background: linear-gradient(180deg, var(--accent) 0%, #7c3aed 100%);
}

.idea-card__accent--translation {
    background: linear-gradient(180deg, #0ea5e9 0%, #06b6d4 100%);
}

.idea-card__accent--rewrite {
    background: linear-gradient(180deg, #f59e0b 0%, #f97316 100%);
}

.idea-card__accent--accepted {
    background: linear-gradient(180deg, #16a34a 0%, #4ade80 100%);
}

.idea-card__body {
    flex: 1;
    min-width: 0;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.idea-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.idea-card__type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.idea-card__type--article {
    background: rgba(76, 104, 245, 0.08);
    color: var(--accent);
    border: 1px solid rgba(76, 104, 245, 0.18);
}

.idea-card__type--translation {
    background: rgba(14, 165, 233, 0.08);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.idea-card__type--rewrite {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.idea-card__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.idea-card__status--pending {
    background: rgba(76, 104, 245, 0.07);
    color: var(--accent);
    border: 1px solid rgba(76, 104, 245, 0.18);
}

.idea-card__status--accepted {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-line);
}

.idea-card__status--rejected {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-line);
}

.idea-card__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.idea-card__status--pending .idea-card__status-dot {
    background: var(--accent);
    box-shadow: 0 0 6px rgba(76, 104, 245, 0.5);
    animation: idea-pulse 2s ease-in-out infinite;
}

.idea-card__status--accepted .idea-card__status-dot {
    background: #16a34a;
}

.idea-card__status--rejected .idea-card__status-dot {
    background: #dc2626;
}

@keyframes idea-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.idea-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.idea-card__url {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-soft);
    overflow: hidden;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.idea-card__url:hover {
    border-color: rgba(76, 104, 245, 0.3);
    background: rgba(76, 104, 245, 0.03);
}

.idea-card__url-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.idea-card__url-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--accent);
    font-weight: 500;
}

.idea-card__footer {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.idea-card__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.idea-card__meta-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.65;
}

.idea-card__reward {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.08) 0%, rgba(74, 222, 128, 0.08) 100%);
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #16a34a;
    white-space: nowrap;
}

.idea-card__divider {
    width: 1px;
    height: 14px;
    background: var(--line);
}

@media (max-width: 720px) {
    .idea-card__body {
        padding: 14px 16px;
    }

    .idea-card__top {
        flex-direction: column;
        align-items: flex-start;
    }
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

@media (max-width: 1100px) {
    .grid-hero,
    .grid-main,
    .grid-two,
    .grid-three,
    .grid-admin,
    .grid-stats,
    .settings-notification-layout,
    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 20px, 1240px);
        padding-top: 16px;
    }

    .site-header,
    .panel {
        padding: 18px 16px;
    }

    .site-header,
    .split,
    .item-head,
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .page-title {
        font-size: 2rem;
    }

    .notification-card {
        flex-direction: column;
    }

    .notification-card__meta {
        white-space: normal;
    }

    .application-review-grid {
        grid-template-columns: 1fr;
    }

    .application-review-details {
        grid-template-columns: 1fr;
    }

    .application-form-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-variable {
        grid-template-columns: 1fr;
    }

    .avatar-upload-card {
        align-items: flex-start;
    }
}
