:root { --accent: #e5322d; --surface: #f5f5fa; --text: #161616; --muted: #47474f; --border: #d6d6df; --button: #ffc233; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--text); font: 16px/1.25 system-ui, sans-serif; }
a { color: var(--accent); }
.site-header { position: relative; z-index: 20; display: flex; justify-content: space-between; gap: 24px; padding: 20px max(20px, calc((100% - 1080px) / 2)); background: white; border-bottom: 1px solid var(--border); }
.mobile-nav-toggle, .mobile-signup, .mobile-nav-backdrop, .mobile-nav-drawer { display: none; }
.site-header-home { align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; text-decoration: none; white-space: nowrap; }
.site-brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: white; font-size: .72rem; }
.home-nav, .site-actions { display: flex; align-items: center; gap: 16px; }
.home-nav { flex: 1; justify-content: center; }
.home-nav > a, .site-actions > a { color: var(--muted); font-size: .86rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.home-nav > a:hover, .site-actions > a:hover { color: var(--accent); }
.site-signup { padding: 10px 16px; border-radius: 999px; background: var(--accent); color: white !important; }
.nav-menu { position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; color: var(--muted); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { display: inline-block; margin-left: 5px; content: '\25BE'; color: var(--accent); font-size: .68rem; }
.nav-menu-panel { position: absolute; z-index: 30; top: calc(100% + 14px); left: 50%; display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 5px; width: 430px; padding: 10px; transform: translateX(-50%); border: 1px solid var(--border); border-radius: 12px; background: white; box-shadow: 0 16px 40px rgba(22,22,22,.14); }
.nav-menu-wide { width: 360px; }
.nav-menu-panel a { display: grid; gap: 4px; padding: 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.nav-menu-panel a:hover { background: #fff1f0; }
.nav-menu-panel strong { font-size: .84rem; }
.nav-menu-panel span { color: var(--muted); font-size: .74rem; line-height: 1.35; }
.site-footer { display: block; padding: 34px max(20px, calc((100% - 1080px) / 2)) 18px; background: white; border-top: 1px solid var(--border); color: var(--muted); }
.site-footer-inner { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(140px, 1fr)); gap: 32px; max-width: 1080px; margin: 0 auto; }
.site-footer-brand a { color: var(--text); font-weight: 800; text-decoration: none; }
.site-footer-brand p { max-width: 260px; margin: 10px 0 0; font-size: .88rem; }
.site-footer-column { display: grid; align-content: start; gap: 8px; }
.site-footer-column h2 { margin: 0 0 5px; color: var(--text); font-size: .82rem; }
.site-footer-column a { color: var(--muted); font-size: .86rem; text-decoration: none; }
.site-footer-column a:hover { color: var(--accent); }
.site-footer-bottom { max-width: 1080px; margin: 28px auto 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: .8rem; }
.grid-launcher { position: relative; }
.grid-launcher-button { display: grid; place-items: center; width: 34px; height: 34px; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 9px; background: white; color: var(--accent); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.grid-launcher-button:hover, .grid-launcher-button[aria-expanded="true"] { border-color: var(--accent); background: #fff1f0; }
.grid-menu { position: absolute; z-index: 40; top: calc(100% + 12px); right: 0; display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 18px; width: min(720px, 88vw); padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: white; box-shadow: 0 18px 45px rgba(22,22,22,.16); }
.grid-menu[hidden] { display: none; }
.grid-menu-column { display: grid; align-content: start; gap: 4px; }
.grid-menu-column h2 { margin: 0 0 8px; color: var(--accent); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.grid-menu-column a { display: grid; gap: 3px; padding: 9px; border-radius: 8px; color: var(--text); text-decoration: none; }
.grid-menu-column a:hover { background: #fff1f0; }
.grid-menu-column strong { font-size: .82rem; }
.grid-menu-column span { color: var(--muted); font-size: .73rem; line-height: 1.35; }
@media (max-width: 760px) { .grid-menu { position: fixed; top: 126px; right: 12px; left: 12px; grid-template-columns: 1fr; width: auto; max-height: 72vh; overflow-y: auto; } }
.success { color: #287a50; }
.public-page { max-width: 820px; margin: 0 auto; }
.public-page > h1 { max-width: 700px; margin: 0 0 16px; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; }
.public-page > p:not(.home-kicker):not(.legal-note) { max-width: 700px; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.public-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.public-card { max-width: none; padding: 22px; border-radius: 12px; }
.public-card h2 { margin-top: 0; font-size: 1.1rem; }
.public-card p { color: var(--muted); line-height: 1.5; }
.contact-grid { grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr); }
.contact-grid a { overflow-wrap: anywhere; word-break: break-word; }
textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; resize: vertical; }
.legal-page h2 { margin-top: 30px; font-size: 1.15rem; }
.legal-page p { color: var(--muted); line-height: 1.6; }
.legal-note { padding: 14px 16px; border-left: 4px solid var(--accent); background: #fff1f0; color: var(--text) !important; font-size: .9rem !important; }
.faq-list { display: grid; gap: 10px; margin-top: 28px; }
.faq-list details { padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: white; }
.faq-list summary { cursor: pointer; font-weight: 700; }
.faq-list p { margin: 12px 0 0; color: var(--muted); line-height: 1.5; }
.button-link { display: inline-block; padding: 12px 18px; border-radius: 8px; background: var(--accent); color: white; font-weight: 700; text-decoration: none; }
.back-navigation { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: white; color: var(--text); font-weight: 700; text-decoration: none; }
.back-navigation::before { content: '\2190'; color: var(--accent); font-size: 1.05em; line-height: 1; }
.back-navigation:hover { border-color: var(--accent); background: #fff1f0; color: var(--accent); }
.support-chat-bubble { position: fixed; z-index: 90; right: 22px; bottom: 22px; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--accent); color: white; font-size: 1.25rem; font-weight: 800; box-shadow: 0 10px 28px rgba(229,50,45,.3); cursor: pointer; }
.support-chat-panel { position: fixed; z-index: 91; right: 22px; bottom: 86px; display: grid; grid-template-rows: auto 1fr auto auto; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 112px)); overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: white; box-shadow: 0 18px 55px rgba(22,22,22,.2); }
.support-chat-panel[hidden] { display: none; }
.support-chat-panel header { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; background: var(--accent); color: white; }
.support-chat-panel header div { display: grid; gap: 3px; }
.support-chat-panel header small { color: #ffd9d7; }
.support-chat-close { border: 0; background: transparent; color: white; font-size: 1.5rem; cursor: pointer; }
.support-chat-messages { display: grid; align-content: start; gap: 8px; overflow: auto; padding: 15px; background: #fbfbfd; }
.support-chat-messages p { margin: 0; }
.support-chat-intro { color: var(--muted); font-size: .88rem; }
.support-chat-message { max-width: 88%; padding: 9px 11px; border-radius: 10px; line-height: 1.4; white-space: pre-wrap; }
.support-chat-message.user { justify-self: end; background: #fff1f0; }
.support-chat-message.assistant, .support-chat-message.error, .support-chat-message.pending { justify-self: start; background: white; border: 1px solid var(--border); }
.support-chat-message.error { color: var(--accent); }
.support-chat-actions { padding: 8px 15px 0; background: white; }
.support-escalate { width: 100%; padding: 8px; border: 1px solid var(--accent); border-radius: 7px; background: white; color: var(--accent); cursor: pointer; }
.support-chat-panel form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: white; }
.support-chat-panel textarea { min-height: 44px; resize: none; }
.support-chat-panel form button { align-self: end; margin: 0; padding: 11px 14px; }
.support-usage-split { display: flex; gap: 14px; flex-wrap: wrap; }
.support-usage-split div { display: grid; gap: 4px; min-width: 160px; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: #fbfbfd; }
.support-usage-split span { color: var(--muted); font-size: .85rem; }
.support-page-heading, .support-ticket-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.support-page-heading { margin-bottom: 24px; }
.support-page-heading h1, .support-ticket-heading h1 { margin: 0 0 8px; }
.support-page-heading p:not(.home-kicker), .support-ticket-heading p:not(.home-kicker) { color: var(--muted); }
.support-tickets-page .panel, .support-ticket-page .panel { max-width: none; }
.support-tickets-page form, .support-ticket-page form { max-width: 760px; }
.support-ticket-list { margin-top: 28px; }
.support-ticket-list h2 { font-size: 1.2rem; }
.support-ticket-table-wrap { overflow-x: auto; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: white; }
.account-table td small { display: block; margin-top: 4px; color: var(--muted); }
.ticket-status { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #f1f1f5; color: var(--muted); font-size: .75rem; font-weight: 800; white-space: nowrap; }
.ticket-status-open { background: #fff1f0; color: var(--accent); }
.ticket-status-in_progress { background: #fff6d9; color: #765800; }
.ticket-status-resolved { background: #e8f6ed; color: #287a50; }
.ticket-status-closed { background: #e9e9ee; color: #666673; }
.ticket-thread { display: grid; gap: 12px; margin: 24px 0; }
.ticket-message { max-width: 760px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: white; }
.ticket-message-user { justify-self: end; background: #fff8e5; }
.ticket-message header { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.ticket-message time { color: var(--muted); font-size: .78rem; }
.ticket-message p { margin: 0; line-height: 1.5; white-space: normal; }
.ticket-message a { display: inline-block; margin-top: 12px; font-weight: 700; }
.ticket-closed-note { margin-top: 18px; color: var(--muted); }
.ticket-filter { display: flex; align-items: end; gap: 10px; max-width: 520px; margin: 20px 0; }
.ticket-filter label { margin: 0; }
.ticket-filter select, .ticket-status-form select { width: auto; min-width: 160px; }
.ticket-filter button, .ticket-status-form button { margin: 0; }
.admin-ticket-layout { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.5fr); gap: 18px; align-items: start; }
.admin-ticket-list { display: grid; gap: 8px; align-content: start; }
.admin-ticket-list h2 { margin: 0 0 4px; font-size: 1.1rem; }
.admin-ticket-item { display: grid; gap: 5px; padding: 13px; border: 1px solid var(--border); border-radius: 10px; background: white; color: var(--text); text-decoration: none; }
.admin-ticket-item:hover, .admin-ticket-item.is-active { border-color: var(--accent); background: #fff8f7; }
.admin-ticket-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-ticket-item span:not(.ticket-status) { color: var(--muted); font-size: .78rem; }
.admin-ticket-detail { max-width: none; }
.admin-ticket-detail .ticket-thread { margin-top: 18px; }
.ticket-status-form { display: flex; align-items: end; gap: 10px; max-width: 520px !important; padding-top: 18px; border-top: 1px solid var(--border); }
.ticket-status-form label { margin: 0; }
@media (max-width: 760px) { .support-page-heading, .support-ticket-heading { flex-direction: column; } .ticket-filter, .ticket-status-form { align-items: stretch; flex-direction: column; } .ticket-filter select, .ticket-status-form select { width: 100%; } .admin-ticket-layout { grid-template-columns: 1fr; } .ticket-message { max-width: 100%; } }
@media (max-width: 760px) { .support-chat-bubble { right: 16px; bottom: 16px; } .support-chat-panel { right: 16px; bottom: 78px; } }
.not-found-page { padding-top: 30px; }
.site-header nav { display: flex; gap: 16px; }
.container { position: relative; z-index: 0; max-width: 1080px; min-height: calc(100vh - 145px); margin: 0 auto; padding: 48px 20px 64px; isolation: isolate; }
.admin-body { background: var(--surface); }
.admin-shell { min-height: 100vh; }
.admin-sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; display: flex; width: 252px; flex-direction: column; padding: 22px 14px; border-right: 1px solid var(--border); background: white; box-shadow: 5px 0 24px rgba(22,22,22,.06); }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 26px; font-weight: 800; }
.admin-brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: white; font-size: .72rem; }
.admin-nav { display: grid; gap: 20px; overflow: auto; }
.admin-nav-group { display: grid; gap: 4px; }
.admin-nav-label { padding: 0 12px 6px; color: #85858e; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: .88rem; text-decoration: none; }
.admin-nav-item:hover, .admin-nav-item.is-active { background: #fff1f0; color: var(--accent); }
.admin-nav-item.is-muted { color: #aaaab1; cursor: not-allowed; }
.admin-nav-icon { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 26px; border-radius: 7px; background: #f2f2f6; color: currentColor; font-size: .55rem; font-weight: 800; }
.admin-nav-item.is-active .admin-nav-icon { background: var(--accent); color: white; }
.admin-main { min-height: 100vh; margin-left: 252px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; padding: 18px 34px; border-bottom: 1px solid var(--border); background: white; box-shadow: 0 3px 18px rgba(22,22,22,.05); }
.admin-header-kicker { display: block; margin-bottom: 4px; color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-header h1 { margin: 0; font-size: 1.35rem; }
.admin-identity { display: flex; align-items: center; gap: 18px; color: var(--text); font-size: .88rem; text-align: right; }
.admin-identity span { display: grid; gap: 3px; }
.admin-identity small { color: var(--muted); font-size: .72rem; }
.admin-identity a { color: var(--accent); font-weight: 700; text-decoration: none; }
.admin-content { max-width: 1240px; margin: 0 auto; padding: 34px; }
.admin-content > h1 { margin-top: 0; font-size: 1.5rem; }
.admin-content > h2 { margin-top: 30px; font-size: 1.1rem; }
.admin-content .panel { max-width: none; margin-bottom: 16px; padding: 22px; border-radius: 12px; box-shadow: 0 5px 22px rgba(22,22,22,.07); }
.admin-welcome { max-width: 720px !important; padding: 30px !important; }
.admin-eyebrow { margin: 0 0 8px; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-welcome h2 { margin: 0 0 8px; font-size: 1.7rem; }
.admin-welcome p:not(.admin-eyebrow) { color: var(--muted); }
.admin-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-section-heading h2 { margin: 0; }
.admin-table-wrap { overflow-x: auto; }
.admin-table-wrap table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table-wrap th, .admin-table-wrap td { padding: 11px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.admin-table-wrap th { color: var(--muted); font-size: .74rem; text-transform: uppercase; }
.admin-table-wrap form { display: inline-flex; flex-wrap: wrap; gap: 5px; margin: 0 5px 5px 0; }
.admin-table-wrap form button { margin: 0; padding: 7px 9px; font-size: .75rem; }
.admin-table-wrap select { width: auto; min-width: 130px; padding: 7px; font-size: .75rem; }
.admin-quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.admin-quick-links a { padding: 9px 12px; border-radius: 8px; background: #fff1f0; color: var(--accent); font-weight: 700; text-decoration: none; }
.admin-menu-toggle { display: none; }
.panel { max-width: 560px; padding: 32px; background: white; border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 5px 30px rgba(22,22,22,.1); }
.account-page { display: grid; gap: 18px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 18px; align-items: start; }
.account-panel { max-width: none; padding: 24px; border-radius: 12px; }
.account-panel h2 { margin-top: 0; font-size: 1.15rem; }
.account-avatar { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.account-avatar img, .account-avatar-placeholder { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: #fff1f0; color: var(--accent); }
.account-avatar-placeholder { display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; }
.account-status { display: grid; gap: 6px; margin: 0; }
.account-status dt { color: var(--muted); font-size: .78rem; }
.account-status dd { margin: 0; font-weight: 700; }
.account-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.account-table th, .account-table td { padding: 11px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.account-table th { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.account-table-wrap { overflow-x: auto; }
@media (max-width: 980px) { .home-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; } .site-header-home { flex-wrap: wrap; } .home-tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .account-grid { grid-template-columns: 1fr; } .site-header { align-items: flex-start; flex-direction: column; } .site-header-home { align-items: stretch; } .site-actions { align-self: flex-end; } .home-nav { order: 0; } .home-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nav-menu-panel { position: fixed; top: 126px; right: 12px; left: 12px; width: auto; transform: none; } }
@media (max-width: 480px) { .home-tool-grid { grid-template-columns: 1fr; } .home-hero { padding-top: 28px; } .site-actions { align-self: stretch; justify-content: space-between; } }
.utility-tool { max-width: 760px; }
.utility-fields { display: grid; gap: 12px; }
.utility-fields label { margin: 0; }
.utility-hint, .pdf-options-note { margin: 0; color: var(--muted); font-size: .88rem; }
.utility-output, .pdf-text-output { display: block; width: 100%; min-height: 260px; margin-top: 16px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fbfbfd; color: var(--text); font: inherit; line-height: 1.45; resize: vertical; }
.utility-output[hidden], .pdf-text-output[hidden], .text-output-actions[hidden], .pdf-text-output-actions[hidden] { display: none; }
.text-output-actions, .pdf-text-output-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.text-output-actions button, .pdf-text-output-actions button { margin: 0; padding: 9px 12px; }
.utility-action-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.utility-action-tabs button { margin: 0; }
.utility-action-tabs .button-secondary { background: #fff; color: var(--text); border: 1px solid var(--border); }
.utility-action-tabs .is-active { box-shadow: 0 0 0 3px rgba(229,50,45,.16); }
.pdf-options textarea { min-height: 220px; resize: vertical; }
.home-page { display: grid; gap: 34px; }
.home-hero { max-width: 760px; padding: 52px 0 14px; }
.home-hero h1 { max-width: 720px; margin: 0 0 16px; font-size: clamp(2.5rem, 6vw, 5rem); line-height: .98; letter-spacing: -.03em; }
.home-hero > p:not(.home-kicker) { max-width: 610px; margin: 0; color: var(--muted); font-size: 1.12rem; line-height: 1.5; }
.tool-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-filter { margin: 0; padding: 9px 15px; border: 1px solid var(--border); border-radius: 999px; background: white; color: var(--muted); font-size: .84rem; cursor: pointer; }
.tool-filter:hover, .tool-filter.is-active { border-color: var(--accent); background: #fff1f0; color: var(--accent); }
.home-tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-tool-card { min-height: 148px; padding: 20px; border-radius: 12px; }
.home-tool-card[hidden] { display: none; }
.home-intro { padding: 8px 2px 0; }
.home-kicker { margin: 0 0 8px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-intro h1 { margin: 0 0 8px; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1; }
.home-intro > p:not(.home-kicker) { max-width: 560px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.home-account { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; color: var(--muted); font-size: .9rem; }
.home-account a { font-weight: 700; }
.tool-section { display: grid; gap: 12px; }
.tool-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tool-section-heading h2 { margin: 0; font-size: 1.35rem; }
.tool-section-heading span { color: var(--muted); font-size: .8rem; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tool-card { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 132px; padding: 18px; border: 1px solid rgba(214,214,223,.75); border-radius: 24px; background: white; box-shadow: 0 5px 30px rgba(22,22,22,.1); color: var(--text); text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.tool-card:hover { border-color: #f2aaa7; box-shadow: 0 9px 32px rgba(22,22,22,.14); transform: translateY(-2px); }
.tool-icon { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff1f0; color: var(--accent); font-size: .62rem; font-weight: 800; letter-spacing: .02em; text-align: center; }
.tool-card-copy { display: grid; gap: 7px; min-width: 0; padding-right: 10px; }
.tool-card-copy strong { font-size: .96rem; }
.tool-card-copy span { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.tool-card-arrow { position: absolute; right: 14px; bottom: 13px; color: var(--accent); font-size: 1.1rem; }
label { display: block; margin: 16px 0 6px; font-weight: 600; }
input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
button { margin-top: 20px; padding: 12px 20px; border: 0; border-radius: 8px; background: var(--button); color: #33333b; font-weight: 600; cursor: pointer; }
.error { color: var(--accent); }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.editor-pages { display: grid; gap: 24px; overflow: auto; padding: 16px; background: #e8e8ee; }
.editor-page { position: relative; flex: 0 0 auto; background: white; box-shadow: 0 2px 10px rgba(22,22,22,.16); }
.editor-page canvas { display: block; }
.editor-annotation { position: absolute; z-index: 2; cursor: move; border: 1px dashed var(--accent); overflow: hidden; }
.annotation-redact { background: white; border: 2px solid #161616; }
.annotation-rectangle { border: 2px solid var(--accent); }
.annotation-signature-typed { font-style: italic; font-size: 22px; }
.signature-pad { display: block; width: 180px; height: 60px; background: white; }
select { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: white; }
.upload-drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 116px; margin: 16px 0 8px; padding: 21px; border: 2px dashed var(--border); border-radius: 12px; background: #fbfbfd; color: var(--muted); cursor: pointer; text-align: center; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.upload-drop-zone strong { color: var(--text); }
.upload-drop-zone:hover, .upload-drop-zone:focus-visible, .upload-drop-zone.is-dragging { border-color: var(--accent); background: #fff4f3; box-shadow: 0 3px 6px 0 rgba(0,0,0,.14); transform: translateY(-1px); outline: none; }
.upload-drop-zone.has-files { border-color: var(--accent); }
.upload-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
.crop-editor { margin-top: 20px; }
.crop-stage { position: relative; width: 100%; max-height: 520px; overflow: hidden; background: #202027; border: 1px solid var(--border); border-radius: 12px; line-height: 0; }
.crop-source { display: block; width: 100%; height: 100%; max-height: 520px; object-fit: contain; }
.crop-selection { position: absolute; left: 10%; top: 10%; width: 80%; height: 80%; border: 2px solid var(--accent); box-shadow: 0 0 0 9999px rgba(0,0,0,.45); cursor: move; touch-action: none; }
.crop-selection.is-circle { border-radius: 50%; }
.crop-handle { position: absolute; width: 12px; height: 12px; border: 2px solid white; background: var(--accent); border-radius: 50%; transform: translate(-50%, -50%); }
.handle-nw { left: 0; top: 0; cursor: nwse-resize; }
.handle-n { left: 50%; top: 0; cursor: ns-resize; }
.handle-ne { left: 100%; top: 0; cursor: nesw-resize; }
.handle-e { left: 100%; top: 50%; cursor: ew-resize; }
.handle-se { left: 100%; top: 100%; cursor: nwse-resize; }
.handle-s { left: 50%; top: 100%; cursor: ns-resize; }
.handle-sw { left: 0; top: 100%; cursor: nesw-resize; }
.handle-w { left: 0; top: 50%; cursor: ew-resize; }
.crop-help { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.crop-live { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: #fbfbfd; }
.crop-live p { margin: 0 0 8px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.crop-live-canvas { display: block; max-width: 100%; max-height: 240px; margin: 0 auto; background: white; }
.crop-live-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.crop-live-header p { margin: 0; }
.crop-preview-toggle { display: flex; gap: 4px; }
.crop-preview-toggle button { margin: 0; padding: 6px 9px; border: 1px solid var(--border); border-radius: 6px; background: white; color: var(--muted); font-size: .8rem; }
.crop-preview-toggle button.is-active { border-color: var(--accent); background: #fff1f0; color: var(--text); }
.image-tool[data-tool-slug="image-resize-crop"] { max-width: 960px; }
.image-tool[data-tool-slug="image-resize-crop"] .image-tool-form { gap: 0; }
.image-tool[data-tool-slug="image-resize-crop"] .upload-drop-zone { min-height: 72px; margin: 8px 0; padding: 12px; }
.image-tool[data-tool-slug="image-resize-crop"] .image-options { display: flex; flex-direction: column; }
.image-tool[data-tool-slug="image-resize-crop"] .crop-fallback-fields { order: 1; display: flex; align-items: end; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fbfbfd; }
.image-tool[data-tool-slug="image-resize-crop"] .crop-fallback-fields label { flex: 0 1 130px; margin: 0; font-size: .85rem; }
.image-tool[data-tool-slug="image-resize-crop"] .crop-fallback-fields input, .image-tool[data-tool-slug="image-resize-crop"] .crop-fallback-fields select { padding: 8px; margin-top: 4px; }
.image-tool[data-tool-slug="image-resize-crop"] .crop-editor { order: 2; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; align-items: start; margin-top: 12px; }
.image-tool[data-tool-slug="image-resize-crop"] .crop-stage { max-height: calc(100vh - 590px); }
.image-tool[data-tool-slug="image-resize-crop"] .crop-live { margin-top: 0; }
.image-tool[data-tool-slug="image-resize-crop"] .crop-help { grid-column: 1 / -1; margin: 0; }
.image-tool[data-tool-slug="image-resize-crop"] .image-tool-form > button { align-self: end; margin-top: 10px; }
.result-preview { margin-top: 20px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #fbfbfd; }
.result-preview p { margin: 0 0 10px; font-weight: 600; }
.result-preview img { display: block; width: 100%; max-height: 360px; object-fit: contain; background: white; }
.before-preview { margin: 20px 0; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fbfbfd; }
.before-preview p { margin: 0 0 8px; font-weight: 600; }
.before-preview img { display: block; width: 100%; max-height: 240px; object-fit: contain; }
.processing-image { position: relative; overflow: hidden; background: #e8e8ee; }
.processing-image img { display: block; width: 100%; max-height: 360px; object-fit: contain; }
.processing-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; overflow: hidden; background: rgba(22,22,22,.48); color: white; text-align: center; }
.processing-overlay strong, .processing-overlay small { position: relative; z-index: 1; }
.processing-scan-line { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); box-shadow: 0 0 18px 5px rgba(229,50,45,.65); animation: background-scan 1.4s ease-in-out infinite; }
@keyframes background-scan { 0%, 100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(320px); opacity: 1; } }
.background-result-preview { max-width: 760px; padding: 0; overflow: hidden; }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: white; }
.model-toggle, .result-compare { display: flex; gap: 6px; }
.model-toggle button, .result-compare button { margin: 0; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: white; color: var(--muted); font-size: .9rem; }
.model-toggle button.is-active, .result-compare button.is-active { border-color: var(--accent); background: #fff1f0; color: var(--text); }
.result-download { margin: 0; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: white; }
.result-download:hover { background: #b72824; }
.result-viewer { min-height: 420px; display: grid; place-items: center; padding: 28px; background-color: #e8e8ee; background-image: linear-gradient(45deg, #cfcfd5 25%, transparent 25%), linear-gradient(-45deg, #cfcfd5 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #cfcfd5 75%), linear-gradient(-45deg, transparent 75%, #cfcfd5 75%); background-size: 28px 28px; background-position: 0 0, 0 14px, 14px -14px, -14px 0; }
.result-viewer img { width: auto; max-width: 100%; max-height: 520px; object-fit: contain; background: transparent; box-shadow: 0 3px 12px rgba(0,0,0,.2); }
.result-compare { justify-content: center; padding: 10px 16px 14px; background: white; }
.image-tool { max-width: 1100px; }
.image-tool-heading { margin-bottom: 18px; }
.image-tool-heading p { margin: 6px 0; }
.image-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: #fbfbfd; }
.image-file-control { flex: 1 1 210px; min-width: 180px; margin: 0; font-size: .82rem; }
.image-file-control input { display: block; margin-top: 4px; padding: 8px; background: white; font-size: .85rem; }
.image-options { display: flex; align-items: end; flex: 3 1 460px; flex-wrap: wrap; gap: 10px; }
.image-options > label { flex: 1 1 130px; min-width: 110px; margin: 0; font-size: .82rem; }
.image-options > label input, .image-options > label select { margin-top: 4px; padding: 8px; }
.image-options > p { margin: 0; color: var(--muted); font-size: .85rem; }
.image-toolbar > button { flex: 0 0 auto; margin: 0; padding: 10px 16px; }
.image-preview-stage { display: grid; place-items: center; min-height: 360px; max-height: calc(100vh - 330px); margin-top: 14px; padding: 24px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #202027; }
.image-preview-stage img { display: block; width: auto; max-width: 100%; max-height: calc(100vh - 390px); object-fit: contain; }
.image-tool .crop-editor { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; align-items: start; margin-top: 14px; }
.image-tool .crop-stage { max-height: calc(100vh - 430px); }
.image-tool .crop-live { margin-top: 0; }
.image-tool .crop-help { grid-column: 1 / -1; margin: 0; }
.template-picker { padding: 14px 16px 16px; border-top: 1px solid var(--border); background: white; }
.template-picker-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.template-picker-heading span { color: var(--muted); font-size: .85rem; }
.template-tabs { display: flex; gap: 18px; margin: 0 -16px 12px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.template-tabs button { position: relative; margin: 0; padding: 8px 2px 10px; border: 0; border-radius: 0; background: transparent; color: var(--muted); }
.template-tabs button.is-active { color: var(--text); }
.template-tabs button.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--accent); content: ''; }
.template-panel[hidden] { display: none; }
.template-grid, .color-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 246px; overflow-y: auto; padding: 2px; }
.template-option, .color-option { display: grid; gap: 5px; width: 100%; margin: 0; padding: 5px; border: 1px solid var(--border); border-radius: 8px; background: white; color: var(--text); font-size: .75rem; text-align: left; }
.template-option:hover, .template-option.is-active, .color-option:hover, .color-option.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px #ffd3d1; }
.template-thumb { display: block; aspect-ratio: 1.5; overflow: hidden; border-radius: 6px; background: #e8e8ee; }
.template-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.template-thumb.is-transparent { background-color: #e8e8ee; background-image: linear-gradient(45deg, #cfcfd5 25%, transparent 25%), linear-gradient(-45deg, #cfcfd5 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #cfcfd5 75%), linear-gradient(-45deg, transparent 75%, #cfcfd5 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.template-custom { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 8px 12px; border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); font-size: .85rem; cursor: pointer; }
.template-custom input { width: auto; padding: 0; border: 0; }
.color-option { align-items: center; justify-items: center; min-height: 78px; text-align: center; }
.color-swatch { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; }
.color-swatch.is-transparent { border: 1px solid var(--border); background: white; }
.no-color-icon { position: relative; display: block; width: 25px; height: 25px; border: 2px solid var(--muted); border-radius: 50%; }
.no-color-icon::after { position: absolute; top: 10px; left: -3px; width: 28px; height: 2px; transform: rotate(-45deg); background: var(--muted); content: ''; }
.color-swatch.is-rainbow { background: conic-gradient(#e5322d, #f2b84b, #8fc6b2, #4f9d8c, #6f7db3, #9b7bb3, #e5322d); }
.custom-color-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.admin-template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.admin-template-card { padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: white; }
.admin-template-card img { display: block; width: 100%; aspect-ratio: 1.5; object-fit: cover; border-radius: 8px; }
@media (max-width: 720px) {
	.image-tool { padding: 20px 14px; }
	.image-toolbar, .image-options { align-items: stretch; flex-direction: column; }
	.image-file-control, .image-options > label, .image-toolbar > button { width: 100%; }
	.image-tool .crop-editor { display: block; }
	.image-tool .crop-live { margin-top: 12px; }
	.image-preview-stage { min-height: 260px; }
	.template-picker-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
}
.nav-menu-catalog { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); width: min(760px, 88vw); max-height: 70vh; overflow-y: auto; }
.nav-menu-group { display: grid; gap: 3px; align-content: start; }
.nav-menu-group h3 { margin: 8px 10px 3px; color: var(--accent); font-size: .72rem; text-transform: uppercase; }
.home-browse-all { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px; border: 1px solid var(--border); border-radius: 12px; background: white; }
.home-browse-all h2 { margin: 0 0 6px; font-size: 1.3rem; }
.home-browse-all p:not(.home-kicker) { margin: 0; color: var(--muted); }
.home-category-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.home-category-links a { padding: 10px 13px; border-radius: 999px; background: #fff1f0; color: var(--accent); font-size: .82rem; font-weight: 700; text-decoration: none; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 6px 0 16px; color: var(--muted); font-size: .8rem; }
.trust-row span::before { margin-right: 6px; color: var(--accent); content: '•'; }
.home-trust-section, .home-work-section { padding: 48px 0 14px; text-align: center; }
.home-trust-section h2, .home-work-section h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.home-trust-section > p:not(.home-kicker), .home-work-section > p:not(.home-kicker) { max-width: 650px; margin: 0 auto; color: var(--muted); line-height: 1.5; }
.home-trust-section .trust-row { margin-top: 24px; }
.work-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; text-align: left; }
.work-card { position: relative; display: grid; gap: 9px; min-height: 250px; padding: 0 20px 20px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: white; color: var(--text); box-shadow: 0 5px 24px rgba(22,22,22,.08); text-decoration: none; }
.work-card-art { display: grid; place-items: center; min-height: 92px; margin: 0 -20px 7px; background: #fff1f0; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.work-card-plan .work-card-art { background: #fff7dc; color: #8a6500; }
.work-card-access .work-card-art { background: #eaf5f0; color: #287a50; }
.work-card strong { font-size: 1.05rem; }
.work-card > span:not(.work-card-art):not(.work-card-arrow) { max-width: 290px; color: var(--muted); line-height: 1.45; }
.work-card-arrow { position: absolute; right: 18px; bottom: 16px; color: var(--accent); font-size: 1.2rem; }
.subscription-promo { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 22px 0 18px; padding: 30px 34px; border-radius: 12px; background: var(--accent); color: white; box-shadow: 0 10px 30px rgba(229,50,45,.2); }
.subscription-promo .home-kicker { color: #ffd9d7; }
.subscription-promo h2 { margin: 0 0 12px; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.subscription-promo ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.subscription-promo li::before { margin-right: 9px; content: '✓'; font-weight: 800; }
.subscription-promo .button-link { flex: 0 0 auto; background: white; color: var(--accent); }
.pricing-page { max-width: 1100px; }
.pricing-current { display: inline-block; padding: 9px 13px; border-radius: 999px; background: #fff1f0; color: var(--accent) !important; font-size: .88rem !important; }
.pricing-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.pricing-card { max-width: none; padding: 24px; border-radius: 12px; }
.pricing-card.is-current { border: 2px solid var(--accent); }
.pricing-card-header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.pricing-card-header h2 { margin: 0 0 7px; font-size: 1.45rem; }
.pricing-card-header > strong { color: var(--accent); font-size: 1.2rem; text-align: right; }
.pricing-card-header small { display: block; color: var(--muted); font-size: .7rem; font-weight: 500; }
.pricing-badge { display: inline-block; padding: 5px 8px; border-radius: 999px; background: #fff1f0; color: var(--accent); font-size: .7rem; }
.pricing-card h3 { margin: 24px 0 8px; font-size: .82rem; text-transform: uppercase; }
.pricing-list { display: grid; gap: 5px; margin: 0 0 20px; padding: 0; list-style: none; }
.pricing-list li { display: grid; grid-template-columns: 20px 1fr auto; gap: 7px; align-items: center; padding: 7px 0; border-bottom: 1px solid #eeeeF2; font-size: .82rem; }
.pricing-list li span { font-weight: 800; }
.pricing-list li.is-included span { color: #287a50; }
.pricing-list li.is-excluded { color: #9999a2; }
.pricing-list li.is-excluded span { color: #b4b4bd; }
.pricing-list li small { color: var(--muted); font-size: .68rem; }
.access-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(22,22,22,.62); }
.access-modal-dialog { position: relative; width: min(1040px, 96vw); max-height: 92vh; overflow: auto; padding: 26px; border-radius: 12px; background: white; box-shadow: 0 20px 70px rgba(0,0,0,.28); }
.access-modal-close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; color: var(--muted); font-size: 1.7rem; cursor: pointer; }
.access-modal-dialog h2 { margin: 0 34px 6px 0; }
.access-modal-copy { margin: 0 0 14px; color: var(--muted); }
.access-modal-plans .pricing-cards { margin-top: 12px; }
.access-modal-plans .pricing-card { padding: 16px; }
.access-modal-plans .pricing-list { max-height: 330px; overflow: auto; }
.access-modal-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.plan-editor { display: grid; gap: 12px; }
.plan-editor h2, .plan-editor h3 { margin: 8px 0 0; }
.plan-tool-checklist, .plan-feature-checklist { display: grid; gap: 7px; max-height: 520px; overflow: auto; padding: 12px; border: 1px solid var(--border); background: #fbfbfd; }
.plan-tool-checklist label, .plan-feature-checklist label { display: grid; grid-template-columns: auto 1fr 96px auto; gap: 8px; align-items: center; margin: 0; padding: 6px 0; border-bottom: 1px solid #eeeeF2; }
.plan-feature-checklist label { grid-template-columns: auto 1fr auto; }
.plan-tool-checklist input[type=number] { margin: 0; padding: 7px; }
.plan-editor small { color: var(--muted); }
.inline-form { margin: 0 0 18px; }
@media (max-width: 760px) { .access-modal-dialog { padding: 20px 14px; } .access-modal-actions { align-items: stretch; flex-direction: column; } }
@media (max-width: 760px) { .pricing-cards { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .work-card-grid { grid-template-columns: 1fr; } .subscription-promo { align-items: flex-start; flex-direction: column; padding: 24px; } }
.category-page { display: grid; gap: 18px; }
.category-page > h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); }
.category-intro { max-width: 620px; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
.category-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.category-heading h2 { margin: 0; font-size: 1rem; }
.category-tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .nav-menu-catalog { position: fixed; top: 126px; right: 12px; left: 12px; width: auto; } .home-browse-all { align-items: flex-start; flex-direction: column; } .home-category-links { justify-content: flex-start; } .category-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.image-tool[data-tool-slug="image-resize-crop"] .image-options { flex-direction: row; flex-wrap: wrap; }
.pdf-tool { max-width: 1120px; }
.pdf-tool-heading { margin-bottom: 18px; }
.pdf-tool-heading p { margin: 6px 0; }
.pdf-upload-state { margin-bottom: 16px; }
.pdf-upload-state > label { margin-bottom: 6px; }
.pdf-upload-state .upload-drop-zone { min-height: 170px; margin: 0; border-radius: 12px; }
.pdf-select-button { margin: 0; padding: 12px 20px; border: 0; border-radius: 8px; background: var(--accent); color: white; font-weight: 700; cursor: pointer; }
.pdf-select-button:hover { background: #b72824; }
.pdf-upload-state .upload-drop-zone span { color: var(--muted); }
.pdf-workspace { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 16px; align-items: start; }
.pdf-preview-column, .pdf-options-panel, .pdf-result-preview { border: 1px solid var(--border); border-radius: 12px; background: white; }
.pdf-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.pdf-thumbnails-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: .8rem; font-weight: 500; }
.pdf-thumbnails-toggle input { width: auto; }
.pdf-pages { display: grid; gap: 14px; max-height: 600px; overflow: auto; padding: 14px; background: #f0f0f4; }
.pdf-pages.is-hidden { display: none; }
.pdf-loading { margin: 20px; color: var(--muted); text-align: center; }
.pdf-file-group { padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: #fbfbfd; }
.pdf-file-group h3 { margin: 0 0 8px; overflow: hidden; color: var(--muted); font-size: .8rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pdf-file-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; }
.pdf-page-thumb { display: grid; gap: 5px; justify-items: center; margin: 0; padding: 6px; border: 2px solid transparent; border-radius: 8px; background: white; color: var(--muted); cursor: pointer; font-size: .75rem; }
.pdf-page-thumb:hover, .pdf-page-thumb.is-selected { border-color: var(--accent); color: var(--text); }
.pdf-page-thumb.is-dragging { opacity: .45; }
.pdf-page-thumb canvas { display: block; max-width: 100%; height: auto; box-shadow: 0 2px 6px rgba(22,22,22,.18); }
.pdf-page-remove { margin: 0; padding: 3px 6px; border: 0; border-radius: 5px; background: #fff1f0; color: var(--accent); font-size: .7rem; cursor: pointer; }
.pdf-page-zoom { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(22,22,22,.7); }
.pdf-page-zoom[hidden] { display: none; }
.pdf-page-zoom-dialog { position: relative; width: min(820px, 94vw); max-height: 92vh; overflow: auto; padding: 20px; border-radius: 12px; background: white; box-shadow: 0 15px 50px rgba(0,0,0,.3); }
.pdf-page-zoom-dialog p { margin: 0 42px 12px 0; color: var(--muted); font-size: .9rem; font-weight: 600; }
.pdf-page-zoom-dialog canvas { display: block; width: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; background: white; object-fit: contain; }
.pdf-page-zoom-close { position: absolute; top: 10px; right: 12px; margin: 0; padding: 4px 10px; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; }
.pdf-options-panel { display: flex; flex-direction: column; gap: 18px; padding: 16px; }
.pdf-options { display: grid; gap: 12px; }
.pdf-options label { margin: 0; font-size: .88rem; }
.pdf-options input, .pdf-options select { margin-top: 5px; padding: 10px; }
.pdf-submit { width: 100%; margin: auto 0 0; padding: 14px 18px; border-radius: 8px; background: var(--accent); color: white; font-weight: 800; letter-spacing: .04em; }
.pdf-submit:hover { background: #b72824; }
.watermark-list { display: grid; gap: 10px; }
.watermark-item { padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: #fbfbfd; }
.watermark-item header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.watermark-item header button { margin: 0; padding: 3px 6px; border: 0; background: transparent; color: var(--accent); font-size: .75rem; }
.watermark-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.watermark-tabs button { margin: 0; padding: 6px 9px; border: 1px solid var(--border); background: white; color: var(--muted); font-size: .78rem; }
.watermark-tabs button.is-active { border-color: var(--accent); background: #fff1f0; color: var(--text); }
.watermark-content, .watermark-settings { display: grid; gap: 8px; }
.watermark-content label, .watermark-settings label { margin: 0; font-size: .78rem; }
.watermark-settings { grid-template-columns: 1fr 1fr; margin-top: 8px; }
.watermark-position { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; color: var(--muted); font-size: .78rem; }
.position-grid { display: grid; grid-template-columns: repeat(3, 22px); gap: 4px; }
.position-grid button { position: relative; width: 22px; height: 22px; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 5px; background: white; }
.position-grid button::after { position: absolute; top: 7px; left: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); content: ''; }
.position-grid button.is-active { border-color: var(--accent); background: #fff1f0; }
.position-grid button.is-active::after { background: var(--accent); }
.add-watermark { width: 100%; margin: 0; padding: 9px; border: 1px dashed var(--accent); background: #fff8f7; color: var(--accent); font-size: .8rem; }
.pdf-result-preview { margin-top: 16px; overflow: hidden; }
.pdf-result-header { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.pdf-result-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-height: 420px; overflow: auto; padding: 16px; background: #f0f0f4; }
.pdf-result-pages canvas, .pdf-result-pages img { display: block; max-width: 180px; max-height: 260px; background: white; box-shadow: 0 2px 8px rgba(22,22,22,.18); object-fit: contain; }
@media (max-width: 760px) {
	.site-footer-inner, .public-grid, .contact-grid { grid-template-columns: 1fr; }
	.pdf-workspace { grid-template-columns: 1fr; }
	.pdf-pages { max-height: 420px; }
}

/* PDF editor workspace */
.editor-shell { width: min(1500px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 48px; }
.editor-appbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.editor-appbar h1, .editor-sidebar h2, .editor-empty-state h2 { margin: 0; }
.editor-appbar p { max-width: 360px; margin: 0; color: var(--muted); text-align: right; }
.editor-back-link { display: inline-block; margin-bottom: 8px; color: var(--accent); font-size: .78rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.editor-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 290px; min-height: min(720px, calc(100vh - 240px)); overflow: hidden; border: 1px solid var(--border); border-radius: 24px; background: white; box-shadow: 0 12px 38px rgba(22,22,22,.1); }
.editor-sidebar { min-width: 0; padding: 20px 16px; background: #fbfbfd; }
.editor-file-sidebar { border-right: 1px solid var(--border); }
.editor-tool-sidebar { border-left: 1px solid var(--border); }
.editor-sidebar-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.editor-sidebar-heading h2 { font-size: 1.12rem; }
.editor-eyebrow { display: block; margin-bottom: 5px; color: var(--accent); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.editor-sidebar-close, .editor-mobile-actions { display: none; }
.editor-search-label { margin: 0 0 6px; color: var(--muted); font-size: .74rem; font-weight: 700; }
.editor-search { width: 100%; margin: 0 0 12px; padding: 10px 11px; border-radius: 8px; background: white; font-size: .86rem; }
.editor-upload-action, .editor-empty-actions button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0 0 18px; padding: 11px 12px; border-radius: 8px; background: var(--accent); color: white; font-weight: 800; }
.editor-upload-action span { font-size: 1.2rem; line-height: .8; }
.editor-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
.editor-file-list { display: grid; gap: 6px; max-height: 400px; overflow: auto; }
.editor-file-item, .editor-tool-link { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); text-align: left; text-decoration: none; cursor: pointer; }
.editor-file-item:hover, .editor-tool-link:hover { border-color: #f2aaa7; background: #fff1f0; }
.editor-file-item span:last-child, .editor-tool-link span:last-child { display: grid; min-width: 0; gap: 3px; }
.editor-file-item strong, .editor-tool-link strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.editor-file-item small, .editor-tool-link small, .editor-drive-entry small { color: var(--muted); font-size: .68rem; line-height: 1.3; }
.editor-tool-icon { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #fff1f0; color: var(--accent); font-size: .52rem; font-weight: 900; }
.editor-muted { margin: 12px 4px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.editor-drive-entry { display: flex; align-items: center; gap: 9px; margin-top: 18px; padding: 10px 9px; border-top: 1px solid var(--border); color: #9898a2; }
.editor-drive-entry .editor-tool-icon { background: #eeeeF3; color: #9898a2; }
.editor-drive-entry span:last-child { display: grid; gap: 3px; }
.editor-drive-entry strong { font-size: .78rem; }
.editor-center { min-width: 0; padding: 18px; background: var(--surface); }
.editor-empty-state { display: grid; place-items: center; min-height: 620px; padding: 32px; border: 1px dashed #c7c7d2; border-radius: 18px; background: rgba(255,255,255,.72); text-align: center; }
.editor-empty-state h2 { max-width: 430px; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.editor-empty-state p { max-width: 430px; margin: 10px 0 20px; color: var(--muted); line-height: 1.5; }
.editor-upload-illustration { position: relative; width: 112px; height: 92px; margin-bottom: 20px; }
.editor-upload-illustration span { position: absolute; width: 62px; height: 74px; border: 2px solid var(--accent); border-radius: 8px; background: white; box-shadow: 0 5px 12px rgba(22,22,22,.08); }
.editor-upload-illustration span::after { display: block; width: 26px; height: 3px; margin: 46px auto 0; border-radius: 3px; background: #f2aaa7; content: ''; }
.editor-upload-illustration span:nth-child(1) { left: 4px; top: 12px; transform: rotate(-11deg); }
.editor-upload-illustration span:nth-child(2) { left: 25px; top: 5px; transform: rotate(3deg); }
.editor-upload-illustration span:nth-child(3) { left: 47px; top: 12px; transform: rotate(14deg); }
.editor-empty-actions { display: flex; gap: 8px; width: min(360px, 100%); }
.editor-empty-actions button { width: auto; flex: 1; margin: 0; }
.editor-empty-actions .editor-secondary-action { border: 1px solid var(--border); background: white; color: var(--text); }
.editor-drop-hint { margin: 14px 0 0 !important; font-size: .75rem; }
.editor-document-state { display: grid; gap: 12px; }
.editor-document-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: white; }
.editor-view-actions { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .75rem; }
.editor-view-actions button { min-width: 30px; margin: 0; padding: 5px 9px; border: 1px solid var(--border); background: white; color: var(--text); }
.editor-view-actions label { display: flex; align-items: center; gap: 5px; margin: 0 0 0 6px; font-size: .75rem; }
.editor-view-actions input { width: auto; }
.editor-canvas-wrap { min-height: 500px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: #e8e8ee; }
.editor-pages { min-height: 500px; max-height: calc(100vh - 340px); align-items: center; justify-items: center; transform-origin: top center; zoom: var(--editor-zoom, 1); }
.editor-pages.is-thumbnails { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); align-content: start; justify-items: stretch; }
.editor-pages.is-thumbnails .editor-page { width: 100% !important; height: auto !important; }
.editor-pages.is-thumbnails .editor-page canvas { width: 100%; height: auto; }
.editor-result-preview { margin-top: 0; }
.editor-status { margin: 10px 2px; }
.editor-download { display: inline-block; margin: 0 0 4px; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: white; font-weight: 800; text-decoration: none; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: white; }
.editor-toolbar button { margin: 0; padding: 9px 12px; border-radius: 8px; background: #fff1f0; color: var(--text); }
.editor-toolbar button:last-child { background: var(--accent); color: white; }
.editor-shell.is-dragging .editor-empty-state { border-color: var(--accent); background: #fff1f0; }
.editor-shell [hidden] { display: none !important; }
@media (max-width: 1100px) { .editor-layout { grid-template-columns: 220px minmax(0, 1fr) 250px; } }
@media (max-width: 820px) {
	.editor-shell { width: min(100% - 20px, 680px); padding-top: 18px; }
	.editor-appbar { align-items: start; flex-direction: column; gap: 8px; }
	.editor-appbar p { text-align: left; }
	.editor-layout { position: relative; display: block; min-height: 650px; }
	.editor-sidebar { position: absolute; z-index: 4; top: 0; bottom: 0; width: min(290px, 84vw); transition: transform .2s ease; box-shadow: 0 12px 28px rgba(22,22,22,.16); }
	.editor-file-sidebar { left: 0; transform: translateX(-105%); }
	.editor-tool-sidebar { right: 0; transform: translateX(105%); }
	.editor-shell.is-files-open .editor-file-sidebar, .editor-shell.is-tools-open .editor-tool-sidebar { transform: translateX(0); }
	.editor-sidebar-close { display: block; margin: 0; padding: 0 6px; border: 0; background: transparent; color: var(--muted); font-size: 1.35rem; }
	.editor-mobile-actions { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
	.editor-mobile-actions button { flex: 1; margin: 0; padding: 9px; border: 1px solid var(--border); background: white; color: var(--text); }
	.editor-empty-state { min-height: 560px; }
	.editor-document-toolbar { align-items: start; flex-direction: column; }
	.editor-view-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .editor-sidebar { transition: none; } }
@media (max-width: 980px) {
	.tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tool-card { min-height: 124px; padding: 14px; border-radius: 18px; }
}
@media (max-width: 440px) {
	.tool-grid { grid-template-columns: 1fr; }
}

/* Admin shell stage 1 */
.admin-body { overflow-x: hidden; }
.admin-brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-header { flex-wrap: wrap; }
.admin-header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.admin-search { display: flex; align-items: center; gap: 7px; width: min(260px, 28vw); margin: 0; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: #fbfbfd; color: var(--muted); font-size: .58rem; font-weight: 800; letter-spacing: .04em; }
.admin-search input { min-width: 0; margin: 0; padding: 9px 0; border: 0; outline: 0; background: transparent; font-size: .78rem; }
.admin-date { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.admin-notification { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%; color: var(--accent); font-weight: 900; text-decoration: none; }
.admin-profile { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--border); }
.admin-profile .admin-identity { flex: 1; min-width: 0; align-items: center; gap: 0; text-align: left; }
.admin-profile .admin-identity span { overflow: hidden; }
.admin-profile .admin-identity a { display: none; }
.admin-profile::before { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: white; content: 'A'; font-size: .75rem; font-weight: 800; }
.admin-profile::after { color: var(--muted); content: '\2197'; font-size: .9rem; }
.admin-account-menu { display: none; }
@media (max-width: 920px) and (min-width: 761px) {
	.admin-sidebar { width: 78px; padding-inline: 10px; }
	.admin-main { margin-left: 78px; }
	.admin-brand { justify-content: center; padding-inline: 0; }
	.admin-brand-name, .admin-nav-label, .admin-nav-item .admin-nav-copy, .admin-profile .admin-identity, .admin-profile::after { display: none; }
	.admin-nav-item { justify-content: center; padding-inline: 8px; }
	.admin-profile { justify-content: center; padding-inline: 0; }
	.admin-profile::before { margin: 0; }
}
@media (max-width: 760px) {
	.admin-header-tools { flex: 1; gap: 8px; }
	.admin-search { width: auto; flex: 1; }
	.admin-date { display: none; }
	.admin-notification { flex: 0 0 30px; }
	.admin-profile { padding-bottom: 4px; }
}
@media (max-width: 420px) {
	.admin-header { gap: 10px; }
	.admin-header-tools { width: 100%; justify-content: stretch; }
	.admin-search { flex: 1; }
	.admin-content { padding-inline: 12px; }
}

/* Admin dashboard stage 2 */
.admin-dashboard { display: grid; gap: 20px; }
.admin-dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.admin-dashboard-heading h2 { margin: 0 0 6px; font-size: 1.7rem; }
.admin-dashboard-heading p:not(.admin-eyebrow) { margin: 0; color: var(--muted); }
.admin-dashboard-heading time { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.admin-stat-card { display: grid; gap: 9px; min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 24px; background: white; box-shadow: 0 5px 22px rgba(22,22,22,.07); }
.admin-stat-card span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.admin-stat-card strong { font-size: 1.85rem; line-height: 1; }
.admin-stat-card small { color: var(--accent); font-size: .72rem; font-weight: 700; }
.admin-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr); gap: 20px; }
.admin-dashboard-grid-bottom { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); }
.admin-dashboard-panel { min-width: 0; min-height: 250px; }
.admin-dashboard-panel h2 { margin: 0; font-size: 1rem; }
.admin-dashboard-panel .admin-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; }
.admin-dashboard-panel .admin-section-heading > strong { color: var(--accent); font-size: .85rem; white-space: nowrap; }
.admin-activity-chart { display: grid; grid-template-columns: repeat(7, minmax(32px, 1fr)); align-items: end; gap: 12px; height: 190px; margin-top: 22px; padding-top: 12px; }
.admin-chart-column { display: grid; grid-template-rows: 18px 1fr 18px; align-items: end; height: 100%; text-align: center; }
.admin-chart-column > span { color: var(--muted); font-size: .66rem; }
.admin-chart-track { display: flex; align-items: end; justify-content: center; height: 100%; min-height: 22px; border-bottom: 1px solid var(--border); background: repeating-linear-gradient(to top, transparent 0, transparent 46px, #f0f0f4 47px); }
.admin-chart-track i { display: block; width: min(30px, 70%); min-height: 3px; border-radius: 6px 6px 0 0; background: var(--accent); }
.admin-chart-column small { color: var(--muted); font-size: .68rem; }
.admin-breakdown-list, .admin-recent-list, .admin-team-list { display: grid; gap: 15px; margin-top: 22px; }
.admin-breakdown-list > div { display: grid; gap: 7px; }
.admin-breakdown-list > div > div { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; }
.admin-breakdown-list strong { color: var(--accent); }
.admin-breakdown-list progress { width: 100%; height: 8px; accent-color: var(--accent); }
.admin-recent-list > div, .admin-team-list > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-recent-list > div > div, .admin-team-list > div > span:last-child { display: grid; min-width: 0; gap: 4px; }
.admin-recent-list strong, .admin-team-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.admin-recent-list small, .admin-team-list small { overflow: hidden; color: var(--muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-activity-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.admin-team-avatar { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff1f0; color: var(--accent); font-size: .75rem; font-weight: 800; }
@media (max-width: 980px) { .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-dashboard-grid, .admin-dashboard-grid-bottom { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .admin-dashboard-heading { align-items: start; flex-direction: column; gap: 8px; } .admin-stat-grid { grid-template-columns: 1fr; } .admin-stat-card { border-radius: 16px; } .admin-dashboard-panel { padding: 16px !important; } .admin-activity-chart { gap: 5px; } }
.office-editor-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: min(720px, calc(100vh - 240px)); overflow: hidden; border: 1px solid var(--border); border-radius: 24px; background: white; box-shadow: 0 12px 38px rgba(22,22,22,.1); }
.office-editor-center { display: grid; grid-template-rows: auto 1fr; min-width: 0; padding: 18px; background: var(--surface); }
.office-editor-status { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: white; color: var(--muted); font-size: .82rem; }
.office-editor-status.error { color: var(--accent); }
.office-editor-status-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.office-editor-status-row .office-editor-status { flex: 1; min-width: 0; }
.office-editor-fullscreen-toggle { flex: 0 0 auto; margin: 0; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: white; color: var(--text); font-size: .78rem; }
.office-editor-fullscreen-toggle:hover { background: var(--surface); }
.office-editor-frame-wrap { min-height: 600px; margin-top: 12px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: white; }
.office-editor-frame { display: block; width: 100%; height: 100%; min-height: 600px; border: 0; }
.office-editor-pending { align-self: center; justify-self: center; width: min(520px, 100%); margin: 12px; text-align: center; }
.office-editor-pending h2 { margin-top: 0; }
@media (max-width: 820px) { .office-editor-layout { display: block; min-height: 650px; } .office-editor-layout .editor-file-sidebar { position: relative; width: 100%; transform: none; border: 0; border-bottom: 1px solid var(--border); } .office-editor-frame-wrap, .office-editor-frame { min-height: 520px; } }

body.office-editor-fullscreen { overflow: hidden; }
body.office-editor-fullscreen .site-header, body.office-editor-fullscreen .site-footer { display: none; }
.office-editor-shell.is-fullscreen { position: fixed; z-index: 100; inset: 0; width: 100vw; height: 100vh; margin: 0; padding: 0; }
.office-editor-shell.is-fullscreen .office-editor-layout { display: block; width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
.office-editor-shell.is-fullscreen .editor-file-sidebar { display: none; }
.office-editor-shell.is-fullscreen .office-editor-center { display: block; width: 100%; height: 100%; padding: 0; }
.office-editor-shell.is-fullscreen .office-editor-status-row { position: fixed; z-index: 101; top: 12px; right: 12px; }
.office-editor-shell.is-fullscreen .office-editor-status { display: none; }
.office-editor-shell.is-fullscreen .office-editor-frame-wrap { position: absolute; inset: 0; width: 100vw; height: 100vh; min-height: 0; margin: 0; border: 0; border-radius: 0; }
.office-editor-shell.is-fullscreen .office-editor-frame { width: 100%; height: 100%; min-height: 0; }

/* Contextual PDF editor formatting panel */
.editor-shell { position: relative; }
.editor-annotation.is-selected { z-index: 3; outline: 2px solid rgba(229,50,45,.32); outline-offset: 3px; }
.editor-format-panel { position: absolute; z-index: 8; width: min(286px, calc(100% - 24px)); padding: 12px; border: 1px solid #dedee7; border-radius: 12px; background: white; box-shadow: 0 14px 34px rgba(22,22,22,.18); }
.editor-format-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 9px; border-bottom: 1px solid var(--border); }
.editor-format-heading button { margin: 0; padding: 0 5px; border: 0; background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.editor-format-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 10px 0; }
.editor-format-tabs button { margin: 0; padding: 8px 5px; border: 0; border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0; background: transparent; color: var(--muted); font-size: .78rem; }
.editor-format-tabs button.is-active { border-bottom-color: var(--accent); color: var(--accent); font-weight: 800; }
.editor-format-content { display: grid; gap: 10px; }
.editor-format-content label { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 700; }
.editor-format-content select { margin-top: 4px; padding: 8px; font-size: .8rem; }
.editor-format-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: 8px; }
.editor-format-actions { display: flex; gap: 5px; }
.editor-format-actions button { min-width: 30px; margin: 0; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: white; color: var(--text); font-size: .78rem; }
.editor-format-actions button:hover { border-color: var(--accent); color: var(--accent); }
.editor-format-colors { display: grid; gap: 7px; padding-top: 8px; border-top: 1px solid var(--border); }
.editor-format-colors strong { font-size: .75rem; }
.editor-color-swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.editor-color-swatch { width: 22px; height: 22px; margin: 0; padding: 0; border: 1px solid rgba(22,22,22,.2); border-radius: 50%; box-shadow: inset 0 0 0 2px white; cursor: pointer; }
.editor-color-swatch:hover { outline: 2px solid var(--accent); outline-offset: 1px; }
.editor-custom-color { width: max-content; margin: 0; padding: 6px 9px; border: 1px dashed var(--border); background: #fbfbfd; color: var(--text); font-size: .72rem; }
.editor-format-colors input[type="range"] { width: 100%; margin-top: 5px; padding: 0; accent-color: var(--accent); }
.editor-format-colors output { float: right; color: var(--accent); }
.is-feature-locked { opacity: .42; filter: grayscale(.45); }
.editor-format-panel [aria-disabled="true"] { cursor: not-allowed; }
.editor-format-panel select[aria-disabled="true"], .editor-format-panel input[aria-disabled="true"] { pointer-events: none; }
@media (max-width: 820px) { .editor-format-panel { position: fixed; top: auto !important; right: 12px; bottom: 12px; left: 12px !important; width: auto; } }

/* Dedicated PDF editor */
.pdf-editor-page { width: min(100% - 24px, 1800px); margin: 0 auto; padding: 18px 0 24px; }
.pdf-editor-app { display: grid; grid-template-rows: auto minmax(0, 1fr); height: calc(100vh - 150px); min-height: 620px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.pdf-editor-ribbon { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border-bottom: 1px solid var(--border); background: white; }
.pdf-ribbon-document { display: grid; flex: 1 1 170px; min-width: 130px; gap: 3px; }
.pdf-ribbon-document a { color: var(--accent); font-size: .68rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.pdf-ribbon-document strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }
.pdf-ribbon-group { display: flex; gap: 4px; padding-left: 10px; border-left: 1px solid var(--border); }
.pdf-ribbon button, .pdf-property-buttons button { position: relative; margin: 0; padding: 8px 9px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--text); font-size: .75rem; white-space: nowrap; }
.pdf-ribbon button:hover, .pdf-property-buttons button:hover, .pdf-ribbon button.is-active { border-color: var(--border); background: #f4f4f6; }
.pdf-ribbon button.is-active { background: var(--accent); color: white; }
.pdf-ribbon button:disabled { opacity: .45; cursor: not-allowed; }
.pdf-lock { display: none; position: absolute; top: -4px; right: -3px; font-size: .58rem; }
.pdf-ribbon [data-feature-gate]:not([data-feature-allowed="true"]) .pdf-lock { display: block; }
.pdf-ribbon-zoom { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.pdf-ribbon-zoom output { min-width: 42px; color: var(--muted); text-align: center; font-size: .75rem; }
.pdf-editor-workspace { display: grid; grid-template-columns: 104px minmax(0, 1fr) 244px; min-height: 0; }
.pdf-page-rail, .pdf-properties { min-width: 0; overflow: auto; background: white; }
.pdf-page-rail { border-right: 1px solid var(--border); }
.pdf-properties { padding: 14px; border-left: 1px solid var(--border); }
.pdf-rail-heading, .pdf-properties h2 { margin: 0; padding: 12px; border-bottom: 1px solid var(--border); font-size: .78rem; }
.pdf-rail-heading span { float: right; color: var(--muted); }
.pdf-thumbnails { display: grid; gap: 8px; padding: 10px; }
.pdf-thumbnail { min-height: 74px; padding: 8px; border: 2px solid transparent; background: #f1f1f4; color: var(--muted); font-size: .72rem; cursor: pointer; }
.pdf-thumbnail.is-active { border-color: var(--accent); color: var(--text); }
.pdf-canvas-area { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.pdf-canvas-scroll { min-height: 0; overflow: auto; padding: 24px; }
.pdf-canvas-pages { display: grid; justify-content: center; gap: 22px; min-height: 100%; }
.pdf-editor-page { position: relative; background: white; box-shadow: 0 2px 10px rgba(22,22,22,.16); transform-origin: center top; }
.pdf-editor-page canvas { display: block; }
.pdf-object-layer { position: absolute; inset: 0; }
.pdf-object { position: absolute; min-width: 24px; min-height: 20px; padding: 3px; outline: 1px solid transparent; cursor: move; white-space: pre-wrap; }
.pdf-object.is-selected { outline: 1px solid var(--accent); }
.pdf-object.is-selected::after { position: absolute; right: -5px; bottom: -5px; width: 8px; height: 8px; border: 1px solid var(--accent); background: white; content: ''; cursor: nwse-resize; }
.pdf-existing-text { position: absolute; z-index: 1; color: transparent; cursor: text; white-space: pre; }
.pdf-existing-text:hover { outline: 1px dashed var(--accent); }
.pdf-object-redact { background: white; border: 2px solid var(--accent); }
.pdf-object-rectangle { border: 2px solid var(--accent); }
.pdf-editor-status { margin: 0; padding: 8px 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: .75rem; }
.pdf-editor-status.error { color: var(--accent); }
.pdf-properties h2 { padding: 0 0 12px; border: 0; }
.pdf-properties-empty { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.pdf-property-controls { display: grid; gap: 12px; opacity: 1; }
.pdf-property-controls[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.pdf-property-controls label { display: grid; gap: 5px; margin: 0; color: var(--muted); font-size: .72rem; }
.pdf-property-controls input, .pdf-property-controls select { width: 100%; margin: 0; padding: 7px; font-size: .78rem; }
.pdf-property-buttons { display: flex; gap: 4px; }
.pdf-property-buttons button { flex: 1; border-color: var(--border); }
.pdf-color-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.pdf-color-grid button { width: 22px; height: 22px; padding: 0; border: 1px solid var(--border); border-radius: 50%; }
.pdf-context-menu { position: fixed; z-index: 20; display: grid; min-width: 150px; padding: 4px; border: 1px solid var(--border); background: white; box-shadow: 0 5px 18px rgba(22,22,22,.12); }
.pdf-context-menu button { padding: 8px 10px; border: 0; background: white; color: var(--text); text-align: left; font-size: .75rem; }
.pdf-context-menu button:hover { background: #f4f4f6; }
@media (max-width: 900px) { .pdf-editor-workspace { grid-template-columns: 82px minmax(0, 1fr) 210px; } .pdf-editor-ribbon { overflow-x: auto; } .pdf-ribbon-document { flex-basis: 130px; } }
@media (max-width: 680px) { .pdf-editor-page { width: 100%; padding: 0; } .pdf-editor-app { height: calc(100vh - 100px); min-height: 520px; border-right: 0; border-left: 0; } .pdf-editor-workspace { grid-template-columns: 70px minmax(0, 1fr); } .pdf-properties { display: none; } .pdf-ribbon-group { padding-left: 5px; } .pdf-ribbon-document { display: none; } }

/* Revised PDF editor rows */
.pdf-editor-app { grid-template-rows: auto auto auto minmax(0, 1fr); }
.pdf-editor-topbar, .pdf-editor-toolrow, .pdf-formatbar { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 12px; border-bottom: 1px solid var(--border); background: white; }
.pdf-document-title { display: flex; align-items: center; gap: 8px; min-width: 0; margin-right: auto; }
.pdf-document-title strong { overflow: hidden; max-width: min(52vw, 520px); text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.pdf-close, .pdf-document-title button { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: var(--text); text-decoration: none; }
.pdf-document-title button { color: var(--muted); cursor: pointer; }
.pdf-save-actions { display: flex; gap: 6px; }
.pdf-save-actions button { margin: 0; padding: 8px 13px; border: 1px solid var(--border); border-radius: 6px; background: white; color: var(--text); font-size: .76rem; }
.pdf-save-actions .pdf-save-button { border-color: var(--accent); background: var(--accent); color: white; }
.pdf-editor-toolrow { overflow-x: auto; white-space: nowrap; }
.pdf-page-jump { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; color: var(--muted); font-size: .74rem; }
.pdf-page-jump select { width: 88px; margin: 0; padding: 6px; font-size: .75rem; }
.pdf-toolbar-divider { flex: 0 0 1px; height: 24px; background: var(--border); }
.pdf-tool-buttons { display: flex; flex: 0 0 auto; gap: 3px; }
.pdf-tool-buttons button { position: relative; margin: 0; padding: 7px 10px; border: 1px solid transparent; border-radius: 16px; background: transparent; color: var(--text); font-size: .74rem; }
.pdf-tool-buttons button:hover, .pdf-tool-buttons button.is-active { background: #fff1f0; color: var(--accent); }
.pdf-tool-buttons .pdf-lock { display: inline; margin-left: 4px; font-size: .6rem; }
.pdf-editor-toolrow > button[data-open-pdf] { flex: 0 0 auto; margin-left: auto; padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; background: white; color: var(--text); font-size: .74rem; }
.pdf-zoom-control { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; margin-left: 0; }
.pdf-zoom-control button { margin: 0; padding: 5px 8px; border: 0; background: transparent; color: var(--text); }
.pdf-zoom-control output { min-width: 42px; color: var(--muted); text-align: center; font-size: .74rem; }
.pdf-formatbar { min-height: 42px; padding-block: 5px; }
.pdf-formatbar[hidden] { display: none; }
.pdf-formatbar label, .pdf-format-colors > span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.pdf-formatbar select { margin: 0; padding: 5px 7px; font-size: .74rem; }
.pdf-format-colors { display: flex; align-items: center; gap: 6px; }
.pdf-format-colors [data-color-grid] { display: flex; gap: 4px; max-width: 82px; overflow: hidden; }
.pdf-format-colors [data-color-grid].is-expanded { max-width: 300px; }
.pdf-format-colors [data-color-grid] button { flex: 0 0 18px; width: 18px; height: 18px; padding: 0; border: 1px solid var(--border); border-radius: 50%; }
.pdf-format-colors > button { padding: 2px 6px; border: 1px solid var(--border); border-radius: 50%; background: white; }
.pdf-format-buttons, .pdf-format-history { display: flex; gap: 3px; }
.pdf-format-buttons button, .pdf-format-history button { min-width: 28px; margin: 0; padding: 5px 7px; border: 1px solid var(--border); border-radius: 5px; background: white; color: var(--text); }
.pdf-format-history { margin-left: auto; }
.pdf-format-gated output { color: var(--muted); }
.pdf-editor-body { display: grid; grid-template-columns: 104px minmax(0, 1fr); min-height: 0; }
.pdf-view-toggle { display: flex; justify-content: center; gap: 4px; padding: 8px; border-top: 1px solid var(--border); }
.pdf-view-toggle button { margin: 0; padding: 4px 7px; border: 1px solid var(--border); background: white; color: var(--muted); }
@media (max-width: 680px) { .pdf-editor-topbar { padding-inline: 8px; } .pdf-editor-toolrow { gap: 8px; } .pdf-editor-body { grid-template-columns: 70px minmax(0, 1fr); } .pdf-formatbar { overflow-x: auto; } .pdf-document-title strong { max-width: 38vw; } }
@media (max-width: 760px) {
	.admin-sidebar { width: 252px; transform: translateX(-100%); transition: transform .2s ease; }
	.admin-shell.is-menu-open .admin-sidebar { transform: translateX(0); }
	.admin-main { margin-left: 0; }
	.admin-header { min-height: 74px; padding: 16px 18px 16px 64px; }
	.admin-header h1 { font-size: 1.05rem; }
	.admin-identity { gap: 10px; font-size: .78rem; }
	.admin-identity a { font-size: 0; }
	.admin-identity a::after { content: 'Exit'; font-size: .78rem; }
	.admin-content { padding: 22px 16px; }
	.admin-menu-toggle { position: fixed; z-index: 12; top: 16px; left: 16px; display: grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 9px; background: white; color: var(--accent); font-size: .58rem; font-weight: 800; box-shadow: 0 3px 14px rgba(22,22,22,.1); }
	.admin-shell.is-menu-open::before { position: fixed; z-index: 9; inset: 0; background: rgba(22,22,22,.3); content: ''; }
}
	@media (max-width: 800px) {
		.site-header { align-items: center; flex-direction: row; flex-wrap: nowrap; gap: 12px; padding: 14px 16px; }
		.site-header-home { align-items: center; flex-wrap: nowrap; }
		.site-header .home-nav, .site-header .site-actions { display: none; }
		.mobile-nav-toggle, .mobile-signup { display: grid; }
		.mobile-nav-toggle { order: 2; place-items: center; width: 40px; height: 40px; margin: 0 0 0 auto; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: white; color: var(--accent); font-size: 1.35rem; line-height: 1; cursor: pointer; }
		.mobile-signup { order: 3; align-items: center; padding: 10px 13px; border-radius: 8px; background: var(--accent); color: white; font-size: .82rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
		.mobile-nav-backdrop { position: fixed; z-index: 99; inset: 0; background: rgba(22,22,22,.42); }
		.mobile-nav-drawer { position: fixed; z-index: 100; inset: 0 auto 0 0; display: grid; grid-template-rows: auto 1fr; width: min(340px, 88vw); overflow: hidden; background: white; box-shadow: 12px 0 35px rgba(22,22,22,.2); }
		.mobile-nav-drawer[hidden], .mobile-nav-backdrop[hidden] { display: none; }
		.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding: 17px 18px; border-bottom: 1px solid var(--border); }
		.mobile-nav-close { width: 36px; height: 36px; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: white; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
		.mobile-nav-content { display: grid; align-content: start; gap: 3px; overflow-y: auto; padding: 12px 14px 28px; }
		.mobile-nav-content > a, .mobile-nav-content details > a { display: block; padding: 10px 9px; border-radius: 7px; color: var(--text); font-size: .9rem; text-decoration: none; }
		.mobile-nav-content > a:hover, .mobile-nav-content details > a:hover { background: #fff1f0; }
		.mobile-nav-content .mobile-nav-primary { color: var(--accent); font-weight: 800; }
		.mobile-nav-content details { border-top: 1px solid var(--border); }
		.mobile-nav-content summary { padding: 12px 9px 8px; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .05em; list-style: none; text-transform: uppercase; cursor: pointer; }
		.mobile-nav-content summary::-webkit-details-marker { display: none; }
		.mobile-nav-content summary::after { float: right; content: '+'; font-size: 1rem; }
		.mobile-nav-content details[open] summary::after { content: '-'; }
		.mobile-nav-section { display: grid; gap: 3px; border-top: 1px solid var(--border); padding: 11px 0 3px; }
		.mobile-nav-section h2 { margin: 0 9px 3px; color: var(--accent); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }
		.mobile-nav-section a { display: block; padding: 9px; color: var(--text); font-size: .9rem; text-decoration: none; }
		.mobile-nav-section a:hover { background: #fff1f0; }
		.site-header-home .home-nav { order: initial; display: none; }
		.site-header-home .site-actions { display: none; }

		.site-header-home { align-items: stretch; flex-wrap: wrap; }
		.site-header-home .home-nav { order: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex-basis: 100%; width: 100%; justify-content: initial; gap: 6px; overflow: visible; }
		.site-header-home .home-nav > a, .site-header-home .home-nav > .nav-menu > summary { display: flex; align-items: center; min-height: 40px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fbfbfd; }
		.site-header-home .home-nav > .nav-menu { width: 100%; }
		.site-header-home .home-nav > .nav-menu[open] { grid-column: 1 / -1; }
		.site-header-home .nav-menu-panel, .site-header-home .nav-menu-catalog { position: static; grid-template-columns: 1fr; width: 100%; max-height: 55vh; margin-top: 6px; overflow-y: auto; transform: none; }
		.site-header-home .nav-menu-panel a { min-width: 0; }
		.grid-menu { grid-template-columns: 1fr; width: auto; }
		.pdf-workspace, .pricing-cards, .contact-grid { grid-template-columns: 1fr; }
		.image-tool .crop-editor, .image-tool[data-tool-slug="image-resize-crop"] .crop-editor { display: block; }
		.image-tool .crop-live { margin-top: 12px; }
		.admin-sidebar { width: 252px; transform: translateX(-100%); transition: transform .2s ease; }
		.admin-shell.is-menu-open .admin-sidebar { transform: translateX(0); }
		.admin-main { margin-left: 0; }
		.admin-header { min-height: 74px; padding: 16px 18px 16px 64px; }
		.admin-header h1 { font-size: 1.05rem; }
		.admin-identity { gap: 10px; font-size: .78rem; }
		.admin-identity a { font-size: 0; }
		.admin-identity a::after { content: 'Exit'; font-size: .78rem; }
		.admin-content { padding: 22px 16px; }
		.admin-menu-toggle { position: fixed; z-index: 12; top: 16px; left: 16px; display: grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 9px; background: white; color: var(--accent); font-size: .58rem; font-weight: 800; box-shadow: 0 3px 14px rgba(22,22,22,.1); }
		.admin-shell.is-menu-open::before { position: fixed; z-index: 9; inset: 0; background: rgba(22,22,22,.3); content: ''; }
		.plan-tool-checklist label { grid-template-columns: auto 1fr; }
		.plan-tool-checklist label input[type="number"] { grid-column: 2; }
		.site-header-home { align-items: center; flex-wrap: nowrap; }
		.site-header-home .home-nav { order: initial; display: none; flex-basis: auto; width: auto; }
	}
@media (min-width: 761px) and (max-width: 800px) {
	.site-header { flex-direction: row; flex-wrap: wrap; padding: 14px max(20px, calc((100% - 1080px) / 2)); }
	.site-header-home { align-items: center; flex-wrap: wrap; }
	.site-header .home-nav, .site-header .site-actions { display: flex; }
	.site-header-home .home-nav { order: 3; width: 100%; flex-basis: auto; justify-content: flex-start; overflow-x: auto; }
	.mobile-nav-toggle, .mobile-signup { display: none; }
}
