:root {
  --bg: #edf2f7;
  --surface: #ffffff;
  --surface-soft: #f2f6fa;
  --surface-border: rgba(36, 56, 79, 0.10);
  --ink: #24384f;
  --muted: #667487;
  --accent: #1577b8;
  --accent-2: #123d72;
  --success: #1d8f5a;
  --violet: #4f5f7d;
  --orange: #c97b1d;
  --amber: #cda23c;
  --navy: #0f3157;
  --dark-board: #102942;
  --cyan: #2597d6;
  --danger: #cc4b36;
  --steel: #70757c;
  --silver: #c9d0d7;
  --shadow: 0 18px 46px rgba(21, 44, 71, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(21, 119, 184, 0.10), transparent 34%),
    linear-gradient(180deg, #f7fafc, #e8edf3);
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px 1fr;
  transition: grid-template-columns 180ms ease;
}

.login-screen {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(19, 118, 198, 0.12), transparent 28%),
    linear-gradient(180deg, #d3d5d8 0%, #c1c4c8 40%, #d7d9dc 100%);
}

.login-layout {
  width: min(760px, 100%);
  display: grid;
  gap: 24px;
  justify-items: center;
}

.login-simple-shell {
  display: grid;
  gap: 24px;
  width: min(520px, 100%);
}

.login-brand-card,
.login-auth-card,
.login-demo-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.login-brand-card {
  width: 100%;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 32px 60px rgba(46, 58, 71, 0.18);
}

.login-brand-logo {
  max-width: 320px;
}

.login-brand-card-simple {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.login-command-logo {
  width: min(560px, 100%);
  display: block;
  filter: drop-shadow(0 22px 42px rgba(17, 56, 104, 0.18));
}

.login-brand-inner {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 18px 12px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 30px 58px rgba(34, 47, 61, 0.14);
  backdrop-filter: blur(12px);
  text-align: center;
}

.login-brand-kicker {
  margin: 0;
  color: #597089;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-brand-inner h1 {
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  color: #173856;
  letter-spacing: -0.03em;
}

.login-brand-subtitle {
  max-width: 540px;
  margin: 0;
  color: #5d7185;
  font-size: 0.98rem;
  line-height: 1.65;
}

.login-copy {
  max-width: 700px;
  margin: 10px 0 0;
  color: #5f7184;
  font-size: 1.02rem;
  line-height: 1.7;
}

.login-feature-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.login-feature-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f3f7fb);
  border: 1px solid rgba(18, 30, 45, 0.08);
}

.login-feature-card strong {
  color: #163854;
}

.login-feature-card span {
  color: #647689;
  line-height: 1.55;
}

.login-auth-card,
.login-demo-card {
  padding: 24px;
}

.login-auth-card-simple {
  width: 100%;
  padding: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 48px rgba(34, 47, 61, 0.18);
}

