body {
    background: #ffffff;
    color: #171717;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.font-black {
    font-weight: 650 !important;
}

.font-bold {
    font-weight: 560 !important;
}

.text-slate-950,
.text-slate-900 {
    color: #171717 !important;
}

.text-slate-600,
.text-slate-500,
.text-slate-400 {
    color: #737373 !important;
}

.bg-slate-50 {
    background-color: #fafafa !important;
}

aside.bg-white {
    background: #f7f7f8 !important;
}

aside.border-slate-200,
header.border-slate-200 {
    border-color: #e6e6e7 !important;
}

aside nav a,
.sidebar-group-summary {
    border-radius: 0.5rem !important;
    font-weight: 520 !important;
}

aside nav a.bg-indigo-50,
.sidebar-group-summary.bg-indigo-50 {
    background: #e9e9eb !important;
    color: #171717 !important;
}

aside nav a:hover,
.sidebar-group-summary:hover {
    background: #eeeeef !important;
}

.sidebar-group-summary::-webkit-details-marker {
    display: none;
}

.company-select-wrap {
    position: relative;
}

.company-select {
    width: 100%;
    appearance: none;
    border: 1px solid #dedee0;
    border-radius: 0.6rem;
    background: #fff;
    color: #171717;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    padding: 0.68rem 2.25rem 0.68rem 2.35rem;
    outline: none;
}

.company-select:focus {
    border-color: #a7a3f7;
    box-shadow: 0 0 0 3px rgba(91, 79, 240, 0.12);
}

.company-select:disabled {
    color: #737373;
    background: #f1f1f2;
}

.company-select-icon,
.company-select-chevron {
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #737373;
}

.company-select-icon {
    left: 0.75rem;
}

.company-select-chevron {
    right: 0.75rem;
}

header {
    background: rgba(250, 250, 250, 0.92) !important;
}

.app-sidebar,
.app-main {
    transition: width 0.2s ease, padding-left 0.2s ease;
}

.sidebar-toggle {
    display: inline-flex;
    height: 2.25rem;
    width: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    color: #737373;
}

.sidebar-toggle:hover {
    background: #eeeeef;
    color: #171717;
}

@media (min-width: 1024px) {
    body.sidebar-collapsed .app-sidebar {
        width: 5.25rem !important;
    }

    body.sidebar-collapsed .app-main {
        padding-left: 5.25rem !important;
    }

    body.sidebar-collapsed .sidebar-label {
        display: none;
    }

    body.sidebar-collapsed .app-sidebar nav,
    body.sidebar-collapsed .app-sidebar .border-t {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    body.sidebar-collapsed .sidebar-company-picker {
        display: none;
    }

    body.sidebar-collapsed .app-sidebar a,
    body.sidebar-collapsed .app-sidebar button,
    body.sidebar-collapsed .sidebar-group-summary {
        justify-content: center;
    }

    body.sidebar-collapsed .sidebar-group-panel {
        display: none;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    background: #5b4ff0;
    padding: 0.62rem 0.9rem;
    font-weight: 600;
    color: #fff;
    transition: 0.2s ease;
}

.btn-primary:hover {
    background: #4d42d8;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #dedee1;
    background: #fff;
    padding: 0.62rem 0.9rem;
    font-weight: 550;
    color: #242424;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
    background: #f7f7f8;
}

.input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #dedee1;
    background: #fff;
    padding: 0.66rem 0.82rem;
    color: #171717;
    font-weight: 400;
    outline: none;
}

.input:focus {
    border-color: #b8b8c2;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.password-field,
.inline-edit-field {
    position: relative;
}

.social-network-option,
.template-choice,
.brand-choice,
.format-choice {
    border: 1px solid #dedee1;
    border-radius: 0.6rem;
    background: #fff;
    color: #242424;
    transition: 0.18s ease;
}

.social-network-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    font-weight: 650;
}

.social-network-option:hover,
.template-choice:hover,
.brand-choice:hover,
.format-choice:hover {
    background: #f7f7f8;
    border-color: #cfcfd4;
}

.social-network-option.is-active,
.template-choice.is-active,
.brand-choice.is-active,
.format-choice.is-active {
    background: #171717;
    border-color: #171717;
    color: #fff;
}

.template-choice {
    width: 100%;
    padding: 0.9rem;
    text-align: left;
}

.template-choice.is-active span,
.format-choice.is-active p,
.format-choice.is-active span {
    color: #fff !important;
}

.brand-choice {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0.85rem;
    font-weight: 650;
}

.format-choice {
    display: block;
    padding: 1rem;
    text-align: left;
}

.post-preview-stage {
    display: grid;
    min-height: 620px;
    place-items: center;
    overflow: auto;
    border-radius: 0.75rem;
    border: 1px solid #e6e6e7;
    background:
        linear-gradient(90deg, rgba(23, 23, 23, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(23, 23, 23, 0.04) 1px, transparent 1px),
        #f5f5f6;
    background-size: 24px 24px;
    padding: 1.5rem;
}

.post-preview-scale {
    width: min(100%, 430px);
}

.post-canvas {
    position: relative;
    isolation: isolate;
    aspect-ratio: var(--post-aspect, 1 / 1);
    width: 100%;
    overflow: hidden;
    border-radius: 0.25rem;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.18);
    --post-accent: #171717;
    --post-paper: #f6f2ea;
    background: var(--post-paper);
    color: #171717;
}

.post-canvas.ink-signal {
    --post-accent: #3157ff;
    --post-paper: #f7f8ff;
}

.post-canvas.soft-grid {
    --post-accent: #d85f31;
    --post-paper: #fff7ed;
}

.post-paper-texture {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 12% 16%, rgba(23, 23, 23, 0.08), transparent 18%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), transparent 46%),
        repeating-linear-gradient(0deg, rgba(23, 23, 23, 0.035), rgba(23, 23, 23, 0.035) 1px, transparent 1px, transparent 9px);
    mix-blend-mode: multiply;
    opacity: 0.54;
}

