/* A One desktop layout. Screen-only: document exports and mobile layouts are independent. */
@media screen and (min-width:761px){
 html[data-aone-surface]{--aone-edge:clamp(16px,1.6vw,40px);--aone-inset:clamp(24px,2.8vw,64px);--aone-gap:clamp(16px,1.3vw,28px)}
 html[data-aone-surface] :where(main,section,article,form,fieldset,header,footer,nav,dialog,aside){min-width:0}
 html[data-aone-surface] :where(input,select,textarea){min-width:0;max-width:100%}
 html[data-aone-surface] :where(img,video,iframe){max-width:100%}
 html[data-aone-surface] :where(.title-actions,.panel-tools,.admin-toolbar,.knowledge-toolbar,.settings-inline-actions,.dialog-footer,.modal-actions,.section-heading,.panel-heading,.heading,.view-heading){flex-wrap:wrap;gap:12px}
 html[data-aone-surface] :where(.table-wrap,.table-scroll,.admin-table-wrap,.overview-departments,.spreadsheet-scroll){min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
 html[data-aone-surface] :where(.glass-dialog,dialog){box-sizing:border-box;max-height:calc(100dvh - var(--aone-edge)*2);overflow-y:auto;overscroll-behavior:contain}
 /* Main platform: use the available viewport, with a stationary sidebar and scrollable content. */
 html[data-aone-surface=platform] body.is-workspace{padding:var(--aone-edge);min-height:100dvh;height:auto;display:block}
 html[data-aone-surface=platform] body.is-workspace #workspace{width:100%;max-width:none;height:calc(100dvh - var(--aone-edge)*2);min-height:0;max-height:none;margin:0;border-radius:clamp(24px,2vw,38px)}
 html[data-aone-surface=platform] #workspace>.topbar{min-height:76px;gap:14px 22px;padding:14px var(--aone-inset);flex-shrink:0}
 html[data-aone-surface=platform] #workspace>.topbar>.top-nav{margin-left:auto;gap:clamp(16px,2vw,32px)}
 html[data-aone-surface=platform] #workspace>.topbar>.top-actions{flex-wrap:wrap;gap:10px}
 html[data-aone-surface=platform] .clean-workspace{grid-template-columns:clamp(180px,13.8vw,248px) minmax(0,1fr);min-height:0;overflow:hidden}
 html[data-aone-surface=platform] .clean-sidebar{min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:24px clamp(12px,1vw,22px)}
 html[data-aone-surface=platform] .clean-side-link{white-space:normal;min-width:0;line-height:1.6}
 html[data-aone-surface=platform] .clean-main{max-width:none;width:100%;height:100%;min-height:0;margin:0;padding:clamp(24px,2.6vh,42px) var(--aone-inset) 28px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
 html[data-aone-surface=platform] .clean-welcome{min-height:0;padding-block:12px 10px;margin:0 0 24px}
 html[data-aone-surface=platform] .clean-heading h1{font-size:clamp(27px,2.2vw,42px)}
 html[data-aone-surface=platform] .clean-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--aone-gap);margin-bottom:30px}
 html[data-aone-surface=platform] :where(.clean-growth,.clean-mood){padding:clamp(24px,2vw,40px);min-height:clamp(320px,36dvh,440px)}
 html[data-aone-surface=platform] .clean-note{padding-right:100px;flex-wrap:wrap}
 html[data-aone-surface=platform] .workspace-view{width:auto;min-width:0;min-height:0;flex:1;margin:8px var(--aone-inset) 24px;padding:clamp(20px,2vw,32px);overflow:hidden}
 html[data-aone-surface=platform] .workspace-view .view-scroll{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain}
 html[data-aone-surface=platform] .workspace-view .view-note{overflow-wrap:anywhere}
 html[data-aone-surface=platform] :where(.overview-stats,.people-stats){grid-template-columns:repeat(4,minmax(0,1fr))}
 html[data-aone-surface=platform] :where(.overview-columns,.business-overview)>*{min-width:0}
 html[data-aone-surface=platform] .glass-dialog{width:min(860px,calc(100vw - var(--aone-edge)*2));max-width:calc(100vw - var(--aone-edge)*2)}
 html[data-aone-surface=platform] :where(.admin-dialog,#settingsDialog.settings-refreshed){width:min(1560px,calc(100vw - var(--aone-edge)*2));max-width:calc(100vw - var(--aone-edge)*2);padding:clamp(24px,2vw,36px)}
 html[data-aone-surface=platform] :where(.person-fields,.knowledge-fields,.grant-grid,.form-grid)>*{min-width:0}
 html[data-aone-surface=platform] #settingsDialog.settings-refreshed{width:min(1560px,calc(100vw - var(--aone-edge)*2));max-width:calc(100vw - var(--aone-edge)*2)}
 html[data-aone-surface=platform] :where(.compact-dialog,#accountDialog.account-security-dialog){width:min(760px,calc(100vw - var(--aone-edge)*2))}
 html[data-aone-surface=platform] .assistant-panel{right:var(--aone-edge);bottom:var(--aone-edge);width:clamp(360px,25vw,450px);height:min(660px,calc(100dvh - var(--aone-edge)*2));max-height:calc(100dvh - var(--aone-edge)*2)}
 html[data-aone-surface=platform] .main-stage{min-height:0}
 html[data-aone-surface=platform] .module-card{min-height:0;max-height:none;height:92%;top:3%}
 html[data-aone-surface=platform] .card-art{min-height:0}
 html[data-aone-surface=platform] .card-track{--card-width:clamp(285px,24vw,520px);--card-step:calc(var(--card-width) + 25px)}
 html[data-aone-surface=platform] .workspace-footer{height:clamp(120px,15dvh,165px);padding-bottom:16px}
 /* The sign-in panel flows vertically instead of clipping fixed-height form content. */
 html[data-aone-surface=platform] body[data-view=login]{padding:var(--aone-edge) var(--aone-edge) 56px;height:auto;min-height:100dvh;overflow-y:auto}
 html[data-aone-surface=platform] #loginScreen{container-type:inline-size;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(330px,1fr);gap:clamp(24px,3vw,60px);width:min(1600px,100%);max-width:none;aspect-ratio:auto;min-height:min(780px,calc(100dvh - var(--aone-edge)*2 - 40px));padding:clamp(24px,2.6vw,50px);margin:auto}
 html[data-aone-surface=platform] #loginScreen[hidden]{display:none}
 html[data-aone-surface=platform] #loginScreen .login-brand{position:relative;inset:auto;display:flex;flex-direction:column;justify-content:center;width:100%;padding:12px clamp(12px,2vw,40px)}
 html[data-aone-surface=platform] #loginScreen .login-brand-copy{position:static;width:100%}
 html[data-aone-surface=platform] #loginScreen .login-logo{width:clamp(175px,18vw,310px)}
 html[data-aone-surface=platform] #loginScreen .login-platform-name{font-size:clamp(13px,1.3vw,21px);white-space:normal}
 html[data-aone-surface=platform] #loginScreen .login-tagline{font-size:clamp(16px,1.4vw,24px)}
 html[data-aone-surface=platform] #loginScreen .login-mascot-stage{position:relative;inset:auto;width:min(100%,420px);height:clamp(210px,27vw,370px);margin:18px auto 0}
 html[data-aone-surface=platform] #loginScreen .login-mascot{width:100%;height:100%;object-fit:contain}
 html[data-aone-surface=platform] #loginScreen .login-card{position:static;inset:auto;transform:none;width:100%;height:auto;min-height:0;padding:clamp(26px,2.6vw,50px);display:flex;align-items:center}
 html[data-aone-surface=platform] #loginScreen .login-card-content{width:100%;min-width:0}
 html[data-aone-surface=platform] #loginScreen .login-preview{left:0;right:0;bottom:-38px;justify-content:center;text-align:center;flex-wrap:wrap}
 /* HR services, forms, the HR desk and knowledge cards. */
 html[data-aone-surface=hr] body{display:flex;flex-direction:column;min-height:100dvh}
 html[data-aone-surface=hr] body>main{flex:1}
 html[data-aone-surface=hr] :where(body>header>.topbar-inner,body>main,body>footer){width:100%;max-width:none;margin-inline:0;padding-inline:var(--aone-inset)}
 html[data-aone-surface=hr] body>main{padding-top:clamp(28px,3vh,48px);padding-bottom:40px}
 html[data-aone-surface=hr] .services{grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--aone-gap)}
 html[data-aone-surface=hr] .service{min-width:0;padding:clamp(24px,2vw,40px)}
 html[data-aone-surface=hr] .service :where(h2,p,span){overflow-wrap:anywhere}
 html[data-aone-surface=hr] .services .service:not(:disabled){min-height:clamp(235px,26dvh,330px)}
 html[data-aone-surface=hr] .coming-strip{grid-column:1/-1;min-height:88px}
 html[data-aone-surface=hr] .overlay{padding:var(--aone-edge)}
 html[data-aone-surface=hr] .dialog{width:min(980px,calc(100vw - var(--aone-edge)*2));max-width:calc(100vw - var(--aone-edge)*2);max-height:calc(100dvh - var(--aone-edge)*2);display:flex;flex-direction:column;overflow:hidden}
 html[data-aone-surface=hr] .dialog.wide{width:min(1600px,calc(100vw - var(--aone-edge)*2))}
 html[data-aone-surface=hr] .dialog.hr-desk{width:min(1480px,calc(100vw - var(--aone-edge)*2))}
 html[data-aone-surface=hr] .dhead{flex-shrink:0;padding:22px clamp(24px,2.2vw,40px)}
 html[data-aone-surface=hr] .dbody{min-height:0;overflow-y:auto;padding:24px clamp(24px,2.2vw,40px);overscroll-behavior:contain}
 html[data-aone-surface=hr] :where(.hero,.meeting-hero,.sheet-toolbar,.grid-heading,.row,.dfoot){flex-wrap:wrap;gap:12px}
 html[data-aone-surface=hr] .grid-mode main{max-width:none}
 /* Shared evaluation shell: integrated probation and graduate management. */
 html:is([data-aone-surface=probation],[data-aone-surface=graduate]) .app{width:calc(100% - var(--aone-edge)*2);max-width:none;margin:var(--aone-edge) auto;min-height:calc(100dvh - var(--aone-edge)*2);overflow:clip}
 html:is([data-aone-surface=probation],[data-aone-surface=graduate]) :where(.topbar-inner,.content){width:100%;max-width:none;margin-inline:0;padding-inline:var(--aone-inset)}
 html:is([data-aone-surface=probation],[data-aone-surface=graduate]) .topbar-inner{min-height:80px;flex-wrap:wrap;gap:12px 18px}
 html:is([data-aone-surface=probation],[data-aone-surface=graduate]) .topbar nav{min-width:0;max-width:100%;height:auto;flex-wrap:wrap;margin-left:auto}
 html:is([data-aone-surface=probation],[data-aone-surface=graduate]) .topbar nav button{min-height:35px;white-space:nowrap}
 html:is([data-aone-surface=probation],[data-aone-surface=graduate]) .content{padding-top:28px;padding-bottom:48px}
 html:is([data-aone-surface=probation],[data-aone-surface=graduate]) :where(.panel,.eval-section,.employee-grid,.defense-grid,.overview-grid,.goal-table,.score-table){min-width:0;max-width:100%}
 html:is([data-aone-surface=probation],[data-aone-surface=graduate]) :where(.employee-grid,.defense-grid,.overview-grid)>*{min-width:0}
 html:is([data-aone-surface=probation],[data-aone-surface=graduate]) .eval-section{container-type:inline-size}
 html:is([data-aone-surface=probation],[data-aone-surface=graduate]) .eval-section :where(.goal-head,.goal-row){min-width:0;grid-template-columns:42px minmax(0,1.1fr) minmax(0,1.5fr) 152px minmax(0,1.2fr) 72px 72px 42px}
 html:is([data-aone-surface=probation],[data-aone-surface=graduate]) .eval-section :where(.score-head,.score-row){min-width:0;grid-template-columns:minmax(100px,1fr) minmax(0,3fr) 60px 80px 80px}
 html:is([data-aone-surface=probation],[data-aone-surface=graduate]) .modal-shade{padding:var(--aone-edge);overflow-y:auto;align-items:center}
 html:is([data-aone-surface=probation],[data-aone-surface=graduate]) .modal{width:min(1100px,calc(100vw - var(--aone-edge)*2));max-width:100%;max-height:calc(100dvh - var(--aone-edge)*2);overflow-y:auto}
 /* Personnel and payroll administration keep wide tables contained in their panels. */
 html[data-aone-surface=personnel] :where(body>header,body>main){width:100%;max-width:none;padding-inline:var(--aone-inset);margin-inline:0}
 html[data-aone-surface=personnel] main{padding-top:34px}
 html[data-aone-surface=personnel] dialog{width:min(780px,calc(100vw - var(--aone-edge)*2));max-width:calc(100vw - var(--aone-edge)*2)}
 html[data-aone-surface=payroll] :where(.topbar,.content){width:100%;max-width:none;margin-inline:0;padding-inline:var(--aone-inset)}
 html[data-aone-surface=payroll] .topbar{height:auto;min-height:88px;padding-block:16px;flex-wrap:wrap;gap:14px 24px}
 html[data-aone-surface=payroll] .topbar nav{height:auto;max-width:100%;flex-wrap:wrap}
 html[data-aone-surface=payroll] .content{padding-top:clamp(28px,3vh,48px)}
 html[data-aone-surface=payroll] :where(.title-row,.panel-head,.bottom-bar,.monthbar,.table-foot,.modal-foot){flex-wrap:wrap;gap:12px}
 html[data-aone-surface=payroll] :where(.cards,.month-grid){grid-template-columns:repeat(4,minmax(0,1fr))}
 html[data-aone-surface=payroll] :where(.card,.panel,.two-col,.form-grid,.month-grid)>*{min-width:0}
 html[data-aone-surface=payroll] dialog{width:min(1360px,calc(100vw - var(--aone-edge)*2));max-width:calc(100vw - var(--aone-edge)*2);max-height:calc(100dvh - var(--aone-edge)*2)}
}
@media screen and (min-width:761px) and (max-width:1200px){
 html[data-aone-surface=platform] #workspace .brand-description,html[data-aone-surface=platform] #workspace .brand-divider{display:none}
 html[data-aone-surface=platform] #workspace>.topbar{padding-inline:24px;gap:10px 14px}
 html[data-aone-surface=platform] .clean-workspace{grid-template-columns:180px minmax(0,1fr)}
 html[data-aone-surface=platform] .clean-main{padding-inline:24px}
 html[data-aone-surface=platform] .clean-tools{grid-template-columns:1fr}
 html[data-aone-surface=platform] .clean-growth,html[data-aone-surface=platform] .clean-mood{min-height:310px}
 html[data-aone-surface=platform] .overview-columns{grid-template-columns:1fr}
 html[data-aone-surface=platform] .admin-dialog .grant-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 html[data-aone-surface=hr] .services{grid-template-columns:repeat(2,minmax(0,1fr))}
 html:is([data-aone-surface=probation],[data-aone-surface=graduate]) .topbar nav{order:3;flex-basis:100%;margin:0;justify-content:center}
 html:is([data-aone-surface=probation],[data-aone-surface=graduate]) .account{margin-left:auto}
 html[data-aone-surface=payroll] .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (min-width:761px) and (max-height:780px){
 html[data-aone-surface=platform] #workspace>.topbar{min-height:66px;padding-block:10px}
 html[data-aone-surface=platform] .workspace-footer{height:105px}
 html[data-aone-surface=platform] .dial-controls{height:56px;margin-bottom:2px}
 html[data-aone-surface=platform] .dial{height:55px}
 html[data-aone-surface=platform] .card-copy{padding:16px 20px}
 html[data-aone-surface=platform] .card-copy h2{font-size:20px}
 html[data-aone-surface=platform] .card-copy p{font-size:12px}
 html[data-aone-surface=platform] .card-index{top:14px;left:20px;font-size:16px}
 html[data-aone-surface=platform] .card-art img{padding-top:20px}
 html[data-aone-surface=platform] .intro{top:10%}
 html[data-aone-surface=platform] .intro .eyebrow{margin-bottom:18px}
 html[data-aone-surface=platform] .platform-name{margin-top:20px}
 html[data-aone-surface=platform] .explore-button{margin-top:24px}
}
@media screen and (min-width:761px){
 @container (max-width:1080px){
  .eval-section .goal-head{display:none}
  .eval-section .goal-row{display:grid;grid-template-columns:30px minmax(0,1fr) minmax(0,1fr)!important;gap:16px;padding:18px;min-width:0}
  .eval-section .goal-row>*{grid-column:auto!important;grid-row:auto!important;min-width:0}
  .eval-section .goal-row>.goal-index{grid-column:1!important;grid-row:1!important}
  .eval-section .goal-row>.goal-main{grid-column:2!important;grid-row:1!important}
  .eval-section .goal-row>.goal-result{grid-column:3!important;grid-row:1!important}
  .eval-section .goal-row>.goal-meta{grid-column:2!important;grid-row:2!important;display:grid;grid-template-columns:1fr}
  .eval-section .goal-row>.goal-note{grid-column:3!important;grid-row:2!important}
  .eval-section .goal-row>.goal-score:nth-child(6){grid-column:2!important;grid-row:3!important}
  .eval-section .goal-row>.goal-score:nth-child(7){grid-column:3!important;grid-row:3!important}
  .eval-section .goal-row>.goal-action{grid-column:1!important;grid-row:2!important}
  .eval-section .goal-row :is(.goal-main,.goal-result,.goal-note,.goal-score){display:block}
  .eval-section .goal-row :is(.goal-main,.goal-result,.goal-note,.goal-score)::before{display:block;font-size:12px;color:#8494ad;margin-bottom:8px;font-weight:400}
  .eval-section .goal-main::before{content:'主要目标'}
  .eval-section .goal-result::before{content:'关键结果产出'}
  .eval-section .goal-note::before{content:'完成情况'}
  .eval-section .goal-score:nth-child(6)::before{content:'员工自评'}
  .eval-section .goal-score:nth-child(7)::before{content:'上级评分'}
  .eval-section .score-head,.eval-section .score-row{grid-template-columns:minmax(90px,1fr) minmax(0,2.2fr) 50px 65px 65px!important;gap:10px}
 }
}
