:root {
  color-scheme: light;
  --ink: #283247;
  --muted: #788195;
  --line: #e8ebf1;
  --blue: #4768d5;
  --blue-dark: #3453bd;
  --pale-blue: #eef3ff;
  --warm: #faf9f6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: #fff; font: 14px 'DM Sans', Arial, sans-serif; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.home-header { position: sticky; top: 0; z-index: 9; height: 68px; display: flex; align-items: center; gap: 34px; padding: 0 max(5%, calc((100vw - 1240px) / 2)); border-bottom: 1px solid #eef0f3; background: #fff; }
.home-brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--ink); font-size: 15px; font-weight: 600; }
.home-brand { font-size: 16px; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #dce5fa; border-radius: 10px; background: #f0f4ff; color: var(--blue); font: 600 23px 'Noto Nastaliq Urdu', serif; }
.header-nav { display: flex; align-items: center; gap: 25px; margin-inline-start: auto; color: #697287; font-size: 12px; }
.header-nav a:hover { color: var(--blue); }
.header-nav a[aria-current="page"] { color: var(--blue-dark); font-weight: 600; }
.header-start { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #e1e6f4; border-radius: 8px; background: #fff; color: var(--blue-dark); font: 500 13px 'DM Sans', Arial, sans-serif; }
.header-start:hover { background: var(--pale-blue); }

.welcome-band { overflow: hidden; border-bottom: 1px solid #edf0f4; background: #fafbfc; }
.welcome-inner { width: min(1120px, 90%); min-height: 430px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(35px, 6vw, 78px); padding: 48px 0 54px; }
.welcome-copy { max-width: 520px; }
.eyebrow, .section-kicker { margin: 0 0 9px; color: #6578c2; font: 500 11px 'DM Sans', Arial, sans-serif; letter-spacing: .08em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 17px; color: #55647f; font-size: 11px; letter-spacing: .015em; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #6481d9; }
.welcome-copy h1 { margin: 0; color: #202b3c; font: 600 clamp(36px, 4.2vw, 53px)/1.12 'DM Sans', Arial, sans-serif; letter-spacing: -.045em; }
.welcome-copy h1 span { color: #526bc3; }
.welcome-description { max-width: 460px; margin: 19px 0 25px; color: #657084; font: 14px/1.85 'DM Sans', Arial, sans-serif; }
.welcome-actions { display: flex; align-items: center; gap: 10px; }
.create-button, .upload-button { min-height: 43px; display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 9px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; font: 500 12px 'DM Sans', Arial, sans-serif; white-space: nowrap; }
.create-button { color: white; background: #405fc3; box-shadow: 0 2px 5px #293b7021; }
.create-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.plus-icon { font: 20px 'DM Sans', sans-serif; }
.upload-button { border-color: #d8dde6; background: #fff; color: #39465b; }
.upload-button:hover { border-color: #b9c7ef; background: #fbfcff; }
.upload-button > span { font-size: 18px; }
.private-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: #778195; font: 10px 'DM Sans', Arial, sans-serif; }
.private-note span { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: #e8f2ec; color: #3d805e; font-size: 10px; }
.private-note i { width: 3px; height: 3px; margin: 0 2px; border-radius: 50%; background: #a2a9b5; }
.hero-product { min-width: 0; padding: 20px; border: 1px solid #e4e8ef; border-radius: 14px; background: #f1f3f7; box-shadow: 0 18px 45px #24334c12; }
.hero-editor { overflow: hidden; border: 1px solid #e3e7ed; border-radius: 9px; background: #fff; box-shadow: 0 3px 10px #2632470b; }
.hero-editor-top { min-height: 57px; display: flex; align-items: center; gap: 10px; padding: 10px 15px; border-bottom: 1px solid #edf0f3; }
.hero-document-title { display: grid; gap: 3px; }
.hero-document-title strong { color: #354055; font-size: 10px; font-weight: 600; }
.hero-document-title small { color: #8992a1; font-size: 8px; }
.hero-save-indicator { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: auto; color: #738092; font-size: 9px; }
.hero-save-indicator i { width: 6px; height: 6px; border-radius: 50%; background: #61a27c; }
.hero-toolbar { min-height: 41px; display: flex; align-items: center; gap: 13px; padding: 0 15px; border-bottom: 1px solid #edf0f3; color: #566176; font-size: 10px; }
.hero-toolbar > i { width: 1px; height: 18px; background: #e6e9ee; }
.hero-toolbar > b { font-size: 11px; }
.hero-toolbar > em { font-family: Georgia, serif; }
.hero-toolbar > u { text-underline-offset: 2px; }
.hero-font-select, .hero-font-size { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 126px; padding: 5px 7px; border: 1px solid #e5e8ed; border-radius: 4px; color: #596579; font-size: 8px; }
.hero-font-size { min-width: 42px; }
.hero-toolbar > span:not(.hero-font-select):not(.hero-font-size) { color: #5b677a; font-size: 12px; }
.hero-paper { min-height: 255px; display: flex; justify-content: center; padding: 22px 18px; background: #f6f7f9; }
.hero-paper article { width: min(100%, 330px); min-height: 210px; padding: 22px 28px; border: 1px solid #ebedf1; background: #fff; box-shadow: 0 2px 6px #2632470b; color: #303a4d; direction: rtl; text-align: right; }
.hero-paper h2 { margin: 0 0 10px; color: #33446f; font: 500 16px/1.9 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif; }
.hero-paper p { margin: 0 0 8px; font: 400 11px/2.15 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif; }

.home-content { width: min(1120px, 90%); margin: 0 auto; }
.recent-section { padding: 32px 0 30px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.section-kicker { margin-bottom: 3px; color: #9098a9; font-size: 10px; }
.section-heading h2 { margin: 0; color: #2c3548; font: 600 19px 'DM Sans', Arial, sans-serif; }
.subtle-link { padding-bottom: 3px; color: #687cca; font: 11px 'DM Sans', Arial, sans-serif; }
.subtle-link:hover { color: var(--blue-dark); }
.saved-files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 190px)); gap: 18px; }
.saved-file-card { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 9px; border-radius: 4px; text-align: left; }
.saved-file-link { min-width: 0; display: flex; flex-direction: column; gap: 9px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; text-align: left; }
.saved-file-link:hover .recent-preview, .saved-file-link:focus-visible .recent-preview { border-color: #b8c6ec; box-shadow: 0 4px 12px #28324717; }
.saved-file-link:hover .recent-name, .saved-file-link:focus-visible .recent-name { color: var(--blue-dark); }
.recent-name { width: 100%; overflow: hidden; color: #34405a; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; }
.recent-preview { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid #e3e6ec; border-radius: 5px; background: #fff; box-shadow: 0 2px 6px #28324710; transition: border-color .15s, box-shadow .15s; }
.document-preview { position: absolute; top: 0; left: 0; width: 794px; height: 1123px; transform-origin: top left; border: 0; background: #fff; pointer-events: none; }
.file-menu-wrap { position: absolute; z-index: 2; top: 8px; right: 8px; }
.file-menu-button { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #e4e7ed; border-radius: 7px; background: #fff; color: #526078; box-shadow: 0 2px 6px #28324718; font-size: 21px; line-height: 1; }
.file-menu-button:hover, .file-menu-button[aria-expanded="true"] { border-color: #cbd4f0; background: #f7f8fd; color: var(--blue-dark); }
.file-menu { position: absolute; top: 37px; right: 0; width: 140px; padding: 5px; border: 1px solid #e5e8ef; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px #28324720; }
.file-menu-item { width: 100%; padding: 9px 10px; border: 0; border-radius: 5px; background: transparent; color: #4b566b; text-align: left; font-size: 11px; }
.file-menu-item:hover, .file-menu-item:focus-visible { background: #f2f4fb; color: var(--blue-dark); }
.file-menu-item[data-action="delete"] { color: #b13e48; }
.file-menu-item[data-action="delete"]:hover { background: #fff1f1; }
.empty-recent { min-height: 92px; display: flex; align-items: center; gap: 13px; padding: 17px; border: 1px dashed #dce1eb; border-radius: 9px; background: #fcfcfe; }
.empty-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: var(--pale-blue); color: var(--blue); font-size: 20px; }
.empty-recent strong { font: 500 13px 'DM Sans', Arial, sans-serif; }
.empty-recent p { margin: 3px 0 0; color: var(--muted); font: 10px 'DM Sans', Arial, sans-serif; }
.empty-recent a { margin-inline-start: auto; color: var(--blue); font: 11px 'DM Sans', Arial, sans-serif; }

.templates-section { padding: 12px 0 50px; }
.template-grid { margin-top: 16px; }
.template-card { aspect-ratio: .7; gap: 0; overflow: hidden; border: 1px solid #e5e8ed; border-radius: 8px; background: #f0f1f3; transition: border-color .16s, box-shadow .16s, transform .16s; }
.template-card:hover { transform: translateY(-2px); border-color: #cbd4f0; box-shadow: 0 8px 20px #29375b12; }
.template-open { width: 100%; height: 100%; gap: 0; overflow: hidden; cursor: pointer; }
.template-open:hover .recent-preview, .template-open:focus-visible .recent-preview { border-color: #b8c6ec; box-shadow: 0 4px 12px #28324717; }
.template-open:hover .recent-name, .template-open:focus-visible .recent-name { color: var(--blue-dark); }
.template-open:hover .template-art, .template-open:focus-visible .template-art { box-shadow: none; }
.template-art { width: 100%; min-height: 0; flex: 1 1 70%; display: block; padding: 0; aspect-ratio: auto; border: 0; border-radius: 0; background: #f6f7f8; box-shadow: none; }
.template-page-preview { position: absolute; top: 0; left: 50%; width: 794px; height: 1123px; transform-origin: top center; border: 0; background: #fff; box-shadow: 0 2px 9px #28324720; pointer-events: none; }
.template-open .recent-name { min-height: 0; flex: 0 0 15%; display: flex; flex-direction: column; justify-content: end; gap: 4px; padding: 4px 12px 0; background: #f0f1f3; white-space: normal; }
.file-description { width: 100%; min-height: 0; flex: 0 0 15%; overflow: hidden; padding: 0 12px 5px; background: #f0f1f3; color: #858d9d; font-size: 10px; line-height: 1.4; text-align: left; text-overflow: ellipsis; }
.home-footer { padding: 30px max(5%, calc((100vw - 1240px) / 2)) 0; border-top: 1px solid #eef0f3; background: #fafbfe; color: #8790a0; font-size: 11px; }
.footer-brand { gap: 7px; color: #525f7a; font-size: 11px; }
.footer-brand .brand-mark { width: 25px; height: 25px; border-radius: 7px; font-size: 17px; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 32px; padding: 0 0 27px; }
.footer-about p, .footer-privacy p { max-width: 260px; margin: 10px 0 0; color: #828b9c; font-size: 11px; line-height: 1.7; }
.footer-links { display: grid; justify-items: start; gap: 9px; }
.footer-links strong, .footer-privacy strong { color: #3a455c; font-size: 11px; font-weight: 600; }
.footer-links a { color: #778196; font-size: 10px; }
.footer-links a:hover { color: var(--blue); }
.footer-links a[aria-current="page"] { color: var(--blue-dark); font-weight: 600; }
.footer-bottom { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #ebedf2; color: #929aaa; font-size: 10px; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.footer-legal a:hover { color: var(--blue); }
.footer-legal a[aria-current="page"] { color: var(--blue-dark); font-weight: 600; }
.guide-promo { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 45px; padding: 24px 26px; border: 1px solid #e4e8ef; border-radius: 10px; background: #fafbfc; }
.guide-promo h2 { margin: 0; color: #2c3548; font: 600 18px 'DM Sans', Arial, sans-serif; }
.guide-promo p:not(.section-kicker) { max-width: 610px; margin: 8px 0 0; color: #707b8f; font-size: 12px; line-height: 1.7; }
.guide-promo .create-button { flex-shrink: 0; }
.home-faq { margin: 0 0 45px; }
.policy-main { width: min(900px, 90%); min-height: 65vh; margin: 0 auto; padding: 48px 0 64px; }
.policy-header { max-width: 720px; margin-bottom: 30px; }
.policy-header h1 { margin: 0 0 12px; color: #26344f; font: 600 clamp(30px, 4vw, 40px)/1.2 'DM Sans', Arial, sans-serif; letter-spacing: -.035em; }
.policy-header p:not(.section-kicker) { margin: 0; color: #68738c; font-size: 13px; line-height: 1.8; }
.policy-content { max-width: 760px; color: #4d586b; font-size: 13px; line-height: 1.85; }
.policy-content h2 { margin: 28px 0 8px; color: #2c3548; font: 600 18px/1.4 'DM Sans', Arial, sans-serif; }
.policy-content h3 { margin: 20px 0 7px; color: #36415a; font: 600 14px/1.5 'DM Sans', Arial, sans-serif; }
.policy-content p { margin: 0 0 12px; }
.policy-content ul, .policy-content ol { padding-inline-start: 23px; }
.policy-content li { margin: 0 0 7px; }
.contact-option { margin: 0 0 22px; padding: 19px 20px; border: 1px solid #e7eaf0; border-radius: 9px; background: #fff; }
.contact-option h2 { margin-top: 0; }
.contact-option .create-button { margin: 2px 0 14px; text-decoration: none; }
.contact-option .policy-callout { margin-bottom: 0; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid #e5e9f0; border-radius: 8px; background: #fff; }
.faq-item[open] { border-color: #d5ddef; box-shadow: 0 3px 12px #28324708; }
.faq-item summary { position: relative; padding: 16px 44px 16px 17px; color: #34405a; cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 50%; right: 17px; color: var(--blue); content: '+'; font-size: 20px; font-weight: 400; transform: translateY(-50%); }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 7px; }
.faq-item p { margin: 0; padding: 0 17px 16px; color: #68738c; font-size: 12px; line-height: 1.8; }
.faq-item a, .faq-more-help a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; }
.faq-more-help { margin: 24px 0 0; color: #68738c; font-size: 13px; line-height: 1.8; }
.policy-content a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; }
.policy-updated { margin-top: 24px !important; color: #838da1; font-size: 11px; }
.policy-callout { margin: 18px 0; padding: 14px 16px; border-left: 3px solid #7185cb; border-radius: 4px; background: #f4f6fb; color: #59657a; font-size: 12px; line-height: 1.7; }
.guide-toc { display: grid; gap: 7px; margin: 18px 0 25px; padding: 16px 18px; border: 1px solid #e7eaf0; border-radius: 8px; background: #fafbfc; }
.guide-toc strong { color: #36415a; }
.guide-toc a { font-size: 12px; }
.guide-urdu { direction: rtl; text-align: right; font-family: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif; }
.guide-example { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 20px; }
.guide-example > div { padding: 14px; border: 1px solid #e6e9ef; border-radius: 7px; background: #fafbfc; }
.guide-example small { display: block; margin-bottom: 7px; color: #778195; font: 11px 'DM Sans', Arial, sans-serif; }
.guide-example p { margin: 0; }
.home-toast { position: fixed; z-index: 5; right: 50%; bottom: 25px; max-width: calc(100vw - 30px); padding: 10px 16px; transform: translateX(50%); border-radius: 6px; background: #283247; color: white; opacity: 0; pointer-events: none; transition: opacity .2s; font: 12px 'DM Sans', Arial, sans-serif; }
.home-toast.visible { opacity: 1; }

.feedback-main { width: min(760px, 90%); min-height: 65vh; margin: 0 auto; padding: 54px 0 65px; }
.feedback-intro { max-width: 600px; margin-bottom: 25px; }
.feedback-intro h1 { margin: 0 0 10px; color: #26344f; font: 600 clamp(27px, 4vw, 36px)/1.2 'DM Sans', Arial, sans-serif; letter-spacing: -.03em; }
.feedback-intro p:last-child { margin: 0; color: #68738c; font-size: 13px; line-height: 1.8; }
.feedback-form { display: grid; gap: 17px; padding: 25px; border: 1px solid #e6e9ef; border-radius: 11px; background: #fff; box-shadow: 0 5px 20px #28324708; }
.feedback-form label, .feedback-rating legend { display: grid; gap: 7px; color: #4e596d; font-size: 12px; font-weight: 500; }
.feedback-form select, .feedback-form input, .feedback-form textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #e0e4ec; border-radius: 7px; outline: none; background: #fff; color: var(--ink); font: 12px 'DM Sans', Arial, sans-serif; }
.feedback-form textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.feedback-form select:focus, .feedback-form input:focus, .feedback-form textarea:focus { border-color: #9baee9; box-shadow: 0 0 0 3px #4768d51a; }
.feedback-rating { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.feedback-rating legend { margin-bottom: 8px; }
.rating-options { display: flex; flex-wrap: wrap; gap: 8px; }
.rating-option { position: relative; }
.rating-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rating-option span { min-width: 43px; height: 39px; display: grid; place-items: center; border: 1px solid #e0e4ec; border-radius: 7px; color: #677287; cursor: pointer; }
.rating-option input:checked + span { border-color: #b9c7ef; background: var(--pale-blue); color: var(--blue-dark); }
.rating-option input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.feedback-submit { min-height: 43px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; }
.feedback-submit:hover { background: var(--blue-dark); }
.feedback-status { margin: 0; color: #737d90; font-size: 11px; line-height: 1.7; }
.feedback-status.error { color: #a83c3c; }
.feedback-status.success { color: #387552; }

.auth-modal { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: #1d263a80; }
.auth-dialog { position: relative; width: min(100%, 420px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 30px; border: 1px solid #e8ebf1; border-radius: 14px; background: #fff; box-shadow: 0 20px 60px #18213a30; }
.auth-close { position: absolute; top: 13px; right: 15px; width: 32px; height: 32px; border: 0; border-radius: 7px; background: #f5f6f9; color: #667085; font-size: 22px; }
.auth-dialog h2 { margin: 0 0 18px; color: #2c3548; font: 600 22px 'DM Sans', Arial, sans-serif; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 17px; padding: 4px; border-radius: 8px; background: #f4f5f8; }
.auth-tab { padding: 9px; border: 0; border-radius: 6px; background: transparent; color: #737d90; font-size: 12px; }
.auth-tab.active { background: #fff; color: var(--blue-dark); box-shadow: 0 1px 4px #28324717; }
.auth-form { display: grid; gap: 12px; }
.auth-form label { display: grid; gap: 6px; color: #4e596d; font-size: 11px; font-weight: 500; }
.auth-form input { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid #e0e4ec; border-radius: 7px; outline: none; color: var(--ink); }
.auth-form input:focus { border-color: #9baee9; box-shadow: 0 0 0 3px #4768d51a; }
.auth-submit { min-height: 41px; margin-top: 3px; border: 0; border-radius: 7px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; }
.auth-submit:hover { background: var(--blue-dark); }
.auth-separator { display: flex; align-items: center; gap: 10px; margin: 17px 0 13px; color: #929aaa; font-size: 10px; }
.auth-separator::before, .auth-separator::after { height: 1px; flex: 1; background: #eceef2; content: ''; }
.google-signin { width: 100%; min-height: 41px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #dfe3ea; border-radius: 7px; background: #fff; color: #404a5c; font-size: 12px; font-weight: 500; }
.google-signin:hover { background: #fafbfc; }
.google-signin img { width: 17px; height: 17px; }
.auth-notice { margin: 13px 0 0; color: #828b9b; text-align: center; font-size: 10px; line-height: 1.6; }

@media (max-width: 900px) {
  .home-header { gap: 15px; padding-inline: 4%; }
  .header-nav { gap: 13px; font-size: 10px; }
  .header-start { padding: 8px 10px; font-size: 11px; }
}
@media (max-width: 760px) {
  .home-header { min-height: 60px; height: auto; gap: 15px; padding: 10px 5%; }
  .header-nav { gap: 13px; font-size: 10px; }
  .header-start { padding: 8px 10px; font-size: 11px; }
  .welcome-inner { width: min(680px, 90%); min-height: 0; grid-template-columns: 1fr; gap: 30px; padding: 40px 0 44px; }
  .welcome-copy { max-width: 600px; }
  .hero-product { width: 100%; }
  .hero-paper article { width: min(100%, 420px); }
  .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 520px) {
  .home-header { flex-wrap: wrap; gap: 10px; }
  .home-brand { font-size: 12px; }
  .home-brand .brand-mark { width: 29px; height: 29px; font-size: 20px; }
  .header-nav { order: 3; width: 100%; flex: 1 0 100%; gap: 17px; overflow-x: auto; margin: 0; padding: 5px 0 3px; white-space: nowrap; scrollbar-width: thin; }
  .header-start { margin-inline-start: auto; }
  .welcome-inner { width: min(520px, 90%); gap: 24px; padding: 32px 0 36px; }
  .welcome-copy h1 { max-width: 360px; font-size: 35px; }
  .welcome-description { max-width: 420px; font-size: 12px; }
  .welcome-actions { flex-wrap: wrap; }
  .create-button, .upload-button { padding-inline: 11px; font-size: 11px; }
  .hero-product { padding: 10px; border-radius: 10px; }
  .hero-editor-top { min-height: 51px; padding-inline: 11px; }
  .hero-toolbar { min-height: 41px; flex-wrap: wrap; gap: 7px; padding: 8px 9px; }
  .hero-font-select { min-width: 0; flex: 1 1 115px; }
  .hero-font-size { flex: 0 0 42px; }
  .hero-toolbar > i { height: 15px; }
  .hero-paper { min-height: 230px; padding: 12px; }
  .hero-paper article { width: 100%; min-height: 205px; padding: 18px 20px; }
  .home-content { width: 90%; }
  .section-heading { align-items: center; }
  .section-heading h2 { font-size: 16px; }
  .subtle-link { font-size: 9px; }
  .saved-files-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
  .home-footer { padding: 22px 5% 0; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-privacy { grid-column: auto; }
  .footer-bottom { min-height: 38px; }
  .footer-legal { gap: 10px 14px; }
  .auth-dialog { padding: 26px 21px; }
  .feedback-main { padding: 38px 0 45px; }
  .feedback-form { padding: 19px; }
  .guide-promo { align-items: flex-start; flex-direction: column; padding: 19px; }
  .guide-example { grid-template-columns: 1fr; }
}
