/* CCD — shared dark workspace and login design. */
:root {
  color-scheme: dark;
  --bg: #101214;
  --sidebar: #141719;
  --surface: #181b1e;
  --raised: #202427;
  --hover: #252a2d;
  --border: #2a2e32;
  --text: #f0f2f3;
  --muted: #939ca3;
  --subtle: #68737c;
  --mint: #b3f4d0;
  --green: #71dda3;
  --red: #f2959b;
  --amber: #eac184;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
  --accent-red: var(--red);
  --text-muted: var(--muted);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.16s,
    border-color 0.16s,
    color 0.16s,
    box-shadow 0.16s;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}
input,
select {
  width: 100%;
  min-width: 0;
  height: 42px;
  background: #121517;
  border: 1px solid #363d42;
  border-radius: 8px;
  padding: 0 12px;
}
input::placeholder {
  color: #78838c;
}
input:focus,
select:focus {
  border-color: var(--mint);
}
input[readonly] {
  color: var(--muted);
  background: #24282b;
}
select {
  cursor: pointer;
  padding-right: 32px;
}
input[type='date'] {
  min-width: 142px;
}
::selection {
  color: #101c15;
  background: var(--mint);
}
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #41484e;
  border-radius: 6px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  padding: 12px 20px;
  background: var(--mint);
  color: #15271e;
  border-radius: 8px;
  z-index: 2000;
}
.skip-link:focus {
  top: 12px;
}
.accent-text {
  color: var(--mint);
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--muted);
  display: block;
}
.live-dot,
.metric-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.metric-dot.neutral {
  background: var(--subtle);
}
.metric-dot.amber {
  background: var(--amber);
}
.muted {
  color: var(--muted) !important;
}
.danger-text {
  color: var(--red) !important;
}
.btn,
.btn-small,
.icon-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 500;
}
.btn {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 12px;
}
.btn-primary {
  color: #17271e;
  background: var(--mint);
  font-weight: 650;
}
.btn-primary:hover:not(:disabled) {
  background: #ceffe2;
  box-shadow: 0 2px 14px #b3f4d01a;
}
.btn-secondary {
  background: var(--raised);
  border-color: #343a3f;
  color: #dce1e4;
}
.btn-secondary:hover:not(:disabled) {
  background: #2b3135;
  border-color: #50595f;
}
.btn-out {
  background: #382629;
  border-color: #5e373d;
  color: #f4b0b5;
}
.btn-out:hover:not(:disabled) {
  background: #4b2c33;
  border-color: #95606a;
}
.btn-small {
  min-height: 32px;
  border: 1px solid #373e43;
  border-radius: 7px;
  padding: 6px 10px;
  background: transparent;
  color: #c6cdd2;
  font-size: 11px;
}
.btn-small:hover:not(:disabled) {
  background: var(--hover);
  color: #fff;
}
.btn-small .icon {
  width: 14px;
  height: 14px;
}
.btn-small-danger {
  color: var(--red);
  border-color: #58333a;
}
.btn-small-danger:hover:not(:disabled) {
  background: #362329;
}
.icon-button {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  padding: 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
}
.icon-button:hover:not(:disabled) {
  background: var(--hover);
  color: var(--text);
}
.text-button {
  padding: 2px 0;
  color: var(--mint);
  font-size: 11px;
  background: transparent;
  border-radius: 3px;
}
.text-button .icon {
  width: 14px;
  height: 14px;
}
.text-button:hover {
  color: #fff !important;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-loading {
  position: relative;
  pointer-events: none;
}
.btn-loading > * {
  opacity: 0.25;
}
.btn-loading:after {
  content: '';
  width: 16px;
  height: 16px;
  position: absolute;
  inset: 0;
  margin: auto;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Navigation */
.sidebar {
  width: 230px;
  height: 100dvh;
  padding: 30px 17px 0;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 0 9px 32px;
  width: fit-content;
}
.brand-mark {
  width: 37px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--mint);
  color: #1b3024;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -9px;
  padding-right: 7px;
  line-height: 1;
}
.brand-mark > span {
  transform: translateY(4px);
}
.brand-word {
  font-size: 21px;
  letter-spacing: -0.7px;
  font-weight: 750;
  line-height: 1.1;
}
.brand-word > span {
  display: block;
  margin-top: 7px;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.workspace-switch {
  padding: 12px 10px;
  border: 1px solid #32373b;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 30px;
}
.workspace-switch small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}
.workspace-icon {
  display: grid;
  place-items: center;
  background: #2c3332;
  color: #b9c4bd;
  width: 29px;
  height: 29px;
  border-radius: 6px;
}
.workspace-icon .icon {
  width: 16px;
  height: 16px;
}
.workspace-label {
  font-size: 8px;
  color: var(--muted);
  margin-left: auto;
  padding: 2px 4px;
  border: 1px solid #41474c;
  border-radius: 4px;
}
.nav-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.7px;
  color: #79858e;
  margin: 0 13px 11px;
}
.main-nav {
  display: grid;
  gap: 5px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  background: transparent;
  border-radius: 7px;
  color: #a4aeb6;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
}
.nav-link .icon {
  width: 17px;
  height: 17px;
}
.nav-link .sidebar-external-icon {
  width: 13px;
  height: 13px;
  margin-left: auto;
}
.nav-link:hover {
  background: #202628;
  color: var(--text);
}
.nav-link.active {
  color: var(--mint);
  background: #25352d;
}
.nav-current-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  margin-left: auto;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  min-width: 20px;
  padding: 1px 5px;
  text-align: center;
  border-radius: 4px;
  background: #2b3034;
  color: #afb9c0;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 50px;
}
.sidebar-tip {
  padding: 16px;
  border: 1px solid #343c39;
  border-radius: 10px;
  background: linear-gradient(130deg, #202c25, #1b201e 80%);
  margin: 0 2px 22px;
}
.tip-icon {
  width: 30px;
  height: 30px;
  color: var(--mint);
  background: #354a3a;
  border: 1px solid #49664f;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.tip-icon .icon {
  width: 16px;
  height: 16px;
}
.sidebar-tip strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
}
.sidebar-tip p {
  color: #96a69c;
  font-size: 10px;
  line-height: 1.8;
  margin: 7px 0 14px;
}
.sidebar-tip .text-button {
  width: 100%;
  justify-content: space-between;
  font-size: 10px;
}
.logout-link {
  font-size: 11px;
}
.operator-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 20px 8px;
  border-top: 1px solid var(--border);
}
.operator-profile > div {
  overflow: hidden;
}
.operator-profile strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
}
.operator-profile div > span {
  color: var(--muted);
  font-size: 9px;
}
.operator-profile > .live-dot {
  margin-left: auto;
}
.avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
  background: #303b35;
  color: #c1dec9;
  font-size: 11px;
  font-weight: 650;
}
.avatar[data-tone='1'] {
  background: #363144;
  color: #c3b5df;
}
.avatar[data-tone='2'] {
  background: #30394b;
  color: #b3c9ed;
}
.avatar[data-tone='3'] {
  background: #453731;
  color: #e2bbaa;
}
.avatar[data-tone='4'] {
  background: #42333a;
  color: #d8aebe;
}
.operator-avatar {
  border-radius: 50%;
  background: #343d34;
  color: var(--mint);
}
.app-shell {
  margin-left: 230px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  border-bottom: 1px solid var(--border);
  background: #101214ed;
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
}
.breadcrumb,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: 11px;
}
.breadcrumb-parent {
  color: var(--muted);
}
.breadcrumb .icon {
  width: 12px;
  height: 12px;
  color: var(--subtle);
}
.breadcrumb strong {
  font-weight: 500;
}
.header-date {
  color: var(--muted);
  font-size: 10px;
}
.topbar-divider {
  height: 17px;
  width: 1px;
  background: #343a3e;
}
.connection-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #bfd1c5;
  font-size: 10px;
}
.connection-status.connecting,
.connection-status.offline {
  color: var(--amber);
}
.connection-status.connecting .live-dot,
.connection-status.offline .live-dot {
  background: var(--amber);
}
.menu-toggle,
.mobile-manage {
  display: none;
}
.main-content {
  max-width: 1760px;
  padding: 32px 36px 0;
  margin: 0 auto;
}
.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-intro .eyebrow {
  color: #9ba9a1;
  font-size: 9px;
  letter-spacing: 1.7px;
  margin-bottom: 8px;
}
.page-intro h1 {
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: -1.8px;
  font-weight: 600;
  line-height: 1.25;
}
.page-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 11px;
  margin-top: 8px;
}
.page-intro .btn {
  font-size: 11px;
  min-height: 38px;
}
.page-intro .btn .icon {
  width: 15px;
  height: 15px;
}
.connection-banner {
  padding: 12px 16px;
  margin: -8px 0 20px;
  border: 1px solid #64543a;
  border-radius: 8px;
  background: #30291d;
  color: #ebc893;
  font-size: 12px;
}
/* Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric-card {
  position: relative;
  padding: 19px 20px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 11px;
  overflow: hidden;
}
.metric-label {
  color: #bac1c6;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.metric-icon {
  color: #87928b;
}
.metric-icon .icon {
  width: 17px;
  height: 17px;
}
.metric-value {
  font-size: 33px;
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1;
  margin: 19px 0 13px;
  font-variant-numeric: tabular-nums;
}
.metric-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #939ca4;
  font-size: 9px;
}
.metric-footer .metric-dot {
  width: 5px;
  height: 5px;
}
.metric-highlight {
  background: #1a2420;
  border-color: #344b3b;
}
.metric-highlight .metric-value,
.metric-highlight .metric-icon {
  color: var(--mint);
}
.metric-highlight .metric-label {
  color: #c4d2c8;
}
.metric-progress {
  height: 2px;
  background: #2a3d31;
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
}
.metric-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--mint);
  transition: width 0.6s;
}
.mobile-agent-dot.offline {
  background: var(--red);
}
/* Team and panels */
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 0;
  overflow: hidden;
}
.panel-header {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-header h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.panel-header p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.live-label {
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  letter-spacing: 0.8px;
  background: #26372e;
  border: 1px solid #354c3e;
  padding: 2px 6px;
  border-radius: 4px;
}
.live-label .live-dot {
  width: 4px;
  height: 4px;
}
.team-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px 19px;
  border-bottom: 1px solid var(--border);
}
.segmented-control {
  display: inline-flex;
  align-items: center;
  background: #101315;
  padding: 3px;
  border: 1px solid #292e32;
  border-radius: 7px;
  gap: 2px;
}
.segmented-control button {
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 10px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}
.segmented-control button.selected {
  color: #eef2ef;
  background: #303737;
  box-shadow: 0 1px 4px #0002;
}
.segmented-control button:hover:not(.selected) {
  background: #22272b;
  color: #eee;
}
.segmented-control button span {
  background: #454e4a;
  color: #cfe1d6;
  border-radius: 3px;
  font-size: 9px;
  padding: 1px 4px;
  margin-left: 3px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #333a3f;
  background: #131618;
  border-radius: 7px;
  padding: 0 10px;
}
.search-field:focus-within {
  border-color: #83b99a;
}
.search-field .icon {
  width: 14px;
  height: 14px;
  color: #7c888f;
}
.search-field input {
  height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 10px;
  outline: none;
}
.status-search {
  width: 165px;
}
.status-table-head,
.status-user-card {
  display: grid;
  grid-template-columns: minmax(125px, 1.05fr) minmax(105px, 0.9fr) minmax(135px, 1.2fr) 32px 82px;
  gap: 12px;
  align-items: center;
  padding: 0 22px;
}
.status-table-head {
  height: 37px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #89939a;
  background: #1b1f22;
  border-bottom: 1px solid #292e32;
}
.status-user-card {
  min-height: 63px;
  border-bottom: 1px solid #282d30;
}
.status-user-card:last-child {
  border-bottom: 0;
}
.status-user-card:hover {
  background: #1f2426;
}
.status-user-identity {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.status-user-identity > div {
  min-width: 0;
}
.status-user-name {
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-user-nick {
  font-size: 9px;
  color: #87939c;
  margin-top: 2px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 5px;
  font-size: 9px;
  padding: 4px 7px;
  border-radius: 5px;
  background: #2a2f34;
  color: #b7c0c7;
  white-space: nowrap;
}
.status-badge:before {
  content: '';
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-badge.kommen {
  background: #243c2e;
  color: #8ed9a9;
}
.status-badge.gehen {
  background: #3a292e;
  color: #eaa0aa;
}
.status-badge.busy {
  background: #3b3323;
  color: #e8c286;
}
.status-time {
  font-size: 10px;
  color: #d1d6da;
  overflow-wrap: anywhere;
}
.status-last-check {
  display: block;
  color: #84919b;
  font-size: 8px;
  margin-top: 3px;
}
.status-location-icon {
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #343b40;
  border-radius: 6px;
  color: #9ba9b3;
}
.status-location-icon .icon {
  width: 14px;
  height: 14px;
}
.location-unknown {
  color: #657078;
  text-align: center;
}
.status-w2p {
  justify-self: start;
  font-size: 9px;
  white-space: nowrap;
}
.status-w2p.accepted {
  color: #8ed9a9;
}
.status-w2p.unknown {
  color: #657078;
}
.panel-footer {
  min-height: 42px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
  font-size: 9px;
  color: #929da4;
}
.panel-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.panel-footer .live-dot {
  width: 4px;
  height: 4px;
}
.panel-footer .icon {
  width: 12px;
  height: 12px;
}
.panel-footer .text-button {
  font-size: 9px;
}
.empty-state {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 30px 20px;
  text-align: center;
  gap: 8px;
  color: var(--muted);
}
.empty-state > .icon {
  width: 28px;
  height: 28px;
  color: #85998c;
  margin-bottom: 8px;
}
.empty-state strong {
  font-size: 13px;
  color: #dae0dc;
  font-weight: 500;
}
.empty-state span,
.empty-state p {
  font-size: 11px;
  max-width: 330px;
  line-height: 1.7;
}
.empty-state a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.empty-msg {
  padding: 22px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  grid-column: 1/-1;
}
.loading-state > .icon {
  animation: loadingPulse 1.5s infinite;
}
@keyframes loadingPulse {
  50% {
    opacity: 0.3;
  }
}
/* Booking controls */
.control-panel {
  border-color: #3a4840;
}
.control-panel .panel-header {
  padding-bottom: 17px;
  border-bottom: 1px solid #2e3932;
  background: #1d2521;
}
.control-panel .eyebrow {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #94ad9d;
  margin-bottom: 5px;
}
.control-panel h2 {
  font-size: 17px;
}
.control-icon {
  width: 37px;
  height: 37px;
  border-radius: 10px;
  background: #304438;
  border: 1px solid #455e4d;
  color: var(--mint);
  display: grid;
  place-items: center;
}
.control-icon .icon {
  width: 19px;
  height: 19px;
}
.control-body {
  padding: 18px 18px 13px;
}
.selection-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 11px;
}
.selection-title label {
  font-size: 10px;
  font-weight: 500;
}
.selection-title .text-button {
  font-size: 9px;
}
.users-checklist {
  max-height: none;
  overflow: visible;
  padding: 6px 0 1px;
  margin-top: 5px;
}
.user-check-card {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  min-height: 46px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  margin-bottom: 3px;
}
.user-check-card:hover {
  background: #22292a;
}
.user-check-card.selected {
  background: #27372e;
  border-color: #385742;
}
.user-check-card:focus-within {
  outline: 2px solid var(--mint);
  outline-offset: -2px;
}
.user-check-card > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  padding: 0;
}
.custom-checkbox {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid #536059;
  order: 3;
  margin-left: auto;
  flex-shrink: 0;
}
.custom-checkbox .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.5;
  opacity: 0;
}
.selected .custom-checkbox {
  background: var(--mint);
  border-color: var(--mint);
  color: #254330;
}
.selected .custom-checkbox .icon {
  opacity: 1;
}
.user-check-card .avatar {
  width: 29px;
  height: 29px;
  font-size: 10px;
  border-radius: 8px;
}
.user-item-info {
  min-width: 0;
}
.user-item-name {
  font-size: 10px;
  font-weight: 500;
}
.user-item-email {
  color: #91a198;
  font-size: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 188px;
}
.selected-user-count {
  color: var(--muted);
  font-size: 9px;
  margin: 13px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.selected-user-count strong {
  color: var(--mint);
  font-weight: 500;
}
.selected-user-count > span:last-child {
  color: #87938b;
}
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.action-grid .btn {
  font-size: 10px;
  min-height: 50px;
  padding: 9px;
}
.action-grid .btn > span {
  text-align: left;
}
.action-grid .btn small {
  display: block;
  font-size: 8px;
  opacity: 0.7;
  margin-top: 2px;
  font-weight: 400;
}
.action-grid .btn .icon {
  width: 17px;
  height: 17px;
}
.action-grid .btn-secondary {
  min-height: 34px;
  font-size: 10px;
}
.btn-full {
  grid-column: 1/-1;
}
.action-hint {
  font-size: 9px;
  color: #8f9c94;
  line-height: 1.6;
  margin: 11px 2px 1px;
}
.control-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 13px 18px;
  background: #161a18;
  border-top: 1px solid #2c3530;
}
.control-footer > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #8a9890;
  font-size: 8px;
}
.control-footer > span .icon {
  width: 12px;
  height: 12px;
}
.control-footer .text-button {
  font-size: 10px;
}
.mobile-user-dropdown {
  display: none;
}
/* Agents and activity */
.activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
  align-items: stretch;
}
.agents-panel,
.log-panel {
  display: flex;
  flex-direction: column;
}
.count-tag {
  padding: 1px 6px;
  border: 1px solid #3b4348;
  border-radius: 5px;
  color: #b9c4cc;
  font-size: 9px;
  font-weight: 500;
}
.agent-grid {
  flex: 1;
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 330px;
  overflow: auto;
}
.agent-grid .empty-state {
  min-height: 163px;
}
.agent-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border: 1px solid #30393a;
  border-radius: 9px;
  background: #1b2120;
}
.agent-card-item.offline {
  background: #1c1e21;
  border-color: #303336;
}
.agent-machine-icon {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #2a3930;
  color: #a6cab2;
  flex-shrink: 0;
}
.offline .agent-machine-icon {
  background: #303337;
  color: #9ba2a8;
}
.agent-machine-icon .icon {
  width: 18px;
  height: 18px;
}
.agent-info {
  min-width: 0;
  flex: 1;
}
.agent-name {
  font-size: 10px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.agent-ip {
  font-family: var(--mono);
  font-size: 8px;
  color: #919f96;
  margin-top: 4px;
}
.agent-last-seen {
  color: #89968e;
  font-size: 8px;
  margin-top: 4px;
}
.agent-meta {
  display: flex;
  align-items: center;
  gap: 2px;
}
.agent-badge {
  font-size: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  background: #2a3a2f;
  padding: 3px 6px;
  border: 1px solid #3a5242;
  border-radius: 5px;
}
.agent-badge:before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.agent-badge.busy {
  color: var(--amber);
  background: #3b3323;
  border-color: #51472f;
}
.agent-badge.offline {
  color: #a1a8ae;
  background: #2d3034;
  border-color: #42474b;
}
.agent-meta .icon-button {
  width: 25px;
  height: 25px;
}
.agent-meta .icon-button .icon {
  width: 13px;
  height: 13px;
}
.agents-panel > .panel-footer {
  margin-top: auto;
}
.log-panel {
  background: #15181b;
}
.log-panel .panel-header {
  padding-top: 17px;
  padding-bottom: 17px;
}
.terminal-icon {
  color: #8f9ca7;
}
.terminal-icon .icon {
  width: 16px;
  height: 16px;
}
.log-panel .title-line > .live-dot {
  width: 4px;
  height: 4px;
  margin-left: 3px;
}
.terminal {
  flex: 1;
  height: 222px;
  min-height: 185px;
  max-height: 253px;
  padding: 8px 21px 18px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.8;
  scrollbar-gutter: stable;
}
.log-entry {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 3px 0;
  color: #a1adb8;
}
.log-entry > span:last-child {
  overflow-wrap: anywhere;
}
.log-time {
  color: #788691;
  font-size: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.log-entry.system {
  color: #a4b9d4;
}
.log-entry.success {
  color: #a4dbb8;
}
.log-entry.warning {
  color: var(--amber);
}
.log-entry.error {
  color: var(--red);
}
.log-panel .panel-footer {
  background: #1a1e21;
}
/* Evidence gallery */
.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0 22px 19px;
  border-bottom: 1px solid var(--border);
}
.gallery-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-field {
  display: flex;
  align-items: center;
  border: 1px solid #353d42;
  border-radius: 7px;
  padding-left: 10px;
  background: #131618;
}
.filter-field > span {
  color: #8f9da5;
  font-size: 10px;
  padding-right: 10px;
  border-right: 1px solid #3b4349;
}
.filter-field select,
.filter-field input {
  width: auto;
  height: 33px;
  font-size: 10px;
  border: 0;
  background: transparent;
}
.gallery-filters > .text-button {
  margin-left: 3px;
  font-size: 10px;
}
.gallery-note {
  color: #8c9aa3;
  font-size: 9px;
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 21px 22px 22px;
}
.screenshot-item {
  position: relative;
  min-width: 0;
  border-radius: 9px;
  overflow: hidden;
  background: #1f2428;
  border: 1px solid #333b41;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.screenshot-item:hover {
  border-color: #708c7c;
  transform: translateY(-2px);
}
.screenshot-open {
  display: block;
  padding: 0;
  width: 100%;
  background: transparent;
  text-align: left;
}
.screenshot-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: top;
  display: block;
  background: #292f35;
}
.screenshot-item img.image-error {
  object-fit: contain;
  color: var(--muted);
}
.screenshot-overlay {
  position: absolute;
  left: 9px;
  top: 9px;
  max-width: calc(100% - 46px);
  padding: 3px 7px;
  border-radius: 5px;
  background: #10171be8;
  border: 1px solid #6d7e7480;
  color: #c6e9d3;
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.screenshot-caption {
  padding: 11px 12px;
}
.screenshot-caption strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #d9e2e7;
}
.screenshot-caption span {
  color: #91a0a9;
  font-size: 8px;
  display: block;
  margin-top: 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.screenshot-delete-btn {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 28px;
  height: 28px;
  color: #f5b7bd;
  background: #251c20eb;
  border: 1px solid #73515c;
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.screenshot-delete-btn .icon {
  width: 13px;
  height: 13px;
}
.screenshot-delete-btn:hover {
  background: #60313d;
}
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 25px 0 26px;
  color: #78858e;
  font-size: 9px;
}
.page-footer strong {
  font-size: 11px;
  letter-spacing: -0.5px;
  color: #a0aba4;
  margin-right: 10px;
}
/* Dialogs */
body.modal-open {
  overflow: hidden;
}
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050809bf;
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 30px;
}
.modal-content {
  position: relative;
  background: #1a1f22;
  border: 1px solid #424c50;
  border-radius: 16px;
  padding: 30px;
  width: 100%;
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
  box-shadow: 0 30px 90px #0008;
  animation: dialogIn 0.18s ease-out;
}
@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-close {
  position: absolute;
  right: 17px;
  top: 17px;
  background: #2d3539;
}
.modal-content > .eyebrow {
  color: #a1beac;
  margin-bottom: 8px;
}
.modal-content > h2 {
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.8px;
  padding-right: 25px;
}
.modal-description {
  color: #a0adb5;
  margin: 8px 0 25px;
  font-size: 12px;
}
.user-modal-box {
  max-width: 1040px;
}
.user-manage-form {
  border: 1px solid #35423b;
  border-radius: 10px;
  padding: 20px;
  background: #171e1a;
  margin-bottom: 24px;
}
.form-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #bdd5c6;
  margin-bottom: 18px;
}
.form-section-heading h3 {
  font-size: 13px;
  font-weight: 500;
}
.form-section-heading .icon {
  width: 16px;
  height: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.form-group label {
  font-size: 11px;
  color: #b6c3bb;
  font-weight: 500;
}
.form-group input {
  font-size: 12px;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 45px;
}
.password-field .icon-button {
  position: absolute;
  top: 4px;
  right: 5px;
}
.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.user-table-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #354047;
  border-radius: 9px;
}
.user-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
}
.user-table th {
  position: sticky;
  top: 0;
  background: #252d32;
  color: #a5b5bf;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 500;
  z-index: 1;
}
.user-table th,
.user-table td {
  padding: 12px;
  border-bottom: 1px solid #303940;
}
.user-table tr:last-child td {
  border-bottom: none;
}
.user-table tr:hover td {
  background: #222a2e;
}
.user-table td {
  max-width: 180px;
  overflow-wrap: anywhere;
}
.user-table td b {
  font-weight: 500;
}
.user-active,
.user-inactive {
  display: block;
  font-size: 9px;
  color: var(--green);
  margin-top: 3px;
}
.user-inactive {
  color: var(--red);
}
.table-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}
.table-actions .btn-small {
  font-size: 9px;
}
.table-actions .icon-button {
  width: 29px;
  height: 29px;
}
.table-actions .icon {
  width: 14px;
  height: 14px;
}
.image-modal-box {
  padding: 52px 16px 16px;
  width: fit-content;
  max-width: 1200px;
}
.image-modal-box img {
  max-width: 100%;
  max-height: calc(100dvh - 190px);
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 7px;
}
.image-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 14px 3px 0;
}
.image-modal-footer p {
  font-size: 10px;
  color: #b8c3cc;
  overflow-wrap: anywhere;
}
.rules-modal-box {
  max-width: 680px;
}
.rules-list {
  list-style: none;
  margin: 0 0 25px;
  padding: 0;
  counter-reset: rules;
}
.rules-list li {
  counter-increment: rules;
  position: relative;
  padding: 0 0 18px 38px;
  margin-bottom: 18px;
  border-bottom: 1px solid #354037;
}
.rules-list li:last-child {
  padding-bottom: 0;
  border: 0;
}
.rules-list li:before {
  content: counter(rules, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 11px;
  color: #9fbea9;
  font-family: var(--mono);
}
.rules-list strong {
  font-size: 12px;
  font-weight: 550;
}
.rules-list p {
  color: #a7b2b9;
  font-size: 11px;
  line-height: 1.8;
  margin-top: 6px;
}
kbd {
  border: 1px solid #72816f;
  background: #2e3b2e;
  border-radius: 4px;
  padding: 1px 5px;
  color: #d8f1d6;
}
.community-card {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: #27392e;
  border: 1px solid #45634e;
  border-radius: 10px;
}
.community-card > .icon {
  color: var(--mint);
  width: 24px;
  height: 24px;
}
.community-card h3 {
  font-size: 13px;
  font-weight: 500;
}
.community-card p {
  color: #a1b5a8;
  font-size: 11px;
  margin: 5px 0 12px;
}
.community-card a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--mint);
  font-size: 11px;
}
.community-card a .icon {
  width: 14px;
  height: 14px;
}
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(380px, calc(100vw - 32px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px 16px;
  border: 1px solid #456153;
  border-radius: 10px;
  background: #233129;
  box-shadow: 0 8px 30px #0007;
  color: #e0ebe4;
  font-size: 12px;
  pointer-events: auto;
  animation: dialogIn 0.2s ease-out;
}
.toast > .icon {
  margin-top: 1px;
  color: var(--mint);
}
.toast-warning {
  background: #362d20;
  border-color: #715b38;
}
.toast-error {
  background: #3e272e;
  border-color: #82525f;
}
.toast-error > .icon {
  color: var(--red);
}
.toast-warning > .icon {
  color: var(--amber);
}
.toast.fade-out {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
/* Login */
.login-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.login-story {
  padding: 45px 60px 30px;
  border-right: 1px solid #354039;
  background: #1a241f;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: '';
  width: 650px;
  height: 650px;
  border: 1px solid #b3f4d00a;
  border-radius: 50%;
  position: absolute;
  bottom: -340px;
  right: -240px;
  box-shadow:
    0 0 0 70px #b3f4d003,
    0 0 0 140px #b3f4d003;
  pointer-events: none;
}
.login-story .brand {
  margin: 0;
}
.login-story-content {
  margin: auto 0;
  padding: 65px 0 55px;
  position: relative;
  z-index: 1;
}
.login-story-content > .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a4b7a9;
  font-size: 9px;
}
.login-story-content h1 {
  margin: 24px 0 22px;
  font-size: clamp(36px, 4.2vw, 65px);
  font-weight: 500;
  letter-spacing: -3px;
  line-height: 1.12;
}
.login-story-content h1 > span {
  color: var(--mint);
}
.login-story-content > p {
  max-width: 345px;
  color: #a5b5ab;
  font-size: 13px;
  line-height: 1.9;
}
.login-visual {
  max-width: 420px;
  padding: 22px;
  margin-top: 42px;
  background: #202e26;
  border: 1px solid #475c4c;
  border-radius: 13px;
  transform: rotate(-2deg);
  box-shadow: 0 20px 40px #07120d35;
}
.visual-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.visual-icon {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--mint);
  background: #3b5141;
}
.visual-icon .icon {
  width: 15px;
  height: 15px;
}
.visual-dots {
  margin-left: auto;
  font-size: 22px;
  line-height: 1;
  color: #9cae9f;
}
.visual-timeline {
  display: flex;
  align-items: center;
  padding: 34px 18px 12px;
}
.timeline-point {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #4b6151;
  color: #90a195;
  flex-shrink: 0;
}
.timeline-point.complete {
  background: var(--mint);
  color: #264633;
  border-color: var(--mint);
}
.timeline-point.current {
  color: var(--mint);
  box-shadow: 0 0 0 5px #3b554440;
  border-color: #88b095;
}
.timeline-line {
  height: 1px;
  background: #516c59;
  flex: 1;
}
.visual-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  padding: 0 13px 26px;
  color: #a9beb0;
}
.visual-foot {
  border-top: 1px solid #405347;
  padding-top: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #a0b5a6;
  font-size: 9px;
}
.visual-foot .icon {
  width: 13px;
  height: 13px;
}
.visual-foot > .live-dot {
  margin-left: auto;
}
.login-story-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #8da294;
  font-size: 8px;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}
