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

:root {
    --bg: #f3f6fd;
    --bg-accent:
        radial-gradient(circle at 8% 0%, rgba(79, 70, 229, 0.14), transparent 26%),
        radial-gradient(circle at 100% 4%, rgba(14, 165, 233, 0.11), transparent 24%),
        linear-gradient(180deg, #fbfcff 0%, #f5f7fd 52%, #eef3fb 100%);
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --surface-soft: #f7f9fe;
    --surface-tint: rgba(247, 249, 254, 0.86);
    --border: rgba(215, 223, 241, 0.9);
    --border-strong: rgba(196, 207, 232, 0.98);
    --text: #162033;
    --muted: #74829d;
    --muted-strong: #53617b;
    --primary: #4f46e5;
    --primary-dark: #4037cf;
    --primary-soft: rgba(79, 70, 229, 0.12);
    --sky-soft: rgba(56, 189, 248, 0.12);
    --success: #059669;
    --success-soft: rgba(5, 150, 105, 0.14);
    --warning: #d97706;
    --warning-soft: rgba(217, 119, 6, 0.14);
    --danger: #e11d48;
    --danger-soft: rgba(225, 29, 72, 0.13);
    --shadow-xl: 0 34px 72px rgba(94, 109, 144, 0.12);
    --shadow-lg: 0 24px 48px rgba(94, 109, 144, 0.1);
    --shadow-md: 0 16px 30px rgba(94, 109, 144, 0.08);
    --shadow-sm: 0 10px 20px rgba(94, 109, 144, 0.05);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg-accent);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
}

strong,
h1,
h2,
h3,
h4,
.nav-link,
.btn,
.page-kicker {
    font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
    letter-spacing: -0.02em;
}

.muted,
small {
    color: var(--muted);
}

.hidden {
    display: none !important;
}

.top-gap {
    margin-top: 16px;
}

.app-shell {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 22px;
    min-height: 100vh;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 16px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    padding: 16px 14px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-xl);
}

.sidebar-top {
    display: grid;
    gap: 22px;
}

.brand {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 4px 6px 2px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(79, 70, 229, 0.12), rgba(56, 189, 248, 0.11));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.brand-logo {
    display: block;
    width: 100%;
    max-width: 36px;
    height: auto;
}

.brand-copy {
    display: grid;
    gap: 3px;
}

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

.brand-copy small {
    font-size: 0.8rem;
}

.nav {
    display: grid;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    color: var(--muted-strong);
    font-size: 0.9rem;
    font-weight: 600;
    background: transparent;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
        box-shadow 0.18s ease;
}

.nav-link::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.56);
    transition: transform 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(214, 222, 242, 0.98);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.nav-link-active {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(255, 255, 255, 0.98));
    border-color: rgba(175, 183, 255, 0.55);
    box-shadow: var(--shadow-sm);
}

.nav-link-active::before {
    background: var(--primary);
    transform: scale(1.14);
}

.sidebar-footer {
    display: grid;
    gap: 12px;
    padding: 16px;
    margin-top: 0;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(250, 251, 255, 0.98), rgba(245, 248, 255, 0.95));
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #6459ff);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    box-shadow: 0 16px 24px rgba(79, 70, 229, 0.22);
}

.sidebar-user-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-shell {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    padding: 2px 2px 28px;
}

.page-header {
    margin-bottom: 18px;
    padding: 4px 4px 0;
}

.page-header-copy {
    display: grid;
    gap: 10px;
}

.page-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(208, 217, 239, 0.9);
    background: rgba(255, 255, 255, 0.74);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.page-header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 2.2vw, 2.7rem);
    line-height: 1.04;
}

.content-stack {
    display: grid;
    min-width: 0;
    gap: 18px;
}

