/* Desktop remains the established side-by-side builder. */
#atcv-app .atcv-mobile-home,#atcv-community-chat .atcv-mobile-members-toggle{display:none}
@media screen and (max-width:900px){
 body.atcv-fullscreen{height:auto!important;min-height:100%;overflow-y:auto!important;overflow-x:clip;background:#eef8fc}
 #atcv-app{--atcv-panel-gutter:12px;width:100%!important;max-width:100%!important;min-width:0;margin:0;padding:0 0 max(20px,env(safe-area-inset-bottom));overflow:visible;border:0;border-radius:0}
 #atcv-app .atcv-header{position:relative;top:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:8px 12px;background:#fff;border-bottom:1px solid #d6e8ed}
 #atcv-app .atcv-brand{grid-column:1;grid-row:1;min-width:0}
 #atcv-app .atcv-brand-logo{display:block;width:180px;max-width:100%;height:56px;object-fit:contain;object-position:left center}
 #atcv-app[dir=rtl] .atcv-brand-logo{object-position:right center}
 #atcv-app .atcv-lang{grid-column:2;grid-row:1;display:flex;padding:3px;max-width:none}
 #atcv-app .atcv-lang button{min-width:44px;min-height:40px;font-size:12px;padding:6px 8px}
 #atcv-app .atcv-top-nav{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:wrap;gap:5px;justify-content:center;width:100%;padding:2px 0}
 #atcv-app .atcv-top-nav button{flex:1 1 28%;min-width:0;max-width:none;min-height:40px;border-radius:20px;padding:7px 6px;font-size:12px;line-height:1.35}
 #atcv-app .atcv-top-nav [data-action=start],#atcv-app .atcv-top-nav [data-action=cv-search]{display:none}
 #atcv-app .atcv-hero{display:none}
 #atcv-app .atcv-mobile-home{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px 12px}
 #atcv-app .atcv-mobile-card{display:flex;flex-direction:column;min-width:0;padding:12px 10px;border:1px solid #cce6ed;border-radius:15px;background:linear-gradient(145deg,#fff,#f1fbfd);box-shadow:0 3px 10px #123d5510}
 #atcv-app .atcv-mobile-card-heading{display:flex;align-items:center;gap:7px;color:#087f84;min-height:46px}
 #atcv-app .atcv-mobile-card-heading svg{flex:none;width:25px;height:25px}
 #atcv-app .atcv-mobile-card h2{margin:0;color:#123b50;font-size:15px;line-height:1.5;font-weight:800}
 #atcv-app .atcv-mobile-card>p{flex:1;margin:10px 0;color:#496677;font-size:13px;line-height:1.65}
 #atcv-app .atcv-mobile-card-action{width:100%;margin-top:auto;min-height:46px;padding:8px 6px;border:0;border-radius:9px;color:#fff;background:linear-gradient(110deg,#073a52,#008d8e);font-size:12px;line-height:1.45;font-weight:800;white-space:normal}
 #atcv-app .atcv-mobile-sample{display:flex;align-items:center;gap:7px;margin:8px 0 10px;color:#577080;font-size:10px;line-height:1.5}
 #atcv-app .atcv-mobile-sample img{display:block;width:48px;height:68px;object-fit:contain;flex:none;border:1px solid #d9e5ea;border-radius:4px;background:#fff}
 #atcv-app .atcv-quota-strip{margin:4px 12px 10px;max-width:calc(100% - 24px);padding:9px;gap:8px;flex-wrap:wrap;font-size:11px}
 #atcv-app > .atcv-community-account-row > .atcv-quota-strip{width:100%;max-width:none}
 #atcv-app .atcv-mobile-switch{display:flex!important;position:sticky;top:0;z-index:15;gap:8px;margin:0;padding:8px 12px;background:#f2fafdf5;border-block:1px solid #cce2e9;backdrop-filter:blur(8px)}
 #atcv-app .atcv-mobile-switch button{flex:1;min-width:0;min-height:44px;margin:0;padding:9px 6px;border-radius:10px;background:#fff;border:1px solid #93c9c9;color:#154758;font-size:13px}
 #atcv-app .atcv-mobile-switch button.active{background:#087c80;color:#fff;border-color:#087c80;box-shadow:0 2px 7px #087c8020}
 #atcv-app .atcv-workspace{display:block!important;grid-template-columns:none!important;width:100%;padding:10px 12px 18px;scroll-margin-top:70px;min-height:0!important;height:auto!important}
 #atcv-app .atcv-workspace>.atcv-editor-column,#atcv-app .atcv-workspace>.atcv-preview-column{display:block!important;width:100%;min-width:0;min-height:0!important;height:auto!important}
 #atcv-app .atcv-workspace[data-mobile=editor]>.atcv-preview-column,#atcv-app .atcv-workspace[data-mobile=preview]>.atcv-editor-column{display:none!important}
 #atcv-app .atcv-workspace .atcv-new-cv-bar{display:none}
 #atcv-app .atcv-editor,#atcv-app .atcv-preview-panel{position:static!important;top:auto!important;display:block!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;border:1px solid #c9e1e9;border-radius:14px;background:#fff}
 #atcv-app .atcv-workspace>.atcv-preview-column>.atcv-preview-panel{display:block!important}
 #atcv-app .atcv-editor .atcv-form{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:12px}
 #atcv-app .atcv-editor-nav{position:static;padding:10px 10px 0;overflow:visible}
 #atcv-app .atcv-tabs{display:flex;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;gap:6px;padding:2px 0 8px;max-width:100%;overscroll-behavior-x:contain;overscroll-behavior-y:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
 #atcv-app .atcv-tabs button{flex:0 0 auto!important;max-width:200px;white-space:normal;min-height:42px;padding:7px 10px;font-size:12px}
 #atcv-app .atcv-fields,#atcv-app .atcv-social-fields{grid-template-columns:1fr;gap:12px}
 #atcv-app .atcv-field input,#atcv-app .atcv-field textarea,#atcv-app .atcv-field select,#atcv-app .atcv-social-fields input,#atcv-app #atcv-account input,#atcv-app .atcv-cloud-search input{font-size:16px!important;max-width:100%;min-width:0}
 #atcv-app .atcv-field textarea{min-height:130px;max-width:100%}
 #atcv-app .atcv-photo-feature{flex-wrap:wrap;gap:10px;padding:12px;min-height:0}
 #atcv-app .atcv-photo-feature-actions{min-width:160px;flex:1}
 #atcv-app .atcv-save-row{padding:12px}
 #atcv-app .atcv-save-large{min-height:46px}
 #atcv-app .atcv-preview-heading{display:block;padding:12px}
 #atcv-app .atcv-preview-toolbar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin-top:9px}
 #atcv-app .atcv-preview-toolbar button{width:100%;min-width:0;min-height:44px;font-size:12px;padding:8px 5px;white-space:normal}
 #atcv-app .atcv-zoom-label{grid-column:1/-1;display:flex;justify-content:center}
 #atcv-app .atcv-preview-controls{padding:0 10px 10px}
 #atcv-app .atcv-quick-colors{max-width:100%}
 #atcv-app .atcv-preview-controls .atcv-inline-template{min-height:48px;font-size:17px;padding:10px}
 #atcv-app .atcv-preview-column .atcv-preview-scroll{display:block!important;position:relative;flex:none!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important;margin:0 5px 10px;padding:8px 0;background:#edf4f7;touch-action:auto}
 #atcv-app .atcv-pages,#atcv-app .atcv-language-group{min-width:0;max-width:100%}
 #atcv-app .atcv-page-wrap{margin:0 auto 12px;overflow:hidden}
 #atcv-app .atcv-template-shelf{margin-top:12px;max-width:100%}
 #atcv-app .atcv-cloud-panel,#atcv-app .atcv-account-panel,#atcv-app .atcv-save-account-panel,#atcv-app .atcv-search-panel{max-width:calc(100% - 24px);margin-inline:12px;scroll-margin-top:75px;min-width:0}
 #atcv-app .atcv-footer{padding:14px 12px 70px;font-size:11px}
 #atcv-app dialog{max-width:calc(100vw - 16px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior-y:auto}
 .atcv-email-progress{width:calc(100vw - 24px);max-width:420px;max-height:calc(100dvh - 24px);overscroll-behavior-y:auto}
 body #atcv-app button.atcv-chat-open{width:calc(100% - 24px)!important;margin:12px!important;min-height:100px!important;height:auto!important;padding:14px 12px!important;gap:10px;background:linear-gradient(110deg,#092e49,#115c68)!important;border:2px solid #f1c75e!important;border-radius:17px;animation:none!important;box-shadow:0 3px 10px #173b5520}
 body #atcv-app .atcv-chat-open-title{font-size:19px;color:#fff}
 body #atcv-app .atcv-chat-open-eyebrow{display:none}
 body #atcv-app .atcv-chat-open-subtitle{font-size:11px}
 body #atcv-app .atcv-chat-open-icon{width:46px;height:46px;flex-basis:46px;background:#ffffff10;transform:none;border:0}
 body #atcv-app .atcv-chat-open-icon svg{width:36px;height:36px}
 body #atcv-app .atcv-chat-open-arrow{background:#f6cf6e;color:#123d50}
 #atcv-app #atcv-community-chat{margin-block:12px;border-radius:15px;scroll-margin-top:75px;background:#f5fafc}
 #atcv-app #atcv-community-chat .atcv-chat-head{padding:11px 12px;background:linear-gradient(110deg,#0b2c47,#125b65);border-bottom:3px solid #e9bf58;gap:8px}
 #atcv-app #atcv-community-chat .atcv-chat-head h2{font-size:17px;line-height:1.5}
 #atcv-app #atcv-community-chat .atcv-chat-head>div{gap:7px}
 #atcv-app #atcv-community-chat .atcv-chat-columns{display:flex;flex-direction:column;gap:8px;padding:8px}
 #atcv-app #atcv-community-chat .atcv-chat-main{width:100%;min-width:0}
 #atcv-app #atcv-community-chat .atcv-chat-messages{height:380px;height:min(52svh,420px);min-height:240px;max-height:420px;overflow-y:auto;overscroll-behavior-y:auto;-webkit-overflow-scrolling:touch;padding:3px}
 #atcv-app #atcv-community-chat .atcv-chat-message{padding:8px;gap:8px;border-radius:10px;margin-bottom:7px}
 #atcv-app #atcv-community-chat .atcv-chat-avatar{width:30px;height:30px;min-width:30px;font-size:11px}
 #atcv-app #atcv-community-chat .atcv-chat-line>p{font-size:13px;line-height:1.6}
 #atcv-app #atcv-community-chat .atcv-mobile-members-toggle{display:block;width:100%;min-height:42px;background:#e6f5f6;border-color:#a3cccd;color:#16475a;font-size:12px;text-align:start}
 #atcv-app #atcv-community-chat .atcv-chat-members{display:none;width:100%;align-self:auto}
 #atcv-app #atcv-community-chat[data-mobile-members-open=true] .atcv-chat-members{display:block}
 #atcv-app #atcv-community-chat .atcv-chat-members ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;max-height:220px;overflow-y:auto;overscroll-behavior-y:auto;padding:8px;gap:7px}
 #atcv-app #atcv-community-chat .atcv-chat-members li{min-width:0;width:auto;padding:4px}
 #atcv-app #atcv-community-chat .atcv-chat-members h3{background:#123d55}
 #atcv-app #atcv-community-chat .atcv-chat-gate{display:flex;flex-wrap:wrap;gap:7px;padding:10px;background:#fff2c9;border-color:#e5c66e;color:#173d52}
 #atcv-app #atcv-community-chat .atcv-chat-gate button{width:100%;min-height:44px;background:#087d80;color:white;border:0}
 #atcv-app #atcv-community-chat .atcv-chat-compose textarea{font-size:16px;min-height:48px;height:48px}
 #atcv-app #atcv-community-chat .atcv-chat-compose-tools{gap:6px}
 #atcv-app #atcv-community-chat .atcv-chat-compose-tools button{min-height:40px;font-size:12px;padding:7px 9px}
 #atcv-app #atcv-community-chat .atcv-chat-send{width:100%}
 body button.atcv-chat-launcher{bottom:calc(12px + env(safe-area-inset-bottom));inset-inline-end:12px;min-height:44px;padding:9px 13px;max-width:calc(100vw - 24px);border:2px solid #ecc466;border-radius:28px;background:#0d344e;font-size:12px;box-shadow:0 3px 12px #123b5540}
 html.atcv-mobile-typing button.atcv-chat-launcher{display:none!important}
 /* Compact composer, including textareas wrapped by a speech-input add-on. */
 #atcv-app #atcv-community-chat .atcv-chat-compose{margin:0 10px;min-width:0;padding:0}
 #atcv-app #atcv-community-chat .atcv-chat-compose #atcv-chat-input{display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:64px!important;min-height:64px!important;max-height:120px!important;padding:10px 46px 10px 12px!important;font:400 16px/22px Arial,sans-serif!important;white-space:pre-wrap;overflow-wrap:anywhere;overflow-y:auto;resize:vertical;border:1px solid #9fc9cf;border-radius:12px;scroll-margin-block:18px}
 #atcv-app #atcv-community-chat[dir=rtl] .atcv-chat-compose #atcv-chat-input{padding-inline:12px 46px!important;font-family:inherit!important}
 #atcv-app #atcv-community-chat .atcv-chat-compose>div:has(#atcv-chat-input){display:block!important;position:relative;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;flex:none!important;margin:0!important;height:auto!important}
 #atcv-app #atcv-community-chat .atcv-chat-compose #atcv-chat-input::placeholder{font-size:16px;line-height:22px;color:#667f89;opacity:1}
 #atcv-app #atcv-community-chat .atcv-chat-compose #atcv-chat-input:focus-visible{outline:2px solid #087d80;outline-offset:2px}
 #atcv-app #atcv-community-chat .atcv-chat-compressor-note{margin:4px 0;font-size:10px;line-height:1.5;overflow-wrap:anywhere}
 #atcv-app #atcv-community-chat .atcv-chat-compose .atcv-chat-compose-tools{display:flex!important;align-items:center;flex-wrap:nowrap!important;gap:5px!important;width:100%;min-width:0;margin-top:5px}
 #atcv-app #atcv-community-chat .atcv-chat-compose-tools>button{flex:0 1 auto;min-width:0;min-height:44px;margin:0;padding:6px 8px;font-size:11px;line-height:1.4;border-radius:9px;white-space:nowrap}
 #atcv-app #atcv-community-chat .atcv-chat-compose-tools>button[data-chat-action=emoji]{font-size:18px;padding:4px 8px}
 #atcv-app #atcv-community-chat .atcv-chat-compose-tools>button[data-chat-action=emoji] span{font-size:11px}
 #atcv-app #atcv-community-chat .atcv-chat-compose-tools>small{flex:none;font:10px/1.4 Arial,sans-serif;white-space:nowrap;direction:ltr}
 #atcv-app #atcv-community-chat .atcv-chat-compose button.atcv-chat-send{flex:1 0 auto!important;width:auto!important;min-width:66px!important;max-width:none;margin-inline-start:auto!important;padding:6px 9px;font-size:12px;background:linear-gradient(110deg,#087d80,#12576a)}
 #atcv-app #atcv-community-chat .atcv-chat-status:empty{display:none}
 #atcv-app #atcv-community-chat .atcv-chat-rule{font-size:10px;line-height:1.6;margin:8px 10px 10px}

}
