/* Shell geometry only;
   shared semantic surfaces and controls live in tokens/app. */
.global-shell {
  min-height:100vh;
  min-height:100dvh;
  background:var(--bg);
  overflow-wrap:anywhere}
.shell-sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:var(--sidebar-width);
  background:var(--nav-gradient);
  color:var(--light);
  padding:16px 12px;
  z-index:30;
  display:flex;
  flex-direction:column;
  overflow-y:auto}
.shell-brand {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:52px;
  color:var(--light);
  text-decoration:none;
  font-size:22px;
  font-weight:800;
  letter-spacing:1px}
.sidebar-current {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--steel);
  margin:24px 12px 6px}
.shell-sidebar nav {
  display:grid;
  gap:8px;
  margin-top:12px}
.shell-sidebar nav a {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:54px;
  padding:7px 10px;
  border:1px solid transparent;
  border-radius:10px;
  color:var(--light);
  text-decoration:none;
  font-weight:600;
  font-size:13px}
.shell-sidebar nav a:hover {
  background:#ffffff15;
  border-color:#ffffff25}
.shell-sidebar nav a[aria-current] {
  background:var(--selected-gradient);
  border-color:var(--cyan);
  box-shadow:inset 3px 0 0 var(--clock-cyan),var(--shadow)}
.shell-sidebar :focus-visible {
  outline-color:var(--gold)}
.sidebar-module-section {
  margin-top:24px}
.sidebar-module-section>p {
  font-size:11px;
  color:var(--steel);
  padding-inline:12px}
.sidebar-modules small {
  display:block;
  color:var(--steel);
  font-size:10px}
.shell-body {
  margin-left:var(--sidebar-width);
  min-width:0}
.shell-topbar {
  min-height:72px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 24px;
  background:linear-gradient(180deg,var(--surface),var(--card));
  border-bottom:1px solid var(--line);
  box-shadow:var(--shadow)}
.shell-company {
  min-width:0;
  flex:1}
.shell-company strong {
  display:block;
  font-size:14px}
.shell-company small {
  display:block;
  font-size:12px;
  margin-top:2px}
.shell-clock {
  display:flex;
  align-items:center;
  white-space:nowrap;
  gap:12px;
  font-variant-numeric:tabular-nums;
  background:var(--nav-gradient);
  padding:10px 14px;
  border:1px solid #3c6477;
  border-radius:var(--control-radius);
  box-shadow:var(--raised)}
.clock-time {
  font:600 16px Consolas,monospace;
  letter-spacing:1px;
  color:var(--clock-cyan)}
.clock-date {
  font-size:12px;
  font-weight:700;
  color:var(--gold);
  border-left:1px solid #658291;
  padding-left:12px}
.shell-profile,.shell-notifications {
  position:relative;
  flex:none}
.shell-profile summary,.shell-notifications summary {
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:8px 12px;
  border-radius:var(--control-radius);
  background:var(--button-gradient);
  border:1px solid var(--control-border);
  box-shadow:var(--raised)}
summary::-webkit-details-marker {
  display:none}
.profile-name {
  max-width:125px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap}
.profile-menu,.notification-popover {
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  z-index:40;
  width:230px;
  padding:12px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--raised)}
.profile-menu a {
  display:block;
  padding:10px;
  border-radius:var(--control-radius);
  text-decoration:none}
.profile-menu a:hover {
  background:var(--hover)}
.profile-menu form {
  margin:8px 0 0}
.profile-menu button {
  width:100%}
.notification-popover {
  width:190px;
  font-size:13px}
.shell-content {
  max-width:1500px;
  margin:auto;
  padding:24px;
  min-height:calc(100vh - 130px);
  min-height:calc(100dvh - 130px);
  padding-bottom:24px}
.workspace-switch {
  display:flex;
  gap:12px;
  margin-bottom:20px;
  font-size:12px}
.shell-content:has(.workspace-preference) .workspace-switch {display:none}
.workspace-switch span {
  color:var(--muted)}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:16px}
