@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700;800;900&display=swap");

:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-soft: rgba(255, 255, 255, 0.48);
  --panel-strong: rgba(255, 255, 255, 0.84);
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.18);
  --text: #2b2f33;
  --muted: #4a4f55;
  --muted-soft: #67707a;
  --primary: #0a6df0;
  --primary-dark: #0a345f;
  --primary-soft: rgba(10, 109, 240, 0.12);
  --danger: #ba2d2d;
  --danger-soft: rgba(255, 82, 82, 0.12);
  --ok: #2a6f44;
  --team-a: #0a6df0;
  --team-b: #2a6f44;
  --team-c: #7a6400;
  --glass-border: rgba(0, 0, 0, 0.12);
  --shadow: 0 6px 18px rgba(2, 6, 23, 0.12);
  --shadow-soft: 0 10px 24px rgba(2, 6, 23, 0.08);
  --radius: 12px;
  --radius-sm: 10px;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Noto Sans", "Segoe UI Variable", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--text);
  background: transparent;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(247, 249, 252, 0.64) 0%, rgba(238, 242, 247, 0.78) 100%),
    url("https://cdn-assets-eu.frontify.com/s3/frontify-enterprise-files-eu/eyJwYXRoIjoibmVzdGxlXC9maWxlXC85WHplbjR4UVh4Z1hoMlV0UW5QZC5qcGcifQ:nestle:OO6m2qZgXRffvTAsIZU1XXkm05CsFPzkEh3QQDCmDI8") center / cover no-repeat,
    linear-gradient(180deg, #f5e6d3 0%, #fff 100%);
  filter: saturate(1) brightness(1);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.26), transparent 46%);
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(10, 109, 240, 0.42);
  outline-offset: 2px;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(10, 109, 240, 0.24);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(10, 109, 240, 0.95), rgba(10, 109, 240, 0.74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 20px rgba(10, 109, 240, 0.14);
  color: #fff;
  font-weight: 800;
}

.brand-row h1,
.chat-header h1,
.dashboard-header h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.brand-row p,
.chat-header p,
.dashboard-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-panel {
  width: min(440px, calc(100vw - 28px));
  padding: 24px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(8px) saturate(135%);
  box-shadow: var(--shadow);
}

.login-form,
#pinForm {
  display: grid;
  gap: 12px;
}

.login-form {
  margin-top: 24px;
}

label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
  color: var(--text);
  outline: none;
}

input,
select {
  height: 40px;
  padding: 0 11px;
}

textarea {
  min-height: 86px;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.4;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.14);
}

button,
.ghost-button,
.danger-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(10, 109, 240, 0.24);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(10, 109, 240, 0.96), rgba(10, 109, 240, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 8px 16px rgba(10, 109, 240, 0.12);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

button:hover,
.ghost-button:hover,
.danger-button:hover {
  filter: brightness(1.02);
}

.ghost-button {
  border-color: rgba(0, 0, 0, 0.15);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.44));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 8px 16px rgba(2, 6, 23, 0.08);
  color: var(--text);
}

.danger-button {
  border-color: rgba(186, 45, 45, 0.26);
  background: linear-gradient(180deg, rgba(186, 45, 45, 0.94), rgba(186, 45, 45, 0.78));
  color: #fff;
}