.card {
    position: relative;
    min-width: 0;
    max-width: 100%;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 26px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(212, 220, 241, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

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

.section-title h2 {
    margin: 0 0 6px;
    font-size: 1.18rem;
}

.section-title p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.94rem;
}

.section-actions,
.toolbar,
.actions,
.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar {
    margin-top: 18px;
}

.toolbar + .table-wrap {
    margin-top: 18px;
}

.pipeline-panel {
    overflow: hidden;
}

.pipeline-header {
    margin-bottom: 22px;
}

.pipeline-copy {
    display: grid;
    gap: 10px;
    max-width: 720px;
}

.pipeline-kicker {
    background: rgba(255, 255, 255, 0.86);
}

.pipeline-copy h2 {
    margin: 0;
    font-size: clamp(1.7rem, 2vw, 2.3rem);
}

.pipeline-copy p {
    margin: 0;
}

.pipeline-filters {
    padding: 18px;
    margin-top: 0;
    border: 1px solid rgba(223, 230, 245, 0.96);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 255, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.pipeline-filter-field {
    gap: 8px;
    min-width: 190px;
}

.pipeline-filter-field span {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
}

.pipeline-filter-button {
    align-self: end;
}

.toolbar-wrap {
    flex-wrap: wrap;
}

.toolbar-filters {
    align-items: flex-end;
}

.toolbar-field {
    flex: 1 1 220px;
    min-width: 180px;
    width: auto;
}

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

.form-grid-single {
    grid-template-columns: 1fr;
}

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

.form-section {
    display: grid;
    gap: 18px;
    padding: 20px;
    border: 1px solid rgba(223, 230, 245, 0.96);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 255, 0.96));
}

.form-section-title {
    display: grid;
    gap: 6px;
}

.form-section-title h2,
.form-section-title h3 {
    margin: 0;
    font-size: 1.12rem;
}

.form-section-title p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.form-help {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

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

.linked-list li {
    color: var(--muted-strong);
}

.detail-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(227, 233, 247, 0.96);
    border-radius: 18px;
    background: rgba(248, 250, 255, 0.95);
}

.field-span-2 {
    grid-column: span 2;
}

label {
    display: grid;
    gap: 9px;
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--muted-strong);
}

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

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(79, 70, 229, 0.45);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
    background: #fff;
}

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

.small-input {
    max-width: 96px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease,
        color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-small {
    padding: 9px 13px;
    font-size: 0.85rem;
    border-radius: 14px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6258ff);
    color: #fff;
    box-shadow: 0 18px 30px rgba(79, 70, 229, 0.18);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #554bf3);
}

.btn-secondary {
    border: 1px solid rgba(211, 220, 240, 0.92);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.btn-danger {
    background: rgba(255, 236, 241, 0.98);
    color: var(--danger);
    box-shadow: none;
}

.alert {
    padding: 16px 18px;
    margin-bottom: 14px;
    border: 1px solid transparent;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: linear-gradient(180deg, #eafff6, #dffbf0);
    border-color: #9ce5c4;
}

.alert-error {
    background: linear-gradient(180deg, #fff3f6, #ffe5ec);
    border-color: #f7b4c4;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(224, 231, 246, 0.98);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
}

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

thead th {
    padding: 16px 14px;
    background: rgba(247, 249, 254, 0.98);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

th,
td {
    padding: 16px 14px;
    border-bottom: 0;
    text-align: left;
    vertical-align: top;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:nth-child(even) {
    background: rgba(247, 249, 254, 0.82);
}

tbody tr:hover {
    background: rgba(240, 245, 255, 0.95);
}

.table-actions-cell {
    width: 1%;
    white-space: nowrap;
}

.table-actions-cell.actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.table-action-form {
    display: inline-flex;
    flex: 0 0 auto;
}

.table-actions-cell .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.table-entity {
    display: grid;
    gap: 4px;
}

.table-entity strong {
    line-height: 1.35;
}

.table-subline {
    color: var(--muted);
    line-height: 1.5;
}

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

.table-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--muted-strong);
    font-size: 0.78rem;
    font-weight: 700;
}

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

.stat-card {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 254, 0.96));
    box-shadow: var(--shadow-md);
}

.stat-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.87rem;
    font-weight: 700;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.grid-two,
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.stage-summary-list,
.timeline {
    display: grid;
    gap: 12px;
}

.stage-summary-item,
.timeline-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(227, 233, 247, 0.96);
    border-radius: 18px;
    background: rgba(248, 250, 255, 0.98);
}

.timeline-item {
    flex-direction: column;
}