.login-auth-header {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.login-auth-header .eyebrow {
  margin: 0;
}

.login-auth-subtitle {
  margin: 0;
  color: #667487;
  line-height: 1.55;
}

.login-auth-card-simple h2 {
  font-size: 2rem;
  color: #163854;
  letter-spacing: -0.04em;
}

.login-auth-card-simple form {
  gap: 14px;
}

.login-auth-card-simple label span {
  color: #42576f;
  font-weight: 600;
}

.login-auth-card-simple input {
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(19, 61, 114, 0.14);
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.login-auth-card-simple button[type="submit"] {
  margin-top: 4px;
  min-height: 54px;
  border-radius: 18px;
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1577b8, #123d72);
  box-shadow: 0 18px 26px rgba(18, 61, 114, 0.22);
}

.login-demo-grid {
  display: grid;
  gap: 10px;
}

.version-info,
.sidebar-version-info {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7d8f;
}

.sidebar {
  padding: 28px;
  display: grid;
  gap: 20px;
  align-content: start;
  background:
    radial-gradient(circle at top left, rgba(74, 170, 235, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(28, 54, 84, 0.98), rgba(50, 67, 89, 0.96) 52%, rgba(23, 38, 58, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%);
  color: #f3f7fb;
  transition: padding 180ms ease;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.sidebar-toolbar {
  display: flex;
  justify-content: flex-end;
}

.sidebar-toggle {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  color: #f3f7fb;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.sidebar-toggle-mark {
  font-weight: 800;
  letter-spacing: 0.08em;
}

.content {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: #cfd7e6;
}

.board-light .eyebrow,
.panel .eyebrow,
.topbar .eyebrow {
  color: #7b8798;
}

.sidebar-copy,
.muted,
.message {
  color: var(--muted);
}

.success-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(27, 101, 168, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.96));
  box-shadow: 0 20px 45px rgba(12, 31, 56, 0.18);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.success-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.success-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #1270bc, #0f3d73);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.success-toast-copy {
  display: grid;
  gap: 2px;
}

.success-toast-copy strong {
  color: #18344f;
  font-size: 0.95rem;
}

.success-toast-copy span {
  color: #607384;
  font-size: 0.84rem;
}

.sidebar .muted,
.sidebar-copy {
  color: rgba(255, 248, 239, 0.76);
}

.topbar,
.panel,
.auth-card,
.demo-logins {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.brand-block,
.auth-card,
.demo-logins,
.topbar,
.panel {
  padding: 20px;
}

.brand-logo {
  width: 100%;
  max-width: 240px;
  display: block;
  margin-bottom: 0;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(4, 18, 34, 0.25));
}

.brand-logo-command {
  max-width: 340px;
}

.brand-block {
  padding: 14px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(232, 239, 247, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 14px 28px rgba(7, 20, 35, 0.18);
}

.topbar-meta-hidden {
  display: none;
}

.demo-logins {
  display: grid;
  gap: 10px;
  color: var(--ink);
}

.workspace-nav {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(177, 208, 232, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-chat {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(147, 179, 212, 0.16);
}

.sidebar-chat-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.sidebar-chat-modes,
.sidebar-chat-tools,
.sidebar-chat-inbox {
  display: grid;
  gap: 10px;
}

.sidebar-chat-mode-row,
.sidebar-chat-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sidebar-chat-select,
.sidebar-chat-multi {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  padding: 11px 12px;
}

.sidebar-chat-multi {
  min-height: 96px;
}

.sidebar-chat-inbox-button {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 6px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(18, 61, 115, 0.08);
  background: linear-gradient(180deg, #ffffff, #f5f9fc);
  color: var(--ink);
}

.sidebar-chat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-chat-card-heading {
  min-width: 0;
  display: grid;
  gap: 3px;
  flex: 1;
}

.sidebar-chat-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sidebar-chat-card-title-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-chat-card-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(21, 111, 196, 0.12);
}

.sidebar-chat-card-top .command-thread-avatar-row {
  margin-top: 0;
  flex: 0 0 auto;
}

.sidebar-chat-card-top .command-thread-avatar {
  width: 24px;
  height: 24px;
  font-size: 0.66rem;
}

.sidebar-chat-card-heading .muted,
.sidebar-chat-card-preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-chat-card-preview {
  font-size: 0.88rem;
  color: rgba(47, 71, 94, 0.86);
}

.sidebar-chat-inbox-button.active {
  background: linear-gradient(180deg, #edf7ff, #e2f1ff);
  border-color: rgba(37, 151, 214, 0.24);
  box-shadow: 0 10px 18px rgba(18, 30, 45, 0.08);
}

.sidebar-chat-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.sidebar-chat-message {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  border: 1px solid rgba(18, 61, 115, 0.08);
  color: var(--ink);
}

.sidebar-chat-attachment {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.sidebar-chat-attachment-image {
  width: min(220px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(18, 61, 115, 0.08);
  background: #f3f7fb;
}

.sidebar-chat-message.mine {
  background: linear-gradient(180deg, #eef8ff, #e1f0ff);
  border-color: rgba(37, 151, 214, 0.22);
}

.sidebar-chat-form {
  display: grid;
  gap: 10px;
  align-content: end;
}

.sidebar-chat-form textarea {
  min-height: 88px;
  background: rgba(255, 255, 255, 0.95);
}

.sidebar-version-info {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(236, 244, 251, 0.76);
  text-align: center;
}

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

.workspace-nav-button {
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f3f7fb;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.workspace-nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(93, 194, 255, 0.18);
  color: #eef8ff;
}

.workspace-nav-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.workspace-nav-label {
  white-space: nowrap;
}

.workspace-nav-button:hover,
.workspace-nav-button.active {
  background: rgba(74, 170, 235, 0.18);
  border-color: rgba(103, 191, 246, 0.34);
  transform: translateX(2px);
}

.workspace-nav-button.active .workspace-nav-icon {
  background: linear-gradient(135deg, rgba(72, 179, 245, 0.34), rgba(26, 87, 148, 0.34));
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sidebar-collapsed {
  grid-template-columns: 104px 1fr;
}

.sidebar-collapsed .sidebar {
  padding: 18px 14px;
}

.sidebar-collapsed .brand-block h1,
.sidebar-collapsed .sidebar-copy,
.sidebar-collapsed .demo-logins h2,
.sidebar-collapsed .demo-logins .muted,
.sidebar-collapsed .auth-card h2,
.sidebar-collapsed .auth-card label span,
.sidebar-collapsed .workspace-nav h2,
 .sidebar-collapsed .workspace-nav-label,
 .sidebar-collapsed .sidebar-chat h2,
 .sidebar-collapsed .sidebar-chat .eyebrow,
 .sidebar-collapsed .sidebar-chat-list,
 .sidebar-collapsed .sidebar-chat-form {
  display: none;
}

.sidebar-collapsed .demo-button,
.sidebar-collapsed .workspace-nav-button,
.sidebar-collapsed .sidebar-toggle {
  justify-content: center;
}

.sidebar-collapsed .demo-button {
  font-size: 0;
  min-height: 44px;
}

.sidebar-collapsed .demo-button::after {
  content: attr(data-email);
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff8ef;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 28px;
  text-align: center;
  overflow: hidden;
  text-overflow: clip;
}

.sidebar-collapsed .auth-card input,
.sidebar-collapsed .auth-card button,
.sidebar-collapsed .auth-card .message {
  display: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

.demo-button {
  text-align: left;
}

.secondary,
.tab-button,
.toggle-button {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--surface-border);
}

.tab-button {
  position: relative;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
  box-shadow: 0 8px 16px rgba(18, 30, 45, 0);
}

.tab-button:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 137, 240, 0.18);
  box-shadow: 0 10px 20px rgba(18, 30, 45, 0.06);
}

form {
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--surface-border);
  background: white;
  padding: 12px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.topbar {
  position: relative;
  z-index: 32;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.global-search-wrap {
  position: relative;
  flex: 1 1 560px;
  max-width: none;
  margin: 0;
}

.job-create-menu-wrap {
  position: relative;
}

.topbar-action-button {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(18, 30, 45, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.topbar-action-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(18, 30, 45, 0.1);
}

.create-job-button {
  min-width: 150px;
  background: linear-gradient(135deg, #10375d, #1781c3);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(16, 55, 93, 0.18);
}

.topbar-compact-icon {
  display: inline-flex;
}

.create-job-button .topbar-button-label {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 1;
}

.create-job-button.active {
  box-shadow: 0 20px 34px rgba(16, 55, 93, 0.24);
  transform: translateY(-1px);
}

.job-create-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 24;
  width: min(300px, 78vw);
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(18, 30, 45, 0.08);
  box-shadow: 0 22px 40px rgba(18, 30, 45, 0.14);
}

.job-create-menu-item {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(18, 30, 45, 0.08);
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  color: var(--ink);
  text-align: left;
}

.job-create-menu-item:hover {
  border-color: rgba(31, 141, 240, 0.24);
  box-shadow: 0 10px 22px rgba(18, 30, 45, 0.08);
}

.job-create-menu-item span {
  color: var(--muted);
  font-size: 0.84rem;
}

.global-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 22;
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(18, 30, 45, 0.08);
  box-shadow: 0 22px 40px rgba(18, 30, 45, 0.14);
}

.global-search-item {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(18, 30, 45, 0.08);
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  color: var(--ink);
}

.global-search-item:hover {
  border-color: rgba(31, 141, 240, 0.22);
  box-shadow: 0 10px 22px rgba(18, 30, 45, 0.08);
}

.icon-button,
.user-badge-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.icon-button {
  min-width: 120px;
  height: 48px;
}

.icon-button-svg svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.notification-wrap {
  position: relative;
  z-index: 36;
}

.notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7f00, #ea3c00);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, 82vw);
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(18, 30, 45, 0.08);
  box-shadow: 0 22px 40px rgba(18, 30, 45, 0.14);
  z-index: 80;
}

.notification-item {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  color: var(--ink);
  border: 1px solid rgba(18, 30, 45, 0.08);
}

.notification-item.unread {
  border-color: rgba(31, 141, 240, 0.26);
  background: linear-gradient(180deg, #f8fcff, #eef7ff);
}

.user-badge-button {
  border: 1px solid rgba(18, 30, 45, 0.08);
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  color: var(--ink);
  min-width: 148px;
  padding: 6px 16px 6px 6px;
  border-radius: 16px;
  white-space: nowrap;
}

#logoutButton {
  min-width: 110px;
}

.user-badge-avatar,
.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #10375d, #1781c3);
  color: white;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.user-badge-avatar img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-badge-copy {
  white-space: nowrap;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff, #eef5fb);
  border: 1px solid rgba(18, 30, 45, 0.08);
}

.profile-avatar {
  width: 76px;
  height: 76px;
  font-size: 1.4rem;
}

.profile-hero-copy {
  display: grid;
  gap: 6px;
}

.topbar-actions,
.job-card-footer,
.job-meta-row,
.inline-between,
.form-switch-row,
.email-meta,
.hero-badges,
.job-hero-header,
.status-strip,
.summary-strip,
.chart-rows,
.team-card-header,
.team-meta-row {
  display: flex;
  gap: 12px;
}

.topbar-actions,
.job-card-footer,
.inline-between,
.job-hero-header,
.team-card-header,
.team-meta-row {
  justify-content: space-between;
  align-items: center;
}

.topbar-actions {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard,
.workspace-grid,
.jobs-column,
.detail-column,
.jobs-list,
.stack-list,
.action-stack,
.field-grid,
.dynamic-form-fields,
.required-forms-panel,
.email-inbox-list,
.overview-grid,
.job-tabs,
.job-detail,
.dashboard-tabs,
.board-light,
.board-dark,
.status-strip,
.board-grid-top,
.board-grid-bottom,
.health-table,
.chart-list,
.team-grid,
.team-summary-grid,
.team-mini-metrics {
  display: grid;
  gap: 16px;
}

.board-light,
.board-dark {
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.customer-portal {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf9, #f5f2eb);
  border: 1px solid rgba(26, 36, 51, 0.06);
  box-shadow: var(--shadow);
}

.tech-portal {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f6fbff, #edf6ff);
  border: 1px solid rgba(26, 36, 51, 0.06);
  box-shadow: var(--shadow);
}

.tech-portal-hero,
.tech-job-grid {
  display: grid;
  gap: 16px;
}

.tech-portal-hero {
  grid-template-columns: 1.3fr 1fr;
  align-items: start;
}

.tech-today-hero {
  align-items: stretch;
}

.tech-today-intro {
  display: grid;
  gap: 8px;
}

.tech-focus-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(18, 61, 114, 0.96), rgba(20, 118, 184, 0.88));
  color: white;
  box-shadow: 0 20px 40px rgba(13, 42, 76, 0.22);
}

.tech-focus-card .muted {
  color: rgba(233, 242, 251, 0.78);
}

.tech-focus-stats,
.tech-quick-actions,
.tech-card-actions,
.tech-job-sections {
  display: grid;
  gap: 12px;
}

.tech-checklist {
  display: grid;
  gap: 10px;
}

.tech-blocker-banner {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(205, 162, 60, 0.26);
  background: rgba(205, 162, 60, 0.12);
}

.tech-blocker-banner.complete {
  border-color: rgba(29, 143, 90, 0.24);
  background: rgba(29, 143, 90, 0.1);
}

.tech-checklist-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(18, 30, 45, 0.08);
  background: rgba(255, 255, 255, 0.12);
}

.tech-checklist.compact .tech-checklist-item {
  background: rgba(255, 255, 255, 0.08);
}

.tech-checklist-item.complete {
  border-color: rgba(29, 143, 90, 0.28);
}

.tech-checklist-item.pending {
  border-color: rgba(205, 162, 60, 0.28);
}

.tech-checklist-item .secondary {
  min-height: 44px;
}

.tech-focus-stats {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.tech-quick-actions {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.tech-quick-actions .secondary,
.tech-card-actions .secondary {
  min-height: 48px;
  font-weight: 700;
}

.tech-job-sections {
  grid-template-columns: 1.2fr 1fr;
}

.tech-job-card {
  gap: 14px;
}

.tech-card-actions {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.customer-portal-hero,
.customer-portal-grid,
.customer-kpi-grid,
.customer-list {
  display: grid;
  gap: 16px;
}

.user-management-list {
  display: grid;
  gap: 14px;
  align-content: start;
}

.user-management-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.users-modal-card {
  width: min(1120px, 100%);
}

.form-library-list,
.builder-fields-list {
  display: grid;
  gap: 14px;
}

.panel-like,
.builder-field-row {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(18, 61, 115, 0.08);
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
}

.address-autocomplete {
  position: relative;
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 26;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(18, 61, 115, 0.1);
  box-shadow: 0 20px 40px rgba(18, 30, 45, 0.14);
  max-height: 260px;
  overflow: auto;
}

.address-suggestion-item {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.address-suggestion-item:hover,
.address-suggestion-item.active {
  transform: translateY(-1px);
  border-color: rgba(16, 137, 240, 0.18);
  box-shadow: 0 10px 22px rgba(18, 30, 45, 0.08);
}

.builder-field-row {
  gap: 10px;
}

.field-builder-panel {
  display: grid;
  gap: 14px;
}

.field-builder-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr 1fr;
  gap: 10px;
}

.template-library-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(18, 61, 115, 0.08);
  background: linear-gradient(180deg, #ffffff, #f4f8fc);
}

.profile-push-activity-header {
  margin-top: 18px;
}

.push-worker-card,
.push-event-card {
  gap: 10px;
}

.push-event-card a {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.push-event-card a:hover {
  text-decoration: underline;
}

.template-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 25, 35, 0.46);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(920px, 100%);
  max-height: min(84vh, 920px);
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 251, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 28px 60px rgba(18, 30, 45, 0.18);
}

.form-modal-card {
  width: min(980px, 100%);
}

.job-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 72;
  display: grid;
  place-items: center;
  padding: 22px;
}

.command-chat-shell {
  position: fixed;
  inset: 0;
  z-index: 74;
}

.command-chat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 25, 35, 0.36);
  backdrop-filter: blur(6px);
}

.command-chat-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(980px, 100vw);
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(247, 250, 253, 0.98), rgba(240, 245, 250, 0.98));
  border-left: 1px solid rgba(18, 61, 115, 0.08);
  box-shadow: -22px 0 48px rgba(18, 30, 45, 0.16);
}

.command-chat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.command-chat-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  gap: 18px;
}

.command-chat-rail,
.command-chat-main {
  min-height: 0;
  display: grid;
  gap: 14px;
}

.command-chat-rail {
  align-content: start;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 249, 252, 0.94));
  border: 1px solid rgba(18, 61, 115, 0.08);
}

.command-chat-main {
  grid-template-rows: auto 1fr auto;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 252, 0.97));
  border: 1px solid rgba(18, 61, 115, 0.08);
}