.form-error {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.chat-page {
  min-height: 100vh;
}

.work-shell {
  width: min(1440px, calc(100vw - 24px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 12px 0;
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(420px, 1.05fr);
  gap: 12px;
  align-items: stretch;
}

.chat-shell {
  width: min(980px, calc(100vw - 28px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 20px 0;
}

.chat-column {
  display: grid;
  min-height: 0;
}

.chat-column .login-panel {
  align-self: center;
  justify-self: center;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: min(820px, calc(100vh - 40px));
  padding: 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(8px) saturate(135%);
  box-shadow: var(--shadow);
}

.activation-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 10px;
  min-height: min(860px, calc(100vh - 24px));
  padding: 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(8px) saturate(135%);
  box-shadow: var(--shadow);
}

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

.activation-header h1 {
  margin: 0;
  font-size: 22px;
}

.activation-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-button {
  width: 36px;
  min-width: 36px;
  padding: 0;
}

.column-count {
  min-width: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.activation-summary {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.activation-summary div {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  text-align: center;
}

.activation-summary strong {
  font-size: 20px;
  line-height: 1;
}

.activation-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.activation-board-wrap {
  min-height: 0;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.activation-board {
  --activation-columns: 1;
  display: grid;
  grid-template-columns: repeat(var(--activation-columns), minmax(34px, 52px));
  justify-content: center;
  gap: 8px;
  min-width: max-content;
}

.activation-column {
  display: grid;
  grid-template-rows: auto repeat(10, minmax(34px, 52px)) auto;
  gap: 4px;
}

.activation-column-title,
.activation-column-meta {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.activation-column-title {
  color: var(--primary);
}

.activation-column-meta.is-target {
  color: var(--ok);
}

.activation-cell {
  display: grid;
  width: 100%;
  min-height: 34px;
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
  color: transparent;
  font-size: 13px;
  font-weight: 900;
}

.activation-cell.goal-top {
  border-top-color: var(--primary);
}

.activation-cell.goal-middle {
  border-top-color: var(--line);
  border-bottom-color: var(--line);
}

.activation-cell.goal-bottom {
  margin-bottom: 4px;
  border-bottom-color: var(--primary);
}

.activation-cell.extra {
  border-style: dashed;
}

.activation-cell.state-happy {
  border-color: rgba(75, 189, 140, 0.55);
  background: linear-gradient(180deg, rgba(75, 189, 140, 0.35), rgba(75, 189, 140, 0.18));
  color: var(--ok);
}

.activation-cell.state-sad {
  border-color: rgba(186, 45, 45, 0.35);
  background: linear-gradient(180deg, rgba(255, 82, 82, 0.22), rgba(255, 82, 82, 0.10));
  color: var(--danger);
}

.activation-cell.state-mup {
  border-color: rgba(122, 100, 0, 0.42);
  background: linear-gradient(180deg, rgba(255, 212, 120, 0.36), rgba(255, 212, 120, 0.16));
  color: #7a6400;
}

.activation-cell.state-vup {
  border-color: rgba(10, 109, 240, 0.36);
  background: linear-gradient(180deg, rgba(10, 109, 240, 0.22), rgba(10, 109, 240, 0.10));
  color: var(--primary-dark);
}

.activation-cell.state-eur {
  border-color: rgba(75, 189, 140, 0.55);
  background: linear-gradient(180deg, rgba(75, 189, 140, 0.35), rgba(75, 189, 140, 0.16));
  color: #0a3f28;
  font-size: 11px;
}

.activation-save {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.activation-session-user {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.activation-session-user span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.activation-session-user strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.activation-dial {
  position: fixed;
  z-index: 20;
  display: flex;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), rgba(255, 255, 255, 0.62));
  backdrop-filter: blur(8px) saturate(135%);
  box-shadow: var(--shadow);
}

.activation-dial button {
  min-width: 56px;
}

.chat-header,
.dashboard-header,
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-chat-tools {
  display: grid;
  grid-template-columns: auto minmax(120px, 220px) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.manager-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(32, 122, 74, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(231, 247, 237, 0.88), rgba(212, 238, 222, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 10px 18px rgba(75, 189, 140, 0.12);
  color: var(--ok);
}

.manager-notice div {
  display: grid;
  gap: 2px;
}

.manager-notice strong {
  font-size: 14px;
}

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

.manager-notice button {
  min-height: 34px;
  white-space: nowrap;
}

.manager-availability {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.36);
}

.manager-availability-status {
  align-self: center;
  min-height: auto;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.check-row input {
  width: 16px;
  height: 16px;
  padding: 0;
}

.messages-list {
  min-height: 260px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.messages-list.compact {
  min-height: 360px;
  max-height: 520px;
}

.empty-state {
  display: grid;
  min-height: 120px;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

.message {
  max-width: 84%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.54));
  box-shadow: 0 5px 14px rgba(2, 6, 23, 0.06);
}

.message.is-admin {
  border-color: rgba(10, 109, 240, 0.30);
  background: linear-gradient(180deg, rgba(10, 109, 240, 0.16), rgba(255, 255, 255, 0.58));
}

.message-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.message-name {
  color: var(--primary-dark);
}

.message-team {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--muted);
}

.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.mention-token {
  display: inline-block;
  padding: 0 4px;
  border-radius: 6px;
  background: rgba(10, 109, 240, 0.10);
  color: var(--primary-dark);
  font-weight: 800;
}

.mention-token.is-you {
  background: linear-gradient(180deg, rgba(75, 189, 140, 0.28), rgba(75, 189, 140, 0.14));
  color: #0a3f28;
}

.composer {
  display: grid;
  gap: 8px;
  position: relative;
}

.mention-menu {
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(10, 109, 240, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), rgba(255, 255, 255, 0.66));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px) saturate(135%);
}

.mention-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  box-shadow: none;
  text-align: left;
}

.mention-option:hover,
.mention-option.active {
  border-color: rgba(10, 109, 240, 0.22);
  background: rgba(10, 109, 240, 0.10);
}

.mention-option strong,
.mention-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mention-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.dashboard-shell {
  width: min(1320px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 0 40px;
  display: grid;
  gap: 14px;
}

.dashboard-header,
.dashboard-nav,
.section-block,
.metric-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(8px) saturate(135%);
  box-shadow: var(--shadow-soft);
}

.dashboard-header {
  padding: 16px;
}

.dashboard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

.dashboard-nav button {
  min-height: 36px;
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42));
  color: var(--text);
}

.dashboard-nav button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.dashboard-area {
  display: grid;
  gap: 14px;
}

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

.metric-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 26px;
  line-height: 1.1;
}

.compact-metrics {
  margin-bottom: 12px;
}

.section-block {
  padding: 14px;
}

.section-title-row {
  margin-bottom: 12px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 17px;
}

.stats-user-filter {
  display: grid;
  grid-template-columns: auto minmax(180px, 280px);
  align-items: center;
  gap: 8px;
}

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

.team-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-left: 5px solid var(--team-a);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.32));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.team-card.team-B {
  border-left-color: var(--team-b);
}

.team-card.team-C {
  border-left-color: var(--team-c);
}

.team-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-code {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(10, 109, 240, 0.96), rgba(10, 109, 240, 0.72));
  color: #fff;
  font-weight: 900;
}

