/*
 * Final shell regression guard.
 * This file intentionally loads last so navigation text, time visibility, and
 * Calendar geometry cannot be re-broken by older responsive rules.
 */

.layout.os-layout-v10 {
  --sidebar: 272px;
}

.layout.os-layout-v10 .nav-group-toggle,
.layout.os-layout-v10 .nav-item,
.layout.os-layout-v10 .nav-subitem {
  height: auto;
}

.layout.os-layout-v10 .nav-group-toggle {
  min-height: 42px;
}

.layout.os-layout-v10 .nav-item {
  min-height: 40px;
  padding-block: 7px;
}

.layout.os-layout-v10 .nav-subitem {
  min-height: 34px;
}

.layout.os-layout-v10 .nav-footer .license-pill {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-content: stretch;
  gap: 4px;
  padding: 9px 10px;
}

.layout.os-layout-v10 .nav-footer .license-pill b,
.layout.os-layout-v10 .nav-footer .license-pill small {
  width: 100%;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
  text-align: left;
}

.layout.os-layout-v10 .nav-footer .license-pill small {
  font-size: 9px;
}

.layout.os-layout-v10 .nav-group-toggle strong,
.layout.os-layout-v10 .nav-module-node.module-color-scope .nav-item > span:not(.module-nav-icon),
.layout.os-layout-v10 .nav-subitem > span {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.layout.os-layout-v10 .workspace-tab-list {
  scroll-behavior: smooth;
}

.layout.os-layout-v10 .workspace-tab-group {
  flex: 0 0 auto;
  width: max-content;
  min-width: max-content;
  max-width: none;
}

.layout.os-layout-v10 .workspace-tab {
  width: max-content;
  min-width: max-content;
  max-width: none;
  grid-template-columns: 18px auto;
}

.layout.os-layout-v10 .workspace-tab span,
.layout.os-layout-v10 .workspace-tab small {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.current-time-chip {
  min-width: 128px;
  height: 38px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 7%, transparent), color-mix(in srgb, var(--teal) 6%, transparent)),
    var(--surface);
  color: var(--text);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.current-time-chip .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--primary);
}

.current-time-chip > span {
  min-width: 0;
  display: grid;
  gap: 1px;
  line-height: 1;
}

.current-time-chip strong {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.current-time-chip small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

html[data-theme="dark"] .current-time-chip {
  border-color: color-mix(in srgb, var(--primary) 28%, rgba(139, 158, 204, 0.2));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 13%, transparent), color-mix(in srgb, var(--teal) 8%, transparent)),
    #090f20;
  color: #f4f7ff;
}

html[data-theme="dark"] .current-time-chip .icon {
  color: #8fa7ff;
}

@media (max-width: 1500px) {
  .layout.os-layout-v10 {
    --sidebar: 260px;
  }
}

@media (max-width: 1360px) {
  .layout.os-layout-v10 .calendar-side-panel {
    display: none;
  }

  .layout.os-layout-v10 .calendar-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  .layout.os-layout-v10 {
    --sidebar: 0px;
  }

  .layout.os-layout-v10 > .sidebar {
    width: min(300px, calc(100vw - 44px));
  }
}

@media (max-width: 900px) {
  .layout.os-layout-v10 .workspace-tab-group {
    width: max-content;
    min-width: max-content;
    max-width: none;
  }

  .current-time-chip {
    min-width: 80px;
    padding-inline: 8px;
  }

  .current-time-chip small {
    display: none;
  }
}

@media (max-width: 640px) {
  .current-time-chip {
    min-width: 68px;
    gap: 5px;
    padding-inline: 7px;
  }

  .current-time-chip .icon {
    display: none;
  }

  .current-time-chip strong {
    font-size: 11px;
  }
}