.stage-color {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    margin-right: 8px;
    flex-shrink: 0;
}

.kanban-rail {
    position: relative;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
}

.kanban-viewport {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 42px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.kanban-viewport::-webkit-scrollbar {
    display: none;
}

.kanban-board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(292px, 292px);
    gap: 18px;
    align-items: start;
    width: max-content;
    min-width: 100%;
    max-width: none;
    overflow: visible;
    padding-bottom: 12px;
}

.kanban-column {
    min-height: 460px;
    padding: 16px;
    border: 1px solid rgba(224, 231, 246, 0.98);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 254, 0.96));
    box-shadow: var(--shadow-md);
}

.kanban-column-header,
.kanban-card-title,
.kanban-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.kanban-column-header {
    margin-bottom: 10px;
}

.kanban-column-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.kanban-dropzone {
    display: grid;
    gap: 12px;
    min-height: 320px;
    padding-top: 10px;
}

.kanban-card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 16px;
    border: 1px solid rgba(226, 233, 246, 0.96);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 24px rgba(94, 109, 144, 0.08);
    cursor: grab;
}

.kanban-card-title {
    align-items: flex-start;
}

.kanban-card-title strong {
    line-height: 1.34;
}

.kanban-price {
    color: var(--muted-strong);
    font-weight: 700;
}

.kanban-card-line,
.kanban-card-note {
    margin: 0;
}

.kanban-card-stack {
    display: grid;
    gap: 8px;
}

.kanban-card-highlight {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid rgba(227, 233, 247, 0.96);
    border-radius: 14px;
    background: var(--surface-tint);
}

.kanban-card-label {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.kanban-card-note {
    color: var(--muted-strong);
    line-height: 1.52;
}

.kanban-meta {
    margin-top: 2px;
    color: var(--muted);
}

.kanban-card-line {
    color: var(--muted-strong);
    line-height: 1.45;
}

.kanban-meta a {
    color: var(--primary);
    font-weight: 700;
}

.kanban-meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--muted-strong);
    font-size: 0.8rem;
    font-weight: 700;
}

.kanban-arrow {
    position: absolute;
    top: 122px;
    z-index: 3;
    width: 46px;
    height: 78px;
    border: 1px solid rgba(214, 223, 241, 0.96);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    transform: none;
    pointer-events: auto;
}

.kanban-arrow span {
    font-size: 2rem;
    line-height: 1;
}

.kanban-arrow-left {
    left: -14px;
}

.kanban-arrow-right {
    right: -14px;
}

.kanban-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.kanban-card.dragging {
    opacity: 0.58;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.79rem;
    font-weight: 700;
}

.badge-success {
    background: var(--success-soft);
    color: #0b7655;
}

.badge-danger {
    background: var(--danger-soft);
    color: #be123c;
}

.badge-warning {
    background: var(--warning-soft);
    color: #9a6700;
}

.badge-muted {
    background: rgba(226, 232, 240, 0.82);
    color: #50607f;
}

.module-option {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid rgba(226, 233, 247, 0.96);
    border-radius: 18px;
    background: rgba(248, 250, 255, 0.96);
}

.module-option span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.module-option input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.profile-logo-panel {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.profile-logo-preview {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(226, 233, 247, 0.96);
    background: rgba(248, 250, 255, 0.96);
    box-shadow: var(--shadow-sm);
    color: var(--muted-strong);
    font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.profile-logo-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.auth-shell {
    width: min(480px, calc(100vw - 32px));
}

.auth-card {
    padding: 30px;
}

.auth-hint {
    margin-top: 18px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(248, 250, 255, 0.96);
}

.content-page {
    display: grid;
    gap: 18px;
}

.content-hero {
    display: grid;
    gap: 14px;
    overflow: hidden;
}

.content-hero-header {
    align-items: center;
}

.content-hero-copy {
    display: grid;
    gap: 8px;
}

.content-title-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.content-icon,
.content-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(223, 230, 245, 0.96);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.94));
    color: var(--primary);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.content-title-row h2 {
    margin: 0 0 6px;
    font-size: clamp(1.72rem, 2vw, 2.45rem);
}

