.auth-required .shell,.auth-required #notice{display:none!important}
#auth-screen{min-height:100dvh;width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,470px);align-items:center;gap:clamp(24px,6vw,90px);padding:clamp(24px,6vw,90px);margin:0;color:var(--paper);background:radial-gradient(ellipse at 2% 110%,#f34e3f24,transparent 58%),var(--night)}
.auth-brand{display:grid;justify-items:start;gap:20px}
.auth-brand img{width:clamp(70px,12vw,140px);height:auto}
.auth-brand>span{font:900 clamp(24px,4.4vw,66px)/1 Transducer,system-ui,sans-serif;letter-spacing:-.05em}
.auth-brand p{color:#d5c9c4;font-size:18px}
.auth-card{padding:clamp(22px,3vw,38px);background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:24px}
.auth-card h1{font-size:clamp(25px,3vw,37px);letter-spacing:-.04em}
.auth-card>p{margin-top:12px;color:var(--muted)}
.auth-card form{display:grid;gap:15px;margin-top:24px}
.auth-card label{display:grid;gap:6px;font-size:13px;font-weight:700}
.auth-card input{min-height:46px;font-size:16px}
.auth-password{display:flex;align-items:center;position:relative}
.auth-password input{padding-right:70px}
.auth-reveal{position:absolute;right:4px;padding:8px;min-height:38px;border:0;border-radius:4px;box-shadow:none;background:transparent;font-size:12px;font-weight:700}
.auth-card .auth-submit{background:var(--night);color:white;border-color:var(--night);box-shadow:var(--button-dark);min-height:48px}
.auth-card .auth-submit:active{box-shadow:var(--button-dark-pressed)}
.auth-hint,.auth-help{font-size:12px;color:var(--muted)}
.auth-help{margin-top:20px!important}
.auth-error{padding:10px 12px;border:1px solid #ba9a93;background:#f9eee9;color:var(--ink);font-size:13px}
.account-loading{padding:18px}
#account-settings .panel-head{flex-wrap:wrap;gap:12px}
#account-settings td small{display:block;color:var(--muted)}
.session-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.session-name{font-size:12px;color:var(--muted)}
.identity-mode{display:flex;gap:6px;align-items:center;font-size:12px}
.identity-mode select{max-width:180px}
.entry-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}
.entry-history-details{display:grid;gap:12px}
.entry-history-details dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px}
.entry-history-details dd{margin:0;overflow-wrap:anywhere}
.entry-audit-panel{margin-top:14px}
.leave-overview-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}
.entry-history-details dd{min-width:0}
.project-assignments{display:grid;gap:8px}
.project-people{display:grid;gap:6px}
.project-mobile-list{display:none}
.project-filters label{margin-left:auto;min-width:min(100%,260px)}
.project-filters input{min-width:0;width:100%}
.workspaces[data-single-mode=true] [for=company],.workspaces[data-single-mode=true] #company{grid-column:1/-1}
@media(max-width:720px){
  #auth-screen{grid-template-columns:minmax(0,1fr);align-content:center;gap:22px;padding:24px 16px}
  .auth-brand{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
  .auth-brand img{width:48px}
  .auth-brand>span{font-size:25px}
  .auth-brand p{width:100%;font-size:14px}
  .auth-card{border-radius:18px;padding:23px 20px}
  .session-name{display:none}
  .session-actions button{font-size:12px;padding-inline:12px}
  .top-actions{gap:6px}
  .topbar .top-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .topbar .top-actions{flex:none}
  .session-account{padding-inline:10px;font-size:12px}
  .workspaces[data-single-mode=true]{grid-template-columns:minmax(0,1fr)}
  .entry-actions button{min-height:44px}
  #account-settings .panel-head{align-items:flex-start}
  .project-desktop{display:none}
  .project-mobile-list{display:grid;gap:10px;padding:12px}
  .project-card{padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--white)}
  .project-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;margin-bottom:12px}
  .project-card h3{margin:4px 0 0;font-size:16px;overflow-wrap:anywhere}
  .project-card small{color:var(--muted);font-size:12px}
  .project-card .inline-actions{margin-top:14px}
  .project-card .inline-actions button{flex:1;min-height:44px}
  .project-people .person-link span:last-child{white-space:normal}
  .project-filters label{width:100%;margin-left:0}
  .drawer-fields .two:has([name=code]){grid-template-columns:1fr}
}
