/* 手机独立模板编辑页仅调整容器；保留同一表格和字段，电脑不进入此视图。 */
.mobile-template-editor[hidden]{display:none!important}
.mobile-template-editor{position:fixed;inset:0 0 auto;z-index:1100;height:100dvh;display:flex;flex-direction:column;background:var(--ui-surface,#fff);color:var(--ui-text,#152b50);overflow:hidden}
.mobile-template-head{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--ui-line,#d8e2f4);flex:none}
.mobile-template-head>button{flex:0 0 44px;min-width:44px;min-height:44px;padding:0;font-size:30px;background:transparent;border:0;box-shadow:none;color:inherit}
.mobile-template-head>div{min-width:0;flex:1}.mobile-template-head h1{margin:0;font-size:17px;line-height:1.4}.mobile-template-head p{margin:3px 0 0;color:var(--ui-muted,#657997);font-size:12px;line-height:1.5;overflow-wrap:anywhere;max-height:3em;overflow:auto}
.mobile-template-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px 12px;scroll-padding-block:20px}
.mobile-template-content .generation-complete{border:0!important;margin:0!important;padding:0!important;max-width:none!important;width:100%;box-sizing:border-box}
.mobile-template-content .chat-complete-heading,.mobile-template-content .chat-save-status{display:none!important}
.mobile-template-content .generation-template-table-wrap{overflow-x:auto;max-width:100%}
.mobile-template-content .generation-template-table{min-width:720px}
.mobile-template-content textarea{background:var(--ui-surface,#fff);color:var(--ui-text,#152b50);font-size:14px}
.mobile-template-content .generation-gx-record{min-width:0}.mobile-template-content .generation-gx-record textarea{width:100%;box-sizing:border-box}
.mobile-template-footer{flex:none;border-top:1px solid var(--ui-line,#d8e2f4);padding:8px 12px max(10px,env(safe-area-inset-bottom));background:var(--ui-surface,#fff)}
.mobile-template-footer>p{font-size:12px;line-height:1.5;color:var(--ui-muted,#657997);margin:0 0 6px;overflow-wrap:anywhere}
.mobile-template-footer>div{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.mobile-template-footer button{min-height:44px;padding:8px 12px;margin:0;box-shadow:none;white-space:nowrap;flex-shrink:0}.mobile-template-footer button:active:not(:disabled){filter:brightness(.94)}
.mobile-template-footer button[hidden]{display:none!important}.mobile-template-footer button:not(.primary){background:transparent;color:var(--ui-primary,#2e62ee);border:1px solid var(--ui-line,#d8e2f4)}
.mobile-template-editor button:focus-visible{outline:2px solid var(--ui-primary,#2e62ee);outline-offset:2px}
@media(max-height:400px){.mobile-template-head{padding-block:4px}.mobile-template-head p{max-height:1.5em}.mobile-template-footer{display:flex;align-items:center;gap:8px;padding-block:6px}.mobile-template-footer>p{flex:1;margin:0}.mobile-template-footer>div{flex-shrink:0}.mobile-template-content{padding-block:8px}}