.command-chat-thread-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fbff, #edf5fb);
  border: 1px solid rgba(18, 61, 115, 0.08);
  box-shadow: 0 10px 20px rgba(18, 30, 45, 0.06);
}

.command-thread-meta {
  display: grid;
  gap: 4px;
}

.command-thread-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.command-thread-avatar-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 6px;
}

.command-thread-avatar {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, #10375d, #1781c3);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(18, 30, 45, 0.1);
  border: 2px solid #f7fbff;
  margin-left: -8px;
}

.command-thread-avatar:first-child {
  margin-left: 0;
}

.command-thread-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.command-thread-avatar-overflow {
  background: linear-gradient(135deg, #dce8f4, #c9d8e7);
  color: #26435f;
}

.command-thread-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(18, 61, 115, 0.06);
  border: 1px solid rgba(18, 61, 115, 0.08);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.command-thread-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.job-modal-card {
  position: relative;
  width: min(1320px, 100%);
  max-height: min(90vh, 1100px);
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(244, 246, 250, 0.98), rgba(238, 242, 247, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 32px 70px rgba(18, 30, 45, 0.22);
}

.job-modal-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.modal-detail-column {
  display: grid;
  gap: 18px;
}

.job-launch-panel {
  min-height: 180px;
  align-content: start;
}

.action-chooser {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, max-content));
  gap: 12px;
}

