:root{
  --bg:#f5f7fb;--surface:#fff;--surface2:#f0f3f8;--text:#172033;--muted:#677085;
  --line:#e2e7ef;--accent:#5b67f1;--accent2:#111827;--success:#12805c;--danger:#c0392b;
  --shadow:0 16px 50px rgba(23,32,51,.08);--radius:20px
}
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body.dark{--bg:#11131a;--surface:#191d27;--surface2:#222735;--text:#f5f7fb;--muted:#a6afc2;--line:#303747;--accent:#8790ff;--accent2:#fff;--shadow:none}
button,input,textarea,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.app-shell{min-height:100vh;padding-bottom:80px}
.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100vw - 1180px)/2));background:color-mix(in srgb,var(--surface) 92%,transparent);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;backdrop-filter:blur(14px)}
.brand{display:flex;gap:10px;align-items:center;color:var(--text);text-decoration:none}.brand-mark{width:38px;height:38px;border-radius:12px;background:var(--accent);color:white;display:grid;place-items:center;font-weight:900}.brand b{font-size:18px}.brand small{font-size:10px;margin-left:5px;color:var(--accent);font-weight:800}.top-actions{display:flex;gap:8px}
.icon-btn,.ghost,.back{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:12px;padding:10px 14px}.back{font-size:20px;padding:7px 12px}
main{max-width:1180px;margin:auto;padding:30px 20px}.page{display:none}.page.active{display:block}.page-head{display:flex;align-items:center;gap:16px;margin-bottom:24px}.page-head h1{margin:2px 0 0;font-size:32px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:800;color:var(--accent)}
.hero{display:grid;grid-template-columns:1.5fr .7fr;gap:26px;align-items:stretch;padding:38px 0}.hero h1{font-size:clamp(38px,6vw,68px);line-height:1.02;margin:10px 0 18px;letter-spacing:-.04em}.hero p{font-size:18px;color:var(--muted);max-width:720px}.hero-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.hero-badges span,.status-dot{background:var(--surface2);border:1px solid var(--line);border-radius:999px;padding:8px 12px;font-size:13px}
.hero-card{background:linear-gradient(145deg,var(--surface),var(--surface2));border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:26px;display:flex;flex-direction:column;justify-content:center;gap:10px}.hero-card strong{font-size:24px}.hero-card span,.hero-card small{color:var(--muted)}.meter{height:8px;background:var(--line);border-radius:20px;overflow:hidden}.meter i{display:block;height:100%;background:var(--accent)}
.module-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.module-card{text-align:left;border:1px solid var(--line);background:var(--surface);color:var(--text);padding:22px;border-radius:var(--radius);box-shadow:var(--shadow);transition:.2s}.module-card:hover{transform:translateY(-3px);border-color:var(--accent)}.module-card h2{margin:18px 0 8px}.module-card p{color:var(--muted);min-height:70px}.module-card b{color:var(--accent)}.module-icon{display:inline-grid;place-items:center;width:54px;height:54px;border-radius:16px;background:var(--surface2);font-weight:900;color:var(--accent)}
.privacy-card{margin-top:18px;display:flex;align-items:center;justify-content:space-between;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px}.privacy-card p{margin:5px 0 0;color:var(--muted)}
.tool-tabs{display:flex;gap:8px;overflow:auto;padding-bottom:10px;margin-bottom:14px}.tab{white-space:nowrap;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:999px;padding:10px 15px}.tab.active{background:var(--accent);border-color:var(--accent);color:white}.tool-panel{display:none}.tool-panel.active{display:block}
.tool-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);margin-bottom:16px}.tool-card h2{margin-top:0}.tool-card>p{color:var(--muted)}
.dropzone{border:1.5px dashed #aab3c4;border-radius:16px;min-height:130px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;background:var(--surface2);margin:14px 0;padding:20px;text-align:center}.dropzone input{display:none}.dropzone span{font-weight:800}.dropzone small{color:var(--muted)}
.field,.controls-grid input,.controls-grid select,select{width:100%;border:1px solid var(--line);background:var(--surface2);color:var(--text);border-radius:12px;padding:12px 13px;margin:6px 0;outline:none}.field:focus{border-color:var(--accent)}textarea.field{resize:vertical;min-height:90px}.field.big{min-height:150px}.row{display:flex;gap:10px;align-items:center}.row>*{flex:1}.row.spread{justify-content:space-between}.row.spread>*{flex:initial}
.primary{border:0;background:var(--accent);color:white;padding:12px 18px;border-radius:12px;font-weight:800}.primary:disabled{opacity:.5}.file-list{display:flex;flex-direction:column;gap:8px;margin:10px 0}.file-item{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--surface2);border:1px solid var(--line);border-radius:12px}.file-item span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-item button{border:0;background:transparent;color:var(--danger)}
.controls-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0}.controls-grid label{font-size:12px;color:var(--muted)}.image-results{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.image-result{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface2)}.image-result img{width:100%;aspect-ratio:4/3;object-fit:cover}.image-result div{padding:10px}.image-result a{color:var(--accent);font-weight:700;text-decoration:none}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.stats-grid article{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px}.stats-grid small{color:var(--muted)}.stats-grid strong{display:block;font-size:25px;margin-top:5px}.finance-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.tx-list{display:flex;flex-direction:column;gap:8px}.tx-row{display:grid;grid-template-columns:1fr 140px 100px 32px;gap:10px;align-items:center;padding:12px;background:var(--surface2);border-radius:12px}.tx-row .income{color:var(--success);font-weight:800}.tx-row .expense{color:var(--danger);font-weight:800}.tx-row button{border:0;background:transparent;color:var(--danger)}.goal-progress{height:10px;background:var(--line);border-radius:20px;overflow:hidden;margin-top:12px}.goal-progress i{height:100%;display:block;background:var(--accent)}
.cv-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:18px}.cv-form{position:sticky;top:90px;align-self:start}.cv-preview-wrap{background:#dfe4ed;border-radius:20px;padding:26px;overflow:auto}.cv-sheet{width:210mm;min-height:297mm;background:white;color:#172033;padding:18mm;margin:auto;box-shadow:0 12px 30px rgba(0,0,0,.12)}.cv-sheet header{border-bottom:2px solid #5b67f1;padding-bottom:12px}.cv-sheet header h1{font-size:34px;margin:0}.cv-sheet header h2{font-size:17px;color:#5b67f1;margin:5px 0}.cv-sheet h3{text-transform:uppercase;letter-spacing:.08em;font-size:12px;margin-top:22px}.cv-sheet p,.cv-sheet li{font-size:13px;line-height:1.55}.cv-sheet.minimal header{border:0}.cv-sheet.minimal header h2{color:#333}.cv-sheet.executive header{background:#172033;color:white;padding:18px}.cv-sheet.executive header h2{color:#cdd3ff}.skill-list{display:flex;gap:7px;flex-wrap:wrap}.skill-list span{background:#edf0ff;color:#3843b9;padding:5px 8px;border-radius:8px;font-size:11px}
.bottom-nav{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);display:flex;background:color-mix(in srgb,var(--surface) 94%,transparent);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:18px;padding:6px;z-index:30;backdrop-filter:blur(16px)}.bottom-nav button{border:0;background:transparent;color:var(--muted);padding:10px 16px;border-radius:12px}.bottom-nav button.active{background:var(--accent);color:white}.toast{position:fixed;right:20px;bottom:95px;background:#172033;color:white;border-radius:12px;padding:12px 16px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s;z-index:40}.toast.show{opacity:1;transform:none}
@media(max-width:900px){.hero{grid-template-columns:1fr}.module-grid{grid-template-columns:1fr 1fr}.controls-grid,.stats-grid{grid-template-columns:1fr 1fr}.cv-layout{grid-template-columns:1fr}.cv-form{position:static}.cv-preview-wrap{padding:10px}.cv-sheet{transform-origin:top left;transform:scale(.62);margin-bottom:-110mm}.finance-grid{grid-template-columns:1fr}}
@media(max-width:580px){main{padding:20px 12px}.topbar{padding:0 14px}.module-grid{grid-template-columns:1fr}.controls-grid,.stats-grid{grid-template-columns:1fr 1fr}.bottom-nav{width:calc(100% - 16px);justify-content:space-between}.bottom-nav button{padding:9px 8px;font-size:12px}.row{flex-direction:column;align-items:stretch}.hero{padding-top:22px}.hero h1{font-size:40px}.tx-row{grid-template-columns:1fr 90px 26px}.tx-row time{display:none}.image-results{grid-template-columns:1fr}.cv-sheet{transform:scale(.46);margin-bottom:-160mm}}
@media print{body>*{display:none!important}.print-root{display:block!important}.print-root *{visibility:visible}.print-root{position:absolute;inset:0;background:white}.print-root .cv-sheet{box-shadow:none;margin:0}}


/* ===== OmniDesk Pro V2 premium shell ===== */
:root{--sidebar:236px;--blue:#5a63f3;--violet:#7b61ff;--cyan:#4aa8ff;--soft-blue:#eef0ff}
body{background:radial-gradient(circle at 70% -20%,rgba(91,103,241,.08),transparent 32%),var(--bg)}
.app-shell{padding-bottom:72px}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:color-mix(in srgb,var(--surface) 97%,transparent);border-right:1px solid var(--line);padding:18px 14px;display:flex;flex-direction:column;z-index:35}.sidebar-brand{display:flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--text);padding:4px 8px 22px;text-align:left}.sidebar-brand>span:last-child{display:flex;flex-direction:column}.sidebar-brand small{font-size:9px;letter-spacing:.12em;color:var(--accent);font-weight:900}.sidebar-section-label{padding:16px 12px 8px;font-size:10px;letter-spacing:.14em;color:var(--muted);font-weight:800}.sidebar-nav{display:grid;gap:5px}.sidebar-nav button{border:0;background:transparent;color:var(--muted);padding:11px 12px;border-radius:12px;display:flex;align-items:center;gap:11px;text-align:left}.sidebar-nav button span{width:34px;height:28px;border-radius:9px;display:grid;place-items:center;background:var(--surface2);font-size:10px;font-weight:900}.sidebar-nav button.active,.sidebar-nav button:hover{background:var(--soft-blue);color:#3e47c9}.dark .sidebar-nav button.active,.dark .sidebar-nav button:hover{background:#2a2f47;color:#b9beff}.sidebar-bottom{margin-top:auto;display:grid;gap:10px}.local-chip{display:flex;gap:9px;align-items:center;padding:12px;background:var(--surface2);border-radius:14px}.local-chip i,.privacy-pill i,.live-dot{width:8px;height:8px;background:#22b573;border-radius:50%;box-shadow:0 0 0 4px rgba(34,181,115,.12)}.local-chip span{display:flex;flex-direction:column}.local-chip small{color:var(--muted);font-size:10px}.topbar{left:var(--sidebar);padding:0 28px;justify-content:space-between}.topbar-copy{display:flex;flex-direction:column;line-height:1.1}.topbar-copy strong{font-size:16px;margin-top:3px}.privacy-pill{display:flex;align-items:center;gap:9px;padding:9px 12px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:12px;background:var(--surface)}main{margin-left:var(--sidebar);max-width:none;padding:30px clamp(22px,4vw,64px)}
.premium-hero{max-width:1280px;margin:auto;grid-template-columns:minmax(0,1.4fr) minmax(300px,.6fr);padding:45px 0 34px}.hero-kicker{display:inline-flex;gap:9px;align-items:center;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:8px 12px;font-size:12px;color:var(--muted);margin-bottom:20px}.hero-copy h1{font-size:clamp(46px,5vw,78px);max-width:900px}.hero-actions{display:flex;gap:10px;margin:24px 0}.big-action,.soft-action{padding:13px 19px;border-radius:13px;font-weight:800}.soft-action{background:var(--surface);color:var(--text);border:1px solid var(--line)}.hero-console{border:1px solid var(--line);background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--surface2) 65%,var(--surface)));border-radius:26px;padding:22px;box-shadow:0 24px 70px rgba(52,61,120,.12);align-self:center}.console-top,.console-row{display:flex;justify-content:space-between;align-items:center}.console-top{padding-bottom:18px;border-bottom:1px solid var(--line)}.console-top b{background:#10131c;color:white;border-radius:8px;padding:5px 8px;font-size:10px}.console-stat{padding:22px 0}.console-stat small,.console-note{color:var(--muted)}.console-stat strong{display:block;font-size:48px;line-height:1;margin:6px 0}.console-stat span{font-size:12px;color:var(--muted)}.console-row{padding:10px 0;border-top:1px solid var(--line);font-size:13px}.console-row span{color:var(--muted)}.console-progress{height:5px;background:var(--line);border-radius:20px;margin:16px 0;overflow:hidden}.console-progress i{display:block;width:100%;height:100%;background:linear-gradient(90deg,var(--accent),#6dd8ff)}
.section-heading{display:flex;align-items:end;justify-content:space-between;margin:18px 0 14px}.section-heading h2{font-size:28px;margin:5px 0 0}.section-note{color:var(--muted);font-size:12px}.module-grid{max-width:1280px;margin:auto}.module-card{position:relative;min-height:235px;padding:24px;overflow:hidden}.module-card:after{content:"";position:absolute;width:130px;height:130px;border-radius:50%;right:-55px;bottom:-55px;background:color-mix(in srgb,var(--accent) 8%,transparent)}.module-card-top{display:flex;justify-content:space-between;align-items:center}.module-badge{font-size:10px;font-weight:800;padding:6px 8px;border:1px solid var(--line);border-radius:999px;color:var(--muted)}.module-badge.hot{color:#5b4dd3;background:#f0edff;border-color:#dad3ff}.module-icon{width:58px;height:58px}.pdf-icon{color:#d34c4c;background:#fff0f0}.image-icon{color:#6552d9;background:#f1efff}.finance-icon{color:#0c8f69;background:#eafaf4}.cv-icon{color:#2e6ed1;background:#edf4ff}.privacy-card{max-width:1280px;margin:18px auto 0}
.premium-page-head{max-width:1340px;margin-left:auto;margin-right:auto}.premium-page-head>div:nth-child(2){flex:1}.premium-page-head p{color:var(--muted);margin:7px 0 0}.page-head-status{display:flex;gap:10px;align-items:center}.page-head-status span,.page-head-status b{border:1px solid var(--line);border-radius:999px;padding:8px 11px;font-size:11px}.page-head-status b{color:var(--success);background:#effbf7;border-color:#cfeee2}.dark .page-head-status b{background:#173229}.image-workbench{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(310px,.55fr);gap:18px;max-width:1340px;margin:auto}.workbench-panel{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:var(--shadow)}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.panel-head>div{display:flex;align-items:center;gap:10px}.panel-head h2{margin:0;font-size:18px}.step{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--surface2);color:var(--accent);font-size:10px;font-weight:900}.text-button{border:0;background:transparent;color:var(--accent);font-size:12px;font-weight:800}.text-button:disabled{opacity:.35}.pro-chip{font-size:9px;letter-spacing:.08em;background:#161927;color:white;padding:6px 8px;border-radius:7px}.image-dropzone{min-height:170px;border-width:1px;background:linear-gradient(180deg,var(--surface2),color-mix(in srgb,var(--surface2) 70%,var(--surface)));transition:.2s}.image-dropzone.dragover{border-color:var(--accent);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--accent) 15%,transparent);transform:translateY(-1px)}.upload-icon{display:grid!important;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--accent);color:white!important;font-size:24px}.selection-summary{display:flex;justify-content:space-between;align-items:center;margin:18px 0 9px;font-size:12px}.selection-summary small{color:var(--muted)}.selected-image-list{display:grid;gap:8px;max-height:460px;overflow:auto;padding-right:3px}.selected-image-list.empty-state{min-height:90px;place-items:center;border:1px dashed var(--line);border-radius:14px;color:var(--muted)}.selected-image-row{display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:11px;align-items:center;padding:9px;border:1px solid var(--line);border-radius:13px;background:var(--surface2);cursor:grab}.selected-image-row.dragging{opacity:.45}.selected-image-row img{width:62px;height:48px;object-fit:cover;border-radius:9px;background:#ddd}.selected-image-meta{min-width:0}.selected-image-meta b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.selected-image-meta span{font-size:10px;color:var(--muted)}.selected-image-row button{width:30px;height:30px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--danger)}.settings-panel{position:sticky;top:90px;align-self:start}.setting-field{display:grid;gap:6px;margin-bottom:13px}.setting-field>span,.size-fields label>span{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);font-weight:700}.setting-field input,.setting-field select,.size-fields input{margin:0}.preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.preset-grid button{border:1px solid var(--line);background:var(--surface2);color:var(--text);border-radius:10px;padding:9px 7px;font-size:11px}.preset-grid button.active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--surface));color:var(--accent);font-weight:800}.size-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.size-fields label{display:grid;gap:6px}.toggle-field{display:flex;gap:10px;align-items:flex-start;padding:11px;background:var(--surface2);border-radius:12px;margin-bottom:13px}.toggle-field input{margin-top:4px}.toggle-field span{display:flex;flex-direction:column}.toggle-field small{color:var(--muted);font-size:10px;margin-top:2px}.process-button{width:100%;display:flex;justify-content:space-between;align-items:center;padding:13px 15px}.process-button b{display:grid;place-items:center;min-width:24px;height:24px;border-radius:8px;background:rgba(255,255,255,.18);font-size:10px}.settings-note{font-size:10px!important;text-align:center;margin:10px 0 0!important}.results-section{max-width:1340px;margin:24px auto}.section-heading.compact{align-items:center}.section-heading.compact h2{font-size:22px}.result-actions{display:flex;align-items:center;gap:8px}.result-actions>span{font-size:11px;color:var(--muted);margin-right:4px}.premium-results{grid-template-columns:repeat(4,1fr)}.results-empty{grid-column:1/-1;min-height:190px;border:1px dashed var(--line);border-radius:18px;display:grid;place-items:center;align-content:center;text-align:center;color:var(--muted);background:var(--surface)}.results-empty span{font-weight:900;color:var(--accent);background:var(--surface2);padding:10px;border-radius:11px}.results-empty h3{color:var(--text);margin:12px 0 4px}.results-empty p{margin:0}.image-result{position:relative}.image-result .result-preview{position:relative}.image-result .result-preview button{position:absolute;right:8px;top:8px;width:30px;height:30px;border:0;border-radius:9px;background:rgba(20,23,34,.78);color:white}.image-result .result-meta{display:grid;gap:5px}.image-result .result-meta b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.image-result .result-savings{font-size:10px;color:var(--success)}.image-result .result-buttons{display:flex;gap:6px;margin-top:5px}.image-result .result-buttons a{flex:1;text-align:center;background:var(--accent);color:white;border-radius:9px;padding:8px;font-size:11px}
.bottom-nav{display:none}
@media(max-width:1100px){.module-grid{grid-template-columns:1fr 1fr}.premium-results{grid-template-columns:repeat(3,1fr)}.image-workbench{grid-template-columns:1fr}.settings-panel{position:static}.premium-hero{grid-template-columns:1fr}.hero-console{max-width:520px}}
@media(max-width:760px){:root{--sidebar:0px}.sidebar{display:none}.topbar{left:0;padding:0 14px}.privacy-pill{display:none}main{margin-left:0;padding:22px 12px 90px}.bottom-nav{display:flex}.premium-hero{padding-top:25px}.hero-copy h1{font-size:42px}.module-grid{grid-template-columns:1fr}.premium-results{grid-template-columns:1fr 1fr}.page-head-status{display:none}.result-actions>span{display:none}}
@media(max-width:500px){.premium-results{grid-template-columns:1fr}.size-fields{grid-template-columns:1fr 1fr}.hero-actions{flex-direction:column}.hero-actions button{width:100%}.section-heading.compact{align-items:flex-start;gap:12px}.result-actions{width:100%;justify-content:flex-end}.selected-image-row{grid-template-columns:54px minmax(0,1fr) auto}.selected-image-row img{width:54px;height:44px}}


/* ===== OmniDesk Pro V3 adaptive navigation + mobile redesign ===== */
:root{--sidebar-v3:248px}
.app-shell{padding-bottom:24px}
.sidebar{
  width:var(--sidebar-v3);
  transform:translateX(-106%);
  transition:transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .28s ease;
  box-shadow:none;
  will-change:transform;
}
body.sidebar-open .sidebar{transform:translateX(0);box-shadow:22px 0 60px rgba(24,31,56,.18)}
.sidebar-backdrop{position:fixed;inset:0;border:0;background:rgba(10,14,28,.28);backdrop-filter:blur(2px);z-index:34;opacity:0;pointer-events:none;transition:.22s}
body.sidebar-open .sidebar-backdrop{opacity:1;pointer-events:auto}
.sidebar-head{display:flex;align-items:center;justify-content:space-between}
.sidebar-brand{padding-bottom:10px}
.sidebar-close{width:34px;height:34px;border:1px solid var(--line);border-radius:10px;background:var(--surface2);color:var(--text);font-size:20px;line-height:1}
.sidebar-legal{margin-top:14px;border-top:1px solid var(--line);padding-top:4px}
.sidebar-legal .sidebar-section-label{padding-top:12px}
.sidebar-legal a{display:flex;align-items:center;justify-content:space-between;text-decoration:none;color:var(--muted);font-size:12px;padding:9px 12px;border-radius:10px}
.sidebar-legal a:hover{background:var(--surface2);color:var(--text)}
.sidebar-legal a span{font-size:10px;color:var(--accent)}
.topbar{left:0!important;padding:0 24px!important}
.topbar-left{display:flex;align-items:center;gap:13px;min-width:0}
.menu-toggle{width:40px;height:40px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font-size:19px;display:grid;place-items:center}
main{margin-left:0!important;padding:30px clamp(22px,4vw,64px)}
.premium-hero{padding-top:36px}
.bottom-nav{z-index:31}

.legal-body{background:var(--bg);min-height:100vh}
.legal-shell{max-width:880px;margin:0 auto;padding:32px 18px 70px}
.legal-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}
.legal-back{display:inline-flex;gap:8px;align-items:center;text-decoration:none;color:var(--text);font-weight:800}
.legal-card{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:clamp(22px,5vw,46px);box-shadow:var(--shadow)}
.legal-card h1{font-size:clamp(34px,6vw,54px);letter-spacing:-.04em;margin:8px 0 14px}
.legal-card h2{font-size:19px;margin-top:28px}.legal-card p,.legal-card li{color:var(--muted);line-height:1.7}
.legal-card .legal-note{padding:14px 16px;border-radius:14px;background:var(--surface2);border:1px solid var(--line)}
.legal-meta{font-size:12px;color:var(--muted)}

@media(max-width:900px){
  .premium-hero{grid-template-columns:1fr!important}
  .hero-console{display:grid;grid-template-columns:repeat(3,1fr);max-width:none;gap:8px;padding:15px}
  .console-top,.console-stat,.console-note,.console-progress{display:none}
  .console-row{border:0!important;background:var(--surface2);border-radius:12px;padding:12px!important;display:grid!important;gap:4px}
  .console-row span{font-size:10px}.console-row b{font-size:13px}
}
@media(max-width:760px){
  :root{--sidebar:0px;--sidebar-v3:min(86vw,330px)}
  .sidebar{display:flex!important;width:var(--sidebar-v3);padding:14px 12px}
  .sidebar-backdrop{display:block}
  .topbar{height:62px!important;padding:0 10px!important}
  .topbar-copy .eyebrow{display:none}.topbar-copy strong{font-size:15px}
  .menu-toggle{width:38px;height:38px}
  main{padding:14px 10px 84px!important}
  .premium-hero{padding:12px 0 18px!important;gap:12px}
  .hero-kicker{margin-bottom:10px;padding:6px 9px;font-size:10px}
  .hero-copy .eyebrow{font-size:9px}
  .hero-copy h1{font-size:clamp(30px,10vw,40px)!important;line-height:1.03;margin:8px 0 12px!important}
  .hero-copy>p{font-size:14px;line-height:1.55;margin:0}
  .hero-actions{margin:15px 0 12px!important;display:grid!important;grid-template-columns:1fr 1fr;gap:7px}
  .hero-actions button{font-size:12px;padding:11px 8px!important}
  .hero-badges{display:flex;overflow:auto;flex-wrap:nowrap!important;padding-bottom:4px;margin-top:8px!important;scrollbar-width:none}
  .hero-badges::-webkit-scrollbar{display:none}.hero-badges span{white-space:nowrap;font-size:10px;padding:6px 8px}
  .hero-console{grid-template-columns:repeat(3,1fr);padding:10px;border-radius:16px;gap:6px}
  .console-row{padding:9px!important}.console-row span{font-size:8px}.console-row b{font-size:11px}
  .section-heading{margin:12px 0 9px}.section-heading h2{font-size:20px}.section-note{font-size:10px}
  .module-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .module-card{min-height:178px!important;padding:14px!important;border-radius:16px!important}
  .module-icon{width:42px!important;height:42px!important;font-size:9px}.module-badge{font-size:8px;padding:4px 6px}
  .module-card h2{font-size:15px;margin:12px 0 5px}.module-card p{font-size:11px;line-height:1.45;min-height:52px;margin:0 0 8px}.module-card b{font-size:11px}
  .privacy-card{padding:14px!important;align-items:flex-start;gap:10px}.privacy-card strong{font-size:13px}.privacy-card p{font-size:10px}.status-dot{font-size:9px;padding:6px 8px}
  .bottom-nav{bottom:7px;width:calc(100% - 14px)!important;padding:5px!important;border-radius:16px!important}
  .bottom-nav button{font-size:10px!important;padding:9px 5px!important;min-width:0}
  .premium-page-head{display:grid;grid-template-columns:auto 1fr;gap:10px;margin-bottom:14px}
  .premium-page-head>div:nth-child(2) h1{font-size:25px;margin:2px 0}.premium-page-head>div:nth-child(2) p{font-size:11px}.page-head-status{display:none!important}
  .image-workbench{gap:10px}.workbench-panel{border-radius:16px;padding:13px}.image-dropzone{min-height:130px;margin:8px 0}.selected-image-list{max-height:320px}
  .settings-panel{position:static}.preset-grid{grid-template-columns:repeat(3,1fr)}.preset-grid button{font-size:9px;padding:7px 4px}
  .premium-results{grid-template-columns:1fr!important}
  .tool-tabs{margin-left:-2px;margin-right:-2px}.tool-card{padding:14px;border-radius:16px}
  .stats-grid{grid-template-columns:1fr 1fr!important;gap:8px}.stats-grid article{padding:13px}.stats-grid strong{font-size:19px}.finance-grid{grid-template-columns:1fr!important}
  .cv-layout{grid-template-columns:1fr!important;gap:10px}.cv-preview-wrap{padding:8px!important;border-radius:16px}
  .cv-sheet{width:100%!important;min-height:auto!important;transform:none!important;margin:0!important;padding:22px!important}
  .cv-sheet header h1{font-size:27px}.cv-sheet header h2{font-size:14px}.cv-sheet p,.cv-sheet li{font-size:11px}
}
@media(max-width:390px){
  .module-grid{grid-template-columns:1fr!important}.module-card{min-height:145px!important}.module-card p{min-height:auto}
  .hero-actions{grid-template-columns:1fr}.hero-console{display:none}.top-actions .icon-btn{width:36px;height:36px;padding:0}
}


/* ===== OmniDesk Pro V4 ===== */
.sidebar-search{display:flex;align-items:center;gap:7px;margin:2px 6px 7px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface2)}
.sidebar-search span{color:var(--muted);font-size:16px}.sidebar-search input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:12px}
.sidebar-nav{overflow:auto;min-height:0;padding-right:2px;scrollbar-width:thin}.sidebar-nav .sidebar-section-label{padding:10px 10px 4px;font-size:8px}
.sidebar-nav button{padding:8px 10px}.sidebar-nav button em{margin-left:auto;font-style:normal;font-size:8px;padding:3px 6px;border-radius:999px;background:#eef0ff;color:#4a54dc;font-weight:900}
.dark .sidebar-nav button em{background:#2e3459;color:#cfd3ff}.sidebar-legal{margin-top:6px}
.quick-access{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:4px 0 20px}
.quick-box{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px}
.quick-head{display:flex;align-items:center;gap:9px;margin-bottom:10px}.quick-head>span{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:var(--surface2);color:var(--accent);font-weight:900}
.quick-head b,.quick-head small{display:block}.quick-head small{font-size:10px;color:var(--muted);margin-top:2px}
.quick-chips{display:flex;gap:6px;flex-wrap:wrap}.quick-chips button{border:1px solid var(--line);background:var(--surface2);color:var(--text);padding:7px 9px;border-radius:9px;font-size:10px}.quick-empty{font-size:10px;color:var(--muted)}
.scan-icon{background:#eef9f3!important;color:#147a50!important}.sign-icon{background:#fff1eb!important;color:#c95724!important}.qr-icon{background:#f1edff!important;color:#6b46c1!important}
.fav-tool-btn{border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:12px;padding:9px 12px;font-size:11px;white-space:nowrap}
.fav-tool-btn.active{color:#9a6b00;background:#fff8dc;border-color:#edd37c}.page-fav-floating{float:right;margin-top:-58px;position:relative;z-index:2}
.scan-layout,.sign-layout,.qr-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.7fr);gap:16px}
.scan-source-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
.source-button{min-height:110px;border:1px dashed var(--line);background:var(--surface2);border-radius:16px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;cursor:pointer;text-align:center}
.source-button input{display:none}.source-button>span{font-size:25px}.source-button small{color:var(--muted);font-size:10px}
.scan-page-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;min-height:130px}
.scan-page{position:relative;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface2);cursor:grab}
.scan-page.dragging{opacity:.45}.scan-page img{width:100%;aspect-ratio:3/4;object-fit:cover;display:block}.scan-page footer{padding:8px;display:flex;align-items:center;justify-content:space-between;font-size:10px}
.scan-page button{border:0;background:#fff0f0;color:#b52f2f;width:26px;height:26px;border-radius:8px}.scan-controls{position:sticky;top:86px;align-self:start}
.signature-box{margin-top:14px;border:1px solid var(--line);background:var(--surface2);border-radius:16px;padding:12px}.signature-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
#signatureCanvas{width:100%;height:150px;background:#fff;border:1px solid #d9dfeb;border-radius:12px;touch-action:none;cursor:crosshair}.signature-box>small{display:block;margin-top:7px;color:var(--muted)}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}.check-row{display:flex;gap:9px;align-items:center;padding:9px 2px;font-size:12px}.check-row input{accent-color:var(--accent)}
.mini-status{font-size:9px;border:1px solid var(--line);border-radius:999px;padding:5px 8px;color:var(--muted)}
.qr-type-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:12px 0}.qr-type{border:1px solid var(--line);background:var(--surface2);color:var(--text);border-radius:10px;padding:9px 4px;font-size:10px}
.qr-type.active{background:var(--accent);color:white;border-color:var(--accent)}.qr-canvas-wrap{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;display:grid;place-items:center;margin:10px 0 15px}
#qrCanvas{display:block;width:min(100%,360px);height:auto}.hidden{display:none!important}