.post-visual-block {
    position: absolute;
    inset: 7% 7% auto auto;
    width: 39%;
    height: 30%;
    border: 1px solid rgba(23, 23, 23, 0.14);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.8), transparent 45%),
        var(--post-accent);
}

.post-visual-block.has-image {
    background-position: center;
    background-size: cover;
}

.post-kicker {
    position: absolute;
    left: 7%;
    top: 8%;
    max-width: 58%;
    border-left: 5px solid var(--post-accent);
    padding-left: 0.8rem;
    font-size: clamp(0.62rem, 1.2vw, 0.9rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-headline {
    position: absolute;
    left: 7%;
    right: 7%;
    top: 26%;
    max-width: 78%;
    font-size: clamp(2rem, 6vw, 5.25rem);
    font-weight: 760;
    line-height: 0.94;
    letter-spacing: 0;
}

.post-body {
    position: absolute;
    left: 7%;
    right: 10%;
    bottom: 18%;
    max-width: 68%;
    font-size: clamp(0.85rem, 1.85vw, 1.25rem);
    font-weight: 520;
    line-height: 1.35;
}

.post-cta {
    position: absolute;
    left: 7%;
    bottom: 7%;
    border-radius: 999px;
    background: var(--post-accent);
    color: #fff;
    padding: 0.58rem 0.9rem;
    font-size: clamp(0.72rem, 1.25vw, 0.92rem);
    font-weight: 750;
}

.post-page-chip {
    position: absolute;
    right: 7%;
    bottom: 7%;
    color: rgba(23, 23, 23, 0.55);
    font-size: 0.75rem;
    font-weight: 760;
}

.post-safe-area {
    display: none;
    position: absolute;
    inset: 15.625% 0;
    z-index: 5;
    border-top: 1px dashed rgba(49, 87, 255, 0.48);
    border-bottom: 1px dashed rgba(49, 87, 255, 0.48);
    pointer-events: none;
}

.post-canvas.show-safe-area .post-safe-area {
    display: block;
}

.post-canvas-v2.show-safe-area .post-safe-area {
    display: block;
}

.password-field .input {
    padding-right: 3.25rem;
}

.inline-edit-field .input {
    padding-right: 5.8rem;
}

.inline-edit-field .input[readonly],
.inline-edit-field .input:disabled {
    background: #fafafa;
}

.password-toggle,
.field-icon {
    position: absolute;
    top: 50%;
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #737373;
    cursor: pointer;
    padding: 0;
    transform: translateY(-50%);
    transition: 0.2s ease;
}

.password-toggle {
    right: 0.65rem;
}

.password-toggle:hover,
.field-icon:hover {
    background: #eeeeef;
    color: #171717;
}

.field-edit,
.field-save {
    right: 0.65rem;
}

.field-cancel {
    right: 2.75rem;
}

.label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    font-weight: 560;
    color: #3f3f46;
}

.card {
    border: 1px solid #e3e3e6;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.upload-control {
    display: flex;
    min-width: 0;
    cursor: pointer;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #dedee1;
    background: #fff;
    padding: 0.66rem 0.82rem;
    color: #111827;
    transition: 0.2s ease;
}

.upload-control:hover {
    border-color: #cfcfd4;
    background: #fafafa;
}

.upload-control:focus-within {
    border-color: #b8b8c2;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.upload-input {
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.upload-icon {
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eeeeef;
    color: #3f3f46;
}

.upload-text {
    min-width: 0;
    flex: 1;
}

.upload-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 560;
    color: #262626;
}

.upload-file-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    color: #737373;
}