.forms-editor-mount {
  display: grid;
  gap: 16px;
}

.forms-editor-slot {
  display: grid;
  gap: 16px;
}

.job-map-card {
  display: grid;
  gap: 12px;
}

.job-map-frame {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #f4f7fb, #eaf0f8);
  box-shadow: inset 0 0 0 1px rgba(18, 30, 45, 0.08);
}

.job-map-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.job-map-empty {
  min-height: 180px;
}

.user-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  border: 1px solid rgba(18, 30, 45, 0.08);
}

.user-list-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.user-list-card:hover {
  transform: translateY(-1px);
  border-color: rgba(21, 119, 184, 0.18);
  box-shadow: 0 14px 28px rgba(18, 30, 45, 0.08);
}

.user-list-card.selected {
  border-color: rgba(21, 119, 184, 0.28);
  background: linear-gradient(180deg, #f8fcff, #eef6fd);
  box-shadow: 0 18px 32px rgba(20, 93, 152, 0.12);
}

.user-list-pill-row,
.user-editor-pill-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-editor-panel {
  min-height: 420px;
}

.permission-panel {
  gap: 16px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(18, 61, 115, 0.08);
  background: linear-gradient(180deg, #ffffff, #f6f9fc);
}

.permission-item input {
  width: auto;
}

.chat-thread {
  display: grid;
  gap: 12px;
}

.chat-message {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  border: 1px solid rgba(18, 30, 45, 0.08);
}

.chat-message.mine {
  background: linear-gradient(180deg, #f5fbff, #e9f5ff);
  border-color: rgba(31, 141, 240, 0.22);
}

.serial-card strong {
  text-transform: capitalize;
}

.job-picker-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 16px;
}

.compact-job-form {
  margin-bottom: 18px;
}

.signature-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #f7fafc;
  border: 1px solid rgba(18, 30, 45, 0.08);
}

#signaturePad {
  width: 100%;
  height: 180px;
  border-radius: 14px;
  border: 1px dashed rgba(18, 30, 45, 0.2);
  background: white;
  touch-action: none;
}