.content-title-row p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.content-filter-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(223, 230, 245, 0.96);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 255, 0.95));
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.content-section {
    overflow: hidden;
}

.content-grid > .content-section {
    width: 100%;
}

.content-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.content-section-heading h2 {
    margin: 0 0 6px;
    font-size: 1.14rem;
}

.content-section-heading p {
    margin: 0;
    font-size: 0.92rem;
}

.content-table-desktop .content-status-cell,
.content-table-desktop .content-type-cell,
.content-table-desktop .content-funnel-cell {
    white-space: nowrap;
}

.content-planning-mobile {
    display: none;
}

.content-planning-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(226, 233, 246, 0.96);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-sm);
}

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

.content-card-title {
    display: grid;
    gap: 6px;
}

.content-card-title strong {
    line-height: 1.4;
}

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

.content-meta-item {
    display: grid;
    gap: 4px;
}

.content-meta-item span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.content-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.content-badge-type-educational {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.content-badge-type-social-proof {
    background: rgba(16, 185, 129, 0.13);
    color: #047857;
}

.content-badge-type-offer {
    background: rgba(139, 92, 246, 0.14);
    color: #7c3aed;
}

.content-badge-funnel-top {
    background: rgba(96, 165, 250, 0.16);
    color: #2563eb;
}

.content-badge-funnel-middle {
    background: rgba(250, 204, 21, 0.16);
    color: #a16207;
}

.content-badge-funnel-bottom {
    background: rgba(244, 114, 182, 0.16);
    color: #be185d;
}

.content-badge-status-idea {
    background: rgba(148, 163, 184, 0.14);
    color: #475569;
}

.content-badge-status-in-production {
    background: rgba(156, 163, 175, 0.18);
    color: #4b5563;
}

.content-badge-status-approved {
    background: rgba(96, 165, 250, 0.16);
    color: #2563eb;
}

.content-badge-status-scheduled {
    background: rgba(250, 204, 21, 0.18);
    color: #a16207;
}

.content-badge-status-published {
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
}

.content-channel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.content-channel-icon,
.content-format-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 1px solid rgba(223, 230, 245, 0.96);
    background: rgba(255, 255, 255, 0.96);
    color: var(--muted-strong);
    font-size: 0.7rem;
    font-weight: 800;
}

.content-channel-instagram .content-channel-icon {
    color: #db2777;
}

.content-channel-linkedin .content-channel-icon {
    color: #2563eb;
}

.content-channel-facebook .content-channel-icon {
    color: #1d4ed8;
}

.content-channel-tiktok .content-channel-icon {
    color: #111827;
}

.content-channel-youtube .content-channel-icon {
    color: #dc2626;
}

.content-format {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--muted-strong);
}

.content-actions-menu {
    position: relative;
}

.content-actions-menu summary {
    list-style: none;
}

.content-actions-menu summary::-webkit-details-marker {
    display: none;
}

.content-actions-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(223, 230, 245, 0.96);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--muted-strong);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.content-actions-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 10;
    display: grid;
    gap: 6px;
    min-width: 176px;
    padding: 10px;
    border: 1px solid rgba(223, 230, 245, 0.96);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.content-actions-panel button {
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 12px;
    background: rgba(247, 249, 254, 0.98);
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.content-actions-panel button:hover {
    background: rgba(240, 245, 255, 0.98);
}

.content-kanban {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(292px, 292px);
    gap: 18px;
    align-items: start;
    width: max-content;
    min-width: 100%;
    max-width: none;
    overflow: visible;
    padding-bottom: 12px;
}

.content-kanban-column {
    display: grid;
    gap: 12px;
    min-height: 460px;
}

.content-kanban-header {
    margin-bottom: 2px;
}

.content-kanban-title {
    font-weight: 700;
    font-size: 0.96rem;
    line-height: 1.28;
}

.content-kanban-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.content-kanban-list {
    display: grid;
    gap: 12px;
    min-height: 320px;
    padding-top: 10px;
}

.content-kanban-card {
    display: grid;
    gap: 10px;
    align-content: start;
    cursor: grab;
    font-size: 0.83rem;
    line-height: 1.34;
}

.content-kanban-card strong {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.34;
}

.content-kanban-card.dragging {
    opacity: 0.58;
}

.content-kanban-footer button {
    width: 100%;
    border: 1px dashed rgba(191, 200, 223, 0.98);
    border-radius: 12px;
    background: transparent;
    color: var(--muted-strong);
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.88rem;
}

.content-tip {
    margin: 10px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 0.88rem;
}

.content-grid > .content-section:first-child .content-section-heading p,
.content-grid > .content-section:last-child .content-section-heading p {
    display: none;
}

.content-grid > .content-section.pipeline-panel .pipeline-header {
    margin-bottom: 8px;
}

.content-grid > .content-section.pipeline-panel .pipeline-copy {
    max-width: none;
}

.content-calendar {
    display: grid;
    gap: 12px;
    padding: 8px;
    border: 1px solid rgba(214, 224, 242, 0.98);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(244, 247, 255, 0.95);
}

.content-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 6px 10px;
}

