:root {
  --orange: #f7931e;
  --orange-dark: #e56f00;
  --black: #111111;
  --charcoal: #242424;
  --text: #171717;
  --muted: #6b7280;
  --line: #e8e8e8;
  --bg: #f7f7f5;
  --cream: #fff8ef;
  --surface: #ffffff;
  --shadow: 0 24px 80px rgba(17, 17, 17, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(247, 147, 30, 0.08), transparent 22%),
    linear-gradient(180deg, #fbfaf7 0%, #f4f1ea 100%);
}

img {
  max-width: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

.portal-stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  background: var(--bg);
}

.login-showcase {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  padding: 48px;
  color: white;
  background:
    radial-gradient(circle at left top, rgba(247, 147, 30, 0.28), transparent 30%),
    radial-gradient(circle at right bottom, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #0e0e0e 0%, #181818 100%);
}

.login-showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.showcase-pill,
.showcase-tags span,
.status-pill,
.summary-pill,
.state,
.primary-button,
.subtle-button,
.icon-button {
  font-weight: 800;
}

.showcase-pill,
.showcase-tags span,
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.showcase-pill {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

.showcase-domain {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
}

.login-showcase-copy {
  max-width: 700px;
}

.showcase-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 28px 34px;
  margin-bottom: 28px;
  border-radius: 32px;
  background: white;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.showcase-logo {
  width: auto;
  height: 84px;
  object-fit: contain;
}

.login-showcase-copy h1,
.login-card-copy h2,
.workspace-section-head h2,
.workspace-hero h1,
.admin-card-head h3,
.summary-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: -0.03em;
}

.login-showcase-copy h1 {
  font-size: clamp(48px, 5vw, 76px);
  line-height: 0.94;
}

.login-showcase-copy p,
.workspace-section-head p,
.workspace-hero p,
.admin-card-head p,
.summary-card p,
.stack-copy,
.field small,
.directory-meta {
  color: var(--muted);
  line-height: 1.7;
}

.login-showcase-copy p {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.74);
}

.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.showcase-tags span {
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.showcase-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.showcase-stat {
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.showcase-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.showcase-stat strong {
  display: block;
  font-size: 30px;
  color: white;
}

.showcase-meta {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.login-panel-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
  padding: 32px;
}

.login-card-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.login-logo {
  width: auto;
  height: 56px;
  object-fit: contain;
}

.login-card-copy {
  text-align: center;
  margin-bottom: 22px;
}

.login-card-copy h2 {
  font-size: 42px;
  line-height: 0.94;
  color: var(--text);
}

.login-card-copy p {
  margin: 12px 0 0;
  color: var(--muted);
}

.status-pill {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--orange-dark);
  background: rgba(247, 147, 30, 0.12);
  border: 1px solid rgba(247, 147, 30, 0.16);
}

.status-pill.muted {
  color: #71665c;
  background: rgba(36, 36, 36, 0.05);
  border-color: rgba(36, 36, 36, 0.08);
}

.message-banner {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 700;
}

.message-banner.info {
  color: #264159;
  background: rgba(95, 136, 178, 0.12);
}

.message-banner.success {
  color: #295236;
  background: rgba(79, 122, 90, 0.12);
}

.message-banner.error {
  color: #7b332f;
  background: rgba(195, 108, 100, 0.16);
}

.auth-panel {
  margin-top: 18px;
  min-height: 200px;
}

.auth-layout,
.welcome-layout {
  display: grid;
  gap: 18px;
}

.welcome-layout {
  align-items: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fafafa;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(247, 147, 30, 0.18);
  border-color: rgba(247, 147, 30, 0.34);
  background: white;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field-wide {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 12px;
}

.primary-button,
.subtle-button,
.icon-button {
  appearance: none;
  border: 0;
  border-radius: 14px;
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover,
.subtle-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  color: white;
  background: var(--orange);
  box-shadow: 0 16px 28px rgba(247, 147, 30, 0.24);
}

.subtle-button,
.icon-button {
  padding: 13px 16px;
  color: var(--muted);
  background: rgba(17, 17, 17, 0.05);
}

.workspace-shell {
  min-height: 100vh;
  display: flex;
  background: #fbfaf7;
}

.workspace-sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: white;
  padding: 28px 18px;
  box-shadow: 12px 0 40px rgba(17, 17, 17, 0.035);
}

.workspace-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 56px;
  margin-bottom: 18px;
}

.sidebar-logo {
  width: auto;
  max-width: 160px;
  height: 48px;
  object-fit: contain;
}

.workspace-nav {
  display: grid;
  gap: 8px;
}

.workspace-nav-signout {
  margin-top: auto;
}

.workspace-nav-label {
  display: block;
  padding: 0 10px;
  color: #9aa3af;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.workspace-nav-item {
  display: block;
  width: 100%;
  border: 0;
  padding: 13px 14px;
  border-radius: 12px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.workspace-nav-item.active {
  color: var(--text);
  background: rgba(247, 147, 30, 0.16);
}

.workspace-nav-signout {
  color: #7a6453;
  background: rgba(17, 17, 17, 0.04);
}

.workspace-main {
  min-width: 0;
  flex: 1;
  padding: 36px 48px 48px;
}

.workspace-view {
  display: block;
}

.app-workspace-section {
  position: relative;
  margin-top: 0;
  height: 100vh;
}

.app-shell-toolbar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  justify-content: flex-start;
}

.hub-return-button {
  min-width: 54px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  padding: 10px 14px;
  color: white;
  background: rgba(17, 17, 17, 0.82);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.18);
  backdrop-filter: blur(10px);
}