.gps-clock-status {
  min-height: 20px;
  font-size: 0.92rem;
}

.customer-portal-hero {
  grid-template-columns: 1.3fr 1fr;
  align-items: start;
}

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

.customer-portal-grid {
  grid-template-columns: 1fr 1fr;
}

.customer-panel {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(18, 30, 45, 0.08);
}

.job-portal-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  border: 1px solid rgba(18, 30, 45, 0.08);
}

.customer-panel-wide {
  grid-column: 1 / -1;
}

.approval-actions,
.approval-response {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.approval-button {
  flex: 1 1 150px;
}

.approval-approve {
  border-color: rgba(52, 209, 15, 0.28);
  color: #1f8f0a;
}

.approval-change {
  border-color: rgba(204, 75, 54, 0.24);
  color: var(--danger);
}

.approval-schedule {
  border-color: rgba(31, 141, 240, 0.24);
  color: var(--accent);
}

.dashboard-switcher {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.94));
}

.dashboard-tabs {
  grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
}

.board-light {
  background: linear-gradient(180deg, #f6f9fc, #edf3f8);
  border: 1px solid rgba(36, 56, 79, 0.08);
}

.board-dark {
  background: linear-gradient(180deg, #16355b, #0f2943);
  color: #f3f5ff;
}

.board-light h3,
.board-dark h3 {
  font-size: 1.05rem;
}

.status-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.board-modern-header,
.board-modern-kpis,
.clean-board-grid,
.focus-list {
  display: grid;
  gap: 16px;
}

.board-modern-header {
  grid-template-columns: 1fr;
  align-items: start;
}

.board-modern-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.board-kpi-button {
  appearance: none;
  width: 100%;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.board-kpi-button:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 129, 195, 0.28);
  box-shadow: 0 18px 34px rgba(18, 30, 45, 0.1);
}

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

.clean-board-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(36, 56, 79, 0.08);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(21, 44, 71, 0.05);
}

.calendar-board-card {
  display: grid;
  gap: 16px;
}

.calendar-board-toolbar {
  align-items: center;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  padding: 2px 0 4px;
}

.calendar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(18, 30, 45, 0.035);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

button.calendar-legend-item {
  cursor: pointer;
}

button.calendar-legend-item:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 137, 240, 0.14);
  box-shadow: 0 8px 18px rgba(18, 30, 45, 0.06);
}

.calendar-legend-item.active {
  color: var(--ink);
  background: rgba(16, 137, 240, 0.08);
  border-color: rgba(16, 137, 240, 0.18);
  box-shadow: 0 10px 20px rgba(18, 30, 45, 0.08);
}

.calendar-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
  border: 1px solid transparent;
}

.calendar-legend-scheduled {
  border-color: rgba(29, 143, 90, 0.28);
  background: rgba(29, 143, 90, 0.72);
}

.calendar-legend-pending {
  border-color: rgba(121, 92, 225, 0.28);
  background: rgba(121, 92, 225, 0.72);
}

.calendar-legend-followup {
  border-color: rgba(205, 162, 60, 0.34);
  background: rgba(205, 162, 60, 0.78);
}

.calendar-legend-default {
  border-color: rgba(16, 137, 240, 0.22);
  background: rgba(16, 137, 240, 0.72);
}

.calendar-legend-clear {
  border: none;
  background: transparent;
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 2px;
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease;
}

.calendar-legend-clear:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.calendar-day-cell {
  min-height: 148px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  border: 1px solid rgba(18, 30, 45, 0.08);
}

.calendar-day-empty {
  background: rgba(18, 30, 45, 0.03);
  border-style: dashed;
}

.calendar-day-number {
  font-weight: 800;
  color: var(--ink);
}

.calendar-day-jobs {
  display: grid;
  gap: 8px;
}

.calendar-job-pill {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid rgba(16, 137, 240, 0.12);
  background: linear-gradient(135deg, rgba(16, 137, 240, 0.1), rgba(10, 169, 245, 0.05));
  color: var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.calendar-job-scheduled {
  border-color: rgba(29, 143, 90, 0.22);
  background: linear-gradient(135deg, rgba(29, 143, 90, 0.12), rgba(29, 143, 90, 0.04));
}

.calendar-job-pending {
  border-color: rgba(121, 92, 225, 0.22);
  background: linear-gradient(135deg, rgba(121, 92, 225, 0.14), rgba(121, 92, 225, 0.05));
}

.calendar-job-followup {
  border-color: rgba(205, 162, 60, 0.26);
  background: linear-gradient(135deg, rgba(205, 162, 60, 0.16), rgba(205, 162, 60, 0.05));
}

.calendar-job-default {
  border-color: rgba(16, 137, 240, 0.12);
  background: linear-gradient(135deg, rgba(16, 137, 240, 0.1), rgba(10, 169, 245, 0.05));
}

.calendar-job-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 137, 240, 0.24);
  box-shadow: 0 10px 22px rgba(18, 30, 45, 0.08);
}