.company-panel {
    box-shadow: none;
}

.company-summary {
    display: flex;
    cursor: pointer;
    list-style: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.company-summary::-webkit-details-marker {
    display: none;
}

.company-logo {
    display: flex;
    height: 3.25rem;
    width: 3.25rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.55rem;
    border: 1px solid #dedee1;
    background: #fafafa;
}

.company-panel[open] .company-chevron {
    transform: rotate(180deg);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 23, 23, 0.34);
    padding: 1rem;
}

.modal-panel {
    max-height: calc(100vh - 2rem);
    width: 100%;
    overflow: auto;
    border-radius: 0.75rem;
    border: 1px solid #e3e3e6;
    background: #fff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #eeeeef;
    padding: 1rem 1.25rem;
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 620;
    color: #171717;
}

.modal-header button {
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #737373;
}

.modal-header button:hover {
    background: #eeeeef;
    color: #171717;
}

.table-th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #737373;
    text-transform: uppercase;
}

.step-index {
    display: inline-flex;
    height: 1.75rem;
    width: 1.75rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: #eeeeef;
    color: #52525b;
    font-size: 0.78rem;
    font-weight: 700;
}

.social-choice,
.format-choice-v2,
.template-choice-v2 {
    border: 1px solid #dedee1;
    border-radius: 0.5rem;
    background: #fff;
    color: #242424;
    transition: 0.16s ease;
}

.social-choice {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.78rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 590;
}

.format-choice-v2,
.template-choice-v2 {
    min-height: 100%;
    padding: 0.9rem;
    text-align: left;
}

.social-choice:hover,
.format-choice-v2:hover,
.template-choice-v2:hover,
.reference-card:hover {
    border-color: #c9c9ce;
    background: #fafafa;
}

.social-choice.is-active,
.format-choice-v2.is-active,
.template-choice-v2.is-active {
    border-color: #171717;
    box-shadow: inset 0 0 0 1px #171717;
}

.format-pill {
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    border: 1px solid #dedee1;
    background: #fafafa;
    padding: 0.45rem 0.75rem;
    color: #52525b;
    font-size: 0.78rem;
    font-weight: 650;
}