.login-story-footer > span:last-child {
  display: flex;
  gap: 8px;
  align-items: center;
}
.login-story-footer .icon {
  width: 12px;
  height: 12px;
}
.login-form-side {
  padding: 70px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.login-card {
  width: 100%;
  max-width: 360px;
}
.login-symbol {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #46554b;
  color: var(--mint);
  background: #25362b;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
}
.login-symbol .icon {
  width: 21px;
  height: 21px;
}
.login-card .eyebrow {
  font-size: 9px;
  color: #98aaa0;
  margin-bottom: 12px;
}
.login-card h2 {
  font-size: 28px;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -1px;
}
.login-card .desc {
  color: #94a1a9;
  margin-top: 12px;
  font-size: 12px;
}
.login-form {
  display: grid;
  gap: 22px;
  margin-top: 35px;
}
.login-form input,
.login-form select {
  height: 46px;
  font-size: 12px;
}
.login-form label {
  font-size: 11px;
  color: #c2cdc6;
}
.btn-login {
  height: 46px;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 4px;
}
.login-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 9px;
  color: #8a9790;
}
.login-note .icon {
  width: 12px;
  height: 12px;
}
.login-side-footer {
  position: absolute;
  bottom: 31px;
  color: #8b9890;
  font-size: 9px;
}
.error-msg {
  padding: 12px 14px;
  border: 1px solid #7b4b53;
  border-radius: 7px;
  color: #f2aab4;
  background: #38242a;
  font-size: 11px;
  margin-top: 24px;
}
.user-item-name,
.user-item-email {
  display: block;
}
.user-item-name {
  font-size: 12px;
}
.user-item-email {
  font-size: 9px;
}
.status-user-name {
  font-size: 12px;
}
.status-user-nick {
  font-size: 10px;
}
.status-badge {
  font-size: 10px;
}
.status-time {
  font-size: 11px;
}
.status-last-check {
  font-size: 9px;
}
.nav-link:not(.active) .nav-current-dot {
  display: none;
}
/* Responsive layouts preserve all controls. */
@media (min-width: 1650px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr) 365px;
  }
  .status-user-card {
    min-height: 68px;
  }
  .status-user-name {
    font-size: 12px;
  }
  .status-time {
    font-size: 11px;
  }
  .status-badge {
    font-size: 10px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 205px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .app-shell {
    margin-left: 205px;
  }
  .main-content {
    padding: 26px 24px 0;
  }
  .topbar {
    padding: 0 24px;
  }
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
  }
  .metrics-grid {
    gap: 12px;
  }
  .metric-card {
    padding: 16px;
  }
  .metric-label {
    font-size: 10px;
  }
  .panel-header {
    padding: 18px;
  }
  .team-toolbar {
    padding: 0 18px 15px;
  }
  .status-search {
    width: 100%;
  }
  .status-table-head,
  .status-user-card {
    grid-template-columns: minmax(100px, 1fr) 103px minmax(85px, 1fr) 72px;
    gap: 8px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .status-table-head > span:nth-child(4) {
    display: none;
  }
  .status-user-card {
    position: relative;
  }
  .status-user-card > .status-location-icon {
    position: absolute;
    right: 14px;
    top: 7px;
    width: 18px;
    height: 18px;
    background: #29332d;
    border: 0;
  }
  .status-user-card > .location-unknown {
    display: none;
  }
  .status-location-icon .icon {
    width: 11px;
    height: 11px;
  }
  .status-time {
    font-size: 9px;
    padding-right: 12px;
  }
  .status-user-identity {
    gap: 7px;
  }
  .status-user-identity .avatar {
    width: 28px;
    height: 28px;
    font-size: 10px;
    border-radius: 8px;
  }
  .status-user-name {
    font-size: 10px;
  }
  .screenshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 190px;
  }
  .app-shell {
    margin-left: 190px;
  }
  .workspace-switch {
    padding: 10px 7px;
    font-size: 10px;
  }
  .workspace-label {
    display: none;
  }
  .main-content {
    padding: 24px 20px 0;
  }
  .topbar {
    padding: 0 20px;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .control-panel {
    grid-row: 1;
  }
  .control-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
  .selection-title {
    grid-column: 1;
  }
  .user-selection-list {
    grid-column: 1;
    grid-row: 2/5;
  }
  .selected-user-count {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }
  .action-grid {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }
  .action-hint {
    grid-column: 2;
  }
  .status-search {
    width: 180px;
  }
  .status-table-head,
  .status-user-card {
    grid-template-columns: minmax(115px, 1fr) minmax(115px, 1fr) minmax(130px, 1.2fr) 30px 82px;
  }
  .status-table-head > span:nth-child(4) {
    display: block;
  }
  .status-user-card > .status-location-icon {
    position: static;
    width: 27px;
    height: 27px;
    border: 1px solid #344139;
  }
  .status-location-icon .icon {
    width: 14px;
    height: 14px;
  }
  .status-user-card > .location-unknown {
    display: block;
  }
  .activity-grid {
    grid-template-columns: 1fr;
  }
  .agent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .agent-meta {
    flex-direction: column;
  }
  .metrics-grid {
    gap: 9px;
  }
  .metric-card {
    padding: 13px 12px;
  }
  .metric-label {
    font-size: 9px;
  }
  .metric-icon .icon {
    width: 14px;
    height: 14px;
  }
  .metric-footer {
    font-size: 8px;
  }
  .metric-value {
    font-size: 28px;
    margin-top: 16px;
  }
  .login-story {
    padding: 40px 35px 25px;
  }
  .login-story-content h1 {
    font-size: 44px;
  }
  .login-story-footer > span:last-child {
    display: none;
  }
}
@media (max-width: 768px) {
  html {
    scroll-padding-top: 82px;
  }
  .sidebar {
    width: 250px;
    transform: translateX(-100%);
    transition: transform 0.2s;
    padding: 25px 18px 0;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: #0009;
    backdrop-filter: blur(3px);
    z-index: 90;
  }
  .sidebar-bottom {
    padding-top: 30px;
  }
  .app-shell {
    margin-left: 0;
  }
  .topbar {
    height: 61px;
    padding: 0 16px;
  }
  .menu-toggle,
  .mobile-manage {
    display: inline-flex;
  }
  .breadcrumb {
    gap: 8px;
  }
  .breadcrumb .menu-toggle .icon {
    width: 19px;
    height: 19px;
    color: #bcc9c1;
  }
  .breadcrumb-parent,
  .breadcrumb > .icon {
    display: none;
  }
  .topbar-right {
    gap: 10px;
  }
  .header-date,
  .topbar-divider {
    display: none;
  }
  .main-content {
    padding: 25px 16px 0;
  }
  .page-intro {
    align-items: flex-start;
    margin-bottom: 23px;
    gap: 10px;
  }
  .page-intro h1 {
    font-size: 32px;
    letter-spacing: -1.4px;
  }
  .page-intro .eyebrow {
    font-size: 8px;
    letter-spacing: 1.1px;
  }
  .page-intro p:not(.eyebrow) {
    font-size: 10px;
    max-width: 225px;
  }
  .page-intro > .btn {
    padding: 10px;
    margin-top: 22px;
  }
  .page-intro > .btn span {
    display: none;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
  }
  .metric-card {
    padding: 15px 16px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-value {
    font-size: 30px;
    margin: 14px 0 11px;
  }
  .metric-footer {
    font-size: 8px;
  }
  .workspace-grid {
    gap: 18px;
    margin-bottom: 18px;
  }
  .control-body {
    display: block;
    padding: 18px;
  }
  .mobile-user-dropdown {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .mobile-user-dropdown select {
    font-size: 12px;
  }
  .mobile-user-dropdown .text-button {
    font-size: 9px;
  }
  .user-selection-list {
    display: none;
    margin-top: 12px;
  }
  .user-selection-list.is-expanded {
    display: block;
  }
  .user-item-name {
    font-size: 12px;
  }
  .user-item-email {
    font-size: 9px;
    max-width: none;
  }
  .user-check-card {
    min-height: 50px;
  }
  .selected-user-count {
    margin: 14px 0;
  }
  .action-grid .btn {
    min-height: 52px;
    font-size: 12px;
  }
  .action-grid .btn-secondary {
    min-height: 39px;
    font-size: 11px;
  }
  .action-grid .btn small {
    font-size: 9px;
  }
  .control-footer > span {
    font-size: 9px;
  }
  .selection-title label {
    font-size: 11px;
  }
  .selection-title .text-button {
    font-size: 10px;
  }
  .status-search {
    width: 100%;
  }
  .panel-header {
    padding: 18px 16px;
    gap: 7px;
  }
  .panel-header h2 {
    font-size: 13px;
  }
  .panel-header p {
    font-size: 9px;
  }
  .panel-actions {
    gap: 1px;
  }
  .panel-actions .btn-small {
    padding: 6px 8px;
    font-size: 10px;
  }
  .title-line {
    gap: 7px;
  }
  .team-toolbar {
    padding: 0 16px 15px;
    gap: 10px;
  }
  .segmented-control {
    width: 100%;
  }
  .segmented-control button {
    flex: 1;
    min-height: 32px;
    font-size: 10px;
  }
  .search-field input {
    height: 38px;
    font-size: 11px;
  }
  .status-table-head {
    display: none;
  }
  .status-user-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    position: relative;
    padding: 15px 16px;
    gap: 8px 12px;
  }
  .status-user-identity {
    grid-column: 1;
    gap: 9px;
  }
  .status-user-identity .avatar {
    width: 33px;
    height: 33px;
    font-size: 11px;
  }
  .status-user-name {
    font-size: 12px;
  }
  .status-user-nick {
    font-size: 9px;
  }
  .status-badge {
    grid-column: 2;
    justify-self: end;
    font-size: 9px;
  }
  .status-time {
    grid-column: 1;
    font-size: 10px;
    padding-left: 42px;
  }
  .status-last-check {
    font-size: 8px;
  }
  .status-user-card > .status-location-icon {
    grid-column: 2;
    justify-self: end;
  }
  .status-w2p {
    grid-column: 1 / -1;
    margin-left: 42px;
  }
  .status-user-card > .location-unknown {
    display: none;
  }
  .panel-footer {
    padding: 12px 16px;
    font-size: 8px;
  }
  .activity-grid {
    gap: 18px;
    margin-bottom: 18px;
  }
  .agent-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 16px;
  }
  .agent-meta {
    flex-direction: row;
  }
  .agent-name {
    font-size: 11px;
  }
  .agent-ip {
    font-size: 9px;
  }
  .agent-last-seen {
    font-size: 8px;
  }
  .terminal {
    font-size: 10px;
    padding: 0 16px 16px;
    min-height: 210px;
  }
  .log-entry {
    gap: 8px;
  }
  .gallery-toolbar {
    padding: 0 16px 16px;
  }
  .gallery-filters {
    width: 100%;
    gap: 9px;
  }
  .filter-field {
    flex: 1;
    padding-left: 9px;
  }
  .filter-field select,
  .filter-field input {
    min-width: 0;
    width: 100%;
    height: 38px;
  }
  .filter-field > span {
    display: none;
  }
  .gallery-filters .text-button {
    font-size: 9px;
    margin-left: auto;
  }
  .gallery-note {
    font-size: 8px;
  }
  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
    gap: 11px;
  }
  .screenshot-caption {
    padding: 10px;
  }
  .screenshot-caption strong {
    font-size: 9px;
  }
  .screenshot-caption span {
    font-size: 8px;
  }
  .page-footer {
    font-size: 8px;
    padding: 22px 0;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .modal {
    padding: 12px;
  }
  .modal-content {
    padding: 25px 20px;
    max-height: calc(100dvh - 24px);
    border-radius: 12px;
  }
  .modal-content > h2 {
    font-size: 23px;
  }
  .modal-content > .eyebrow {
    font-size: 8px;
  }
  .modal-description {
    font-size: 11px;
  }
  .user-manage-form {
    padding: 16px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .form-group input,
  .form-group select {
    font-size: 16px;
  }
  .user-table {
    min-width: 650px;
  }
  .image-modal-box {
    padding: 53px 10px 14px;
  }
  .image-modal-footer {
    align-items: flex-start;
  }
  .image-modal-footer .btn-small {
    font-size: 9px;
  }
  .toast-container {
    bottom: 16px;
    right: 16px;
  }
  .toast {
    font-size: 11px;
  }
  .login-layout {
    display: flex;
    flex-direction: column;
  }
  .login-story {
    padding: 25px;
    border: 0;
    border-bottom: 1px solid #3c4b40;
  }
  .login-story .brand {
    margin: 0;
  }
  .login-story-content {
    padding: 35px 0 4px;
  }
  .login-story-content > .eyebrow {
    font-size: 8px;
  }
  .login-story-content h1 {
    font-size: 37px;
    letter-spacing: -1.8px;
    margin: 17px 0 15px;
  }
  .login-story-content > p {
    font-size: 11px;
    max-width: 300px;
  }
  .login-visual,
  .login-story-footer {
    display: none;
  }
  .login-form-side {
    padding: 35px 25px 65px;
  }
  .login-symbol {
    display: none;
  }
  .login-card h2 {
    font-size: 25px;
  }
  .login-card .eyebrow {
    font-size: 8px;
  }
  .login-form {
    margin-top: 25px;
    gap: 18px;
  }
  .login-form select,
  .login-form input {
    font-size: 16px;
  }
  .login-side-footer {
    bottom: 22px;
  }
}
@media (max-width: 360px) {
  .main-content {
    padding-left: 11px;
    padding-right: 11px;
  }
  .metric-card {
    padding: 13px 12px;
  }
  .panel-actions .btn-small .icon {
    display: none;
  }
  .live-label {
    display: none;
  }
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* Optional WhatsApp contact details */
.optional-label {
  color: var(--muted);
  font-size: 10px;
  margin-left: 5px;
  font-weight: 400;
}
.field-hint {
  color: #9aad9f;
  font-size: 10px;
  line-height: 1.6;
}
.phone-form-row {
  align-items: start;
  margin-top: 20px;
}
.phone-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid #3e5747;
  background: #223329;
  border-radius: 9px;
}
.phone-notice > .icon {
  color: var(--mint);
  width: 19px;
  height: 19px;
  margin-top: 2px;
}
.phone-notice strong {
  font-size: 11px;
  font-weight: 500;
  color: #d9eade;
}
.phone-notice p {
  font-size: 10px;
  line-height: 1.7;
  color: #a8bbaf;
  margin-top: 4px;
}
.user-phone {
  font-variant-numeric: tabular-nums;
  min-width: 120px;
}
@media (max-width: 768px) {
  .phone-notice p,
  .field-hint {
    font-size: 11px;
  }
  .user-table {
    min-width: 790px;
  }
}
.ultimate-panel { grid-column: 1 / -1; }
.ultimate-body { padding: 20px 22px; }
.ultimate-routing { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.ultimate-routing > div { display: grid; gap: 6px; padding: 16px; border: 1px solid #354047; border-radius: 9px; background: #171b1e; }
.ultimate-routing strong { color: #8ed9a9; }
.ultimate-routing span, .ultimate-task span { color: #aab3ba; font-size: 12px; }
.ultimate-schedule { border: 1px solid #354047; border-radius: 9px; padding: 18px; margin: 20px 0; }
.ultimate-schedule legend { color: #8ed9a9; padding: 0 8px; font-weight: 600; }
.ultimate-checks { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0; }
.ultimate-checks label { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.ultimate-checks input[type="checkbox"] { width: 16px; height: 16px; accent-color: #8ed9a9; }
.ultimate-task { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid #354047; }
.ultimate-task > div { display: grid; gap: 5px; }
.ultimate-task strong { font-size: 12px; }
@media (max-width: 560px) { .ultimate-routing { grid-template-columns: 1fr; } .ultimate-task { align-items: start; } }
.mode-nav { display: grid; gap: 12px; margin-top: 12px; }
.mode-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 17px 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); text-align: left; }
.mode-link > span { display: grid; gap: 4px; }
.mode-link strong { font-size: 12px; }
.mode-link small { color: var(--muted); font-size: 10px; }
.mode-link .icon { width: 22px; height: 22px; color: var(--muted); }
.mode-link.active { background: #24392e; border-color: #416b52; color: var(--mint); }
.mode-link.active .icon { color: var(--mint); }
.mode-link:disabled { opacity: .5; cursor: default; }
.home-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.8fr); gap: 20px; margin-bottom: 22px; }
.home-schedule-panel { grid-column: 1 / -1; }
.home-schedule-body { padding: 24px; }
.schedule-state { display: inline-block; padding: 6px 12px; border-radius: 7px; background: var(--raised); color: var(--muted); font-size: 12px; }
.schedule-state.active { color: var(--mint); background: #24392e; }
.home-times { display: flex; align-items: center; gap: 40px; margin: 24px 0 14px; }
.home-times > div { display: grid; gap: 5px; }
.home-times strong { font-size: 38px; line-height: 1.2; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.home-times span { color: var(--muted); font-size: 12px; }
.home-times .home-time-arrow { color: var(--mint); font-size: 24px; }
.home-schedule-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
body[data-view="server"] .team-toolbar { display: none; }
body[data-view="server"] .control-body .user-selection-header,
body[data-view="server"] .control-body .user-search,
body[data-view="server"] #userSelectionList,
body[data-view="server"] .mobile-user-selection { display: none; }
body[data-view="server"] .user-select-heading,
body[data-view="server"] .mobile-user-dropdown,
body[data-view="server"] .selected-user-count,
body[data-view="server"] .control-footer,
body[data-view="server"] .gallery-filters > label:first-child { display: none; }
.home-grid .home-schedule-panel { order: 0; }
.home-grid .team-panel { order: 1; }
.home-grid .control-panel { order: 2; }
@media(max-width:1050px) { .home-grid { grid-template-columns: minmax(0,1fr); } }
@media(max-width:768px) { .home-grid { gap: 14px; } .home-times { gap: 28px; } .home-times strong { font-size: 34px; } .topbar-right #btnRefreshAll { padding: 8px 10px; font-size: 10px; } }

.home-grid { grid-template-columns: minmax(0,1fr); }
.personal-status-body { padding: 24px; }
.personal-user { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.personal-user > div { display: grid; gap: 4px; }
.personal-user > div > span { color: var(--muted); font-size: 11px; }
.personal-user > .schedule-state { margin-left: auto; }

@media(max-width:768px) {
  .topbar { height: auto; min-height: 61px; align-items: flex-start; gap: 8px; padding: 12px 16px; }
  .topbar-right { flex: 1; min-width: 0; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .topbar-right .agent-download { padding: 8px 10px; font-size: 10px; }
}