.calendar-job-pill strong {
  font-size: 0.78rem;
}

.calendar-job-pill span {
  font-size: 0.8rem;
  color: var(--muted);
}

.detail-empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(180deg, #fbfcfd, #f2f5f8);
  border: 1px dashed rgba(18, 30, 45, 0.12);
}

.job-detail-panel {
  display: grid;
  gap: 18px;
  animation: jobDetailReveal 220ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: top center;
}

@keyframes jobDetailReveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.focus-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(18, 30, 45, 0.08);
}

.modern-status-strip .status-pill-card {
  background: rgba(255, 255, 255, 0.72);
}

.clean-health-table {
  margin-top: 0;
  border-top: 0;
}

.compact-bars .horizontal-row {
  grid-template-columns: 130px 1fr auto;
}

.status-pill-card,
.gauge-card,
.chart-card,
.health-card,
.team-summary-card,
.leaderboard-card,
.weekly-card,
.member-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(18, 30, 45, 0.06);
}

.status-pill-card {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
  border: 1px solid rgba(18, 30, 45, 0.06);
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: center;
}

.status-chip {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 110px;
  padding: 10px 14px;
  border-radius: 14px;
  color: white;
  font-weight: 700;
  margin-bottom: 10px;
}

.chip-blue { background: var(--accent); }
.chip-navy { background: var(--accent-2); }
.chip-green { background: var(--success); }
.chip-purple { background: var(--violet); }
.chip-orange { background: var(--orange); }
.chip-amber { background: var(--amber); }

.status-number {
  font-size: 2rem;
  font-weight: 800;
}

.board-grid-top {
  grid-template-columns: 1fr 1fr 1fr 1.15fr;
}

.board-grid-bottom {
  grid-template-columns: 0.75fr 0.95fr 1.15fr 1.25fr;
}

.gauge-shell {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 2 / 1;
  margin: 8px auto 0;
  position: relative;
  overflow: hidden;
}

.gauge-arc {
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 999px 999px 0 0;
  background:
    radial-gradient(circle at 50% 100%, #fff 0 54%, transparent 55%),
    conic-gradient(from 180deg, var(--gauge-color) calc(var(--gauge-value) * 1%), #ececec 0);
}

.gauge-value {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  font-size: 2.2rem;
  font-weight: 300;
  color: #555;
}

.gauge-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #7b8798;
}

.health-table {
  grid-template-columns: 1fr auto;
  gap: 0;
  border-top: 2px solid #d7e8ff;
  margin-top: 12px;
}

.health-row {
  display: contents;
}

.health-row span {
  padding: 10px 0;
  border-bottom: 1px solid #e6ebf3;
}

.chart-card h4,
.gauge-card h4,
.health-card h4 {
  margin-bottom: 10px;
  color: #4a1d3d;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.simple-bar-chart,
.horizontal-bars {
  display: grid;
  gap: 10px;
}

.bar-column-wrap {
  display: grid;
  gap: 10px;
  align-items: end;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 220px;
}

.bar-column {
  display: grid;
  justify-items: center;
  gap: 8px;
  align-content: end;
}

.bar-value {
  width: 38px;
  background: linear-gradient(180deg, #1f8df0, #1671db);
  border-radius: 8px 8px 0 0;
}

.mini-legend,
.bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 6px;
}

.horizontal-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 10px;
  align-items: center;
}

.horizontal-track {
  height: 18px;
  background: #edf1f7;
  border-radius: 999px;
  overflow: hidden;
}

.horizontal-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), #2e45db);
}

.board-dark .team-summary-card,
.board-dark .leaderboard-card,
.board-dark .weekly-card,
.board-dark .member-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f3f5ff;
}

.team-grid {
  grid-template-columns: 1.2fr repeat(2, minmax(220px, 1fr));
}

.team-summary-grid {
  grid-template-columns: 1fr;
}

.team-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.team-kpi strong,
.member-big-number {
  display: block;
  font-size: 2.6rem;
  line-height: 1;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--cyan);
}

.leaderboard-list,
.weekly-chart,
.member-card-grid {
  display: grid;
  gap: 12px;
}

.leaderboard-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sparkline {
  width: 100%;
  height: 110px;
}

.member-card {
  display: grid;
  gap: 14px;
}

.avatar-block {
  width: 100%;
  height: 170px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, rgba(24, 208, 255, 0.4), rgba(255, 255, 255, 0.08));
}

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

.member-mini {
  color: rgba(243, 245, 255, 0.78);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.82rem;
  background: rgba(31, 141, 240, 0.1);
  color: var(--accent);
}

.pill.complete {
  background: rgba(52, 209, 15, 0.12);
  color: #1f8f0a;
}

.pill.missing {
  background: rgba(204, 75, 54, 0.12);
  color: var(--danger);
}

.workspace-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.jobs-column,
.detail-column {
  align-content: start;
}

.jobs-modal-card {
  width: min(980px, 100%);
}

.jobs-modal-panel {
  display: grid;
  gap: 12px;
}

.job-card,
.stack-item,
.detail-card,
.required-form-card,
.email-intake-card,
.email-settings-card,
.overview-card,
.job-stat-tile,
.activity-card,
.asset-card,
.workflow-task-card,
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 16px;
}

.workflow-task-card {
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, #ffffff, #f5f9fc);
}

.job-card {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.job-open-button {
  width: 100%;
  margin-top: 6px;
}

.job-search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 8px;
}