.template-mini {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0.4rem;
    border: 1px solid #e3e3e6;
    background:
        linear-gradient(90deg, var(--mini-accent, #171717) 0 34%, transparent 34%),
        linear-gradient(0deg, rgba(23, 23, 23, 0.08) 1px, transparent 1px),
        var(--mini-paper, #f7f7f8);
    background-size: auto, 100% 10px, auto;
}

.template-mini[data-theme="ink-signal"] {
    --mini-accent: #3157ff;
    --mini-paper: #f7f8ff;
}

.template-mini[data-theme="soft-grid"] {
    --mini-accent: #d85f31;
    --mini-paper: #fff7ed;
}

.post-preview-stage.minimal {
    min-height: min(72vh, 760px);
    border-radius: 0.6rem;
    background:
        linear-gradient(90deg, rgba(23, 23, 23, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(23, 23, 23, 0.035) 1px, transparent 1px),
        #f8f8f9;
    background-size: 28px 28px;
}

.post-canvas-v2 {
    position: relative;
    isolation: isolate;
    aspect-ratio: var(--post-aspect, 1 / 1);
    width: 100%;
    overflow: hidden;
    border-radius: 0.2rem;
    background: var(--post-paper, #f7f7f8);
    color: #171717;
    box-shadow: 0 18px 52px rgba(15, 23, 42, 0.14);
}

.post-paper-layer {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), transparent 44%),
        repeating-linear-gradient(0deg, rgba(23, 23, 23, 0.035), rgba(23, 23, 23, 0.035) 1px, transparent 1px, transparent 11px);
    opacity: 0.72;
}

.post-ref {
    position: absolute;
    inset: 7% 7% auto auto;
    width: 34%;
    height: 28%;
    border: 1px solid rgba(23, 23, 23, 0.14);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.68), transparent 48%),
        var(--post-accent, #171717);
    background-position: center;
    background-size: cover;
}

.post-ref.has-image {
    background-size: cover;
}

.post-logo {
    position: absolute;
    right: 7%;
    bottom: 7%;
    max-height: 7%;
    max-width: 24%;
    object-fit: contain;
}

.post-kicker-v2 {
    position: absolute;
    left: 7%;
    top: 8%;
    max-width: 56%;
    border-left: 4px solid var(--post-accent, #171717);
    padding-left: 0.7rem;
    font-size: clamp(0.62rem, 1.1vw, 0.82rem);
    font-weight: 760;
    letter-spacing: 0;
    text-transform: uppercase;
}

.post-headline-v2 {
    position: absolute;
    left: 7%;
    right: 7%;
    top: 26%;
    max-width: 76%;
    font-size: clamp(2rem, 6vw, 5.1rem);
    font-weight: 760;
    line-height: 0.96;
    letter-spacing: 0;
}

.post-body-v2 {
    position: absolute;
    left: 7%;
    right: 11%;
    bottom: 18%;
    max-width: 70%;
    font-size: clamp(0.86rem, 1.7vw, 1.2rem);
    font-weight: 500;
    line-height: 1.36;
}

.post-cta-v2 {
    position: absolute;
    left: 7%;
    bottom: 7%;
    max-width: 54%;
    border-radius: 999px;
    background: var(--post-accent, #171717);
    color: #fff;
    padding: 0.55rem 0.82rem;
    font-size: clamp(0.72rem, 1.12vw, 0.86rem);
    font-weight: 720;
}

.paper-unavailable {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #dedee1;
    background: #fafafa;
    padding: 0.8rem 0.95rem;
    color: #52525b;
    font-size: 0.86rem;
}

.reference-card {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid #dedee1;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.45rem;
    text-align: left;
    transition: 0.16s ease;
}

.reference-card img {
    aspect-ratio: 4 / 3;
    width: 100%;
    border-radius: 0.35rem;
    object-fit: cover;
}

.reference-card span {
    display: block;
    overflow: hidden;
    padding: 0.55rem 0.15rem 0.1rem;
    color: #52525b;
    font-size: 0.75rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reference-card.static-card {
    cursor: default;
}

@media (max-width: 640px) {
    .post-preview-stage.minimal {
        min-height: 520px;
        padding: 1rem;
    }

    .post-preview-scale {
        width: min(100%, 340px);
    }

    .post-headline-v2 {
        font-size: clamp(1.7rem, 10vw, 3.5rem);
    }
}

.table-td {
    border-top: 1px solid #eeeeef;
    padding: 1rem;
    color: #3f3f46;
}

.pagination-link {
    display: inline-flex;
    min-height: 2.25rem;
    min-width: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid #dedee1;
    background: #fff;
    padding: 0 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3f3f46;
    transition: 0.2s ease;
}

.pagination-link:hover {
    background: #f7f7f8;
}

.pagination-link-active {
    border-color: #5b4ff0;
    background: #5b4ff0;
    color: #fff;
}

.pagination-link-active:hover {
    background: #4d42d8;
}

.pagination-link-disabled {
    pointer-events: none;
    opacity: 0.45;
}

.contract-preview {
    max-height: 26rem;
    overflow: auto;
    border-radius: 0.5rem;
    border: 1px solid #eeeeef;
    background: #fafafa;
    padding: 1.1rem;
    color: #262626;
    font-size: 0.92rem;
    line-height: 1.75;
}

.contract-preview p + p {
    margin-top: 0.9rem;
}

.contract-page {
    width: min(100%, 210mm);
    min-height: 297mm;
    margin: 0 auto;
    border: 1px solid #e3e3e6;
    background: #fff;
    padding: clamp(1.25rem, 4vw, 2.35rem);
    box-shadow: 0 10px 34px rgba(15, 23, 42, 0.08);
}

.contract-public-shell {
    width: 100%;
}

.contract-public-page {
    border-color: #e5e7eb;
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.1);
}

.contract-public-header {
    color: #111827;
    font-family: Georgia, "Times New Roman", serif;
}

.contract-logo {
    max-height: 4.5rem;
    max-width: 9rem;
    object-fit: contain;
}

.contract-document-body {
    color: #262626;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.96rem;
    font-weight: 400;
    line-height: 1.85;
}

.contract-document-body b,
.contract-document-body strong,
.contract-document-body p {
    margin: 0;
    font-weight: 400 !important;
    text-align: justify;
    text-transform: none;
}

.contract-document-body p + p {
    margin-top: 1rem;
}

.contract-clause-title {
    margin: 1.75rem 0 0.7rem;
    color: #111827;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
}

.contract-section-title {
    margin: 1.15rem 0 0.55rem;
    color: #111827;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.98rem;
    font-weight: 600;
    text-transform: none;
}

.contract-list-item {
    font-weight: 400 !important;
    margin-top: 0.55rem !important;
    padding-left: 1.2rem;
    text-indent: -1.2rem;
}

.contract-list-item + .contract-list-item {
    margin-top: 0.55rem;
}

.contract-fill-token,
.contract-filled-value,
.template-chip {
    display: inline;
    border-radius: 0.35rem;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0.08rem 0.28rem;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.86em;
    font-weight: 650;
}

.contract-fill-token,
.template-chip {
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
}

.contract-filled-value {
    border: 1px solid #bbf7d0;
    background: #dcfce7;
    color: #166534;
}

.contract-signature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    break-inside: avoid;
}

.contract-signature-box {
    position: relative;
    min-height: 8rem;
    padding-top: 1.25rem;
    text-align: center;
}

.contract-signature-line {
    border-top: 1px solid #262626;
    margin: 0 auto 0.7rem;
    width: min(100%, 16rem);
}

.contract-signature-party,
.contract-signature-name,
.contract-signature-date {
    margin: 0;
    text-align: center !important;
}

.contract-signature-party {
    color: #171717;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.9rem;
    font-weight: 600;
}

.contract-signature-name {
    color: #404040;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.86rem;
    margin-top: 0.25rem;
}

.contract-signature-date {
    color: #737373;
    font-size: 0.76rem;
    margin-top: 0.35rem;
}

.contract-signature-stamp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.65rem;
    min-width: 5.8rem;
    border: 2px solid currentColor;
    border-radius: 0.25rem;
    padding: 0.18rem 0.6rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: rotate(-3deg);
}

.contract-signature-stamp.is-signed {
    color: #166534;
}

.contract-signature-stamp.is-pending {
    color: #92400e;
}

@media (max-width: 640px) {
    .contract-signature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.template-editor {
    min-height: 28rem;
    max-height: 62vh;
    overflow: auto;
    border-radius: 0.5rem;
    border: 1px solid #dedee1;
    background: #fff;
    padding: 1.35rem;
    color: #262626;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.96rem;
    line-height: 1.85;
    outline: none;
}

.template-editor:focus {
    border-color: #b8b8c2;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.template-editor p {
    margin: 0;
    text-align: justify;
}

.template-editor p + p {
    margin-top: 1rem;
}

.template-chip {
    cursor: default;
    user-select: none;
    white-space: nowrap;
}

[data-lucide],
.lucide {
    stroke-width: 1.65 !important;
}

.btn-primary:disabled,
.btn-secondary:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.content-network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.content-empty-networks {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px dashed #d4d4d8;
    border-radius: 0.6rem;
    background: #fafafa;
    padding: 1rem;
}

.content-network-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #dedee1;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.85rem;
    text-align: left;
    transition: 0.16s ease;
}

.content-network-card:hover {
    border-color: #c9c9ce;
    background: #fafafa;
}

.content-network-card.is-disabled,
.content-network-card:disabled {
    cursor: not-allowed;
    opacity: 0.54;
}

.content-network-card.is-disabled:hover,
.content-network-card:disabled:hover {
    border-color: #dedee1;
    background: #fff;
}

.content-network-card.is-connected {
    border-color: #171717;
    box-shadow: inset 0 0 0 1px #171717;
}

.content-network-icon {
    display: inline-flex;
    height: 2.15rem;
    width: 2.15rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: #eeeeef;
    color: #3f3f46;
}

.content-network-icon img {
    height: 1rem;
    width: 1rem;
    object-fit: contain;
}

.content-network-card.is-connected .content-network-icon {
    background: #171717;
    color: #fff;
}

.content-network-card.is-connected .content-network-icon img {
    filter: invert(1);
}

.content-network-action {
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #737373;
}

.content-network-action:hover {
    background: #eeeeef;
    color: #171717;
}

.content-account-choice {
    display: flex;
    min-width: 0;
    cursor: pointer;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #dedee1;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.85rem;
    transition: 0.16s ease;
}

.content-account-choice:hover {
    border-color: #c9c9ce;
    background: #fafafa;
}

.content-account-choice input {
    height: 1rem;
    width: 1rem;
    flex: 0 0 auto;
    accent-color: #171717;
}

.content-post-chip strong {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.content-post-logo {
    height: 0.8rem;
    width: 0.8rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.content-calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #eeeeef;
    padding: 1rem;
}

.content-icon-button {
    display: inline-flex;
    height: 2.5rem;
    width: 2.5rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid #dedee1;
    border-radius: 0.5rem;
    background: #fff;
    color: #52525b;
    transition: 0.16s ease;
}

.content-icon-button:hover {
    background: #f7f7f8;
    color: #171717;
}

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

.content-calendar-weekdays {
    border-bottom: 1px solid #eeeeef;
    background: #fafafa;
}

.content-calendar-weekdays span {
    padding: 0.75rem;
    color: #737373;
    font-size: 0.76rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.content-calendar-grid {
    min-width: 820px;
}

.content-calendar-scroll {
    overflow-x: auto;
}

.content-calendar-day {
    position: relative;
    min-height: 8.75rem;
    border-right: 1px solid #eeeeef;
    border-bottom: 1px solid #eeeeef;
    background: #fff;
    padding: 0.75rem;
}

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

.content-calendar-day.is-muted {
    background: #fafafa;
    color: #a3a3a3;
}

.content-calendar-day.is-today {
    box-shadow: inset 0 0 0 2px #171717;
}

.content-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.content-day-number {
    display: inline-flex;
    height: 1.75rem;
    min-width: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 720;
}

.content-calendar-day.is-today .content-day-number {
    background: #171717;
    color: #fff;
}

.content-calendar-day.is-past {
    background: #fafafa;
}

.content-day-action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    background: #eeeeef;
    padding: 0.32rem 0.55rem;
    color: #3f3f46;
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(-2px);
    transition: 0.16s ease;
}

.content-day-action:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.content-calendar-day:hover .content-day-action,
.content-day-action:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.content-calendar-day:hover .content-day-action:disabled,
.content-day-action:disabled:focus-visible {
    opacity: 0.45;
    transform: none;
}

.content-post-list {
    margin-top: 0.6rem;
    display: grid;
    gap: 0.45rem;
}

.content-post-chip {
    overflow: hidden;
    border-radius: 0.45rem;
    border: 1px solid #dedee1;
    background: #fafafa;
    padding: 0.48rem 0.55rem;
}

.content-post-chip strong {
    display: block;
    overflow: hidden;
    color: #171717;
    font-size: 0.75rem;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-post-chip span {
    display: block;
    margin-top: 0.15rem;
    color: #737373;
    font-size: 0.7rem;
    font-weight: 650;
}

.content-post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.45rem;
}

.content-post-actions a,
.content-post-actions button {
    color: #171717;
    font-size: 0.68rem;
    font-weight: 760;
    text-decoration: underline;
}

.content-media-order {
    display: grid;
    gap: 0.45rem;
}

.content-media-order-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid #dedee1;
    border-radius: 0.5rem;
    background: #fafafa;
    padding: 0.55rem 0.65rem;
}

.content-media-order-item span {
    display: inline-flex;
    height: 1.5rem;
    width: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #171717;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 760;
}

.content-media-order-item strong {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #262626;
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-schedule-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
    gap: 1.25rem;
    align-items: start;
}

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

.content-schedule-span {
    grid-column: 1 / -1;
}

.content-schedule-preview-panel {
    position: relative;
    display: grid;
    gap: 0.75rem;
    align-self: start;
    max-height: none;
    overflow: visible;
    padding-right: 0.15rem;
}

.content-schedule-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
    position: sticky;
    bottom: 0;
    z-index: 3;
    border-top: 1px solid #eeeeef;
    background: #fff;
    padding-top: 1rem;
}

.content-post-preview,
.social-preview-shell {
    overflow: hidden;
    border: 1px solid #dedee1;
    border-radius: 0.65rem;
    background: #fff;
}

.content-post-preview {
    min-height: 0;
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.08);
}

