/* Approved mobile welcome and compact workspace. Desktop uses its existing UI. */
.mobile-header,.mobile-dock,.mobile-projects,.mobile-task-sort{display:none}
@media(max-width:650px){
  html[data-theme=dark] .app-shell{display:block}
  html[data-theme=dark] .app-shell>.sidebar{display:none}
  html[data-theme=dark] .app-shell>.main{padding:0 16px 24px;min-width:0}
  .mobile-header{display:flex;align-items:center;gap:12px;min-height:76px;padding-top:env(safe-area-inset-top);position:relative;z-index:15}
  .mobile-header .brand{font-size:23px;padding-left:10px;margin-right:auto}
  .mobile-header button,.mobile-header summary{min-width:44px;min-height:44px}
  #mobile-notifications{position:relative;display:grid;place-items:center;color:#e7f5fc;background:transparent;border:0;padding:8px}
  #mobile-notifications svg{width:23px;height:23px}
  #mobile-notification-count:not(:empty){position:absolute;right:0;top:3px;min-width:16px;height:16px;border-radius:20px;background:#ff432e;color:white;font-size:10px;display:grid;place-items:center;padding:0 3px}
  #mobile-account summary{display:grid;place-items:center;list-style:none;cursor:pointer;border-radius:50%}
  #mobile-account summary::-webkit-details-marker{display:none}
  #mobile-avatar{width:34px;height:34px;border:1px solid #3f718a;background:#18384b;color:#e5f5ff}
  .mobile-account-panel{position:absolute;right:0;top:70px;display:grid;gap:8px;width:235px;padding:16px;border:1px solid #33566b;border-radius:12px;background:#101f2d;box-shadow:0 16px 40px #0009}
  .mobile-account-panel strong{overflow-wrap:anywhere}
  .mobile-account-panel button{background:transparent;color:#91e8f6;text-align:left;border:0}
  .app-shell .topbar{display:none}
  .app-shell #status:empty{display:none}
  html[data-theme=dark] .app-shell #notifications{top:74px;right:0;width:100%;max-height:70dvh;overflow:auto;z-index:20}
  .mobile-dock{display:flex;position:sticky;top:0;z-index:8;max-width:100%;margin:0 0 8px;padding:4px;background:#091722f5;border:1px solid #29465a;border-radius:12px;backdrop-filter:blur(12px)}
  #mobile-spaces{display:flex;gap:4px;overflow-x:auto;overflow-y:hidden;min-width:0;flex:1;scrollbar-width:thin;scrollbar-color:#376278 transparent}
  .mobile-dock button{display:grid;place-items:center;min-height:49px;width:58px;flex:0 0 58px;border:1px solid transparent;border-radius:9px;background:transparent;color:#d3e5f0;padding:8px}
  #mobile-home-button{border-right-color:#29465a;border-radius:8px 0 0 8px;width:50px;flex-basis:50px}
  #mobile-home-button svg{width:25px;height:25px}
  .mobile-dock button[aria-current]{border-color:#2dc7e8;background:#12334a;box-shadow:inset 0 0 10px #24bde915}
  .mobile-dock .nav-isotipo{margin:0}
  .mobile-dock .nav-isotipo img{width:28px;height:30px;object-fit:contain}
  html[data-theme=dark] .app-shell.mobile-at-home{background:#091520}
  #home-page{padding:24px 0 18px;min-height:calc(100svh - 100px);display:flex;flex-direction:column;overflow-x:clip}
  .mobile-welcome-heading{margin:0 0 20px}
  .mobile-welcome-eyebrow{font-size:11px;letter-spacing:1.7px;color:#75c9db;margin:0 0 9px}
  html[data-theme=dark] #mobile-greeting{font-size:29px;line-height:1.13;letter-spacing:-1px;width:100%;max-width:none;margin:0;text-align:left;color:#f1f5fa}
  #mobile-greeting>span{display:block}
  .mobile-greeting-name{margin-top:8px;overflow-wrap:anywhere;font-size:21px;letter-spacing:-.4px;color:#a9bed0;font-weight:400}
  #mobile-welcome-caption{font-size:12px;color:#a8bac9;line-height:1.5;margin:12px 0 0}
  #mobile-areas{display:grid;gap:12px;margin-bottom:12px}
  #mobile-areas:empty{display:none}
  .welcome-area{background:#11222e;border:1px solid #243b4b;border-radius:15px;padding:13px 12px}
  html[data-theme=dark] .welcome-area h2{font-size:11px;line-height:1.4;letter-spacing:1.8px;color:#76d3e2;margin:0 0 8px;font-weight:500;text-transform:uppercase}
  .welcome-space{display:flex;align-items:center;gap:12px;width:100%;padding:8px 0;min-height:44px;border:0;border-radius:6px;background:transparent;color:#e9f4fa;cursor:pointer;text-align:left;font:inherit}
  .welcome-space:hover{background:#1c3b4e}
  .welcome-space:focus-visible{outline:2px solid #39c7df;outline-offset:3px}
  .welcome-space .nav-isotipo{display:grid;place-items:center;width:26px;height:26px;flex:0 0 26px;margin:0}
  html[data-theme=dark] .welcome-space .nav-isotipo :is(svg,img){width:26px;height:26px;max-width:100%;max-height:100%;object-fit:contain}
  .welcome-space-label{font-size:13px;line-height:1.35;overflow-wrap:anywhere}
  .welcome-space-arrow{margin-left:auto;color:#74d8ee;font-size:18px}
  #mobile-areas.few-spaces{gap:18px}
  .few-spaces .welcome-area{padding:21px 17px}
  .few-spaces .welcome-space{min-height:68px}
  .few-spaces .welcome-space .nav-isotipo{width:35px;height:35px;flex-basis:35px}
  html[data-theme=dark] .few-spaces .welcome-space .nav-isotipo :is(svg,img){width:35px;height:35px}
  .few-spaces .welcome-space-label{font-size:16px}
  .mobile-welcome-copy{margin-top:auto;padding-top:28px;color:#8ba6b9;font-size:11px;line-height:1.5;text-align:center}
  .mobile-welcome-copy span{display:block;color:#5cc9df;margin-top:9px;font-size:11px;letter-spacing:1.5px}
  #mobile-empty{color:#bacad5;line-height:1.7;padding:30px 0}
  html[data-theme=dark] .app-shell .page-head{padding:16px 0 14px;align-items:center;gap:10px}
  #tasks-page>.page-head{flex-wrap:nowrap}
  .app-shell .page-head h1{font-size:26px;margin-bottom:0}
  .app-shell .page-head .heading{min-width:0;flex-basis:0}
  html[data-theme=dark] .app-shell #new-task{white-space:nowrap;padding:8px 10px;font-size:12px;min-height:44px}
  #description-form{margin-top:8px}html[data-theme=dark] #description{width:100%;font-size:13px;min-width:0}
  html[data-theme=dark] .app-shell .task-toolbar{gap:8px;flex-wrap:wrap;margin-bottom:8px;align-items:center}
  .app-shell .task-toolbar .tabs{gap:12px;flex-shrink:0}
  .app-shell .task-toolbar .tabs button{font-size:12px}
  html[data-theme=dark] .app-shell #search{width:100%;font-size:16px;min-height:44px}
  .mobile-task-sort{display:flex;align-items:center;gap:8px;margin:0 0 12px;color:#adcadc;font-size:12px}
  html[data-theme=dark] .mobile-task-sort select{min-height:36px;padding:5px 8px;font-size:13px;flex:1;min-width:0}
  html[data-theme=dark] .mobile-task-sort button{min-width:44px;min-height:40px;background:#101f2d;border:1px solid #345069;border-radius:9px;color:#8fe6f6;font-size:18px}
  #task-scroll .tasks-table{display:none}
  html[data-theme=dark] #tasks-page>#task-scroll{height:clamp(280px,calc(100dvh - 340px),900px);border:0;border-radius:0;background:transparent;box-shadow:none;scrollbar-gutter:auto;overflow-x:hidden}
  .mobile-projects{display:grid;gap:9px;padding:1px 3px 2px 1px}
  .mobile-project{border:1px solid #29465a;border-radius:13px;background:linear-gradient(115deg,#132534eb,#0c1925ef);min-width:0;overflow:hidden}
  .mobile-project.is-expanded{border-color:#4290ab}
  .mobile-project-line{display:flex;align-items:center;gap:6px;padding:7px 8px;min-width:0}
  .mobile-project-toggle{display:flex;flex:1;flex-wrap:wrap;gap:5px 10px;align-items:center;min-width:0;min-height:48px;padding:4px 0;background:transparent;color:#f0f5fa;border:0;text-align:left;font-size:13px}
  .mobile-project-toggle>span{flex:1 1 120px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
  .mobile-project-toggle time{font-size:11px;color:#abcadd;white-space:nowrap}
  .mobile-project-person{display:flex;align-items:center;gap:1px;flex:0 0 auto}
  .mobile-project-person .person>span:last-child{display:none}
  .mobile-project-person .avatar{width:27px;height:27px;flex-basis:27px}
  .mobile-project-person small{font-size:10px;color:#b4d1e1}
  html[data-theme=dark] .mobile-project .state{font-size:10px;min-height:36px;width:90px;max-width:90px;flex:0 0 90px;padding:4px 3px;border-radius:20px}
  .mobile-project-chevron{flex:0 0 26px;min-height:44px;border:0;background:transparent;color:#9ec9dd;font-size:22px;padding:0}
  .mobile-project-detail{border-top:1px solid #2e495c;margin:0 12px;padding:14px 0;display:grid;gap:14px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
  .mobile-project-detail small{display:block;color:#9ab4c7;margin-bottom:5px}
  .mobile-project-detail p,.mobile-detail-links{white-space:pre-wrap}
  .mobile-detail-links a{overflow-wrap:anywhere;word-break:break-word}
  .mobile-detail-people{display:grid;gap:8px}
  .mobile-load-note{text-align:center;padding:16px;color:#adc4d4;font-size:12px}
  html[data-theme=dark] #task-count{background:transparent;border:0;margin-bottom:0;padding:12px 0;font-size:11px}
  html[data-theme=dark] .app-shell dialog{padding:18px}
  @media(min-width:400px){html[data-theme=dark] .app-shell #search{width:46%}}
}