.job-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.job-card:hover,
.job-card.selected {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(18, 30, 45, 0.08);
  border-color: rgba(31, 141, 240, 0.25);
}

.job-card.active {
  background: linear-gradient(180deg, rgba(31, 141, 240, 0.05), white);
}

.status-pill-card {
  appearance: none;
  cursor: pointer;
  padding: 16px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.status-pill-card:hover,
.status-pill-card.active {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(18, 30, 45, 0.08);
  border-color: rgba(31, 141, 240, 0.25);
}

.hero-job {
  background: linear-gradient(180deg, rgba(31, 141, 240, 0.04), rgba(255, 255, 255, 0.95));
}

.overview-grid {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.overview-card strong {
  display: block;
  margin-bottom: 6px;
}

.overview-card.clickable {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  background: var(--surface);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.overview-card.clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(18, 30, 45, 0.08);
  border-color: rgba(31, 141, 240, 0.22);
  background: linear-gradient(180deg, rgba(31, 141, 240, 0.04), #ffffff);
}

.overview-card.disabled {
  cursor: default;
}

.overview-card.clickable span,
.overview-card.clickable small,
.overview-card.disabled span,
.overview-card.disabled small {
  color: inherit;
}

.detail-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.96));
  box-shadow: 0 14px 30px rgba(18, 30, 45, 0.05);
}

.job-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.job-kpi-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.job-stat-tile {
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
}

.job-stat-tile span,
.job-stat-tile small {
  color: var(--muted);
}

.job-stat-tile strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 1.85rem;
  line-height: 1;
}

.insight-banner {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(31, 141, 240, 0.12), rgba(28, 47, 185, 0.08));
  border: 1px solid rgba(31, 141, 240, 0.15);
}

.insight-banner p {
  margin: 8px 0 0;
}

.insight-icon,
.asset-icon,
.photo-placeholder {
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.insight-icon {
  width: 64px;
  height: 64px;
  color: white;
  background: linear-gradient(135deg, #1f8df0, #1c2fb9);
}

.key-value-list {
  display: grid;
  gap: 10px;
}

.key-value-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7edf4;
}

.key-value-row span {
  color: var(--muted);
}

.section-intro {
  display: grid;
  gap: 8px;
}

.job-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-tabs .tab-button {
  min-height: 52px;
  font-weight: 700;
}

.tab-button.active {
  background: linear-gradient(135deg, #1089f0, #0aa9f5);
  color: white;
  border-color: rgba(16, 137, 240, 0.26);
  box-shadow: 0 14px 26px rgba(16, 137, 240, 0.18);
  transform: translateY(-1px);
}

.required-form-card.required {
  background: linear-gradient(180deg, rgba(31, 141, 240, 0.05), white);
}

.required-form-card.incomplete {
  border-color: rgba(204, 75, 54, 0.22);
}

.toggle-button.on {
  background: linear-gradient(135deg, #1089f0, #0aa9f5);
  color: white;
}

.files-grid,
.photos-grid,
.shipping-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.asset-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 220px;
}

.overview-card-shipping {
  grid-column: span 2;
  gap: 8px;
}

.overview-card-shipping small {
  display: block;
  line-height: 1.45;
}

.shipping-card {
  min-height: 0;
  background: linear-gradient(180deg, #ffffff, #f5f8fd);
}

.asset-icon {
  width: 60px;
  height: 60px;
  color: white;
  background: linear-gradient(135deg, #1f8df0, #0aa9f5);
}

.photo-card {
  background: linear-gradient(180deg, #ffffff, #f5f8fd);
}

.photo-placeholder {
  width: 100%;
  height: 110px;
  color: #315c80;
  background: linear-gradient(135deg, rgba(31, 141, 240, 0.12), rgba(24, 208, 255, 0.2));
}

.photo-thumb {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(18, 30, 45, 0.08);
  background: #eef4fb;
}

.timeline-list,
.survey-list,
.form-submission-list,
.gps-list {
  display: grid;
  gap: 14px;
}

.pdf-ready-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f4f8fc);
  border: 1px solid rgba(18, 61, 115, 0.08);
}

.chat-alert-card {
  margin-top: 18px;
}

.chat-alert-list {
  display: grid;
  gap: 12px;
}

.chat-alert-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(18, 61, 115, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f5f8fc);
  text-align: left;
  cursor: pointer;
}

.chat-alert-row:hover {
  border-color: rgba(18, 61, 115, 0.18);
  box-shadow: 0 12px 24px rgba(18, 30, 45, 0.08);
}

.chat-alert-row p {
  margin: 6px 0;
}

.job-chat-badge-row {
  display: flex;
  margin: 4px 0 2px;
}

.pdf-action-row,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.connector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 4px;
}

.settings-panel {
  display: grid;
  gap: 16px;
}

.connector-status-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(18, 61, 115, 0.10);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(240, 246, 252, 0.98));
}

.connector-status-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.connector-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.connector-status-grid div {
  display: grid;
  gap: 4px;
}

.connector-status-grid span {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #6a7d8f;
}

.connector-status-grid strong {
  color: #163854;
  font-size: 0.94rem;
}

.pdf-modal-card {
  width: min(1080px, calc(100vw - 48px));
}

.pdf-preview-frame {
  width: 100%;
  min-height: 72vh;
  border: 1px solid rgba(18, 61, 115, 0.1);
  border-radius: 18px;
  background: #f1f5f9;
}

.activity-card {
  display: grid;
  gap: 12px;
}