.content-target-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.content-target-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid #dedee1;
    border-radius: 0.65rem;
    background: #fff;
    cursor: pointer;
    padding: 0.75rem;
    transition: 0.16s ease;
}

.content-target-option.is-selected {
    border-color: #171717;
    background: #f7f7f8;
    box-shadow: inset 0 0 0 1px #171717;
}

.content-target-option input {
    height: 1rem;
    width: 1rem;
    accent-color: #171717;
}

.content-target-icon {
    display: inline-grid;
    height: 2rem;
    width: 2rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 999px;
    background: #f4f4f5;
}

.content-target-icon img {
    height: 1rem;
    width: 1rem;
}

.content-target-option strong,
.content-target-option small {
    display: block;
}

.content-target-option strong {
    color: #171717;
    font-size: 0.82rem;
    font-weight: 800;
}

.content-target-option small,
.content-target-empty {
    color: #737373;
    font-size: 0.74rem;
    font-weight: 650;
}

.content-preview-top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-bottom: 1px solid #eeeeef;
    padding: 0.75rem 0.85rem;
}

.content-preview-top > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.content-preview-top strong,
.content-preview-copy strong {
    display: block;
    color: #171717;
    font-size: 0.86rem;
    font-weight: 780;
}

.content-preview-top small,
.content-preview-copy small {
    display: block;
    color: #737373;
    font-size: 0.72rem;
    font-weight: 650;
}