.team-B .team-code {
  background: linear-gradient(180deg, rgba(75, 189, 140, 0.92), rgba(42, 111, 68, 0.78));
}

.team-C .team-code {
  background: linear-gradient(180deg, rgba(255, 212, 120, 0.84), rgba(122, 100, 0, 0.72));
}

.team-facts,
.history-list {
  display: grid;
  gap: 8px;
}

.fact-row,
.history-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.fact-row strong,
.history-row strong {
  color: var(--text);
}

.team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-actions button {
  min-height: 34px;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.segmented button {
  min-height: 34px;
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42));
  color: var(--text);
}

.segmented button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.dashboard-chat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  align-items: start;
}

.dashboard-chat-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.dashboard-chat-tools {
  grid-template-columns: auto minmax(140px, 1fr) auto auto;
}

.team-chat-side {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.team-chat-side h3 {
  margin: 0;
  font-size: 15px;
}

.user-editor {
  display: grid;
  grid-template-columns: 1fr 1.4fr 140px 150px auto auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.bulk-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 10px;
}

.bulk-box textarea {
  min-height: 54px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.24);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 13px;
}

th,
td {
  padding: 10px 11px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  text-align: left;
  vertical-align: middle;
}

th {
  background: rgba(255, 255, 255, 0.36);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(180deg, rgba(75, 189, 140, 0.26), rgba(75, 189, 140, 0.14));
  color: var(--ok);
}

.status-pill.off {
  background: var(--danger-soft);
  color: var(--danger);
}

.row-actions {
  display: flex;
  gap: 6px;
}

.row-actions button {
  min-height: 32px;
  padding: 0 10px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 14px;
}

@media (max-width: 980px) {
  .metric-grid,
  .team-grid,
  .section-grid,
  .dashboard-chat,
  .work-shell {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .inline-form,
  .admin-chat-tools,
  .bulk-box,
  .user-editor,
  .activation-save,
  .manager-notice {
    grid-template-columns: 1fr;
  }

  .manager-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .chat-header,
  .dashboard-header,
  .section-title-row,
  .activation-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-user-filter {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

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

  .message {
    max-width: 100%;
  }

  .header-actions,
  .team-actions,
  .row-actions {
    width: 100%;
  }

  .header-actions > *,
  .team-actions > *,
  .row-actions > * {
    flex: 1 1 auto;
  }
}