.micro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.auto-email-badge {
  background: linear-gradient(135deg, rgba(21, 119, 184, 0.16), rgba(18, 61, 114, 0.14));
  border: 1px solid rgba(21, 119, 184, 0.16);
  color: #145d98;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.auto-email-badge-clickable {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.auto-email-badge-clickable:hover {
  transform: translateY(-1px);
  border-color: rgba(21, 119, 184, 0.3);
  box-shadow: 0 10px 18px rgba(20, 93, 152, 0.12);
}

.timeline-card {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: start;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.timeline-marker {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f8df0, #1c2fb9);
  box-shadow: 0 0 0 6px rgba(31, 141, 240, 0.12);
}

.timeline-body {
  display: grid;
  gap: 8px;
}

.timeline-title-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline-card-button {
  appearance: none;
  border: 1px solid var(--surface-border);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: inherit;
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  text-align: left;
  cursor: pointer;
}

.timeline-card-button:hover {
  border-color: rgba(18, 61, 115, 0.18);
  box-shadow: 0 12px 24px rgba(18, 30, 45, 0.08);
}

.timeline-card-button strong,
.timeline-card-button p,
.timeline-card-button small,
.timeline-card-button span {
  color: inherit;
}

.timeline-detail-modal-body {
  display: grid;
  gap: 18px;
}

.timeline-linked-record {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(18, 61, 115, 0.08);
  background: linear-gradient(180deg, #f8fbff, #edf5fd);
}

.email-log-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(18, 30, 45, 0.08);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.linked-record-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(18, 30, 45, 0.08);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.linked-record-focused {
  border-color: rgba(21, 119, 184, 0.28);
  background: linear-gradient(180deg, #f8fcff, #eef6fd);
  box-shadow: 0 18px 32px rgba(20, 93, 152, 0.12);
}

.email-log-card-focused {
  border-color: rgba(21, 119, 184, 0.28);
  background: linear-gradient(180deg, #f8fcff, #eef6fd);
  box-shadow: 0 18px 32px rgba(20, 93, 152, 0.12);
}

.activity-log-toolbar {
  display: grid;
  gap: 1rem;
}

.activity-log-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.activity-log-search-wrap input {
  flex: 1 1 320px;
  min-width: 240px;
}

.activity-log-list {
  display: grid;
  gap: 1rem;
}

.activity-log-card {
  gap: 0.9rem;
}

.activity-log-header {
  align-items: flex-start;
  gap: 1rem;
}

.activity-log-pill-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.activity-log-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.timeline-detail-spacer {
  height: 12px;
}

.tone-blue {
  background: rgba(31, 141, 240, 0.12);
  color: var(--accent);
}

.tone-green {
  background: rgba(52, 209, 15, 0.12);
  color: #1f8f0a;
}

.tone-purple {
  background: rgba(106, 50, 168, 0.12);
  color: var(--violet);
}

.tone-amber {
  background: rgba(234, 147, 0, 0.12);
  color: #9f6300;
}

.tone-slate {
  background: rgba(104, 119, 137, 0.12);
  color: #566371;
}

.field-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: #fafafa;
}

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

.full-width {
  grid-column: 1 / -1;
}

.inline-checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inline-checkbox input {
  width: auto;
}

.email-settings-card,
.email-intake-card {
  border: 1px solid var(--surface-border);
}

.email-meta {
  justify-content: space-between;
  flex-wrap: wrap;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.84rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 1380px) {
  .board-grid-top,
  .board-grid-bottom,
  .team-grid,
  .workspace-grid,
  .status-strip,
  .board-modern-header,
  .board-modern-kpis,
  .clean-board-grid,
  .tech-portal-hero,
  .overview-grid,
  .customer-portal-hero,
  .customer-kpi-grid,
  .customer-portal-grid,
  .job-kpi-grid {
    grid-template-columns: 1fr;
  }

  .login-layout,
  .login-feature-grid {
    grid-template-columns: 1fr;
  }

  .tech-job-sections,
  .tech-card-actions,
  .tech-quick-actions,
  .tech-focus-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 18px;
  }

  .content {
    padding: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .global-search-wrap {
    max-width: none;
    margin: 0;
  }

  .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .job-create-menu-panel {
    right: auto;
    left: 0;
  }

  .field-grid,
  .job-tabs,
  .member-card-grid,
  .team-kpis,
  .user-management-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .login-screen {
    padding: 16px;
  }

  .login-brand-card,
  .login-auth-card,
  .login-demo-card,
  .topbar,
  .panel,
  .modal-card,
  .job-modal-card {
    border-radius: 22px;
  }

  .login-brand-card,
  .login-auth-card,
  .login-demo-card {
    padding: 20px;
  }

  .login-simple-shell,
  .login-layout {
    width: 100%;
  }

  .login-command-logo {
    width: 100%;
  }

  .create-job-button,
  .user-badge-button,
  .topbar-actions > * {
    width: 100%;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .job-create-menu-wrap,
  .notification-wrap {
    width: 100%;
  }

  .topbar-action-button,
  .icon-button,
  .create-job-button,
  .user-badge-button,
  #logoutButton {
    min-width: 0;
    width: 100%;
    height: 48px;
    padding: 0;
    border-radius: 16px;
  }

  .topbar-button-label,
  .user-badge-copy {
    display: none;
  }

  .user-badge-button {
    padding: 0;
  }

  .user-badge-avatar {
    width: 34px;
    height: 34px;
  }

  .job-create-menu-panel {
    width: 100%;
  }

  .job-picker-bar,
  .pdf-action-row,
  .modal-actions,
  .connector-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .modal-shell,
  .job-modal-shell {
    padding: 12px;
  }

  .job-modal-toolbar,
  .panel-header,
  .inline-between,
  .hero-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-strip,
  .action-chooser {
    grid-template-columns: 1fr;
  }
}