.content-preview-top b {
    color: #0a66c2;
    font-size: 0.78rem;
}

.content-preview-avatar {
    display: inline-grid;
    height: 2rem;
    width: 2rem;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: #f4f4f5;
}

.content-preview-logo {
    height: 1.1rem;
    width: 1.1rem;
}

.content-preview-media,
.content-preview-carousel,
.content-preview-story-media,
.content-preview-waiting {
    position: relative;
    display: grid;
    aspect-ratio: var(--preview-aspect, 1 / 1);
    max-height: 34rem;
    min-height: 0;
    place-items: center;
    overflow: hidden;
    background: #f4f4f5;
}

.content-preview-media img,
.content-preview-media video,
.content-preview-carousel img,
.content-preview-carousel video,
.content-preview-story-media img,
.content-preview-story-media video,
.content-preview-phone img,
.content-preview-phone video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transform: translateY(var(--crop-y, 0));
    user-select: none;
    will-change: transform;
}

.content-preview-media,
.content-preview-carousel,
.content-preview-story-media {
    touch-action: none;
}

.content-post-preview.is-static .content-preview-media,
.content-post-preview.is-carousel .content-preview-carousel,
.content-post-preview.is-stories .content-preview-story-media,
.content-post-preview.is-tiktok .content-preview-story-media {
    cursor: grab;
}