.page-heading-copy {min-width:0;flex:1 1 240px}
.page-heading h1,.page-heading h2 {margin:0}
.page-heading p {margin:5px 0 0}
.page-heading .actions {margin:0}
.page-breadcrumb {font-size:12px;margin-bottom:6px}
.module-cards {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));
  gap:18px;
  margin-bottom:20px}
.module-card {
  margin:0;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:88px;
  padding:14px;
  color:var(--ink);
  text-decoration:none;
  background:linear-gradient(155deg,#fff,#e8f0f8);
  transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}
.module-card:hover {transform:translateY(-2px);border-color:var(--focus);box-shadow:0 10px 22px rgba(9,35,59,.17)}
.module-card:active {transform:translateY(1px);box-shadow:0 2px 6px rgba(9,35,59,.17)}
.module-card:focus-visible {outline:3px solid var(--focus);outline-offset:2px}
.module-card-copy {display:grid;gap:3px;min-width:0}
.module-card-copy strong {font-size:1rem}
.module-card-copy small {color:var(--muted)}
.module-card-arrow {margin-left:auto;font-size:1.35rem}
.module-card h2,.module-card p {
  margin:0}
.module-card a {
  margin-top:auto}
.module-card .icon-tile {
  width:48px;
  height:48px;flex:none}
@media(prefers-reduced-motion:reduce) {.module-card {transition:none}.module-card:hover,.module-card:active {transform:none}}
.workspace-admin {
  background:var(--nav-gradient);
  color:var(--light)}
.workspace-admin p {
  color:var(--steel)}
.workspace-preference {
  max-width:600px}
.shell-footer {
  padding:16px 24px;
  border-top:1px solid var(--line);
  font-size:11px;
  color:var(--muted);
  display:flex;
  justify-content:space-between;
  gap:12px}
.shell-footer span {
  overflow-wrap:anywhere}
.drawer-close,.shell-backdrop {
  display:none}
.sidebar-collapsed {
  --sidebar-width:80px}
.sidebar-collapsed .shell-sidebar .nav-label {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%)}
.sidebar-collapsed .shell-sidebar nav a {
  padding:6px;
  justify-content:center}
.sidebar-collapsed .shell-brand {
  justify-content:center}
.sidebar-collapsed .sidebar-module-section>p {
  display:none}

@media(max-width:1200px) {
  .shell-topbar {
  flex-wrap:wrap}
.shell-company {
  flex-basis:calc(100% - 70px)}
.shell-clock {
  margin-left:auto}
.shell-content {
  padding:20px}
}

@media(max-width:760px) {
  .global-shell {
  --sidebar-width:0px}
.shell-sidebar {
  display:none;
  width:min(310px,87vw)}
.drawer-open .shell-sidebar {
  display:flex}
.drawer-close {
  display:block;
  margin-top:16px}
.drawer-open .shell-backdrop {
  display:block;
  position:fixed;
  inset:0;
  z-index:25;
  background:#071e3099;
  border:0;
  border-radius:0}
.shell-topbar {
  padding:12px 16px;
  gap:10px}
.shell-clock {
  margin-left:0}
.shell-profile {
  margin-left:auto}
.shell-content {
  padding:20px 16px}
.shell-footer {
  padding:16px;
  flex-wrap:wrap}
.profile-name {
  max-width:110px}
}

@media(max-width:558px) {
  .shell-clock {
  gap:8px;
  padding:10px}
.clock-time {
  font-size:14px}
.clock-date {
  font-size:11px;
  padding-left:8px}
.profile-name {
  display:none}
.shell-profile summary,.shell-notifications summary {
  padding:8px}
.shell-topbar {
  gap:8px}
.notification-popover {
  right:-50px}
.shell-footer span {
  max-width:100%}
}


.drawer-company{display:none}
.shell-sidebar nav a[aria-current] small{color:var(--light)}
@media(max-width:760px){.drawer-company{display:block;order:-1;color:var(--light);font-size:12px;border-bottom:1px solid var(--steel);padding-bottom:12px}}

/* Keep safe-area clearance after responsive padding shorthands. */
.shell-content {padding-bottom:max(24px,calc(env(safe-area-inset-bottom) + 24px))}