.content-calendar-weekdays,
.content-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
}

.content-calendar-weekdays span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    padding: 8px 4px 10px;
}

.content-calendar-day {
    display: grid;
    gap: 6px;
    min-height: 94px;
    padding: 8px 8px 7px;
    border-right: 1px solid rgba(226, 233, 246, 0.96);
    border-bottom: 1px solid rgba(226, 233, 246, 0.96);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.98);
}

.content-calendar-grid .content-calendar-day:nth-child(7n) {
    border-right: 0;
}

.content-calendar-day.is-outside {
    background: rgba(247, 249, 254, 0.9);
    color: var(--muted);
}

.content-calendar-day.is-today {
    background: rgba(250, 252, 255, 0.98);
}

.content-calendar-day-number {
    font-weight: 800;
    font-size: 0.92rem;
}

.content-calendar-events {
    display: grid;
    gap: 5px;
}

.content-calendar-event {
    display: grid;
    padding: 5px 6px;
    border-radius: 4px;
    background: rgba(247, 249, 254, 0.98);
    font-size: 0.65rem;
    line-height: 1.18;
}

.content-calendar-event-text {
    color: #20304d;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.18;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.content-calendar-event-educational {
    background: rgba(59, 130, 246, 0.12);
}

.content-calendar-event-social-proof {
    background: rgba(16, 185, 129, 0.14);
}

.content-calendar-event-offer {
    background: rgba(139, 92, 246, 0.14);
}

.content-grid > .content-section:last-child .content-section-heading p {
    display: none;
}

.content-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    justify-items: end;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(4px);
}

.content-modal {
    width: min(520px, 100%);
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: -24px 0 54px rgba(94, 109, 144, 0.18);
}

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

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    .app-shell {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 16px;
    }

    .sidebar {
        padding: 18px;
    }

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

    .content-kanban {
        grid-auto-columns: minmax(268px, 268px);
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding: 0 0 24px;
    }

    .content-stack {
        gap: 18px;
    }

    .card,
    .stat-card {
        padding: 18px;
        border-radius: 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-span-2 {
        grid-column: span 1;
    }

    .section-title,
    .toolbar,
    .section-actions,
    .actions,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-field {
        width: 100%;
        min-width: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .kanban-viewport {
        padding: 0 30px;
    }

    .kanban-board {
        grid-auto-columns: minmax(270px, 270px);
    }

    .kanban-arrow {
        width: 38px;
        height: 60px;
        top: 112px;
    }

    .kanban-arrow-left {
        left: -8px;
    }

    .kanban-arrow-right {
        right: -8px;
    }

    .sidebar-user {
        align-items: flex-start;
    }

    .content-hero-header,
    .content-title-row,
    .content-section-heading,
    .content-calendar-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .content-table-desktop {
        display: none;
    }

    .content-planning-mobile {
        display: grid;
        gap: 14px;
    }

    .content-meta-grid {
        grid-template-columns: 1fr;
    }

    .content-calendar-weekdays,
    .content-calendar-grid {
        gap: 8px;
    }

    .content-calendar-day {
        min-height: 82px;
        padding: 8px;
    }

    .content-modal {
        width: 100%;
        padding: 20px;
    }
}