.content-post-preview.is-dragging .content-preview-media,
.content-post-preview.is-dragging .content-preview-carousel,
.content-post-preview.is-dragging .content-preview-story-media {
    cursor: grabbing;
}

.content-preview-waiting {
    gap: 0.45rem;
    color: #737373;
    font-size: 0.9rem;
    font-weight: 760;
}

.content-preview-waiting.is-story {
    aspect-ratio: 9 / 16;
}

.content-preview-count {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    border-radius: 999px;
    background: rgba(23, 23, 23, 0.82);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 760;
    padding: 0.25rem 0.5rem;
}

.content-preview-copy {
    padding: 0.85rem;
    color: #262626;
    font-size: 0.84rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.content-preview-copy.is-before-media {
    padding-bottom: 0.65rem;
}

.content-preview-copy span,
.content-preview-hashtags {
    display: block;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 650;
    margin-top: 0.35rem;
    padding: 0 0.85rem 0.85rem;
    white-space: pre-wrap;
}

.content-preview-copy span {
    padding: 0;
}

.content-preview-instagram-actions,
.content-preview-reactions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #171717;
    font-size: 0.78rem;
    font-weight: 720;
    padding: 0.7rem 0.85rem 0;
}

.content-preview-instagram-actions span {
    display: flex;
    gap: 0.75rem;
}

.content-preview-dots {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    padding-top: 0.55rem;
}

.content-preview-dots span {
    height: 0.35rem;
    width: 0.35rem;
    border-radius: 999px;
    background: #d4d4d8;
}

.content-preview-dots span:first-child {
    background: #2563eb;
}

.content-post-preview.is-facebook .content-preview-media,
.content-post-preview.is-facebook .content-preview-carousel {
    min-height: 19rem;
}

.content-post-preview.is-tiktok,
.content-post-preview.is-stories {
    background: #050505;
    border-color: #050505;
}

.content-preview-phone {
    position: relative;
    aspect-ratio: 9 / 16;
    max-height: 34rem;
    overflow: hidden;
    background: #050505;
    color: #fff;
}

