/* DOBERTO APK unified visual system */
:root{--ui-font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;--ui-ink:#111827;--ui-muted:#667085;--ui-border:#e4e7ec;--ui-soft:#f5f6f8;--ui-accent:#6d5dfc}
html{scrollbar-gutter:stable}html,body,button,input,select,textarea{font-family:var(--ui-font)!important;font-style:normal!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}body{min-height:100dvh}h1,h2,h3,h4,h5,h6,.brand,.public-brand,.eyebrow,.plan-label,.stat-card strong,.project-card h4,.builder-head h1,.auth-heading h2,.section-intro h2,.feature-card h3,.step-public strong,.format-card h3,.faq-item summary,.cta-box h2,.legal-hero h1,.legal-card h2,.footer-col strong{font-family:var(--ui-font)!important;font-style:normal!important;letter-spacing:-.02em!important}body,p,label,input,select,textarea,button,a,small,strong,span{font-style:normal}.eyebrow,.section-kicker,.hero-kicker,.legal-meta{letter-spacing:.08em!important}

/* One language control everywhere */
.lang-switch,.lang-switch-mini{display:inline-flex!important;align-items:center!important;gap:2px!important;padding:3px!important;height:34px!important;border:1px solid #dfe3e8!important;border-radius:10px!important;background:#f4f5f7!important;box-shadow:none!important;flex:0 0 auto}.lang-switch button,.lang-switch-mini button{display:grid!important;place-items:center!important;min-width:34px!important;height:26px!important;padding:0 8px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#667085!important;font-family:var(--ui-font)!important;font-size:10px!important;font-weight:700!important;line-height:1!important;letter-spacing:0!important;cursor:pointer!important;transition:background .16s ease,color .16s ease,box-shadow .16s ease!important}.lang-switch button.active,.lang-switch-mini button.active{background:#111827!important;color:#fff!important;box-shadow:0 2px 7px rgba(17,24,39,.14)!important}

/* Professional SVG icons */
.ui-icon{display:inline-block;flex:0 0 auto;width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.ui-icon.sm{width:15px;height:15px}.ui-icon.lg{width:22px;height:22px}.ui-icon.xl{width:26px;height:26px}
.nav-item>span:first-child,.stat-icon,.step-icon,.feature-card .fi,.engine-card-icon,.upload-symbol,.empty-illustration,.verification-icon,.float-icon,.preview-note>span{display:grid!important;place-items:center!important;font-size:0!important;line-height:0!important}
.nav-item>span:first-child .ui-icon{width:18px;height:18px}.stat-icon .ui-icon{width:20px;height:20px}.step-icon .ui-icon{width:21px;height:21px}.feature-card .fi .ui-icon{width:21px;height:21px}.engine-card-icon .ui-icon{width:22px;height:22px}.upload-symbol .ui-icon{width:20px;height:20px}.empty-illustration .ui-icon{width:30px;height:30px}.verification-icon .ui-icon{width:18px;height:18px}.float-icon .ui-icon{width:17px;height:17px}.preview-note>span .ui-icon{width:16px;height:16px}
.icon-btn,.public-menu,.eye-btn{display:inline-grid!important;place-items:center!important;font-size:0!important;line-height:0!important}.icon-btn .ui-icon,.public-menu .ui-icon{width:20px;height:20px}.eye-btn .ui-icon{width:17px;height:17px}

/* Brand icon consistency */
.public-brand img,.brand img,.sidebar-brand img,.mobile-brand img{width:36px!important;height:36px!important;border-radius:10px!important;box-shadow:none!important;object-fit:contain!important}.brand-mark.brand-image{width:36px!important;height:36px!important;padding:0!important;background:transparent!important;border-radius:10px!important;overflow:hidden!important;box-shadow:none!important}.brand-mark.brand-image img{display:block;width:100%!important;height:100%!important}.public-brand,.brand{font-family:var(--ui-font)!important;font-weight:800!important;letter-spacing:-.02em!important}

/* Remove typographic gimmicks */
.hero h1,.pro-welcome h1,.section-intro h2,.cta-box h2,.legal-hero h1{letter-spacing:-.035em!important}.hero h1 em{font-style:normal!important}

/* Icon rows on public pages */
.hero-proof span,.logo-strip-inner>span,.format-list span{display:inline-flex!important;align-items:center!important;gap:7px!important}.hero-proof span:before,.format-list span:before{display:none!important;content:none!important}.logo-strip-inner b{display:inline-grid!important;place-items:center!important;font-size:0!important}.logo-strip-inner b .ui-icon{width:16px;height:16px}

/* Consistent action buttons */
.project-action,.history-action,.secondary-btn,.primary-btn,.public-btn,.hero-secondary,.white-btn{align-items:center!important;justify-content:center!important;gap:7px!important}.project-action,.history-action,.secondary-btn,.primary-btn{display:inline-flex!important}.project-action .ui-icon,.history-action .ui-icon,.secondary-btn .ui-icon,.primary-btn .ui-icon,.public-btn .ui-icon,.hero-secondary .ui-icon,.white-btn .ui-icon{width:15px;height:15px}.project-action.danger,.history-action.danger{border-color:#f0d5d9!important}.project-action.danger .ui-icon,.history-action.danger .ui-icon{stroke-width:1.9}

/* Stable focus and touch behavior */
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(109,93,252,.22)!important;outline-offset:2px!important}.nav-item,.project-action,.history-action,.primary-btn,.secondary-btn,.white-btn,.hero-secondary,.public-btn,.icon-btn,.public-menu{min-height:40px}.nav-item{min-height:44px}.public-menu,.icon-btn{min-width:40px}.sidebar,.public-links.mobile-open{overscroll-behavior:contain}.main-panel{min-width:0}.topbar,.topbar-actions,.topbar-left{min-width:0}.profile-chip{min-width:0}.profile-chip strong,.profile-chip small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Toasts */
.ui-toast-stack{position:fixed;right:18px;top:18px;z-index:500;display:grid;gap:9px;width:min(370px,calc(100vw - 28px));pointer-events:none}.ui-toast{display:grid;grid-template-columns:34px minmax(0,1fr) 26px;gap:10px;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:12px 12px 12px 11px;box-shadow:0 18px 55px rgba(15,23,42,.16);color:#253044;transform:translateY(-8px);opacity:0;transition:.2s ease;pointer-events:auto}.ui-toast.show{transform:translateY(0);opacity:1}.ui-toast-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#eef0ff;color:#5d4fe0}.ui-toast.success .ui-toast-icon{background:#eaf8f2;color:#168060}.ui-toast.error .ui-toast-icon{background:#fff0f2;color:#c13b53}.ui-toast.warning .ui-toast-icon{background:#fff6e8;color:#a66b0c}.ui-toast-copy strong{display:block;font-size:11px;line-height:1.25}.ui-toast-copy small{display:block;margin-top:3px;color:#7e8797;font-size:10px;line-height:1.45}.ui-toast-close{border:0;background:transparent;color:#9aa1ad;font-size:17px;line-height:1;cursor:pointer;padding:2px}

/* Confirmation dialog */
.ui-confirm-backdrop{position:fixed;inset:0;z-index:520;display:grid;place-items:center;padding:20px;background:rgba(7,11,22,.52);backdrop-filter:blur(5px);opacity:0;pointer-events:none;transition:.2s ease}.ui-confirm-backdrop.show{opacity:1;pointer-events:auto}.ui-confirm-card{width:min(440px,100%);background:#fff;border:1px solid #e4e7ec;border-radius:20px;padding:22px;box-shadow:0 30px 90px rgba(8,15,35,.28);transform:translateY(8px) scale(.985);transition:.2s ease}.ui-confirm-backdrop.show .ui-confirm-card{transform:none}.ui-confirm-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:#fff1f3;color:#c13b53}.ui-confirm-card h3{margin:16px 0 7px;font-size:18px}.ui-confirm-card p{margin:0;color:#727b8c;font-size:11px;line-height:1.6}.ui-confirm-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:21px}.ui-confirm-actions button{min-height:40px;border-radius:10px;padding:0 14px;font-size:11px;font-weight:800;cursor:pointer}.ui-confirm-cancel{border:1px solid #e0e4ea;background:#fff;color:#4e586b}.ui-confirm-danger{border:1px solid #c84259;background:#c84259;color:#fff;display:inline-flex;align-items:center;gap:7px}

/* Avoid layout shift while SVG enhancement initializes */
.nav-item>span:first-child{width:20px;height:20px;flex:0 0 20px}.stat-icon{min-width:42px;min-height:42px}.step-icon{min-width:42px;min-height:42px}.feature-card .fi{min-width:44px;min-height:44px}.engine-card-icon{min-width:44px;min-height:44px}.float-icon{min-width:34px;min-height:34px}.upload-symbol{min-width:32px;min-height:32px}.empty-illustration{min-width:52px;min-height:52px}.preview-note>span{min-width:24px;min-height:24px}

/* Dashboard loading, skeletons and recovery */
.dashboard-loading .profile-chip strong,.dashboard-loading .profile-chip small{color:transparent!important;position:relative}.dashboard-loading .profile-chip strong:after,.dashboard-loading .profile-chip small:after{content:"";position:absolute;inset:2px 0;border-radius:999px;background:linear-gradient(90deg,#edf0f5 20%,#f7f8fa 50%,#edf0f5 80%);background-size:220% 100%;animation:uiShimmer 1.2s linear infinite}.dashboard-loading .stat-card strong:empty{display:block;width:48px;height:20px;border-radius:8px;background:linear-gradient(90deg,#edf0f5 20%,#f7f8fa 50%,#edf0f5 80%);background-size:220% 100%;animation:uiShimmer 1.2s linear infinite}.loading-state{display:grid;gap:12px}.skeleton{display:block!important;background:linear-gradient(90deg,#eceff4 20%,#f7f8fb 50%,#eceff4 80%)!important;background-size:220% 100%!important;animation:uiShimmer 1.2s linear infinite!important;color:transparent!important;border:0!important;box-shadow:none!important}.skeleton-card{pointer-events:none}.skeleton-square{width:48px;height:48px;border-radius:14px}.skeleton-line{height:10px;border-radius:999px;width:100%;margin:0}.skeleton-line.short{width:58%}.skeleton-title{width:38%;height:13px}.skeleton-copy{width:72%;margin-top:9px}.skeleton-pill{width:72px;height:26px;border-radius:999px}.skeleton-button{width:82px;height:34px;border-radius:10px}.skeleton-history .skeleton-line{display:block!important;width:82%;height:9px}.skeleton-history .skeleton-line+.skeleton-line{margin-top:7px}.skeleton-history .skeleton-pill{display:block!important;width:64px;height:22px}.skeleton-history .skeleton-button{display:block!important;width:72px;height:30px}.view.view-entering{animation:viewEnter .22s cubic-bezier(.2,.8,.2,1)}
.data-state-banner{position:sticky;top:72px;z-index:44;margin:10px 22px 0;padding:12px 14px;display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:11px;align-items:center;border:1px solid #f0d1d7;background:#fff8f9;border-radius:14px;box-shadow:0 10px 35px rgba(107,31,47,.06)}.data-state-banner[hidden]{display:none!important}.data-state-icon{width:36px;height:36px;border-radius:11px;background:#fff0f2;position:relative}.data-state-icon:before{content:"!";position:absolute;inset:0;display:grid;place-items:center;color:#c84259;font-weight:900;font-size:15px}.data-state-copy strong,.data-state-copy small{display:block}.data-state-copy strong{font-size:11px;color:#6d2635}.data-state-copy small{font-size:10px;color:#8f6570;margin-top:3px;line-height:1.45}.data-retry-btn{border:1px solid #e7c3cb;background:#fff;color:#8c3345;border-radius:10px;padding:0 13px;min-height:38px;font-size:10px;font-weight:800;cursor:pointer}.data-retry-btn:disabled{opacity:.5;cursor:not-allowed}.dashboard-offline .data-state-icon:before{content:"×"}.dashboard-offline .data-state-banner{border-color:#eadfbf;background:#fffaf0}.dashboard-offline .data-state-icon{background:#fff4d8}.dashboard-offline .data-state-icon:before{color:#9d7012}.dashboard-offline .data-state-copy strong{color:#765815}.dashboard-offline .data-state-copy small{color:#8b7b54}
.pro-empty-state,.data-error-placeholder{min-height:300px;padding:42px 24px!important;text-align:center;display:flex!important;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #dfe3eb!important;border-radius:20px!important;background:linear-gradient(180deg,#fff,#fafbfe)!important}.pro-empty-state .empty-illustration,.data-error-placeholder-icon{width:58px;height:58px;border-radius:17px;background:#f0eeff;color:#6758e8;display:grid;place-items:center;margin-bottom:15px}.pro-empty-state .empty-kicker{font-size:9px;font-weight:900;letter-spacing:.1em;color:#7769ea;margin-bottom:8px}.pro-empty-state h3,.data-error-placeholder h3{margin:0;font-size:17px}.pro-empty-state p,.data-error-placeholder p{max-width:520px;margin:8px auto 18px!important;font-size:11px!important;line-height:1.6!important;color:#7d8697!important}.data-error-placeholder-icon{background:#fff0f2}.data-error-placeholder-icon:before{content:"!";font-size:19px;font-weight:900;color:#c84259}.pro-history-empty{min-height:190px;display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:5px;padding:28px!important}.pro-history-empty strong{font-size:13px;color:#394256}.pro-history-empty small{font-size:10px;color:#8a93a3;max-width:390px;line-height:1.55}.history-empty-icon{width:44px;height:44px;border-radius:13px;background:#f1efff;margin-bottom:5px;position:relative}.history-empty-icon:before{content:"";position:absolute;inset:12px;border:2px solid #6d5dfc;border-radius:4px;box-shadow:8px 0 0 -5px #6d5dfc,0 8px 0 -5px #6d5dfc}
@keyframes uiShimmer{to{background-position:-220% 0}}@keyframes viewEnter{from{opacity:.65;transform:translateY(5px)}to{opacity:1;transform:none}}

@media(max-width:760px){.topbar{position:sticky;top:0;z-index:55}.topbar-actions{max-width:52%}.engine-pill{max-width:155px;overflow:hidden}.engine-pill span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-chip{max-width:145px}.sidebar{padding-bottom:max(8px,env(safe-area-inset-bottom))}.data-state-banner{top:64px;margin:8px 14px 0}}
@media(max-width:600px){.lang-switch,.lang-switch-mini{height:32px!important}.lang-switch button,.lang-switch-mini button{height:24px!important;min-width:31px!important;padding:0 6px!important;font-size:9px!important}.ui-toast-stack{left:14px;right:14px;top:max(14px,env(safe-area-inset-top));width:auto}.ui-confirm-card{padding:19px}.ui-confirm-actions{display:grid;grid-template-columns:1fr 1fr}.ui-confirm-actions button{width:100%}.project-actions,.history-actions{gap:7px!important}.project-action,.history-action{min-height:42px}.data-state-banner{grid-template-columns:34px 1fr}.data-retry-btn{grid-column:2;width:max-content}.skeleton-card .project-actions{display:none!important}}
@media(max-width:430px){.engine-pill{display:none!important}.profile-chip{max-width:130px}.profile-chip div{min-width:0}.topbar-actions{max-width:46%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