.hub-return-button:hover {
  color: white;
  background: rgba(17, 17, 17, 0.94);
}

.app-shell-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-shell-toolbar-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.app-shell-identity {
  text-align: right;
}

.workspace-topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 54px;
}

.workspace-topbar-brand {
  display: flex;
  align-items: center;
}

.workspace-topbar-title {
  color: #8b96a3;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.workspace-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.identity-chip {
  text-align: right;
}

.identity-chip span {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.identity-chip small {
  color: var(--muted);
}

.workspace-hero {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.workspace-hero-logo {
  width: 178px;
  height: auto;
  margin-bottom: 26px;
}

.workspace-hero h1 {
  margin-top: 0;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.96;
  color: var(--text);
}

.workspace-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.workspace-hero .section-tag {
  margin-bottom: 0;
  color: var(--orange);
}

.workspace-account-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.05);
}

.account-section {
  max-width: 860px;
}

#identity-panel {
  display: block;
}

.account-details {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.account-details strong,
.account-details span {
  display: block;
}

.account-details strong {
  font-size: 18px;
}

.account-details span {
  color: var(--muted);
  line-height: 1.6;
}

.account-password-panel {
  margin-top: 18px;
}

.account-password-panel h4 {
  margin: 0 0 14px;
  font-size: 15px;
}

.stats-grid,
.apps-grid,
.summary-grid,
.permission-groups,
.stack-list,
.directory-list {
  display: grid;
  gap: 18px;
}

.stats-grid {
  margin-top: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card,
.app-card,
.summary-card,
.admin-card,
.permission-card,
.directory-card,
.settings-card,
.stack-item,
.check-card {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.04);
}

.stat-card {
  padding: 22px;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.stat-value {
  display: block;
  margin-top: 12px;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
}

.workspace-section {
  margin-top: 30px;
}

.launcher-section {
  margin-top: 0;
}

.admin-panel-stack {
  display: grid;
  gap: 18px;
}

.workspace-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.workspace-section-head h2 {
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

.workspace-section-head p {
  margin: 8px 0 0;
}

.apps-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
  max-width: 980px;
}

.app-card,
.summary-card,
.admin-card,
.permission-card,
.directory-card,
.settings-card,
.stack-item {
  padding: 22px;
}

.app-card {
  appearance: none;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  min-height: 150px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
}

.app-card.disabled {
  opacity: 0.55;
  cursor: default;
}

.app-top,
.admin-card-head,
.directory-top,
.permission-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.app-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  box-shadow: inset 0 -12px 18px rgba(0, 0, 0, 0.12);
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6d5b49;
}

.state::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #c9bbac;
}

.state.online::before {
  background: #4f7a5a;
}

.state.waiting::before {
  background: var(--orange);
}

.state.offline::before {
  background: #bb7057;
}

.app-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.app-tagline {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.app-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.summary-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #4c5b69;
  background: rgba(17, 17, 17, 0.05);
}

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.meta-key {
  color: #8a7360;
}

.meta-value {
  color: #312720;
  font-weight: 700;
  text-align: right;
}

.app-actions {
  margin-top: 4px;
  display: flex;
  gap: 10px;
}

.app-frame-shell {
  height: 100vh;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: white;
  box-shadow: none;
}

.embedded-app-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: white;
}

.workspace-shell.app-focus-mode {
  display: block;
  min-height: 100vh;
}

.workspace-shell.app-focus-mode .workspace-sidebar,
.workspace-shell.app-focus-mode .workspace-topbar {
  display: none;
}

.workspace-shell.app-focus-mode .workspace-main {
  padding: 0;
}

.workspace-shell.app-focus-mode .app-workspace-section {
  margin-top: 0;
}

.workspace-shell.app-focus-mode .app-frame-shell {
  height: 100vh;
  border-radius: 0;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: var(--black);
}

