.primary-button,
.secondary-button,
.ghost-button,
.command-trigger,
.icon-button {
    border: 1px solid var(--line);
    border-radius: 7px;
    min-height: 38px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text);
    background: #121824;
}

.primary-button {
    background: #d7fff0;
    color: #06110e;
    border-color: #d7fff0;
    font-weight: 760;
}

.secondary-button:hover,
.ghost-button:hover,
.command-trigger:hover,
.icon-button:hover {
    border-color: #3a4659;
    background: #172031;
}

.ghost-button {
    width: 100%;
    color: var(--muted);
}

.icon-button {
    width: 38px;
    padding: 0;
    position: relative;
}

.icon-button b {
    position: absolute;
    right: -5px;
    top: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: 18px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    display: grid;
    place-items: center;
}

.kbd {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 20px;
    border: 1px solid var(--line);
    border-bottom-color: #41506a;
    border-radius: 5px;
    color: var(--muted);
    font-size: 11px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #0d121a;
    color: var(--text);
    padding: 10px 11px;
    outline: none;
}

textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: rgba(110, 231, 183, .75); }

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

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

.check-row input {
    width: auto;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 2px 0 0;
    font-size: 20px;
}

.work-panel,
.operation-brief,
.workspace-system,
.workspace-form,
.feed-composer,
.ai-sidebar,
.ai-console,
.ai-output,
.settings-main,
.settings-side,
.pricing-plan,
.admin-hero,
.table-page,
.admin-ai,
.admin-settings,
.analytics-page {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(16, 20, 29, .84);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    color: var(--muted);
    font-size: 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    padding: 11px 12px;
}

.data-table td {
    border-bottom: 1px solid var(--line-soft);
    padding: 13px 12px;
    color: var(--soft);
}

.toast-region {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: grid;
    gap: 10px;
    z-index: 80;
}

.toast {
    width: min(360px, calc(100vw - 36px));
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    background: #101722;
    border-radius: 7px;
    box-shadow: var(--shadow);
    padding: 12px 13px;
    color: var(--soft);
}

.toast.error { border-left-color: var(--danger); }
.toast strong { display: block; color: var(--text); margin-bottom: 2px; }

.command-palette,
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(0, 0, 0, .55);
    display: grid;
    place-items: start center;
    padding-top: 12vh;
}

.command-box,
.modal-panel {
    width: min(620px, calc(100vw - 28px));
    border: 1px solid var(--line);
    background: #0e141e;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 12px;
}

.command-results {
    display: grid;
    gap: 4px;
    margin-top: 10px;
}

.command-results a,
.command-results button {
    text-align: left;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--soft);
    padding: 10px;
}

.command-results a:hover,
.command-results button:hover { background: #151d2a; }

.modal-panel {
    position: relative;
    padding: 20px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
}

.skeleton-lines {
    display: grid;
    gap: 10px;
}

.skeleton-lines span {
    display: block;
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #172031, #243044, #172031);
    background-size: 180% 100%;
    animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
    to { background-position: -180% 0; }
}
