/* Mobile-only layout. Desktop rules and exported document styles stay intact. */
@media screen and (max-width: 760px) {
 html[data-aone-surface]{width:100%;scroll-padding-top:16px;-webkit-text-size-adjust:100%}
 html[data-aone-surface] body{width:100%;min-width:0;margin:0;overflow-wrap:anywhere}
 html[data-aone-surface] *,html[data-aone-surface] *::before,html[data-aone-surface] *::after{box-sizing:border-box}
 html[data-aone-surface] :where(main,section,article,form,fieldset,header,footer,nav,dialog,div){min-width:0}
 html[data-aone-surface] :where(img,video,canvas,svg,iframe){max-width:100%}
 html[data-aone-surface] :where(input,select,textarea){max-width:100%;min-width:0;font-size:16px!important}
 html[data-aone-surface] textarea{resize:vertical}
 html[data-aone-surface] :where(button,a){touch-action:manipulation}
 html[data-aone-surface] :where(button,.btn,.button){white-space:normal;overflow-wrap:anywhere;min-height:40px;max-width:100%}
 html[data-aone-surface] :where(pre,code){white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
 html[data-aone-surface] :where(.actions,.title-actions,.table-actions,.admin-actions,.settings-inline-actions,.settings-actions,.dialog-footer,.modal-actions){flex-wrap:wrap;gap:10px}
 html[data-aone-surface] :where(dialog,.glass-dialog){width:calc(100% - 20px)!important;max-width:calc(100% - 20px)!important;max-height:calc(100dvh - 24px);padding:20px 16px;border-radius:20px;overflow-y:auto}
 html[data-aone-surface] :where(.dialog-header,.modal-head,.section-heading,.panel-heading,.page-title,.heading){gap:12px;flex-wrap:wrap}
 html[data-aone-surface] :where(.admin-toolbar,.knowledge-toolbar,.overview-toolbar,.panel-tools){flex-wrap:wrap;gap:12px}
 html[data-aone-surface] :where(.admin-toolbar,.knowledge-toolbar,.overview-toolbar,.panel-tools)>*{max-width:100%}
 html[data-aone-surface] :where(.table-wrap,.table-scroll,.tablebox,.admin-table-wrap,.spreadsheet-scroll){width:100%;max-width:100%;overflow:visible}
 html[data-aone-surface] table[data-mobile-cards]{display:block;width:100%!important;min-width:0!important;table-layout:auto!important;border:0;white-space:normal}
 html[data-aone-surface] table[data-mobile-cards]>colgroup{display:none}
 html[data-aone-surface] table[data-mobile-cards]>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 html[data-aone-surface] table[data-mobile-cards]>tbody{display:grid;gap:14px;width:100%}
 html[data-aone-surface] table[data-mobile-cards]>tbody>tr{display:grid;grid-template-columns:minmax(0,1fr);width:100%;border:1px solid #dfe6f1;border-radius:16px;background:#fff;padding:12px;white-space:normal;cursor:default}
 html[data-aone-surface] table[data-mobile-cards]>tbody>tr>:is(td,th){display:block!important;position:static!important;width:100%!important;min-width:0!important;max-width:100%;padding:10px 2px!important;border:0;border-bottom:1px solid #edf1f7;text-align:left;white-space:normal;overflow-wrap:anywhere;background:transparent}
 html[data-aone-surface] table[data-mobile-cards]>tbody>tr>:last-child{border-bottom:0}
 html[data-aone-surface] table[data-mobile-cards] [data-mobile-label]::before{content:attr(data-mobile-label);display:block;font-size:11px;line-height:1.5;color:#8999af;font-weight:400;margin-bottom:6px}
 html[data-aone-surface] table[data-mobile-cards] :where(input,select,textarea){width:100%!important;min-width:0!important;max-width:100%;border-radius:9px!important}
 html[data-aone-surface] table[data-mobile-cards] textarea{min-height:100px!important;line-height:1.7!important;padding:12px!important}
 html[data-aone-surface] table[data-mobile-cards] :where(input[type=checkbox],input[type=radio]){width:20px!important;min-height:20px}
 /* Main platform, login, Mini/Pro workspaces, settings, knowledge and assistant. */
 html[data-aone-surface=platform] :where(.screen,#workspace,.workspace,.main-stage){width:100%;min-width:0;max-width:100%;height:auto;min-height:100dvh}
 html[data-aone-surface=platform] #workspace>.topbar{display:flex!important;flex-wrap:wrap;gap:12px;padding:14px 16px;min-height:0}
 html[data-aone-surface=platform] #workspace>.topbar>.top-actions{margin-left:auto!important;gap:4px;max-width:100%;flex-wrap:wrap}
 html[data-aone-surface=platform] #workspace>.topbar>.top-nav{width:100%;margin:0;gap:4px;display:flex;justify-content:space-around;flex-wrap:wrap}
 html[data-aone-surface=platform] .brand-description{display:none}
 html[data-aone-surface=platform] .clean-workspace{display:block;overflow:visible;min-height:0}
 html[data-aone-surface=platform] .clean-main{width:100%;padding:24px 16px 90px}
 html[data-aone-surface=platform] .clean-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 html[data-aone-surface=platform] .clean-side-link{white-space:normal;padding:10px 6px;justify-content:center;font-size:12px;gap:6px}
 html[data-aone-surface=platform] .clean-welcome{min-height:0;gap:8px;margin:8px 0 24px}
 html[data-aone-surface=platform] .clean-heading h1{font-size:25px;line-height:1.4}
 html[data-aone-surface=platform] .clean-welcome-art{width:72px;height:98px;flex-shrink:0}
 html[data-aone-surface=platform] .clean-welcome-art img{width:72px;height:98px}
 html[data-aone-surface=platform] :where(.clean-tools,.clean-app-grid,.overview-columns,.app-directory,.overview-stats,.people-stats){grid-template-columns:minmax(0,1fr)!important}
 html[data-aone-surface=platform] .clean-tool{padding:18px}.clean-app-card{max-width:100%}
 html[data-aone-surface=platform] :where(.clean-note,.overview-header-actions,.knowledge-heading){flex-wrap:wrap;padding-right:0}
 html[data-aone-surface=platform] :where(.admin-tabs,.task-tabs,.top-nav){flex-wrap:wrap;overflow:visible}
 html[data-aone-surface=platform] :where(.person-fields,.settings-grid,.knowledge-fields,.link-fields,.form-grid,.grant-fields){display:grid;grid-template-columns:minmax(0,1fr)!important}
 html[data-aone-surface=platform] :where(.login-screen,.login-card,.login-card-content,.login-preview,.login-form){width:100%;min-width:0;max-width:100%}
 html[data-aone-surface=platform] .login-screen{padding:20px 16px;overflow-y:auto}
 html[data-aone-surface=platform] .login-card{margin:auto;border-radius:24px}
 html[data-aone-surface=platform] .login-card-content{padding:26px 20px}
 html[data-aone-surface=platform] .login-mascot-stage{max-height:130px}
 html[data-aone-surface=platform] :where(.login-brand-copy,.login-options,.login-help){flex-wrap:wrap;gap:10px}
 html[data-aone-surface=platform] .assistant-panel{left:10px!important;right:10px!important;bottom:10px!important;top:auto!important;width:auto!important;max-width:none!important;height:min(680px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)}
 html[data-aone-surface=platform] :where(.chat-messages,.chat-bubble,.assistant-header,.chat-form){min-width:0;max-width:100%}
 html[data-aone-surface=platform] .quick-questions{flex-wrap:wrap}
 html[data-aone-surface=platform] :where(.overview-flow,.carousel,.card-track){max-width:100%;min-width:0}
 /* HR center: navigation, all service forms, approval lists and meeting sheets. */
 html[data-aone-surface=hr] header{height:auto;padding:14px 16px;border-radius:0;display:block}
 html[data-aone-surface=hr] .topbar-inner{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:14px!important;width:100%;padding:0!important}
 html[data-aone-surface=hr] .brand{font-size:12px;white-space:normal;gap:8px;line-height:1.6}
 html[data-aone-surface=hr] .company-logo{width:32px!important;flex-shrink:0}
 html[data-aone-surface=hr] .profile{gap:6px}.profile small{max-width:100%}
 html[data-aone-surface=hr] .profile .avatar{width:32px;height:32px;border-radius:10px}
 html[data-aone-surface=hr] .profile b{font-size:12px}
 html[data-aone-surface=hr] nav{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:wrap;justify-content:center;border-radius:14px}
 html[data-aone-surface=hr] nav button{padding:10px 12px;flex:1;font-size:13px}
 html[data-aone-surface=hr] :where(main,.grid-mode main){width:100%;padding:26px 16px 40px}
 html[data-aone-surface=hr] :where(.hero,.meeting-hero,.grid-heading,.sheet-toolbar,.sheet-bottom,.backfill-footer,.backfill-results-head){flex-wrap:wrap;gap:14px}
 html[data-aone-surface=hr] h1{font-size:25px;line-height:1.4;margin:12px 0}
 html[data-aone-surface=hr] :where(.services,.grid,.cert-choices,.template-columns,.scope-grid,.visibility-departments){grid-template-columns:minmax(0,1fr)!important}
 html[data-aone-surface=hr] .service{padding:22px!important;min-height:180px!important;border-radius:22px}
 html[data-aone-surface=hr] .coming-strip{display:flex;align-items:center;flex-direction:row;flex-wrap:wrap;min-height:90px!important;gap:12px}
 html[data-aone-surface=hr] .overlay{padding:10px;align-items:center}
 html[data-aone-surface=hr] :where(.dialog,.dialog.wide){width:100%!important;max-width:100%!important;max-height:calc(100dvh - 20px);border-radius:22px;overflow-y:auto}
 html[data-aone-surface=hr] .dhead{padding:18px 16px;gap:12px}
 html[data-aone-surface=hr] .dhead h2{font-size:20px;line-height:1.4}.x{flex-shrink:0}
 html[data-aone-surface=hr] .dbody{padding:20px 16px}
 html[data-aone-surface=hr] :where(.trip,.meeting-card,.approval-card,.integration-step){padding:18px;border-radius:16px}
 html[data-aone-surface=hr] .row{flex-wrap:wrap;align-items:flex-start}
 html[data-aone-surface=hr] :where(.row input,.row select){max-width:100%}
 html[data-aone-surface=hr] :where(.hr-toolbar,.weekly-actions,.sheet-controls){display:flex;flex-wrap:wrap;gap:8px}
 html[data-aone-surface=hr] .hr-toolbar>.btn{flex:1 1 130px}
 html[data-aone-surface=hr] :where(.sheet-toolbar,.sheet-bottom){padding:16px}
 html[data-aone-surface=hr] .spreadsheet-panel{overflow:visible;background:transparent;border:0;box-shadow:none}
 html[data-aone-surface=hr] .spreadsheet .rownum{width:auto;min-width:0;position:static;text-align:left;font-size:13px}
 html[data-aone-surface=hr] .spreadsheet .row-delete button{width:40px;height:40px;margin-left:auto}
 html[data-aone-surface=hr] .grid-notes{display:block;padding:12px 0;line-height:1.8}
 html[data-aone-surface=hr] .approval-facts{grid-template-columns:minmax(0,1fr);gap:14px}
 html[data-aone-surface=hr] .approval-card-head{flex-wrap:wrap}.approval-card-title{max-width:100%}
 html[data-aone-surface=hr] .picker-top{flex-wrap:wrap;gap:10px}
 html[data-aone-surface=hr] .picker-members{grid-template-columns:minmax(0,1fr)}
 html[data-aone-surface=hr] :where(.dfoot,.report .meta,footer){flex-wrap:wrap;gap:12px}
 html[data-aone-surface=hr] footer{padding:20px 16px}
 /* Personnel profiles and import preview. */
 html[data-aone-surface=personnel] header{height:auto;min-height:68px;padding:14px 16px;gap:12px;flex-wrap:wrap}
 html[data-aone-surface=personnel] main{padding:26px 16px}
 html[data-aone-surface=personnel] :where(section,dialog){padding:18px 16px}
 html[data-aone-surface=personnel] :where(dl,.metrics){grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-aone-surface=personnel] .document{align-items:flex-start;flex-direction:column}
 /* Probation: navigation, dashboard, objectives, scoring, defense, administration. */
 html[data-aone-surface=probation] .topbar{position:static;height:auto}
 html[data-aone-surface=probation] .topbar-inner{height:auto;padding:14px 16px;gap:12px;flex-wrap:wrap}
 html[data-aone-surface=probation] .topbar nav{height:auto;width:100%;margin:0;display:flex;flex-wrap:wrap;overflow:visible;gap:4px}
 html[data-aone-surface=probation] .topbar nav button{flex:1 1 95px;padding:10px 8px;font-size:12px}
 html[data-aone-surface=probation] .account{margin-left:auto;gap:6px}
 html[data-aone-surface=probation] .content{padding:26px 16px 60px}
 html[data-aone-surface=probation] :where(.employee-grid,.overview-grid,.defense-grid,.defense-review-grid,.comment-grid,.form-grid,.midterm-form-grid,.midterm-review-grid,.stage-manager-grid,.feishu-config-grid){display:grid;grid-template-columns:minmax(0,1fr)!important;gap:16px}
 html[data-aone-surface=probation] :where(.stats,.review-compact-dimensions){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 html[data-aone-surface=probation] .stat-card{padding:15px 12px;gap:10px;min-width:0}
 html[data-aone-surface=probation] .stat-icon{width:30px;height:30px;flex-shrink:0}
 html[data-aone-surface=probation] .stat-card b{font-size:26px}
 html[data-aone-surface=probation] :where(.panel,.eval-section,.midterm-panel){padding:18px 14px;border-radius:16px}
 html[data-aone-surface=probation] .table-panel{padding:0;border:0;background:transparent;overflow:visible}
 html[data-aone-surface=probation] :where(.panel-tools,.section-heading,.feishu-panel-heading,.feishu-panel-footer,.defense-review-heading){flex-wrap:wrap;gap:12px}
 html[data-aone-surface=probation] .search{width:100%}
 html[data-aone-surface=probation] :where(.process-flow,.approval-path-steps){display:grid;grid-template-columns:minmax(0,1fr)!important;overflow:visible;gap:12px}
 html[data-aone-surface=probation] :where(.process-flow,.approval-path-steps)>div{min-width:0;width:100%}
 html[data-aone-surface=probation] :where(.process-flow,.approval-path-steps)>em{display:none}
 html[data-aone-surface=probation] .score-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;padding:16px;gap:12px}
 html[data-aone-surface=probation] .score-strip>div:not(.divider){min-width:0;margin:0}
 html[data-aone-surface=probation] :where(.score-strip>i,.score-strip .divider){display:none}
 html[data-aone-surface=probation] :where(.goal-table,.score-table){min-width:0;width:100%;overflow:visible}
 html[data-aone-surface=probation] :where(.goal-head,.score-head){display:none}
 html[data-aone-surface=probation] :where(.goal-row,.score-row){display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-width:0!important;width:100%;gap:14px;padding:18px 12px;margin:12px 0;border:1px solid #dfe6ef;border-radius:14px}
 html[data-aone-surface=probation] :where(.goal-row,.score-row)>*{width:100%;min-width:0;max-width:100%;padding:0}
 html[data-aone-surface=probation] :where(.goal-main,.goal-result,.goal-note,.goal-score,.score-row>[data-mobile-label])::before{content:attr(data-mobile-label);display:block;font-size:12px;color:#7d8da5;line-height:1.6;margin-bottom:7px}
 html[data-aone-surface=probation] .goal-main::before{content:'主要目标'}
 html[data-aone-surface=probation] .goal-result::before{content:'关键结果产出'}
 html[data-aone-surface=probation] .goal-note::before{content:'完成情况'}
 html[data-aone-surface=probation] .goal-score:nth-child(6)::before{content:'员工自评'}
 html[data-aone-surface=probation] .goal-score:nth-child(7)::before{content:'上级评分'}
 html[data-aone-surface=probation] .goal-meta{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 html[data-aone-surface=probation] :where(.goal-row,.score-row) textarea{width:100%;min-height:110px!important;line-height:1.7}
 html[data-aone-surface=probation] :where(.goal-row,.score-row) input{width:100%;padding:12px}
 html[data-aone-surface=probation] :where(.phase-tabs,.account-tabs){display:flex;flex-wrap:wrap;overflow:visible}
 html[data-aone-surface=probation] .phase-tabs>button{width:100%;min-height:82px}
 html[data-aone-surface=probation] .modal-shade{padding:10px}
 html[data-aone-surface=probation] .modal{width:100%;max-width:100%;max-height:calc(100dvh - 20px);overflow-y:auto;padding:22px 16px}
}
@media screen and (max-width:760px){
 html[data-aone-surface=probation] .eval-section .goal-row>*{grid-column:auto!important;grid-row:auto!important}
 html[data-aone-surface=probation] .eval-section .goal-row>.goal-meta{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 html[data-aone-surface=probation] .eval-section .goal-row>.goal-action{display:block}
 html[data-aone-surface=probation] .eval-section .score-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html[data-aone-surface=probation] .eval-section .score-row>input{padding:10px 4px;text-align:center}
}
@media screen and (max-width:760px){
 html[data-aone-surface=platform] #loginScreen{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:20px;height:auto!important;min-height:100dvh;padding:28px 18px 40px}
 html[data-aone-surface=platform] #loginScreen[hidden]{display:none}
 html[data-aone-surface=platform] #loginScreen>:is(.login-brand,.login-card,.login-preview){position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:440px!important;height:auto!important;min-height:0;margin:0 auto}
 html[data-aone-surface=platform] .login-brand-copy{position:relative;padding:4px 0;min-height:105px}
 html[data-aone-surface=platform] .login-logo{width:150px;height:auto}
 html[data-aone-surface=platform] .login-mascot-stage{width:90px;height:100px;right:0;top:0;bottom:auto}
 html[data-aone-surface=platform] .login-mascot{width:100%;height:100%;object-fit:contain}
 html[data-aone-surface=platform] .login-card-content{padding:26px 22px}
 html[data-aone-surface=platform] .login-preview{flex-wrap:wrap;justify-content:center;gap:10px}
}