.button.disabled,
.button[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.summary-grid {
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-grid.compact {
  margin-top: 18px;
}

.summary-card h3,
.admin-card-head h3 {
  font-size: 30px;
  line-height: 0.98;
}

.stack-list {
  margin-top: 16px;
}

.stack-title {
  margin: 0;
  color: var(--text);
}

.empty-state,
.empty-mini {
  border-radius: 18px;
  border: 1px dashed rgba(17, 17, 17, 0.12);
  background: rgba(250, 250, 250, 0.8);
  color: var(--muted);
}

.empty-state {
  padding: 22px;
}

.empty-mini {
  padding: 12px 14px;
  font-size: 14px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
  gap: 22px;
}

.admin-card-collapsible {
  padding: 22px;
}

.team-admin-card {
  padding: 22px;
}

.admin-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.compact-button {
  padding: 10px 14px;
  font-size: 13px;
}

.destructive-button {
  color: #9f2f1d;
  border: 1px solid rgba(182, 70, 47, 0.2);
  background: rgba(182, 70, 47, 0.08);
}

.destructive-button:hover {
  background: rgba(182, 70, 47, 0.14);
}

.admin-panel-body {
  margin-top: 18px;
}

.access-model-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.access-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(250, 250, 250, 0.78);
}

.access-step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--orange-dark);
  background: rgba(247, 147, 30, 0.14);
}

.access-step h4 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
}

.access-step p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.admin-subcard {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
  padding: 20px;
}

.admin-subcard-head {
  margin-bottom: 14px;
}

.admin-subcard-head h4 {
  margin: 0;
  font-size: 20px;
  color: var(--text);
}

.admin-subcard-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-directory-head {
  margin-bottom: 14px;
}

.inline-access-note {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(247, 147, 30, 0.18);
  background: rgba(255, 248, 239, 0.92);
  color: #5c4938;
  line-height: 1.65;
}

.inline-access-note strong {
  color: var(--text);
}

.password-reset-card {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr) auto;
  align-items: end;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.password-reset-card strong {
  display: block;
  color: var(--text);
}

.password-reset-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.password-reset-card .field {
  margin: 0;
}

.account-password-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.account-password-form .field {
  margin: 0;
}

.account-password-form .compact-button {
  justify-self: start;
}

.inline-access-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.inline-access-note-grid div {
  display: grid;
  gap: 4px;
}

.inline-access-note-grid span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.app-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.settings-card .form-grid {
  grid-template-columns: 1fr;
}

.checkbox-grid {
  display: grid;
  gap: 8px;
}

.check-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
}

.check-card input {
  margin-top: 2px;
}

.check-card span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.check-card strong {
  color: var(--text);
  display: block;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.check-card small {
  color: var(--muted);
  display: block;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.directory-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
}

.directory-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.directory-top p {
  margin: 6px 0 0;
  color: var(--muted);
}

.directory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}

.directory-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.04);
}

.directory-editor {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.permission-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #3d332b;
  line-height: 1.75;
}

@media (max-width: 1240px) {
  .portal-stage,
  .admin-grid,
  .summary-grid,
  .access-model-body,
  .inline-access-note-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .portal-stage {
    grid-template-columns: 1fr;
  }

  .login-showcase {
    min-height: auto;
    padding: 28px 22px;
  }

  .login-panel-shell {
    padding: 0 16px 24px;
  }

  .workspace-shell {
    display: block;
  }

  .workspace-sidebar {
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workspace-sidebar-brand {
    justify-content: center;
  }

  .workspace-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workspace-sidebar-footer {
    margin-top: 14px;
    padding-top: 0;
  }

  .workspace-nav-label {
    display: none;
  }

  .workspace-main {
    padding: 16px;
  }

  .workspace-shell.app-focus-mode {
    display: block;
    min-height: 100vh;
  }

  .workspace-shell.app-focus-mode .workspace-sidebar,
  .workspace-shell.app-focus-mode .workspace-topbar {
    display: none;
  }

  .workspace-shell.app-focus-mode .workspace-main {
    padding: 0;
  }

  .workspace-hero,
  .workspace-topbar,
  .workspace-section-head,
  .admin-card-head,
  .admin-card-actions,
  .directory-top,
  .permission-top {
    display: grid;
    grid-template-columns: 1fr;
  }

  .showcase-footer,
  .stats-grid,
  .apps-grid,
  .app-settings-grid,
  .password-reset-card,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .showcase-logo {
    height: 64px;
  }

  .app-shell-toolbar-side,
  .app-shell-actions {
    width: 100%;
    justify-items: stretch;
  }

  .workspace-shell.app-focus-mode .app-shell-toolbar {
    right: 14px;
    bottom: 14px;
  }

  .workspace-shell.app-focus-mode .app-frame-shell {
    height: 100vh;
    border-radius: 0;
  }
}

@media (max-width: 560px) {
  .workspace-main {
    padding: 12px;
  }

  .workspace-shell.app-focus-mode .workspace-main {
    padding: 0;
  }

  .workspace-shell.app-focus-mode .workspace-section-head h2 {
    font-size: 26px;
  }

  .workspace-shell.app-focus-mode .app-frame-shell {
    height: 100vh;
    border-radius: 0;
  }
}
