* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--app-bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

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

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

button {
    cursor: pointer;
}

.icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.app-shell {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--sidebar-bg);
    padding: 36px 26px 44px;
    box-shadow: 12px 0 32px rgba(16, 24, 40, 0.04);
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
}

.centered-brand {
    justify-content: center;
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--primary), #ff6474);
    color: #fff;
    box-shadow: 0 10px 20px rgba(239, 51, 72, 0.24);
}

.brand-mark .icon {
    width: 24px;
    height: 24px;
    fill: rgba(255, 255, 255, 0.24);
}

.upload-main,
.primary-button,
.white-button,
.ghost-button,
.outline-red,
.tool-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    border-radius: 7px;
    border: 1px solid transparent;
    font-weight: 750;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.upload-main:hover,
.primary-button:hover,
.white-button:hover,
.ghost-button:hover,
.outline-red:hover,
.tool-pill:hover {
    transform: translateY(-1px);
}

.upload-main {
    width: 100%;
    margin: 40px 0 24px;
    background: linear-gradient(135deg, var(--primary), #f53b4d);
    color: #fff;
    box-shadow: 0 12px 20px rgba(239, 51, 72, 0.2);
    font-size: 16px;
}

.side-nav {
    display: grid;
    gap: 4px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 39px;
    padding: 0 18px;
    border-radius: 7px;
    color: #596174;
    font-size: 15px;
    font-weight: 540;
}

.side-link.active {
    background: color-mix(in srgb, var(--primary) 11%, #fff);
    color: var(--primary);
    font-weight: 780;
}

.tool-link.active {
    background: color-mix(in srgb, var(--primary) 9%, #fff);
}

.tools-nav .color-blue,
.tools-nav .color-purple,
.tools-nav .color-green,
.tools-nav .color-orange,
.tools-nav .color-indigo,
.tools-nav .color-violet,
.tools-nav .color-pink,
.tools-nav .color-sky,
.tools-nav .color-mint {
    background: transparent;
}

.tools-nav .color-blue { color: #2F80ED; }
.tools-nav .color-purple { color: #8B5CF6; }
.tools-nav .color-green { color: #54C276; }
.tools-nav .color-orange { color: #F97316; }
.tools-nav .color-indigo { color: #6272F2; }
.tools-nav .color-violet { color: #9057F8; }
.tools-nav .color-pink { color: #EF4776; }
.tools-nav .color-sky { color: #228AEC; }
.tools-nav .color-mint { color: #27B987; }

.nav-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 14px;
    color: #98A2B3;
    font-size: 11px;
    font-weight: 800;
}

.nav-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #EAECF0;
}

.full {
    width: 100%;
}

.main-area {
    min-width: 0;
    padding: 30px 34px 22px 52px;
}

.topbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    position: relative;
    margin-bottom: 10px;
}

.icon-button,
.icon-action {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #4B5565;
    border-radius: 8px;
}

.has-dot::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    top: 8px;
    right: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px var(--app-bg);
}

.profile-wrap,
.table-actions {
    position: relative;
}

.profile-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    background: transparent;
    color: #111827;
    font-weight: 620;
}

.avatar {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #FFD1D5;
    color: var(--primary);
    font-weight: 800;
}

.floating-menu,
.row-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    padding: 10px;
    display: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.16);
    z-index: 50;
}

.floating-menu.open,
.row-menu.open {
    display: grid;
    gap: 4px;
}

.floating-menu a,
.row-menu a,
.row-menu button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: 6px;
    color: #344054;
    background: transparent;
    text-align: left;
}

.floating-menu a:hover,
.row-menu a:hover,
.row-menu button:hover {
    background: #F6F8FB;
}

.notification-menu {
    right: 180px;
    width: 280px;
}

.notification-menu p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.4;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.flash {
    padding: 13px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: #344054;
}

.flash.success {
    border-color: #ABEFC6;
    background: #ECFDF3;
    color: #067647;
}

.flash.error {
    border-color: #FECDCA;
    background: #FEF3F2;
    color: #B42318;
}

.welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
}

.welcome h1,
.page-title h1,
.tool-hero h1,
.editor-heading h1,
.admin-heading h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 850;
}

.welcome p,
.page-title p,
.tool-hero p,
.editor-heading p,
.admin-heading p {
    margin: 8px 0 0;
    color: #4B5565;
    font-size: 15px;
}

.hero-panel {
    position: relative;
    min-height: 372px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(420px, 1fr) 520px;
    align-items: center;
    padding: 56px 62px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 84% 8%, rgba(255, 255, 255, 0.16) 0 120px, transparent 121px),
        linear-gradient(116deg, #F22D43 0%, #DE2037 48%, #E84556 100%);
    color: #fff;
    box-shadow: 0 22px 40px rgba(239, 51, 72, 0.16);
}

.hero-panel::before,
.hero-panel::after {
    content: "";
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.hero-panel::before {
    width: 720px;
    height: 420px;
    left: 500px;
    top: 120px;
    transform: rotate(-18deg);
}

.hero-panel::after {
    width: 820px;
    height: 520px;
    right: -120px;
    top: -340px;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-copy h2 {
    margin: 0;
    max-width: 620px;
    font-size: 39px;
    line-height: 1.3;
    font-weight: 860;
}

.hero-copy p {
    margin: 18px 0 52px;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    gap: 28px;
}

.white-button {
    min-width: 205px;
    padding: 0 28px;
    background: #fff;
    color: var(--primary);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
}

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

.ghost-button {
    min-width: 198px;
    padding: 0 28px;
    border-color: rgba(255, 255, 255, 0.82);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.outline-red {
    min-height: 42px;
    padding: 0 18px;
    border-color: color-mix(in srgb, var(--primary) 65%, #fff);
    color: var(--primary);
    background: #fff;
}

.hero-art {
    position: relative;
    z-index: 2;
    height: 320px;
}

.paper-preview {
    position: absolute;
    top: 10px;
    right: 126px;
    width: 278px;
    height: 342px;
    background: #fff;
    border-radius: 7px 7px 0 0;
    box-shadow: 0 22px 44px rgba(16, 24, 40, 0.18);
}

.paper-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(247, 249, 253, 0.7));
    pointer-events: none;
}

.fold {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #E5EAF2, #fff 52%);
    clip-path: polygon(0 0, 100% 100%, 100% 0);
    border-radius: 0 7px 0 7px;
}

.paper-line {
    position: absolute;
    left: 126px;
    width: 108px;
    height: 6px;
    border-radius: 10px;
    background: #E8EBF0;
}

.paper-line.short {
    top: 30px;
    left: 34px;
    width: 70px;
}

.paper-line:nth-of-type(3) {
    top: 50px;
    left: 34px;
    width: 155px;
}

.paper-line.wide {
    top: 115px;
    width: 122px;
}

.paper-line:nth-of-type(6) {
    top: 146px;
    width: 130px;
}

.paper-line:nth-of-type(7) {
    top: 178px;
    width: 126px;
}

.paper-media {
    position: absolute;
    left: 34px;
    top: 82px;
    width: 72px;
    height: 62px;
    border-radius: 4px;
    background:
        radial-gradient(circle at 58% 28%, #EF3348 0 7px, transparent 8px),
        linear-gradient(135deg, transparent 52%, #EF3348 53%),
        linear-gradient(45deg, #EF3348 0 40%, #FFC4C9 41%);
    opacity: 0.92;
}

.text-box {
    position: absolute;
    left: 32px;
    top: 166px;
    width: 74px;
    height: 70px;
    display: grid;
    place-items: center;
    color: #1F2937;
    font-family: Georgia, serif;
    font-size: 39px;
    border: 2px dashed #4F8EF7;
}

.signature-box {
    position: absolute;
    right: 32px;
    bottom: 30px;
    width: 122px;
    height: 50px;
    display: grid;
    place-items: center;
    color: #111827;
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: 28px;
    border: 1px dashed #FF6B79;
    background: #FFF3F4;
    transform: rotate(-1deg);
}

.hero-tool {
    position: absolute;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 6px;
    color: #fff;
    box-shadow: 0 10px 25px rgba(16, 24, 40, 0.18);
}

.hero-tool-pencil {
    left: 48px;
    top: 86px;
    background: linear-gradient(145deg, #4F8EF7, #236DE1);
}

.hero-tool-grid {
    right: 78px;
    top: 74px;
    background: linear-gradient(145deg, #64D27A, #35B35D);
}

.hero-tool-sign {
    left: 32px;
    bottom: 66px;
    background: linear-gradient(145deg, #AF8BFF, #6F5AF2);
}

.hero-tool-image {
    right: 0;
    bottom: 86px;
    background: linear-gradient(145deg, #FFB35E, #F97316);
}

.section-heading,
.documents-heading,
.editor-heading,
.admin-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.section-heading {
    margin: 32px 0 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 850;
}

.section-heading a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #344054;
    font-weight: 700;
}

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

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

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

.tool-card {
    position: relative;
    min-height: 210px;
    padding: 24px 24px 22px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.07);
}

.tool-card.large {
    min-height: 190px;
}

.tool-card:hover {
    border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
    box-shadow: 0 16px 32px rgba(16, 24, 40, 0.1);
}

.tool-icon {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 6px;
    color: #fff;
    margin-bottom: 20px;
}

.tool-icon .icon {
    width: 25px;
    height: 25px;
}

.tool-icon.jumbo {
    width: 62px;
    height: 62px;
    margin: 0;
}

.color-blue {
    background: linear-gradient(145deg, #55A5FF, #2F80ED);
}

.color-purple {
    background: linear-gradient(145deg, #A78BFA, #7C3AED);
}

.color-green {
    background: linear-gradient(145deg, #7BD991, #4FB96D);
}

.color-orange {
    background: linear-gradient(145deg, #FFAA63, #EF7E36);
}

.color-indigo {
    background: linear-gradient(145deg, #8B9BFF, #6272F2);
}

.color-violet {
    background: linear-gradient(145deg, #B181FF, #9057F8);
}

.color-pink {
    background: linear-gradient(145deg, #FF6F96, #EF4776);
}

.color-sky {
    background: linear-gradient(145deg, #57B8FF, #228AEC);
}

.color-mint {
    background: linear-gradient(145deg, #69D9B5, #27B987);
}

.tool-card strong {
    margin-bottom: 8px;
    font-size: 17px;
    color: #101828;
}

.tool-card p {
    margin: 0;
    color: #667085;
    line-height: 1.4;
}

.card-arrow {
    position: absolute;
    right: 22px;
    bottom: 20px;
    color: #667085;
}

.documents-table {
    overflow: visible;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.table-row {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) 190px 300px 110px;
    align-items: center;
    min-height: 54px;
    padding: 0 22px;
    border-bottom: 1px solid var(--border);
    color: #667085;
    font-size: 14px;
}

.table-row:last-child {
    border-bottom: 0;
}

.table-head {
    min-height: 50px;
    color: #667085;
    font-size: 13px;
}

.doc-name {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #344054;
    font-weight: 650;
}

.doc-name a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-chip {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 5px;
    color: #fff;
    background: linear-gradient(145deg, #FF7884, var(--primary));
}

.pdf-chip .icon {
    width: 16px;
    height: 16px;
}

.mini-star,
.mini-lock {
    display: inline-flex;
    color: #F59E0B;
}

.mini-lock {
    color: #667085;
}

.mini-star .icon,
.mini-lock .icon {
    width: 15px;
    height: 15px;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.empty-state {
    padding: 32px;
    color: var(--muted);
    text-align: center;
}

.ad-slot {
    min-height: 86px;
    margin: 22px 0;
    display: grid;
    place-items: center;
    padding: 12px;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    color: #98A2B3;
    background: rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.sidebar-ad {
    min-height: 180px;
    margin-top: 24px;
}

.ad-slot-shell {
    width: 100%;
    display: grid;
    place-items: center;
    gap: 12px;
}

.ad-slot-shell-native {
    min-height: 250px;
}

.ad-slot-shell-smartlink {
    min-height: 58px;
}

.ad-device {
    display: none;
    max-width: 100%;
}

.ad-device script {
    max-width: 100%;
}

.ad-embed {
    display: grid;
    place-items: center;
    max-width: 100%;
}

.smartlink-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 12px 24px rgba(239, 51, 72, 0.24);
}

.mobile-only {
    display: block;
}

.tablet-only,
.desktop-only,
.widescreen-only {
    display: none;
}

.page-title {
    margin: 22px 0 24px;
}

.plan-label {
    color: var(--accent);
    font-weight: 800;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.44);
    z-index: 100;
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-card {
    position: relative;
    width: min(520px, 100%);
    padding: 30px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.modal-card h2 {
    margin: 0;
    font-size: 26px;
}

.modal-card p {
    color: var(--muted);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #F2F4F7;
    color: #475467;
}

.drop-zone {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 190px;
    padding: 24px;
    border: 2px dashed #D0D5DD;
    border-radius: 8px;
    color: #667085;
    text-align: center;
}

.drop-zone.dragging {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 6%, #fff);
}

.drop-zone input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.drop-title {
    color: #101828;
    font-weight: 800;
}

.primary-button {
    min-height: 50px;
    padding: 0 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #F24152);
    box-shadow: 0 10px 20px rgba(239, 51, 72, 0.18);
}

.primary-button.compact {
    min-height: 40px;
    padding: 0 16px;
}

.upload-form,
.stacked-form {
    display: grid;
    gap: 18px;
}

.tool-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 20px 0 24px;
}

.tool-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.tool-form-card,
.tool-side-card,
.settings-card,
.login-card,
.installer-card,
.unlock-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.06);
}

.tool-form-card,
.tool-side-card,
.settings-card {
    padding: 24px;
}

.tool-upload-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
    border-radius: 8px;
    background: color-mix(in srgb, var(--primary) 4%, #fff);
}

.tool-upload-strip strong {
    display: block;
    color: #101828;
}

.tool-upload-strip p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 14px;
}

.tool-side-card h2,
.settings-card h2 {
    margin: 0 0 14px;
}

.tool-side-card p,
.muted-copy {
    color: var(--muted);
    line-height: 1.5;
}

.field-group {
    margin: 0;
    padding: 0;
    border: 0;
}

.field-group legend,
.field span {
    display: block;
    margin-bottom: 9px;
    color: #344054;
    font-weight: 780;
}

.doc-picker {
    display: grid;
    gap: 10px;
}

.doc-picker label {
    display: grid;
    grid-template-columns: 18px 24px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.doc-picker label:has(input:checked) {
    border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
    background: color-mix(in srgb, var(--primary) 5%, #fff);
}

.doc-picker small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #D0D5DD;
    border-radius: 7px;
    background: #fff;
    color: #101828;
    outline: 0;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 13%, transparent);
}

.form-grid {
    display: grid;
    gap: 18px;
}

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

.empty-tool {
    min-height: 380px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    color: var(--muted);
    text-align: center;
}

.empty-tool .icon {
    width: 52px;
    height: 52px;
    color: var(--primary);
}

.capability-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.capability-list span {
    padding: 7px 10px;
    border: 1px solid #F2C94C;
    border-radius: 999px;
    color: #B54708;
    background: #FFFAEB;
    font-size: 12px;
    font-weight: 800;
}

.capability-list span.ok {
    border-color: #ABEFC6;
    color: #067647;
    background: #ECFDF3;
}

.capability-list.block {
    display: grid;
}

.editor-heading {
    margin: 20px 0 18px;
}

.editor-shell {
    display: grid;
    gap: 14px;
}

.editor-form-shell {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.editor-workbench {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.text-editor-panel {
    min-width: 0;
    max-height: calc(100vh - 210px);
    overflow: auto;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

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

.panel-title h2 {
    margin: 0;
    font-size: 18px;
}

.panel-title span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.text-editor-panel p {
    margin: 8px 0 14px;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

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

.editable-line {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #F8FAFC;
}

.editable-line.deleted {
    border-color: #FECDCA;
    background: #FEF3F2;
}

.editable-line-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.editable-line-head strong {
    color: #344054;
    font-size: 13px;
}

.text-delete-button {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #FECDCA;
    border-radius: 7px;
    background: #fff;
    color: #B42318;
    font-size: 12px;
    font-weight: 800;
}

.editable-line.deleted .text-delete-button {
    border-color: #ABEFC6;
    color: #067647;
}

.editable-line textarea {
    width: 100%;
    min-height: 62px;
    padding: 9px;
    border: 1px solid #D0D5DD;
    border-radius: 7px;
    resize: vertical;
    color: #101828;
    background: #fff;
}

.editable-line.deleted textarea {
    color: #98A2B3;
    text-decoration: line-through;
    background: #FFF7F6;
}

.tool-pill {
    min-height: 40px;
    padding: 0 14px;
    border-color: var(--border);
    background: #fff;
    color: #344054;
}

.tool-pill.muted {
    color: var(--muted);
}

.editor-stage {
    position: relative;
    height: calc(100vh - 210px);
    min-height: 640px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #E8ECF3;
}

.pdf-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.annotation-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.annotation-box {
    position: absolute;
    min-width: 120px;
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 8px 10px;
    border: 2px dashed #4F8EF7;
    background: rgba(255, 255, 255, 0.82);
    color: #111827;
    pointer-events: auto;
    user-select: none;
}

.annotation-remove {
    position: absolute;
    top: -11px;
    right: -11px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 13px;
    line-height: 1;
}

.annotation-box.signature {
    border-color: #FF6B79;
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: 24px;
}

.annotation-box.link {
    border-color: #60A5FA;
    color: #1D4ED8;
    text-decoration: underline;
}

.annotation-box.image {
    border-color: #F97316;
    color: #C2410C;
}

.annotation-box.erase {
    border-color: #EF4444;
    background: #fff;
    color: #B42318;
    resize: both;
    overflow: auto;
}

.annotation-box:focus {
    outline: 3px solid rgba(79, 142, 247, 0.24);
}

.admin-heading {
    margin: 20px 0 24px;
}

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

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 90px;
}

.settings-card.wide {
    grid-column: 1 / -1;
}

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

.color-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px;
    align-items: center;
    gap: 12px;
    color: #344054;
    font-weight: 700;
}

.color-field input {
    width: 56px;
    height: 42px;
    padding: 0;
    border: 1px solid #D0D5DD;
    border-radius: 7px;
    background: transparent;
}

.save-bar {
    position: fixed;
    right: 34px;
    bottom: 22px;
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.14);
    z-index: 30;
}

.admin-login-page,
.installer-page,
.unlock-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
    background: var(--app-bg);
}

.login-card,
.installer-card,
.unlock-card {
    width: min(620px, 100%);
    padding: 32px;
    text-align: center;
}

.login-card h1,
.installer-card h1,
.unlock-card h1 {
    margin: 24px 0 10px;
}

.login-card p,
.installer-card p,
.unlock-card p {
    color: var(--muted);
}

.install-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
    text-align: left;
}

.install-checks div {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #F8FAFC;
}

.install-checks div.ok {
    border-color: #ABEFC6;
    background: #ECFDF3;
}

.install-checks div.warn {
    border-color: #FECDCA;
    background: #FEF3F2;
}

.install-checks div.optional {
    border-color: #FEC84B;
    background: #FFFAEB;
}

.install-checks span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.install-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.installer-note {
    margin-top: 24px;
    font-size: 14px;
}

.unlock-card .icon {
    width: 54px;
    height: 54px;
    color: var(--primary);
}

@media (max-width: 1350px) {
    .app-shell {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .main-area {
        padding-left: 30px;
    }

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

    .hero-panel {
        grid-template-columns: 1fr;
    }

    .hero-art {
        display: none;
    }
}

@media (max-width: 900px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .main-area {
        padding: 18px;
    }

    .topbar {
        justify-content: space-between;
        gap: 10px;
    }

    .profile-button span:not(.avatar) {
        display: none;
    }

    .hero-panel {
        min-height: 360px;
        padding: 32px 24px;
    }

    .hero-copy h2 {
        font-size: 30px;
    }

    .hero-actions,
    .tool-workspace,
    .admin-grid,
    .form-grid.two,
    .install-checks {
        grid-template-columns: 1fr;
        display: grid;
    }

    .tools-grid,
    .all-tools-grid {
        grid-template-columns: 1fr;
    }

    .table-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
    }

    .table-head {
        display: none;
    }

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

    .save-bar {
        left: 18px;
        right: 18px;
        justify-content: space-between;
    }

    .editor-stage {
        height: 620px;
    }
}

.mobile-menu-button,
.sidebar-close {
    display: none;
}

.sidebar-backdrop {
    display: none;
}

.site-footer {
    margin-top: 34px;
    padding: 22px 0 6px;
    border-top: 1px solid var(--border);
    color: #667085;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 10px;
}

.footer-links a {
    color: #344054;
    font-weight: 700;
}

.site-footer p {
    margin: 0;
    font-size: 14px;
}

.static-page {
    max-width: 900px;
    margin: 22px 0;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.06);
}

.static-page h1 {
    margin: 0 0 18px;
    font-size: 30px;
}

.static-content {
    color: #475467;
    line-height: 1.7;
}

.editor-ad-panel:empty {
    display: none;
}

.editor-shell:has(.editor-ad-panel:not(:empty)) {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}

.editor-shell:has(.editor-ad-panel:not(:empty)) .editor-toolbar {
    grid-column: 1 / -1;
}

.editor-ad-panel {
    min-width: 0;
}

.admin-shell {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    min-height: 100vh;
    background: #F6F8FC;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 20px 14px;
    background: #111827;
    color: #fff;
}

.admin-brand {
    padding: 6px 8px 18px;
    font-size: 22px;
}

.admin-nav {
    display: grid;
    gap: 4px;
    margin-top: 12px;
}

.admin-nav a,
.admin-sidebar-actions a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    font-weight: 700;
}

.admin-nav a.active,
.admin-nav a:hover,
.admin-sidebar-actions a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.admin-nav .icon,
.admin-sidebar-actions .icon {
    width: 18px;
    height: 18px;
}

.admin-sidebar-actions {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 18px;
    display: grid;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-main {
    min-width: 0;
    padding: 22px;
}

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

.admin-topline h1 {
    margin: 0;
    font-size: 24px;
}

.admin-topline p {
    margin: 4px 0 0;
    color: #667085;
}

.admin-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.admin-stat,
.admin-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.05);
}

.admin-stat {
    padding: 16px;
}

.admin-stat span {
    display: block;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 26px;
}

.admin-card {
    padding: 18px;
}

.admin-card h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.compact-card {
    max-width: 900px;
}

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

.admin-save-row {
    position: sticky;
    bottom: 14px;
    display: flex;
    justify-content: flex-end;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
}

.compact-form {
    text-align: left;
}

.compact-login {
    max-width: 460px;
}

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

.page-editor-list,
.ad-demo-grid {
    display: grid;
    gap: 12px;
}

.page-editor {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #F8FAFC;
}

.page-editor-head,
.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.page-editor-head label,
.switch-field {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #475467;
    font-size: 13px;
    font-weight: 700;
}

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

.admin-head-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-settings-grid {
    margin-bottom: 18px;
}

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

.ad-placement-grid,
.ad-slot-config-grid,
.admin-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.ad-admin-card,
.admin-tool-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #E6EAF2;
    border-radius: 16px;
    background: linear-gradient(180deg, #FFFFFF, #FBFCFE);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.ad-admin-card-head,
.tool-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.ad-admin-card-head strong,
.tool-meta strong {
    display: block;
    margin: 0;
    color: #101828;
    font-size: 18px;
    line-height: 1.2;
}

.ad-admin-card-head p,
.tool-meta small {
    display: block;
    margin: 6px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

.ad-admin-card .field span,
.admin-tool-card .field span {
    color: #344054;
}

.ad-admin-card-slot .demo-ad-box {
    min-height: 92px;
}

.demo-ad-box {
    min-height: 76px;
    display: grid;
    place-items: center;
    border: 1px dashed #CBD5E1;
    border-radius: 14px;
    background: linear-gradient(135deg, #F8FAFC, #EEF4FF);
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.admin-tools-grid {
    display: grid;
    gap: 16px;
}

.tool-info {
    justify-content: flex-start;
    gap: 16px;
}

.tool-info .tool-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.tool-info .tool-icon .icon {
    width: 24px;
    height: 24px;
    color: #fff;
}

.tool-info .color-blue { background: linear-gradient(135deg, #60A5FA, #2563EB); }
.tool-info .color-purple { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.tool-info .color-green { background: linear-gradient(135deg, #4ADE80, #16A34A); }
.tool-info .color-orange { background: linear-gradient(135deg, #FB923C, #EA580C); }
.tool-info .color-indigo { background: linear-gradient(135deg, #818CF8, #4F46E5); }
.tool-info .color-violet { background: linear-gradient(135deg, #C084FC, #9333EA); }
.tool-info .color-pink { background: linear-gradient(135deg, #F9A8D4, #DB2777); }
.tool-info .color-sky { background: linear-gradient(135deg, #7DD3FC, #0284C7); }
.tool-info .color-mint { background: linear-gradient(135deg, #6EE7B7, #059669); }

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

.tool-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #EDF1F7;
}

.download-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #D6DAE3;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.download-tool-btn:hover {
    border-color: #BFC7D6;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.demo-ad-box {
    min-height: 76px;
    display: grid;
    place-items: center;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    background: repeating-linear-gradient(135deg, #F8FAFC, #F8FAFC 10px, #EEF2F7 10px, #EEF2F7 20px);
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 1180px) {
    .admin-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .compact-colors,
    .ad-demo-grid,
    .admin-tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(320px, 86vw);
        height: 100dvh;
        transform: translateX(-105%);
        transition: transform 180ms ease;
        z-index: 120;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: grid;
        position: absolute;
        top: 14px;
        right: 14px;
        width: 34px;
        height: 34px;
        place-items: center;
        border: 0;
        border-radius: 7px;
        background: #F2F4F7;
        color: #344054;
    }

    .sidebar-backdrop.open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.46);
        z-index: 110;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 40px;
        padding: 0 12px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: #fff;
        color: #344054;
        font-weight: 800;
    }

    .hero-copy h2 {
        font-size: 28px;
        line-height: 1.22;
    }

    .hero-copy p {
        margin-bottom: 28px;
        font-size: 16px;
    }

    .hero-actions .white-button,
    .hero-actions .ghost-button {
        width: 100%;
        min-width: 0;
    }

    .documents-table {
        overflow: hidden;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

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

    .admin-sidebar-actions {
        position: static;
        margin-top: 14px;
    }

    .admin-main {
        padding: 16px;
    }

    .admin-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-overview-grid {
        grid-template-columns: 1fr;
    }

    .page-editor-head,
    .admin-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-head-actions,
    .tool-actions,
    .ad-admin-card-head {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
    }

    .tool-upload-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .editor-shell:has(.editor-ad-panel:not(:empty)) {
        grid-template-columns: 1fr;
    }

    .editor-workbench {
        grid-template-columns: 1fr;
    }

    .text-editor-panel {
        max-height: none;
    }
}

@media (max-width: 560px) {
    .main-area {
        padding: 14px;
    }

    .welcome h1,
    .page-title h1,
    .tool-hero h1,
    .editor-heading h1 {
        font-size: 22px;
    }

    .hero-panel {
        min-height: 0;
        padding: 24px 18px;
    }

    .hero-copy h2 {
        font-size: 24px;
    }

    .section-heading,
    .documents-heading,
    .editor-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .tool-card {
        min-height: 180px;
    }

    .modal-card,
    .login-card,
    .installer-card,
    .unlock-card {
        padding: 22px;
    }

    .admin-nav {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
    }
}

/* ── Converter / Home landing page styles ── */
.conv-page          { min-height: 100vh; background: var(--app-bg); }
.conv-topbar        { background: var(--sidebar-bg); border-bottom: 1px solid var(--border); padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.conv-brand         { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--primary); text-decoration: none; }
.conv-brand svg     { width: 28px; height: 28px; }
.conv-topbar-links  { display: flex; gap: 20px; flex-wrap: wrap; }
.conv-topbar-links a { color: var(--muted); text-decoration: none; font-size: .95rem; transition: color .2s; }
.conv-topbar-links a:hover { color: var(--text); }
.conv-topbar-actions { display: flex; gap: 10px; align-items: center; }
.conv-my-files-btn  { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; background: var(--primary); color: #fff; border-radius: 8px; font-weight: 700; font-size: .9rem; text-decoration: none; transition: background .2s; }
.conv-my-files-btn:hover { background: var(--primary-dark); }
.conv-my-files-btn svg { width: 17px; height: 17px; }

.conv-hero          { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%); color: #fff; text-align: center; padding: 80px 24px 100px; position: relative; overflow: hidden; }
.conv-hero::before  { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.conv-hero h1       { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 20px; position: relative; }
.conv-hero h1 em    { font-style: normal; background: linear-gradient(90deg,#a78bfa,#60a5fa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.conv-hero p        { font-size: 1.2rem; opacity: .85; max-width: 600px; margin: 0 auto 36px; position: relative; }
.conv-hero-upload   { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #1e1b4b; padding: 16px 32px; border-radius: 50px; font-weight: 700; font-size: 1.05rem; text-decoration: none; box-shadow: 0 8px 30px rgba(0,0,0,.3); transition: transform .2s, box-shadow .2s; cursor: pointer; border: none; position: relative; }
.conv-hero-upload:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.conv-hero-upload svg { width: 22px; height: 22px; color: var(--primary); }
.conv-hero-stats    { display: flex; justify-content: center; gap: 48px; margin-top: 56px; position: relative; }
.conv-stat          { text-align: center; }
.conv-stat strong   { display: block; font-size: 2rem; font-weight: 800; }
.conv-stat span     { font-size: .9rem; opacity: .7; }

.conv-body          { max-width: 1200px; margin: 0 auto; padding: 60px 24px 80px; }
.conv-search        { display: flex; max-width: 520px; margin: 0 auto 60px; background: #fff; border: 2px solid var(--border); border-radius: 50px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.conv-search input  { flex: 1; border: none; outline: none; padding: 14px 20px; font-size: 1rem; background: transparent; }
.conv-search-btn    { padding: 12px 24px; background: var(--primary); color: #fff; border: none; cursor: pointer; font-weight: 600; font-size: .95rem; transition: background .2s; }
.conv-search-btn:hover { background: var(--primary-dark); }

.conv-group         { margin-bottom: 60px; }
.conv-group-head    { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 2px solid var(--border); }
.conv-group-icon    { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #f3f4f6; flex-shrink: 0; }
.conv-group-icon svg { width: 24px; height: 24px; }
.conv-group-head h2 { font-size: 1.4rem; font-weight: 700; color: var(--text); margin: 0; }
.conv-group-head p  { color: var(--muted); margin: 2px 0 0; font-size: .95rem; }
.conv-badge         { margin-left: auto; background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600; }

.conv-tools-grid    { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.conv-tool-card     { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px 22px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 14px; transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden; }
.conv-tool-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.conv-tool-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); border-color: transparent; }
.conv-tool-card:hover::after { transform: scaleX(1); }
.conv-tool-card .ct-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.conv-tool-card .ct-icon svg { width: 26px; height: 26px; }
.conv-tool-card strong { font-size: 1.05rem; font-weight: 700; display: block; }
.conv-tool-card p   { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.5; }
.conv-tool-card .ct-arrow { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--primary); }
.conv-tool-card .ct-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.conv-tool-card:hover .ct-arrow svg { transform: translateX(4px); }
.conv-tool-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.conv-tool-card.featured::before { content: 'Popular'; position: absolute; top: 14px; right: 14px; background: var(--primary); color: #fff; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700; }

/* Color tokens for ct-icon */
.ct-purple { background: #f3e8ff; }  .ct-purple svg { color: #7c3aed; }
.ct-blue   { background: #dbeafe; }  .ct-blue   svg { color: #2563eb; }
.ct-sky    { background: #e0f2fe; }  .ct-sky    svg { color: #0284c7; }
.ct-orange { background: #ffedd5; }  .ct-orange svg { color: #ea580c; }
.ct-green  { background: #dcfce7; }  .ct-green  svg { color: #16a34a; }
.ct-teal   { background: #ccfbf1; }  .ct-teal   svg { color: #0d9488; }
.ct-violet { background: #ede9fe; }  .ct-violet svg { color: #7c3aed; }
.ct-pink   { background: #fce7f3; }  .ct-pink   svg { color: #db2777; }
.ct-cyan   { background: #cffafe; }  .ct-cyan   svg { color: #0891b2; }
.ct-mint   { background: #d1fae5; }  .ct-mint   svg { color: #059669; }
.ct-indigo { background: #e0e7ff; }  .ct-indigo svg { color: #4338ca; }

.conv-popular-tag   { display: inline-block; background: #fef3c7; color: #92400e; padding: 2px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700; margin-bottom: 6px; }

.conv-recent-section { margin-top: 20px; }
.conv-recent-section h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; color: var(--text); }

.conv-seo-block     { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 40px; margin-top: 60px; }
.conv-seo-block h2  { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.conv-seo-block p   { color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.conv-seo-cols      { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; margin-top: 28px; }
.conv-seo-col h3    { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.conv-seo-col ul    { margin: 0; padding-left: 18px; color: var(--muted); font-size: .9rem; line-height: 1.8; }

.conv-footer        { text-align: center; padding: 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.conv-footer a      { color: var(--text); font-weight: 600; }

@media (max-width: 768px) {
    .conv-topbar        { padding: 12px 16px; flex-wrap: wrap; }
    .conv-topbar-links  { display: none; }
    .conv-hero          { padding: 50px 16px 60px; }
    .conv-hero-stats    { gap: 24px; }
    .conv-stat strong   { font-size: 1.4rem; }
    .conv-tools-grid    { grid-template-columns: 1fr 1fr; }
    .conv-body          { padding: 40px 16px 60px; }
    .conv-seo-block     { padding: 24px; }
}
@media (max-width: 420px) {
    .conv-tools-grid    { grid-template-columns: 1fr; }
}

@media (min-width: 561px) {
    .mobile-only {
        display: none;
    }

    .tablet-only {
        display: block;
    }
}

@media (min-width: 1024px) {
    .tablet-only {
        display: none;
    }

    .desktop-only {
        display: block;
    }
}

@media (min-width: 1400px) {
    .desktop-only {
        display: none;
    }

    .widescreen-only {
        display: block;
    }
}