.content-preview-tiktok-copy {
    position: absolute;
    bottom: 1rem;
    left: 0.9rem;
    right: 4rem;
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.4;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.content-preview-tiktok-copy span {
    display: block;
    margin-top: 0.3rem;
}

.content-preview-tiktok-actions {
    position: absolute;
    right: 0.9rem;
    bottom: 4.5rem;
    display: grid;
    gap: 1rem;
}

.content-preview-pin {
    position: relative;
    overflow: hidden;
    border-radius: 0.8rem;
}

.content-preview-pin-head {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    z-index: 2;
}

.content-preview-pin-head button {
    border-radius: 999px;
    background: #e60023;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.45rem 0.85rem;
}

.content-post-preview.is-pinterest {
    border-radius: 1rem;
}

.content-post-preview.is-x .content-preview-media,
.content-post-preview.is-x .content-preview-carousel {
    min-height: 16rem;
    margin: 0 0.85rem;
    border: 1px solid #dedee1;
    border-radius: 0.8rem;
}

.content-preview-youtube .content-preview-media,
.content-preview-youtube .content-preview-carousel,
.content-preview-youtube .content-preview-waiting {
    aspect-ratio: 16 / 9;
    min-height: auto;
    background: #111;
}

.content-preview-tools,
.content-format-feedback {
    border: 1px solid #dedee1;
    border-radius: 0.65rem;
    background: #fff;
    padding: 0.85rem;
}

.content-preview-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: space-between;
}

.content-crop-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: move;
    border: 2px solid #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

.content-crop-grid {
    position: absolute;
    background: rgba(255, 255, 255, 0.72);
    pointer-events: none;
}

.content-crop-grid.is-v1,
.content-crop-grid.is-v2 {
    bottom: 0;
    top: 0;
    width: 1px;
}

.content-crop-grid.is-v1 {
    left: 33.333%;
}

.content-crop-grid.is-v2 {
    left: 66.666%;
}

.content-crop-grid.is-h1,
.content-crop-grid.is-h2 {
    height: 1px;
    left: 0;
    right: 0;
}

.content-crop-grid.is-h1 {
    top: 33.333%;
}

.content-crop-grid.is-h2 {
    top: 66.666%;
}

.content-format-feedback {
    display: grid;
    gap: 0.35rem;
    color: #525252;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.45;
}

.content-format-feedback strong {
    color: #171717;
}

.content-format-feedback.is-ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.content-format-feedback.is-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.content-post-preview-media,
.social-preview-media-grid {
    display: grid;
    min-height: 16rem;
    place-items: center;
    background: #f5f5f6;
    color: #737373;
    font-weight: 700;
}

.content-post-preview-media img,
.content-post-preview-media video,
.social-preview-media-item img,
.social-preview-media-item video {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.content-post-preview-body,
.social-preview-copy {
    padding: 1rem;
}

.content-post-preview-body strong,
.social-preview-top strong {
    display: block;
    color: #171717;
    font-size: 0.9rem;
    font-weight: 760;
}

.content-post-preview-body p,
.social-preview-copy p {
    margin-top: 0.5rem;
    color: #262626;
    font-size: 0.9rem;
    line-height: 1.55;
}

.content-post-preview-body span,
.social-preview-copy span {
    display: block;
    margin-top: 0.45rem;
    color: #2563eb;
    font-size: 0.86rem;
    font-weight: 650;
}

.social-preview-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #eeeeef;
    padding: 0.9rem 1rem;
}

.social-preview-top span {
    display: block;
    color: #737373;
    font-size: 0.78rem;
    font-weight: 650;
}

.social-preview-media-grid.is-multiple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.social-preview-media-item {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    background: #f5f5f6;
}

.social-preview-empty {
    min-height: 18rem;
    display: grid;
    place-items: center;
}

.content-empty-day {
    margin-top: 1rem;
    color: #a3a3a3;
    font-size: 0.76rem;
    font-weight: 600;
}

.content-saved-post {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #dedee1;
    border-radius: 0.55rem;
    background: #fff;
    padding: 0.9rem;
}

@media (max-width: 900px) {
    .content-empty-networks {
        align-items: stretch;
        flex-direction: column;
    }

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

    .content-schedule-preview-panel {
        position: static;
    }

    .content-calendar-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .content-calendar-weekdays,
    .content-calendar-grid {
        min-width: 760px;
    }

}

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

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

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

    .content-schedule-actions .btn-primary,
    .content-schedule-actions .btn-secondary {
        justify-content: center;
        width: 100%;
    }

    .content-saved-post {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (hover: none) {
    .content-day-action {
        opacity: 1;
        transform: none;
    }
}