@media(max-width:900px){
  .scan-layout,.sign-layout,.qr-layout{grid-template-columns:1fr}.scan-controls{position:static}
}
@media(max-width:760px){
  .quick-access{grid-template-columns:1fr;gap:8px;margin-bottom:14px}.quick-box{padding:10px}.page-fav-floating{float:none;margin:0 0 10px 48px}
  .scan-source-actions{grid-template-columns:1fr 1fr}.scan-page-list{grid-template-columns:1fr 1fr}.qr-type-grid{grid-template-columns:repeat(3,1fr)}
  .two-col{grid-template-columns:1fr}.fav-tool-btn{font-size:10px;padding:8px 10px}
}
@media(max-width:390px){
  .scan-source-actions,.scan-page-list{grid-template-columns:1fr}
}


/* ===== OmniDesk Pro V5 QR Reader ===== */
.qr-reader-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:16px}
.qr-reader-frame{position:relative;min-height:380px;border-radius:20px;overflow:hidden;background:#0d1018;border:1px solid var(--line)}
#qrReaderVideo{width:100%;height:100%;min-height:380px;object-fit:cover;display:block;background:#090b10}
.qr-scan-overlay{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.qr-scan-overlay i{width:min(64vw,270px);aspect-ratio:1;border:3px solid rgba(255,255,255,.92);border-radius:24px;box-shadow:0 0 0 999px rgba(0,0,0,.25)}
.qr-scan-overlay span{position:absolute;bottom:20px;background:rgba(0,0,0,.6);color:#fff;padding:7px 11px;border-radius:999px;font-size:11px}
.qr-reader-actions{display:flex;gap:8px;margin-top:12px}.qr-reader-actions>*{flex:1}
.auto-open-row{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface2)}
.auto-open-row span b,.auto-open-row span small{display:block}.auto-open-row span small{font-size:9px;color:var(--muted);margin-top:2px}
.qr-upload-zone{min-height:118px;margin-top:10px}
.qr-read-result{display:flex;gap:12px;align-items:flex-start;margin-top:15px;padding:14px;border:1px solid var(--line);border-radius:15px;background:var(--surface2);overflow:hidden}
.qr-read-result.empty{opacity:.7}.qr-result-icon{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:11px;background:var(--surface);color:var(--accent);font-weight:900;font-size:10px;border:1px solid var(--line)}
.qr-read-result b{display:block;margin-bottom:4px}.qr-read-result p{margin:0;color:var(--muted);font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.qr-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.security-note{font-size:9px;line-height:1.55;color:var(--muted);margin-top:14px;padding:10px;border-left:3px solid var(--accent);background:var(--surface2);border-radius:0 10px 10px 0}
@media(max-width:900px){.qr-reader-layout{grid-template-columns:1fr}}
@media(max-width:760px){.qr-reader-frame,#qrReaderVideo{min-height:300px}.qr-scan-overlay i{width:min(68vw,230px)}}


/* ===== OmniDesk Pro V6 — hardened drawer + store ===== */
.sidebar{
  display:flex!important;
  position:fixed!important;
  inset:0 auto 0 0!important;
  width:min(88vw,340px)!important;
  max-width:340px!important;
  height:100dvh!important;
  padding:14px 12px calc(14px + env(safe-area-inset-bottom))!important;
  overflow:hidden!important;
  transform:translate3d(-105%,0,0)!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:none!important;
  z-index:60!important;
  background:color-mix(in srgb,var(--surface) 98%,transparent)!important;
  border-right:1px solid var(--line)!important;
  box-shadow:none!important;
  transition:transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .28s ease!important;
}
body.sidebar-open .sidebar{transform:translate3d(0,0,0)!important;pointer-events:auto!important;box-shadow:24px 0 70px rgba(15,23,42,.22)!important}
.sidebar-head,.sidebar-search,.sidebar-bottom{flex:0 0 auto}.sidebar-nav{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;padding-bottom:10px!important}
.sidebar-legal{flex:0 0 auto;max-height:170px;overflow:auto}
.sidebar-backdrop{z-index:55!important}
.sidebar-edge-handle{position:fixed;left:0;top:50%;transform:translateY(-50%);z-index:48;border:1px solid var(--line);border-left:0;background:color-mix(in srgb,var(--surface) 96%,transparent);color:var(--text);box-shadow:0 8px 24px rgba(17,24,39,.12);border-radius:0 14px 14px 0;padding:10px 7px;display:flex;flex-direction:column;align-items:center;gap:5px;backdrop-filter:blur(12px);transition:opacity .2s,transform .2s}
.sidebar-edge-handle span{font-size:17px;line-height:1}.sidebar-edge-handle b{writing-mode:vertical-rl;transform:rotate(180deg);font-size:9px;letter-spacing:.08em;text-transform:uppercase}
body.sidebar-open .sidebar-edge-handle{opacity:0;pointer-events:none;transform:translate(-8px,-50%)}body.mobile-drawer-lock{overflow:hidden}
.store-top-btn{border:1px solid #d9dcef;background:#eef0ff;color:#4e57d9;padding:9px 13px;border-radius:11px;font-weight:800;font-size:11px}
.dark .store-top-btn{background:#2b3150;border-color:#414a76;color:#d9dcff}

.store-teaser{display:grid;grid-template-columns:1fr auto;align-items:center;gap:20px;margin:18px 0;background:linear-gradient(135deg,#181d32,#424bd1);color:#fff;border-radius:22px;padding:22px 24px;box-shadow:0 18px 45px rgba(50,58,170,.18)}
.store-teaser .eyebrow{color:#cdd2ff}.store-teaser h2{margin:5px 0 7px;font-size:25px}.store-teaser p{margin:0;color:#d8dcf5}.store-teaser-actions{display:flex;align-items:center;gap:14px}.store-teaser-actions strong{font-size:25px;white-space:nowrap}.store-teaser-actions strong small{font-size:10px;font-weight:500}

.store-preview-badge{padding:7px 10px;border-radius:999px;background:#fff4cc;color:#865c00;border:1px solid #f0d77a;font-size:10px;font-weight:900}
.store-hero{display:grid;grid-template-columns:1.4fr .55fr;gap:18px;align-items:stretch;background:linear-gradient(145deg,var(--surface),var(--surface2));border:1px solid var(--line);border-radius:22px;padding:24px;margin-bottom:18px}
.store-hero h2{font-size:clamp(26px,4vw,42px);letter-spacing:-.035em;margin:7px 0 10px}.store-hero p{color:var(--muted);line-height:1.6;max-width:760px}
.store-current-plan{display:flex;flex-direction:column;justify-content:center;background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:20px}.store-current-plan small,.store-current-plan span{color:var(--muted)}.store-current-plan strong{font-size:28px;margin:5px 0;color:var(--accent)}

.pricing-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin:18px 0}.price-card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:var(--shadow);display:flex;flex-direction:column}.price-card.featured{border:2px solid var(--accent);transform:translateY(-5px)}.price-card.lifetime{background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--accent) 6%,var(--surface)))}
.popular-badge,.save-badge,.lifetime-badge{position:absolute;right:13px;top:13px;font-size:8px;font-weight:900;padding:5px 7px;border-radius:999px}.popular-badge{background:var(--accent);color:white}.save-badge{background:#e7f8ef;color:#126a47}.lifetime-badge{background:#fff4cc;color:#865c00}
.plan-kicker{font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);font-weight:900}.price-card h2{margin:7px 0}.price{min-height:52px}.price strong{font-size:29px;letter-spacing:-.035em}.price small{color:var(--muted);font-size:10px}.price-card ul{padding:0;margin:18px 0;list-style:none;display:grid;gap:9px;flex:1}.price-card li{font-size:11px;padding-left:18px;position:relative;color:var(--text)}.price-card li:before{content:"✓";position:absolute;left:0;color:var(--success);font-weight:900}.price-card li.muted-item{color:var(--muted)}.price-card li.muted-item:before{content:"•";color:var(--muted)}
.plan-button{width:100%;border-radius:12px;padding:11px 12px;font-weight:800;font-size:11px;border:1px solid var(--line)}.secondary{background:var(--surface2);color:var(--text)}.primary-plan{background:var(--accent);color:white;border-color:var(--accent)}

.launch-offer{display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;background:#111827;color:#fff;border-radius:22px;padding:24px;margin:18px 0}.launch-offer .eyebrow{color:#bfc5ff}.launch-offer h2{margin:6px 0 8px}.launch-offer p{margin:0;color:#c5cada}.launch-price{display:grid;justify-items:end;gap:6px}.launch-price del{color:#9ca3af}.launch-price strong{font-size:32px;color:#fff}
.comparison-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:20px;margin:18px 0}.plan-table-wrap{overflow:auto}.plan-table{width:100%;border-collapse:collapse;min-width:620px}.plan-table th,.plan-table td{padding:11px 10px;border-bottom:1px solid var(--line);font-size:11px;text-align:center}.plan-table th:first-child,.plan-table td:first-child{text-align:left}.plan-table th{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.08em}
.store-note{padding:15px 17px;border:1px solid var(--line);background:var(--surface2);border-radius:15px;margin-bottom:30px}.store-note p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.55}

@media(max-width:1050px){.pricing-grid{grid-template-columns:1fr 1fr}.price-card.featured{transform:none}}
@media(max-width:760px){
  .sidebar{width:min(88vw,330px)!important;max-width:330px!important;padding-top:calc(10px + env(safe-area-inset-top))!important}.sidebar-edge-handle{top:44%;padding:9px 6px}.sidebar-edge-handle b{font-size:8px}.sidebar-backdrop{background:rgba(8,12,24,.42)!important}
  .store-top-btn{display:none}.store-teaser{grid-template-columns:1fr;padding:17px}.store-teaser h2{font-size:21px}.store-teaser-actions{justify-content:space-between}.store-hero{grid-template-columns:1fr;padding:17px}.pricing-grid{grid-template-columns:1fr}.price-card{padding:17px}.launch-offer{grid-template-columns:1fr}.launch-price{justify-items:start}.launch-price strong{font-size:28px}
}
@media(max-width:390px){.sidebar{width:92vw!important;max-width:320px!important}.sidebar-edge-handle{top:40%}}


/* ===== OmniDesk Pro V7 — native-like mobile application shell ===== */
html,body{max-width:100%;overflow-x:hidden!important}
*{box-sizing:border-box;min-width:0}
img,video,canvas,svg{max-width:100%;height:auto}
.app-shell,main,.page,.tool-card,.module-grid,.pricing-grid,.store-hero,.store-teaser,
.scan-layout,.sign-layout,.qr-layout,.qr-reader-layout,.image-workbench,.finance-grid,.cv-layout{
  max-width:100%;min-width:0
}
input,select,textarea,button{max-width:100%}
.mobile-app-subtitle{display:none}
.pro-locked-tab span{font-size:7px;padding:3px 5px;border-radius:999px;background:#eef0ff;color:#4e57d9;margin-left:4px;font-weight:900}
.pro-locked-panel{display:none!important}
.pro-gate-card{background:linear-gradient(135deg,#161b31,#414ad1);color:white;border-radius:18px;padding:20px;text-align:center}
.pro-gate-card .eyebrow{color:#cfd3ff}.pro-gate-card h2{margin:7px 0}.pro-gate-card p{color:#d6daf5;font-size:11px;line-height:1.55}
.pro-gate-icon{width:50px;height:50px;border-radius:15px;background:#fff;color:#4b54d5;display:grid;place-items:center;margin:0 auto 10px;font-weight:900}
.qr-create-disabled{display:none!important}

/* Prevent content width leaks */
.cv-preview-wrap,.plan-table-wrap,.selected-image-list,.scan-page-list,.qr-read-result,.file-list{max-width:100%}
pre,code,.qr-read-result p,.file-item span{overflow-wrap:anywhere;word-break:break-word}

@media(max-width:760px){
  :root{--mobile-top:62px;--mobile-bottom:68px}

  html,body{width:100%;min-height:100%;background:var(--bg);overscroll-behavior-y:none}
  body{padding:0!important;overflow-x:hidden!important;-webkit-tap-highlight-color:transparent}
  .app-shell{width:100%;min-height:100dvh;padding:0!important}

  /* Native app bar */
  .topbar{
    position:fixed!important;top:0!important;left:0!important;right:0!important;
    width:100%!important;height:calc(var(--mobile-top) + env(safe-area-inset-top))!important;
    padding:env(safe-area-inset-top) 12px 0!important;
    border-bottom:1px solid var(--line)!important;
    background:color-mix(in srgb,var(--surface) 97%,transparent)!important;
    backdrop-filter:blur(20px)!important;
    z-index:45!important;
  }
  .topbar-left{gap:10px!important}
  .menu-toggle{width:38px!important;height:38px!important;border-radius:12px!important}
  .topbar-copy{display:grid!important;gap:0!important}
  .topbar-copy .eyebrow{display:none!important}
  .topbar-copy strong{font-size:15px!important;line-height:1.15}
  .mobile-app-subtitle{display:block;font-size:9px;color:var(--muted);margin-top:2px}
  .privacy-pill,.store-top-btn{display:none!important}
  .top-actions{gap:5px!important}
  .top-actions .icon-btn{width:37px!important;height:37px!important;padding:0!important}

  /* Main content becomes an app view */
  main{
    width:100%!important;max-width:100vw!important;
    margin:0!important;
    padding:calc(var(--mobile-top) + env(safe-area-inset-top) + 12px) 10px
            calc(var(--mobile-bottom) + env(safe-area-inset-bottom) + 18px)!important;
    overflow-x:hidden!important;
  }
  .page{width:100%!important;max-width:100%!important;overflow-x:hidden!important}

  /* Home = app dashboard, not website hero */
  .premium-hero{
    display:block!important;padding:8px 0 10px!important;margin:0!important;min-height:0!important
  }
  .hero-kicker{display:none!important}
  .hero-copy .eyebrow{font-size:8px!important;letter-spacing:.1em!important}
  .hero-copy h1{
    font-size:27px!important;line-height:1.05!important;letter-spacing:-.035em!important;
    margin:5px 0 7px!important;max-width:330px
  }
  .hero-copy>p{
    font-size:12px!important;line-height:1.45!important;margin:0!important;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden
  }
  .hero-actions{display:none!important}
  .hero-badges{display:none!important}
  .hero-console{display:none!important}

  .section-heading{margin:9px 0 7px!important}
  .section-heading h2{font-size:18px!important;margin:2px 0!important}
  .section-heading .eyebrow{font-size:8px!important}
  .section-note{font-size:9px!important}

  /* Two-column launcher tiles, keeps page short */
  .module-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;width:100%!important
  }
  .module-card{
    width:100%!important;min-height:132px!important;padding:11px!important;
    border-radius:17px!important;box-shadow:none!important;overflow:hidden!important
  }
  .module-card-top{gap:5px!important}
  .module-icon{width:39px!important;height:39px!important;border-radius:12px!important;font-size:8px!important}
  .module-badge{max-width:72px!important;padding:3px 5px!important;font-size:7px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .module-card h2{font-size:13px!important;margin:9px 0 4px!important}
  .module-card p{
    font-size:9.5px!important;line-height:1.35!important;margin:0 0 5px!important;
    min-height:26px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden
  }
  .module-card b{font-size:9px!important}

  /* Hide desktop helper sections from mobile home */
  .quick-access{display:none!important}
  .privacy-card{display:none!important}
  .store-teaser{
    margin:8px 0!important;padding:12px 13px!important;border-radius:17px!important;
    grid-template-columns:1fr auto!important;gap:9px!important
  }
  .store-teaser .eyebrow{font-size:7px!important}
  .store-teaser h2{font-size:15px!important;margin:3px 0!important}
  .store-teaser p{display:none!important}
  .store-teaser-actions{display:grid!important;gap:5px!important;justify-items:end}
  .store-teaser-actions strong{font-size:17px!important}
  .store-teaser-actions .primary{font-size:9px!important;padding:7px 9px!important}

  /* App-like page headers */
  .page-head,.premium-page-head{
    display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;
    gap:8px!important;align-items:center!important;margin:3px 0 10px!important
  }
  .back{width:36px!important;height:36px!important;padding:0!important;display:grid!important;place-items:center!important}
  .page-head h1,.premium-page-head h1{font-size:21px!important;line-height:1.1!important;margin:1px 0!important}
  .page-head p,.premium-page-head p{
    font-size:9.5px!important;line-height:1.35!important;margin:3px 0 0!important;
    display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden
  }
  .page-head .eyebrow,.premium-page-head .eyebrow{font-size:7px!important}
  .page-head-status{display:none!important}
  .fav-tool-btn{font-size:8px!important;padding:7px 8px!important}
  .page-fav-floating{float:none!important;margin:0 0 7px!important}

  /* Compact panels */
  .tool-card,.workbench-panel{
    width:100%!important;padding:12px!important;border-radius:17px!important;
    box-shadow:none!important;margin-bottom:9px!important;overflow:hidden!important
  }
  .tool-card h2,.workbench-panel h2{font-size:15px!important}
  .tool-card>p{font-size:10px!important}
  .tool-tabs{
    width:100%!important;display:flex!important;overflow-x:auto!important;
    gap:5px!important;margin:0 0 8px!important;padding-bottom:3px!important;scrollbar-width:none
  }
  .tool-tabs::-webkit-scrollbar{display:none}
  .tab{flex:0 0 auto!important;padding:8px 10px!important;font-size:9px!important}

  .scan-layout,.sign-layout,.qr-layout,.qr-reader-layout,.image-workbench,.finance-grid,.cv-layout{
    grid-template-columns:1fr!important;gap:8px!important;width:100%!important
  }
  .settings-panel,.scan-controls,.cv-form{position:static!important}

  .dropzone,.image-dropzone{min-height:105px!important;margin:7px 0!important;padding:12px!important}
  .scan-source-actions{grid-template-columns:1fr 1fr!important;gap:7px!important}
  .source-button{min-height:88px!important}
  .scan-page-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}

  .controls-grid,.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .stats-grid article{padding:11px!important;border-radius:14px!important}
  .stats-grid strong{font-size:18px!important}

  #signatureCanvas{width:100%!important;height:125px!important}
  .qr-reader-frame,#qrReaderVideo{width:100%!important;max-width:100%!important;min-height:235px!important}
  .qr-scan-overlay i{width:min(62vw,210px)!important}
  .qr-canvas-wrap{padding:9px!important}
  #qrCanvas{width:min(100%,280px)!important;height:auto!important}

  .image-results,.premium-results{grid-template-columns:1fr!important}
  .selected-image-list{max-height:300px!important;overflow:auto!important}

  .tx-row{grid-template-columns:minmax(0,1fr) 78px 25px!important;gap:5px!important}
  .tx-row time{display:none!important}

  /* CV is responsive document preview, no A4 overflow */
  .cv-preview-wrap{width:100%!important;max-width:100%!important;overflow:hidden!important;padding:5px!important;border-radius:15px!important}
  .cv-sheet{
    width:100%!important;max-width:100%!important;min-height:auto!important;
    padding:17px!important;margin:0!important;transform:none!important;box-shadow:none!important
  }
  .cv-sheet header h1{font-size:23px!important}.cv-sheet header h2{font-size:12px!important}
  .cv-sheet p,.cv-sheet li{font-size:10px!important;line-height:1.45!important}

  /* Store: compact native paywall cards */
  .store-preview-badge{display:none!important}
  .store-hero{grid-template-columns:1fr!important;padding:13px!important;border-radius:17px!important;gap:8px!important;margin-bottom:8px!important}
  .store-hero h2{font-size:22px!important;margin:4px 0 6px!important}
  .store-hero p{font-size:10px!important;line-height:1.45!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .store-current-plan{padding:10px 12px!important;border-radius:13px!important}
  .store-current-plan strong{font-size:21px!important}

  .pricing-grid{grid-template-columns:1fr!important;gap:7px!important;margin:8px 0!important}
  .price-card{padding:13px!important;border-radius:17px!important;box-shadow:none!important}
  .price-card.featured{transform:none!important}
  .price-card .price{min-height:auto!important}
  .price-card .price strong{font-size:24px!important}
  .price-card ul{display:none!important;margin:10px 0!important;gap:6px!important}
  .price-card.mobile-expanded ul{display:grid!important}
  .price-card::after{content:"Plan detayları";color:var(--accent);font-size:8px;font-weight:900;margin-top:6px}
  .price-card.mobile-expanded::after{content:"Detayları gizle"}
  .price-card li{font-size:10px!important}
  .plan-button{padding:9px!important;font-size:10px!important;margin-top:7px!important}
  .launch-offer{grid-template-columns:1fr!important;padding:13px!important;margin:8px 0!important;border-radius:17px!important}
  .launch-offer h2{font-size:18px!important}.launch-offer p{font-size:10px!important}
  .launch-price{justify-items:start!important}.launch-price strong{font-size:25px!important}
  .comparison-card{padding:12px!important;margin:8px 0!important}
  .plan-table-wrap{width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  .plan-table{min-width:500px!important}
  .store-note{margin:8px 0 0!important;padding:12px!important}

  /* Drawer = app drawer, not website sidebar */
  .sidebar{
    width:min(88vw,330px)!important;max-width:330px!important;
    padding:calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom))!important;
    border-radius:0 22px 22px 0!important
  }
  .sidebar-edge-handle{display:none!important}
  .sidebar-backdrop{background:rgba(8,12,24,.48)!important}
  .sidebar-nav{padding-bottom:8px!important}
  .sidebar-bottom{margin-top:5px!important}
  .sidebar-legal{max-height:145px!important}

  /* True mobile bottom tab bar */
  .bottom-nav{
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;
    transform:none!important;width:100%!important;height:calc(var(--mobile-bottom) + env(safe-area-inset-bottom))!important;
    padding:6px 7px env(safe-area-inset-bottom)!important;margin:0!important;
    display:grid!important;grid-template-columns:repeat(5,1fr)!important;
    border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;
    background:color-mix(in srgb,var(--surface) 97%,transparent)!important;
    backdrop-filter:blur(20px)!important;box-shadow:0 -10px 30px rgba(17,24,39,.07)!important;
    z-index:50!important
  }
  .bottom-nav button{
    min-width:0!important;padding:4px 2px!important;border-radius:11px!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    gap:2px!important;font-size:9px!important
  }
  .bottom-nav button span{font-size:11px!important;font-weight:900}
  .bottom-nav button b{font-size:8px!important}
  .bottom-nav button.active{background:var(--surface2)!important;color:var(--accent)!important}

  .toast{left:10px!important;right:10px!important;bottom:calc(var(--mobile-bottom) + env(safe-area-inset-bottom) + 10px)!important;text-align:center}
}

@media(max-width:390px){
  .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .module-card{min-height:126px!important;padding:9px!important}
  .module-card p{-webkit-line-clamp:2!important}
  .module-icon{width:36px!important;height:36px!important}
}
@media(max-width:320px){
  .module-grid{grid-template-columns:1fr!important}
}


/* ===== OmniDesk Pro V8 — FINAL mobile overflow hardening ===== */
html{
  width:100%;
  max-width:100%;
  overflow-x:clip!important;
  overscroll-behavior-x:none;
}
body{
  width:100%;
  max-width:100%;
  overflow-x:clip!important;
  position:relative;
}
.app-shell,main,.page,.page.active,
.hero,.premium-hero,.module-grid,.module-card,
.tool-card,.workbench-panel,.image-workbench,
.scan-layout,.sign-layout,.qr-layout,.qr-reader-layout,
.finance-grid,.stats-grid,.cv-layout,.cv-preview-wrap,
.store-hero,.pricing-grid,.price-card,.launch-offer,
.comparison-card,.plan-table-wrap,.store-teaser{
  width:100%;
  max-width:100%;
  min-width:0!important;
  overflow-wrap:anywhere;
}

img,video,canvas,svg,iframe,table{
  max-width:100%;
}
input,select,textarea,button,a,label{
  min-width:0;
}
.row,.panel-head,.section-heading,.result-actions,
.store-teaser-actions,.page-head,.premium-page-head{
  min-width:0;
}
.row>*,
.panel-head>*,
.section-heading>*,
.result-actions>*,
.store-teaser-actions>*,
.page-head>*,
.premium-page-head>*{
  min-width:0;
  max-width:100%;
}

/* Kill inherited fixed / A4 widths on narrow screens */
@media(max-width:760px){
  body, .app-shell, main, .page, .page.active{
    width:100%!important;
    max-width:100%!important;
    overflow-x:clip!important;
  }

  main{
    padding-left:8px!important;
    padding-right:8px!important;
  }

  /* Header never exceeds device width */
  .topbar{
    width:100%!important;
    max-width:100%!important;
    left:0!important;
    right:0!important;
    overflow:hidden!important;
  }
  .topbar-left{
    flex:1 1 auto!important;
    overflow:hidden!important;
  }
  .topbar-copy{
    overflow:hidden!important;
  }
  #workspaceTitle,.mobile-app-subtitle{
    display:block;
    max-width:62vw;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  /* Every grid uses minmax(0,1fr), preventing children from forcing width */
  .module-grid,
  .stats-grid,
  .controls-grid,
  .scan-page-list,
  .preset-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .scan-layout,.sign-layout,.qr-layout,.qr-reader-layout,
  .image-workbench,.finance-grid,.cv-layout,.pricing-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .two-col{
    grid-template-columns:minmax(0,1fr)!important;
  }

  /* Cards clip their own content, never the page */
  .module-card,.tool-card,.workbench-panel,.price-card,
  .store-hero,.launch-offer,.comparison-card,.store-teaser{
    overflow:hidden!important;
  }

  /* Long names/buttons wrap instead of enlarging viewport */
  .file-item,
  .selected-image-row,
  .scan-page footer,
  .tx-row,
  .qr-read-result,
  .result-actions,
  .panel-head{
    max-width:100%!important;
  }
  .file-item span,
  .selected-image-row span,
  .tx-row span,
  .qr-read-result p,
  .panel-head h2,
  .section-heading h2{
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
  }

  /* Image result cards */
  .image-results,.premium-results{
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:minmax(0,1fr)!important;
  }
  .image-result,
  .image-result img{
    width:100%!important;
    max-width:100%!important;
  }

  /* QR / scanner */
  .qr-reader-frame,
  #qrReaderVideo,
  .qr-canvas-wrap,
  #qrCanvas,
  .signature-box,
  #signatureCanvas{
    width:100%!important;
    max-width:100%!important;
  }
  .qr-reader-frame{overflow:hidden!important}
  .qr-result-actions{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  }
  .qr-result-actions button{white-space:normal!important}

  /* CV: never preserve physical A4 width on screen */
  .cv-preview-wrap{
    overflow:hidden!important;
    width:100%!important;
    max-width:100%!important;
  }
  .cv-sheet,
  .cv-sheet.modern,
  .cv-sheet.minimal,
  .cv-sheet.executive{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    padding:16px!important;
    transform:none!important;
    box-shadow:none!important;
  }

  /* Finance table-like rows */
  .tx-row{
    width:100%!important;
    grid-template-columns:minmax(0,1fr) minmax(68px,82px) 26px!important;
  }

  /* Store: no internal sideways-scroll perception */
  .pricing-grid{
    width:100%!important;
  }
  .price-card{
    width:100%!important;
    max-width:100%!important;
  }

  /* Convert comparison table to a vertical mobile comparison */
  .plan-table-wrap{
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  .plan-table{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .plan-table thead{
    display:none!important;
  }
  .plan-table tbody{
    display:grid!important;
    width:100%!important;
    gap:7px!important;
  }
  .plan-table tr{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) repeat(3,44px)!important;
    align-items:center!important;
    width:100%!important;
    border:1px solid var(--line)!important;
    border-radius:12px!important;
    background:var(--surface2)!important;
    overflow:hidden!important;
  }
  .plan-table td{
    display:block!important;
    min-width:0!important;
    width:auto!important;
    padding:8px 5px!important;
    border:0!important;
    font-size:9px!important;
    text-align:center!important;
  }
  .plan-table td:first-child{
    text-align:left!important;
    font-size:9.5px!important;
    font-weight:700!important;
    padding-left:9px!important;
  }

  /* Launch/store CTAs */
  .store-teaser{
    grid-template-columns:minmax(0,1fr) auto!important;
  }
  .store-teaser-actions{
    max-width:112px!important;
  }
  .store-teaser-actions strong{
    font-size:16px!important;
  }
  .launch-price{
    max-width:100%!important;
  }

  /* Bottom navigation uses fixed grid, no translated width */
  .bottom-nav{
    box-sizing:border-box!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    max-width:100%!important;
    transform:none!important;
    overflow:hidden!important;
  }
  .bottom-nav button{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  .bottom-nav button b,
  .bottom-nav button span{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    max-width:100%!important;
  }

  /* Drawer itself never pushes document width */
  .sidebar{
    max-width:min(330px,88vw)!important;
    width:min(330px,88vw)!important;
    overflow:hidden!important;
  }
  .sidebar-nav,.sidebar-legal{
    overflow-x:hidden!important;
  }
  .sidebar-nav button,.sidebar-legal a{
    width:100%!important;
    max-width:100%!important;
  }

  /* Disable any remaining negative mobile margins from legacy CSS */
  .tool-tabs,
  .page-fav-floating,
  .cv-sheet,
  .hero,
  .premium-hero{
    margin-left:0!important;
    margin-right:0!important;
  }

  /* Reduce lower-page vertical length without hiding functionality */
  .store-note,
  .comparison-card,
  .launch-offer,
  .price-card,
  .tool-card{
    margin-bottom:7px!important;
  }
  .comparison-card .section-heading{
    margin-bottom:6px!important;
  }
}

@media(max-width:430px){
  main{padding-left:7px!important;padding-right:7px!important}
  .module-grid{gap:6px!important}
  .module-card{padding:9px!important}
}

@media(max-width:390px){
  .module-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .plan-table tr{
    grid-template-columns:minmax(0,1fr) repeat(3,38px)!important;
  }
  .plan-table td{font-size:8px!important}
  .plan-table td:first-child{font-size:9px!important}
  .store-teaser-actions{max-width:96px!important}
}

@media(max-width:340px){
  .module-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .plan-table tr{
    grid-template-columns:minmax(0,1fr) repeat(3,34px)!important;
  }
}

/* V9: compact drawer, isolated routes, mobile safe areas */
.page:not(.active){display:none!important}
.tool-panel:not(.active){display:none!important}
.sidebar[aria-hidden="true"]{visibility:hidden;pointer-events:none}
.sidebar[aria-hidden="false"]{visibility:visible}
@media(max-width:760px){
 .sidebar{width:min(264px,74vw)!important;max-width:min(264px,74vw)!important}
 .sidebar-nav button{min-height:40px;padding:8px 10px!important}
 .sidebar-section-label{margin:10px 0 4px!important}
 .sidebar-brand{padding:10px!important}
 main{padding-bottom:calc(84px + env(safe-area-inset-bottom))!important}
 .bottom-nav{padding-bottom:env(safe-area-inset-bottom)!important;height:auto!important;min-height:62px}
 .qr-reader-frame,#qrReaderVideo{min-height:180px!important;height:180px!important}
 .qr-scan-overlay i{width:140px;height:140px}
 #store .store-hero{margin-top:0!important;padding-top:14px!important}
 input,select,textarea{font-size:16px!important}
}

/* V10 compact mobile workspace and legal pages */
.camera-disclosure{font-size:12px;line-height:1.45;color:var(--muted);margin:0 0 10px}
#qrReaderStatus{white-space:normal;max-width:65%;overflow-wrap:anywhere}
body.legal-body main.legal-shell{margin:0 auto!important;padding:18px 16px 32px!important;max-width:800px!important;width:100%!important}
.legal-card{line-height:1.65;overflow-wrap:anywhere}.legal-card h1{font-size:26px}.legal-card h2{font-size:18px;margin-top:24px}.legal-nav{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px;font-size:13px}
@media(max-width:760px){
 .app-shell>main{padding-top:calc(var(--mobile-top,60px) + env(safe-area-inset-top) + 6px)!important}
 .premium-hero{padding:0 0 8px!important}.hero-copy h1{font-size:24px!important;margin:4px 0!important}
 .hero-copy>p,.hero-copy>.eyebrow{display:none!important}
 .quick-access{gap:6px!important;margin-bottom:8px!important}.quick-box{padding:8px!important}
 .page-head{margin:0 0 10px!important;min-height:0!important}.page-head p{display:none!important}
 #store .store-hero{padding:10px!important}.store-hero h2{font-size:20px!important}.store-hero p{margin:4px 0!important}
 .tool-card{padding:12px!important}.panel-head{margin-bottom:10px!important}.panel-head h2{font-size:16px!important}
 .sidebar-nav button,.sidebar-legal a{min-height:44px!important}.sidebar{overflow-y:auto!important}
 .source-button,.primary,.ghost{min-height:44px}.legal-top{margin-bottom:14px!important}.legal-card{padding:16px!important}
 .legal-card h1{font-size:24px!important}body.legal-body{padding:0!important}
}

html{scroll-behavior:auto!important}
body:not([data-page="qr"]) #qr-read{display:none!important}
.page[hidden]{display:none!important}

.capture-dialog{width:min(94vw,520px);max-height:92dvh;padding:16px;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--text);overflow:auto}.capture-dialog::backdrop{background:rgba(15,18,30,.65)}.capture-dialog header{display:flex;justify-content:space-between;align-items:center}.capture-dialog h2{margin:0;font-size:20px}.capture-dialog p{font-size:13px;line-height:1.4}.capture-dialog video{width:100%;max-height:50dvh;min-height:160px;background:#121626;border-radius:12px;object-fit:contain}.capture-dialog>button{display:block;width:100%;margin-top:8px}#scanCameraStatus{min-height:36px}button.source-button{text-align:left;color:var(--text);background:var(--surface);cursor:pointer}

/* Explicit plan labels remain visible at every viewport size. */
.comparison-explanation,.comparison-footnote{font-size:13px;line-height:1.5;color:var(--muted);margin:8px 0 14px}
.feature-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.feature-row{border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--surface)}
.feature-row h3{font-size:15px;margin:0 0 10px;color:var(--text)}
.feature-row dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}
.feature-status{padding:8px 5px;border-radius:9px;background:var(--surface2);text-align:center;min-width:0}
.feature-status dt{font-size:11px;line-height:1.35;min-height:30px;color:var(--muted);font-weight:600}
.feature-status dd{font-size:13px;line-height:1.35;font-weight:750;margin:5px 0 0;overflow-wrap:anywhere}
.feature-status.included dd{color:#087f60}.feature-status.excluded dd{color:#b33945}.feature-status.limited dd{color:#8a6409}
.dark .feature-status.included dd{color:#66ddbb}.dark .feature-status.excluded dd{color:#ff9da5}.dark .feature-status.limited dd{color:#f7d173}
@media(max-width:760px){.feature-comparison{grid-template-columns:minmax(0,1fr)}.feature-row{padding:10px}.feature-row h3{font-size:15px!important}.feature-status dd{font-size:13px!important}.feature-status dt{font-size:11px!important}}

.excel-preview{width:100%;overflow:auto;max-height:320px;margin:12px 0;border:1px solid var(--line);border-radius:10px}.excel-preview table{border-collapse:collapse;min-width:100%;font-size:12px}.excel-preview th,.excel-preview td{border:1px solid var(--line);padding:8px;white-space:pre-wrap;min-width:90px;max-width:260px;overflow-wrap:anywhere}.excel-status{font-size:13px;color:var(--muted);overflow-wrap:anywhere}#excelToPdf{width:100%}
@media(max-width:760px){#pdf>.tool-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;overflow:visible!important}#pdf>.tool-tabs>.tab{width:100%;min-width:0;padding:9px 4px!important;font-size:11px!important;white-space:normal;border-radius:10px;min-height:40px}.excel-card .two-col{grid-template-columns:1fr!important}.excel-preview{max-height:250px}.excel-preview table{width:max-content}}

.print-output{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 14px}.print-output small{font-size:12px;color:var(--muted);flex:1;min-width:180px}.print-output button{white-space:nowrap}
@media print{.print-output{display:none!important}}

.print-output[hidden]{display:none!important}

.has-pro .qr-create-disabled{display:block!important}.has-pro #qr-create.active{display:block!important}.has-pro .pro-gate-card{display:none!important}#billingStatus{font-size:13px;line-height:1.5}.store-note .row{flex-wrap:wrap}

.plan-table-scroll{overflow-x:auto;border:1px solid #dfe4ef;border-radius:12px;-webkit-overflow-scrolling:touch}.plan-compare-table{width:100%;min-width:570px;border-collapse:separate;border-spacing:0;font-size:13px}.plan-compare-table thead{display:table-header-group!important}.plan-compare-table th,.plan-compare-table td{display:table-cell!important;padding:13px 10px;border-bottom:1px solid #e4e8f1;text-align:center}.plan-compare-table thead th{background:#eef0ff;color:#26375d;font-size:14px;vertical-align:top}.plan-compare-table thead th span,.plan-compare-table thead th small{display:block;margin-top:5px;font-size:12px;line-height:1.4;font-weight:400}.plan-compare-table th:first-child{position:sticky;left:0;text-align:left;background:#f8faff;z-index:1;width:150px}.plan-compare-table td{font-weight:700;color:#344c7a}.plan-compare-table td::before{content:none!important}.comparison-scroll-hint{font-size:12px;color:#58677e}.dark .plan-compare-table th:first-child{background:#252d43;color:#fff}
#store .plan-compare-table{min-width:600px!important;max-width:none!important;table-layout:fixed}#store .plan-compare-table th,#store .plan-compare-table td{word-break:normal!important;overflow-wrap:normal!important}#store .plan-compare-table th:first-child{width:155px}#store .plan-compare-table b{white-space:nowrap}#store .plan-table-scroll{max-width:100%;overflow:auto!important}

@media(max-width:760px){#store .plan-compare-table{min-width:280px!important;width:100%!important}#store .plan-compare-table th,#store .plan-compare-table td{padding:10px 4px!important;font-size:11px!important}#store .plan-compare-table th:first-child{width:auto}#store .plan-compare-table thead th span,#store .plan-compare-table thead th small{font-size:10px!important}#store .plan-compare-table th:first-child{position:static}}

#scanLiveVideo[hidden]{display:none!important}#scanCameraStatus{line-height:1.5}

.offline-legal-dialog{width:min(760px,94vw);max-width:94vw!important;max-height:90dvh;padding:0;border:1px solid #dce3ef;border-radius:16px;background:#f5f7fb;color:#182037;overflow:auto}.offline-legal-dialog::backdrop{background:rgba(20,29,48,.48)}.offline-legal-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;background:#fff;border-bottom:1px solid #dce3ef;position:sticky;top:0;z-index:2}.offline-legal-dialog .legal-card{margin:0;padding:18px;border:0;border-radius:0}.offline-legal-dialog .legal-card h1{font-size:24px}.offline-legal-dialog .legal-card p,.offline-legal-dialog .legal-card li{font-size:14px;line-height:1.65}.offline-legal-dialog .legal-nav{display:flex;flex-wrap:wrap;gap:10px}

.direct-camera{position:relative;isolation:isolate;cursor:pointer;overflow:hidden}.direct-camera input[type=file]{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;max-width:none!important;margin:0!important;padding:0!important;opacity:0!important;z-index:3;cursor:pointer}.direct-camera:focus-within{outline:2px solid var(--accent);outline-offset:3px}#takeQrPhoto,#scanCameraFallback{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px;text-align:center}#scanCameraFallback{margin-top:8px;width:100%}

.purchase-feedback{font-size:13px;line-height:1.5;overflow-wrap:anywhere;padding:10px;border-radius:10px;background:#eef2ff;color:#24345b;margin:8px 0 0;}
