:root {
  --bg: #eef3f9;
  --bg-dark: #08131f;
  --panel: #ffffff;
  --panel-soft: #f7fafd;
  --text: #122033;
  --muted: #66758a;
  --line: #d9e2ef;
  --primary: #06b6d4;
  --primary-dark: #0891b2;
  --primary-soft: #e6f9fd;
  --accent: #8b5cf6;
  --success: #067647;
  --danger: #b42318;
  --warning: #b7791f;
  --shadow: 0 20px 55px rgba(15, 35, 57, 0.13);
  --shadow-soft: 0 10px 28px rgba(15, 35, 57, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% -12%, rgba(6, 182, 212, 0.20), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 38%, #edf4fb 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(8, 19, 31, 0.98), rgba(12, 31, 52, 0.96)),
    var(--bg-dark);
  border-bottom: 1px solid rgba(125, 211, 252, 0.22);
  box-shadow: 0 18px 48px rgba(3, 10, 20, 0.22);
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-height: 44px;
}

.brand-logo {
  display: block;
  height: 48px;
  object-fit: contain;
  width: auto;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 12px 26px rgba(6, 182, 212, 0.25);
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  color: #9edff0;
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
  text-transform: uppercase;
}

.topbar nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.nav-link {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #c9d7e8;
  display: inline-flex;
  font-size: 13px;
  font-weight: 750;
  gap: 7px;
  min-height: 40px;
  padding: 9px 11px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(125, 211, 252, 0.20);
  color: #ffffff;
  outline: none;
}

.nav-link.active {
  background: rgba(6, 182, 212, 0.16);
  border-color: rgba(103, 232, 249, 0.36);
  color: #ffffff;
}

.nav-icon {
  flex: 0 0 auto;
  height: 17px;
  width: 17px;
}

.container {
  margin: 0 auto;
  max-width: 1240px;
  padding: 30px;
}

.page-title {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
}

h1,
h2 {
  color: #101d2f;
  margin: 0;
}

h1 {
  font-size: 32px;
  line-height: 1.15;
}

h2 {
  font-size: 20px;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(211, 222, 237, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 22px;
  padding: 22px;
}

.narrow {
  max-width: 560px;
}

.login-shell {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: 1fr 430px;
  min-height: calc(100vh - 132px);
}

.login-copy {
  background: linear-gradient(135deg, rgba(8, 19, 31, 0.97), rgba(16, 42, 68, 0.95));
  border: 1px solid rgba(125, 211, 252, 0.20);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}

.login-copy h1 {
  color: #ffffff;
  font-size: 44px;
}

.login-copy p {
  color: #b7c9dd;
  max-width: 560px;
}

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

.form,
.login-card {
  display: grid;
  gap: 15px;
}

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

label {
  color: #304258;
  display: grid;
  font-size: 14px;
  font-weight: 760;
  gap: 7px;
}

input,
select,
textarea {
  background: #ffffff;
  border: 1px solid #cfdbea;
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  min-height: 44px;
  padding: 11px 12px;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
  outline: none;
}

textarea {
  resize: vertical;
}

.button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd8e8;
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(15, 35, 57, 0.06);
  color: #1b2b3e;
  cursor: pointer;
  display: inline-flex;
  font-weight: 780;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  transition: background 170ms ease, border-color 170ms ease, box-shadow 170ms ease, color 170ms ease, transform 170ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: #9fc0d6;
  box-shadow: 0 12px 26px rgba(15, 35, 57, 0.11);
  outline: none;
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: #ffffff;
}

.button.primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #7c3aed);
}

.button.danger {
  background: #fff4f2;
  border-color: #f2b8b5;
  color: var(--danger);
}

.button.subtle {
  background: #f6f9fd;
  color: #475467;
}

.button.small {
  min-height: 36px;
  padding: 7px 11px;
}

.setup-link {
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}

.stats-grid,
.attendance-grid {
  display: grid;
  gap: 18px;
}

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

.attendance-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.attendance-grid .panel:last-child {
  grid-column: 1 / -1;
}

.stat {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 253, 0.98));
  border: 1px solid rgba(211, 222, 237, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.stat::before {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 4px;
}

.stat span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.stat strong {
  color: #0b1828;
  font-size: 32px;
  line-height: 1;
}

.panel-title {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: -2px 0 14px;
  padding-bottom: 14px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 840px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 11px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f5f8fc;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

tbody tr {
  transition: background 150ms ease;
}

tbody tr:hover {
  background: #f7fbff;
}

.badge {
  align-items: center;
  background: #eef2f7;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  padding: 5px 10px;
}

.badge::before,
.flag::before {
  border-radius: 999px;
  content: "";
  display: inline-flex;
  height: 7px;
  width: 7px;
}

.badge.active::before,
.badge.approved::before {
  background: #12b76a;
}

.badge.idle::before,
.badge.break::before,
.badge.lunch::before,
.badge.meeting::before,
.badge.pending::before,
.flag::before {
  background: #f79009;
}

.badge.logged_out::before,
.badge.rejected::before {
  background: #98a2b3;
}

.badge.active,
.badge.approved {
  background: #dcfae6;
  color: #067647;
}

.badge.idle,
.badge.break,
.badge.lunch,
.badge.meeting,
.badge.pending {
  background: #fff7df;
  color: #93370d;
}

.badge.logged_out,
.badge.rejected {
  background: #eef2f7;
  color: #475467;
}

.flag {
  align-items: center;
  background: #fff4d6;
  border-radius: 999px;
  color: var(--warning);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  margin: 0 6px 6px 0;
  padding: 5px 8px;
}

.flag.danger {
  background: #fee4e2;
  color: var(--danger);
}

.flag.danger::before {
  background: #f04438;
}

.notice {
  border-radius: var(--radius);
  font-weight: 760;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.notice.success {
  background: #dcfae6;
  color: #067647;
}

.notice.error {
  background: #fee4e2;
  color: var(--danger);
}

.muted {
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.detail-list div {
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  font-weight: 800;
  margin: 0;
}

.actions,
.status-buttons,
.inline-form,
.month-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.month-picker input {
  width: 170px;
}

.reset-form {
  margin-top: 12px;
}

.inline-form input {
  max-width: 180px;
}

.filter-form {
  align-items: end;
}

.filter-form .button {
  width: fit-content;
}

details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

.mini-form {
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
  margin-top: 10px;
  min-width: 280px;
  padding: 12px;
}

.mini-form label {
  font-size: 12px;
}

.mini-form input,
.mini-form textarea {
  min-height: 38px;
  padding: 8px 10px;
}

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

.checkbox-row input {
  accent-color: var(--primary-dark);
  width: auto;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
    position: static;
  }

  .topbar nav {
    justify-content: flex-start;
    width: 100%;
  }

  .nav-link {
    flex: 1 1 auto;
  }
}

@media (max-width: 820px) {
  .page-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-shell,
  .stats-grid,
  .attendance-grid,
  .two-column-form,
  .filter-form {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 18px;
  }

  h1 {
    font-size: 28px;
  }

  .login-copy {
    padding: 24px;
  }

  .login-copy h1 {
    font-size: 34px;
  }
}

/* Techxon brand theme */
:root {
  --bg: #000000;
  --bg-dark: #000000;
  --panel: #086963;
  --panel-soft: #075c58;
  --text: #ffffff;
  --muted: #c8d8d8;
  --line: rgba(0, 224, 224, 0.26);
  --primary: #00e0e0;
  --primary-dark: #008c8c;
  --primary-soft: rgba(0, 224, 224, 0.14);
  --accent: #00857f;
  --shadow: 0 0 30px rgba(0, 224, 224, 0.18);
  --shadow-soft: 0 0 22px rgba(0, 224, 224, 0.12);
}

body {
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 224, 224, 0.12), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(0, 133, 127, 0.18), transparent 26%),
    #000000;
  color: #ffffff;
}

.topbar {
  background: #000000;
  border-bottom: 1px solid rgba(0, 224, 224, 0.14);
  box-shadow: none;
  min-height: 82px;
}

.brand {
  gap: 8px;
}

.brand-logo {
  height: 50px;
}

.brand-mark {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #ffffff;
  font-size: 46px;
  font-weight: 950;
  height: 48px;
  line-height: 0.8;
  width: 48px;
}

.brand-mark::after {
  background: var(--primary-dark);
  content: "";
  display: block;
  height: 6px;
  margin-left: 13px;
  margin-top: -21px;
  transform: rotate(-45deg);
  width: 42px;
}

.brand strong {
  color: #ffffff;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand strong span {
  color: var(--primary-dark);
}

.brand small {
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.nav-link {
  color: #ffffff;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  background: transparent;
  border-color: transparent;
  color: var(--primary);
}

h1,
h2 {
  color: #ffffff;
  font-weight: 950;
}

.page-title p,
p,
.muted {
  color: var(--muted);
}

.panel,
.stat {
  background: rgba(7, 105, 99, 0.92);
  border: 4px solid var(--primary);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.panel {
  color: #ffffff;
}

.login-copy {
  background:
    radial-gradient(circle at 72% 32%, rgba(0, 224, 224, 0.20), transparent 35%),
    #000000;
  border: 3px solid rgba(0, 224, 224, 0.65);
  border-radius: 28px;
}

.login-copy h1 {
  font-weight: 950;
  text-transform: uppercase;
}

label {
  color: #ffffff;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 224, 224, 0.35);
  color: #111827;
}

.button {
  background: rgba(0, 0, 0, 0.16);
  border: 2px solid var(--primary);
  border-radius: 999px;
  box-shadow: none;
  color: #ffffff;
  font-weight: 900;
}

.button:hover,
.button:focus-visible {
  background: rgba(0, 224, 224, 0.14);
  border-color: var(--primary);
  box-shadow: 0 0 22px rgba(0, 224, 224, 0.22);
}

.button.primary {
  background: var(--primary-dark);
  border-color: var(--primary);
  color: #ffffff;
}

.button.primary:hover {
  background: #006f6f;
}

.button.danger {
  background: #fff4f2;
  color: var(--danger);
}

.button.subtle {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.setup-link {
  color: #ffffff;
  font-weight: 900;
}

.stat::before {
  display: none;
}

.stat span {
  color: #e0ffff;
  font-weight: 900;
}

.stat strong {
  color: #ffffff;
  font-weight: 950;
}

.panel-title {
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

th {
  background: rgba(0, 0, 0, 0.32);
  color: #ffffff;
}

td {
  color: #ffffff;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mini-form {
  background: #062a29;
  border-color: var(--primary);
}

.badge.logged_out,
.badge.rejected {
  background: #f2f4f7;
  color: #475467;
}

/* Premium operations theme */
:root {
  --panel: rgba(8, 28, 31, 0.88);
  --panel-soft: rgba(12, 44, 48, 0.92);
  --line: rgba(62, 224, 224, 0.22);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.28);
}

body {
  background:
    linear-gradient(135deg, rgba(0, 224, 224, 0.08) 0 1px, transparent 1px 42px),
    linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 54px),
    linear-gradient(180deg, #020404 0%, #071314 48%, #030606 100%);
}

.topbar {
  backdrop-filter: blur(18px);
  background: rgba(0, 0, 0, 0.88);
}

.brand-mark {
  font-size: 38px;
}

.brand-mark::after {
  height: 5px;
  margin-left: 12px;
  margin-top: -18px;
  width: 36px;
}

.brand strong {
  font-size: 24px;
}

.brand-logo {
  height: 46px;
}

.panel,
.stat,
.login-copy {
  background: var(--panel);
  border: 1px solid rgba(0, 224, 224, 0.28);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.panel:hover,
.stat:hover {
  border-color: rgba(0, 224, 224, 0.44);
}

.button {
  border-radius: 8px;
}

.button.primary {
  background: linear-gradient(135deg, #007f80, #00a6a6);
}

.nav-group {
  position: relative;
}

.nav-trigger {
  appearance: none;
}

.chevron {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  margin-left: 2px;
}

.nav-menu {
  background: rgba(3, 13, 15, 0.98);
  border: 1px solid rgba(0, 224, 224, 0.24);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: none;
  min-width: 220px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
}

.nav-group::after {
  content: "";
  display: none;
  height: 12px;
  left: 0;
  position: absolute;
  right: 0;
  top: 100%;
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  display: grid;
  gap: 4px;
}

.nav-group:hover::after,
.nav-group:focus-within::after {
  display: block;
}

.nav-menu .nav-link {
  justify-content: flex-start;
  width: 100%;
}

.document-group {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 20px;
  padding-top: 18px;
}

.document-group h3 {
  color: #ffffff;
  font-size: 18px;
  margin: 0 0 12px;
}

.tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.chat-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 320px minmax(0, 1fr);
}

.contact-list,
.message-list {
  display: grid;
  gap: 10px;
}

.contact-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.contact-link.active,
.contact-link:hover {
  border-color: rgba(0, 224, 224, 0.50);
}

.contact-link strong,
.contact-link small {
  display: block;
}

.contact-link small {
  color: var(--muted);
  margin-top: 3px;
}

.contact-link em {
  align-items: center;
  background: var(--primary);
  border-radius: 999px;
  color: #001010;
  display: inline-flex;
  font-style: normal;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  min-width: 24px;
}

.message-list {
  max-height: 540px;
  overflow-y: auto;
  padding-right: 6px;
}

.message {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  max-width: 78%;
  padding: 12px;
}

.message.mine {
  background: rgba(0, 224, 224, 0.16);
  border-color: rgba(0, 224, 224, 0.36);
  margin-left: auto;
}

.message p {
  color: #ffffff;
  margin: 0;
}

.message span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 8px;
}

.chat-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 980px) {
  .nav-menu {
    position: static;
    width: 100%;
  }

  .nav-group {
    width: 100%;
  }

  .chat-layout {
    grid-template-columns: 1fr;
  }
}

/* Navigation readability and colored tabs */
.topbar nav {
  gap: 10px;
}

.topbar .nav-link,
.topbar .nav-trigger {
  appearance: none;
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 900;
  min-height: 42px;
  padding: 10px 12px;
  text-shadow: none;
}

.topbar .nav-link span,
.topbar .nav-trigger span {
  color: inherit;
}

.topbar .nav-icon {
  background: rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  color: currentColor;
  height: 24px;
  padding: 4px;
  width: 24px;
}

.topbar .nav-dashboard {
  --tab-color: #00e0e0;
}

.topbar .nav-attendance {
  --tab-color: #2dd4bf;
}

.topbar .nav-group-self-service .nav-trigger,
.topbar .nav-documents,
.topbar .nav-leaves,
.topbar .nav-chat {
  --tab-color: #38bdf8;
}

.topbar .nav-group-people .nav-trigger,
.topbar .nav-employees,
.topbar .nav-reports,
.topbar .nav-daily {
  --tab-color: #22c55e;
}

.topbar .nav-group-admin .nav-trigger,
.topbar .nav-payroll,
.topbar .nav-edit,
.topbar .nav-corrections {
  --tab-color: #f59e0b;
}

.topbar .nav-logout {
  --tab-color: #f43f5e;
}

.topbar .nav-link,
.topbar .nav-trigger {
  border-color: color-mix(in srgb, var(--tab-color, #00e0e0) 42%, transparent) !important;
}

.topbar .nav-link .nav-icon,
.topbar .nav-trigger .nav-icon,
.topbar .chevron {
  color: var(--tab-color, #00e0e0);
}

.topbar .nav-link:hover,
.topbar .nav-link:focus-visible,
.topbar .nav-trigger:hover,
.topbar .nav-trigger:focus-visible,
.topbar .nav-link.active,
.topbar .nav-group.active .nav-trigger {
  background: color-mix(in srgb, var(--tab-color, #00e0e0) 18%, #050b0c) !important;
  border-color: var(--tab-color, #00e0e0) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.topbar .nav-group.active .nav-trigger .nav-icon,
.topbar .nav-link.active .nav-icon {
  background: var(--tab-color, #00e0e0);
  color: #031012;
}

.nav-menu {
  background: rgba(2, 10, 12, 0.98);
  border-color: rgba(255, 255, 255, 0.14);
  padding: 10px;
  top: calc(100% + 2px);
}

.nav-menu .nav-link {
  background: rgba(255, 255, 255, 0.04) !important;
  font-size: 12px;
}

.chevron {
  font-size: 12px;
  line-height: 1;
}

/* Slack-style live inbox */
.chat-page-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.chat-live-pill {
  align-items: center;
  background: rgba(0, 224, 224, 0.10);
  border: 1px solid rgba(0, 224, 224, 0.34);
  border-radius: 999px;
  color: #dffeff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.chat-live-pill span {
  background: #22c55e;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.16);
  height: 9px;
  width: 9px;
}

.chat-shell {
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 224, 224, 0.15), transparent 34%),
    linear-gradient(135deg, rgba(6, 22, 25, 0.96), rgba(3, 8, 10, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  height: min(760px, calc(100vh - 210px));
  min-height: 560px;
  overflow: hidden;
}

.chat-rail {
  background: linear-gradient(180deg, rgba(2, 17, 20, 0.98), rgba(4, 29, 31, 0.94));
  border-right: 1px solid rgba(255, 255, 255, 0.11);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 14px;
}

.chat-rail-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}

.chat-rail-head strong,
.chat-thread-head h2 {
  color: #ffffff;
  display: block;
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}

.chat-rail-head small,
.chat-thread-head p {
  color: #9db6ba;
  display: block;
  font-size: 12px;
  margin: 4px 0 0;
}

.chat-notify-toggle {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #e9ffff;
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 900;
  gap: 7px;
  min-height: 34px;
  padding: 8px 10px;
}

.chat-notify-toggle:hover,
.chat-notify-toggle:focus-visible {
  border-color: rgba(0, 224, 224, 0.55);
  outline: none;
}

.chat-notify-toggle .notify-dot {
  background: #f59e0b;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
  height: 8px;
  width: 8px;
}

.chat-notify-toggle.enabled .notify-dot {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.chat-notify-toggle.muted .notify-dot {
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}

.chat-notify-toggle.blocked .notify-dot {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

.chat-search {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.chat-search span {
  color: #c8f7f6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.chat-search input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  min-height: 42px;
  outline: none;
  padding: 10px 12px;
}

.chat-search input:focus {
  border-color: rgba(0, 224, 224, 0.70);
  box-shadow: 0 0 0 3px rgba(0, 224, 224, 0.16);
}

.chat-shell .contact-list {
  display: grid;
  gap: 6px;
  overflow-y: auto;
  padding-right: 4px;
}

.chat-shell .contact-link {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #eefafa;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 9px 10px;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.chat-shell .contact-link:hover,
.chat-shell .contact-link.active {
  background: rgba(0, 224, 224, 0.12);
  border-color: rgba(0, 224, 224, 0.28);
  transform: translateX(2px);
}

.contact-avatar {
  align-items: center;
  background: linear-gradient(135deg, #0b6f72, #0bb7b2);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  position: relative;
  width: 38px;
}

.contact-avatar.large {
  border-radius: 10px;
  font-size: 13px;
  height: 40px;
  width: 40px;
}

.contact-avatar.online::after {
  background: #22c55e;
  border: 2px solid #051417;
  border-radius: 999px;
  bottom: -1px;
  content: "";
  height: 10px;
  position: absolute;
  right: -1px;
  width: 10px;
}

.contact-copy {
  min-width: 0;
}

.chat-shell .contact-link strong,
.chat-shell .contact-link small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-shell .contact-link strong {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.25;
}

.chat-shell .contact-link small {
  color: #9db6ba;
  font-size: 12px;
  margin-top: 3px;
}

.chat-shell .contact-link em {
  align-items: center;
  background: #00e0e0;
  border-radius: 999px;
  color: #001010;
  display: inline-flex;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 7px;
}

.chat-workspace {
  background: rgba(252, 254, 254, 0.98);
  color: #102024;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
}

.chat-thread-head {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(12, 25, 29, 0.12);
  display: flex;
  gap: 12px;
  min-height: 64px;
  padding: 12px 18px;
}

.chat-thread-head h2 {
  color: #0d1f23;
  font-size: 20px;
}

.chat-thread-head p {
  color: #5f7378;
  font-size: 13px;
}

.chat-shell .message-list {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 250, 250, 0.98));
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: none;
  overflow-y: auto;
  padding: 16px 20px;
}

.chat-shell .message {
  align-items: flex-start;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #102024;
  display: grid;
  gap: 8px;
  grid-template-columns: 30px minmax(0, 1fr);
  margin: 0;
  max-width: 100%;
  padding: 3px 6px;
  transition: background 180ms ease;
}

.chat-shell .message:hover {
  background: rgba(10, 130, 132, 0.07);
}

.chat-shell .message.mine {
  background: transparent;
  border: 0;
  margin-left: 0;
}

.chat-shell .message.mine .message-body {
  background: rgba(0, 140, 140, 0.06);
  border-color: transparent;
}

.chat-shell .message.fresh .message-body {
  animation: chatFresh 900ms ease;
}

.message-avatar {
  align-items: center;
  background: #0f766e;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  margin-top: 2px;
  width: 30px;
}

.message-body {
  background: #ffffff;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  max-width: 920px;
  padding: 6px 8px;
  position: relative;
}

.reply-preview {
  background: rgba(0, 140, 140, 0.08);
  border: 0;
  border-left: 3px solid #00a8a8;
  border-radius: 6px;
  color: #31464b;
  cursor: pointer;
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
  max-width: 100%;
  padding: 7px 9px;
  text-align: left;
}

.reply-preview strong {
  color: #0f766e;
  font-size: 12px;
}

.reply-preview span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-meta {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}

.message-meta strong {
  color: #102024;
  font-size: 13px;
}

.message-meta time {
  color: #6b7f83;
  font-size: 11px;
}

.chat-shell .message p {
  color: #172c31;
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.message-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.reaction-chip {
  align-items: center;
  background: #f2f8f8;
  border: 1px solid rgba(12, 25, 29, 0.12);
  border-radius: 999px;
  color: #172c31;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  gap: 4px;
  min-height: 24px;
  padding: 2px 7px;
}

.reaction-chip.active {
  background: rgba(0, 224, 224, 0.18);
  border-color: rgba(0, 140, 140, 0.36);
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.message:hover .message-actions,
.message:focus-within .message-actions {
  opacity: 1;
}

.message-actions button {
  background: transparent;
  border: 0;
  color: #0f766e;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 0;
}

.chat-empty {
  align-self: center;
  border: 1px dashed rgba(5, 45, 50, 0.22);
  border-radius: 10px;
  color: #5f7378;
  justify-self: center;
  margin-top: 80px;
  padding: 18px 22px;
}

.chat-composer {
  align-items: end;
  background: #ffffff;
  border-top: 1px solid rgba(12, 25, 29, 0.12);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 14px;
}

.composer-reply {
  background: rgba(0, 140, 140, 0.08);
  border-left: 3px solid #00a8a8;
  border-radius: 6px;
  color: #31464b;
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding: 8px 10px;
}

.composer-reply[hidden] {
  display: none;
}

.composer-reply button,
.emoji-button {
  align-items: center;
  background: #eef7f7;
  border: 1px solid rgba(12, 25, 29, 0.14);
  border-radius: 8px;
  color: #0f766e;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
}

.composer-reply button {
  height: 28px;
  width: 28px;
}

.composer-tools {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: 44px minmax(0, 1fr);
}

.emoji-button {
  min-height: 40px;
}

.chat-composer textarea {
  background: #f7fbfb;
  border: 1px solid rgba(12, 25, 29, 0.18);
  border-radius: 8px;
  color: #102024;
  font-size: 14px;
  line-height: 1.45;
  max-height: 160px;
  min-height: 40px;
  outline: none;
  padding: 9px 12px;
  resize: none;
}

.chat-composer textarea:focus {
  background: #ffffff;
  border-color: #00a8a8;
  box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.16);
}

.chat-composer .button {
  min-height: 40px;
  padding: 0 18px;
}

.emoji-popover {
  background: #ffffff;
  border: 1px solid rgba(12, 25, 29, 0.16);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  padding: 10px;
  position: fixed;
  width: 286px;
  z-index: 80;
}

.emoji-popover[hidden] {
  display: none;
}

.emoji-popover input {
  border: 1px solid rgba(12, 25, 29, 0.18);
  border-radius: 8px;
  color: #102024;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.emoji-grid {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(8, 1fr);
  margin-top: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.emoji-grid button {
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 20px;
  height: 32px;
}

.emoji-grid button:hover {
  background: rgba(0, 140, 140, 0.10);
}

.token-reveal code {
  background: #071517;
  border: 1px solid rgba(0, 224, 224, 0.24);
  border-radius: 8px;
  color: #dffeff;
  display: block;
  font-size: 18px;
  font-weight: 900;
  overflow-x: auto;
  padding: 14px;
}

@keyframes chatFresh {
  0% {
    box-shadow: 0 0 0 4px rgba(0, 224, 224, 0.22);
  }
  100% {
    box-shadow: 0 8px 22px rgba(15, 34, 38, 0.06);
  }
}

@media (max-width: 980px) {
  .chat-page-title {
    align-items: flex-start;
    gap: 12px;
  }

  .chat-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .chat-rail {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    max-height: 320px;
  }

  .chat-workspace {
    min-height: 620px;
  }

  .chat-shell .message-list {
    padding: 16px;
  }

  .chat-composer {
    grid-template-columns: 1fr;
  }
}

/* Google Drive-inspired Techxon workspace */
:root {
  --bg: #f7fafd;
  --bg-dark: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f3f8fb;
  --text: #142126;
  --muted: #5f6f76;
  --line: #dbe6ea;
  --primary: #00a8a8;
  --primary-dark: #007a7a;
  --primary-soft: #e4fafa;
  --accent: #12272d;
  --success: #067647;
  --danger: #b42318;
  --warning: #b7791f;
  --shadow: 0 14px 38px rgba(15, 34, 38, 0.12);
  --shadow-soft: 0 6px 18px rgba(15, 34, 38, 0.08);
  --radius: 14px;
}

body {
  background:
    linear-gradient(180deg, rgba(0, 168, 168, 0.04), transparent 220px),
    #f7fafd;
  color: var(--text);
}

.topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(219, 230, 234, 0.86);
  box-shadow: 0 1px 2px rgba(15, 34, 38, 0.04);
  color: var(--text);
  min-height: 76px;
}

.brand-logo {
  height: 42px;
}

.brand small {
  background: var(--primary-soft);
  border: 1px solid rgba(0, 168, 168, 0.20);
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 10px;
  letter-spacing: 0;
  padding: 4px 8px;
}

.topbar nav {
  gap: 8px;
}

.topbar .nav-link,
.topbar .nav-trigger {
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 999px;
  color: #394b52 !important;
  font-size: 13px;
  font-weight: 750;
  min-height: 42px;
  padding: 9px 12px;
  text-transform: none;
}

.topbar .nav-icon {
  background: #edf4f7;
  border-radius: 999px;
  color: var(--primary-dark);
  height: 28px;
  padding: 6px;
  width: 28px;
}

.topbar .nav-link:hover,
.topbar .nav-link:focus-visible,
.topbar .nav-trigger:hover,
.topbar .nav-trigger:focus-visible,
.topbar .nav-link.active,
.topbar .nav-group.active .nav-trigger {
  background: var(--primary-soft) !important;
  border-color: rgba(0, 168, 168, 0.16) !important;
  box-shadow: none !important;
  color: #0d3f42 !important;
  transform: none;
}

.topbar .nav-link.active .nav-icon,
.topbar .nav-group.active .nav-trigger .nav-icon {
  background: #d3f5f5;
  color: var(--primary-dark);
}

.nav-menu {
  background: #ffffff;
  border: 1px solid rgba(219, 230, 234, 0.96);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(15, 34, 38, 0.16);
}

.nav-menu .nav-link {
  background: transparent !important;
  border-radius: 12px;
  color: #394b52 !important;
  font-size: 13px;
}

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

.container {
  max-width: 1320px;
  padding: 28px;
}

.page-title {
  background: transparent;
  margin-bottom: 18px;
}

h1,
h2,
.document-group h3 {
  color: #16272d;
  font-weight: 760;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 18px;
}

p,
.page-title p,
.muted {
  color: var(--muted);
}

.panel,
.stat,
.login-copy {
  background: #ffffff;
  border: 1px solid rgba(219, 230, 234, 0.92);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

.panel:hover,
.stat:hover {
  border-color: rgba(0, 168, 168, 0.28);
}

.panel {
  padding: 20px;
}

.panel-title {
  border-bottom-color: var(--line);
}

.stats-grid {
  gap: 14px;
}

.stat {
  min-height: 116px;
  padding: 18px;
}

.stat::before {
  background: var(--primary);
  border-radius: 999px;
  display: block;
  height: 36px;
  left: auto;
  opacity: 0.12;
  right: 18px;
  top: 18px;
  width: 36px;
}

.stat span {
  color: #62727a;
  font-size: 13px;
  font-weight: 650;
  text-transform: none;
}

.stat strong {
  color: #16272d;
  font-size: 34px;
  font-weight: 760;
}

label {
  color: #31464d;
  font-weight: 650;
}

input,
select,
textarea,
.chat-search input,
.chat-composer textarea,
.emoji-popover input {
  background: #ffffff;
  border: 1px solid #d3e0e5;
  border-radius: 12px;
  color: var(--text);
  min-height: 44px;
}

input:focus,
select:focus,
textarea:focus,
.chat-search input:focus,
.chat-composer textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 168, 168, 0.13);
}

.button {
  background: #ffffff;
  border: 1px solid #d1dee4;
  border-radius: 999px;
  box-shadow: none;
  color: #263b42;
  font-weight: 750;
}

.button:hover,
.button:focus-visible {
  background: #f4fafb;
  border-color: #abcbd2;
  box-shadow: 0 4px 12px rgba(15, 34, 38, 0.08);
  transform: none;
}

.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.danger {
  background: #fff7f6;
  border-color: #facdca;
  color: var(--danger);
}

.button.subtle {
  background: #f5f8fa;
  color: #51646b;
}

.button.small {
  min-height: 34px;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
}

table {
  background: #ffffff;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  border-bottom: 1px solid var(--line);
  color: #24383f;
  padding: 14px 13px;
}

th {
  background: #f7fafb;
  color: #61747b;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  position: sticky;
  text-transform: none;
  top: 0;
  z-index: 1;
}

tbody tr:hover {
  background: #f3fbfb;
}

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

.badge,
.flag {
  border-radius: 999px;
  font-weight: 760;
}

.notice {
  border-radius: 14px;
}

.notice.info {
  background: #e9f8fb;
  color: #075e65;
}

.notice.success {
  background: #e6f7ec;
}

.notice.error {
  background: #fff0ee;
}

.detail-list {
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.mini-form {
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.document-group {
  border-top: 1px solid var(--line);
}

.tabs-row .button {
  background: #f5f9fa;
}

.login-shell {
  min-height: calc(100vh - 132px);
}

.login-copy {
  background:
    linear-gradient(135deg, rgba(0, 168, 168, 0.10), transparent 42%),
    #ffffff;
}

.login-copy h1 {
  color: #16272d;
  text-transform: none;
}

.login-copy p {
  color: var(--muted);
}

.setup-link {
  color: var(--primary-dark);
}

.token-reveal code {
  background: #f5fafb;
  border-color: var(--line);
  color: #12343a;
}

.chat-shell {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.chat-rail {
  background: #f5f9fa;
  border-right: 1px solid var(--line);
}

.chat-rail-head strong,
.chat-thread-head h2 {
  color: #16272d;
}

.chat-rail-head small,
.chat-thread-head p,
.chat-search span {
  color: var(--muted);
}

.chat-notify-toggle,
.contact-link,
.chat-shell .contact-link {
  background: transparent;
  border-color: transparent;
  color: #24383f;
}

.chat-shell .contact-link strong {
  color: #24383f;
}

.chat-shell .contact-link small {
  color: var(--muted);
}

.chat-shell .contact-link:hover,
.chat-shell .contact-link.active {
  background: #e9f8f8;
  border-color: rgba(0, 168, 168, 0.18);
  transform: none;
}

.chat-workspace,
.chat-thread-head,
.chat-composer,
.emoji-popover {
  background: #ffffff;
  color: var(--text);
}

.chat-shell .message-list {
  background: #ffffff;
}

.chat-shell .message:hover {
  background: #f3fbfb;
}

.message-body {
  background: transparent;
}

.message-meta strong,
.chat-shell .message p {
  color: #182b31;
}

.message-avatar,
.contact-avatar {
  background: linear-gradient(135deg, #007a7a, #00a8a8);
  border-radius: 999px;
}

.chat-composer {
  border-top-color: var(--line);
}

@media (min-width: 1180px) {
  .topbar {
    align-items: stretch;
    border-bottom: 0;
    border-right: 1px solid rgba(219, 230, 234, 0.96);
    bottom: 0;
    box-shadow: 1px 0 2px rgba(15, 34, 38, 0.04);
    flex-direction: column;
    justify-content: flex-start;
    left: 0;
    overflow-y: auto;
    padding: 18px 14px;
    position: fixed;
    top: 0;
    width: 264px;
  }

  .brand {
    margin-bottom: 18px;
    padding: 2px 8px 14px;
  }

  .brand-logo {
    height: 46px;
  }

  .topbar nav {
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: flex-start;
    width: 100%;
  }

  .topbar .nav-link,
  .topbar .nav-trigger {
    justify-content: flex-start;
    min-height: 44px;
    width: 100%;
  }

  .nav-group {
    width: 100%;
  }

  .nav-menu {
    box-shadow: none;
    margin: 3px 0 8px 38px;
    min-width: 0;
    padding: 3px;
    position: static;
    width: calc(100% - 38px);
  }

  .nav-group.active .nav-menu {
    display: grid;
    gap: 2px;
  }

  .nav-group:not(.active):hover .nav-menu,
  .nav-group:not(.active):focus-within .nav-menu {
    display: grid;
  }

  .container {
    margin-left: 264px;
    max-width: none;
    padding: 30px 38px;
  }
}

@media (max-width: 1179px) {
  .topbar {
    position: sticky;
  }

  .topbar nav {
    width: auto;
  }
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
    position: static;
  }

  .topbar nav,
  .nav-group {
    width: 100%;
  }

  .nav-menu {
    position: static;
    width: 100%;
  }
}

/* Enhanced dark Techxon workspace */
:root {
  --bg: #030809;
  --bg-dark: #020607;
  --surface: #071213;
  --surface-2: #0a1b1d;
  --surface-3: #0d2527;
  --panel: rgba(7, 18, 19, 0.94);
  --panel-soft: rgba(11, 32, 34, 0.92);
  --text: #f5ffff;
  --text-strong: #ffffff;
  --muted: #9bb8bc;
  --line: rgba(129, 226, 226, 0.18);
  --line-strong: rgba(0, 224, 224, 0.36);
  --primary: #00d8d8;
  --primary-dark: #009898;
  --primary-soft: rgba(0, 216, 216, 0.13);
  --accent: #29f2d1;
  --success: #32d583;
  --danger: #ff6b6b;
  --warning: #fdb022;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.24);
  --radius: 8px;
}

html {
  background: var(--bg);
}

body {
  background:
    linear-gradient(135deg, rgba(0, 216, 216, 0.10) 0%, rgba(0, 216, 216, 0.02) 34%, transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0) 280px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 36px),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  background:
    linear-gradient(120deg, transparent, rgba(0, 216, 216, 0.055), transparent),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.28));
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.topbar {
  background: rgba(3, 8, 9, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.30);
  color: var(--text);
  min-height: 78px;
  padding: 14px 24px;
}

@supports (backdrop-filter: blur(16px)) {
  .topbar {
    backdrop-filter: blur(16px);
  }
}

.brand {
  flex: 0 0 auto;
  min-width: 0;
}

.brand-logo {
  height: 46px;
  max-width: 220px;
}

.brand small {
  background: rgba(0, 216, 216, 0.14);
  border: 1px solid rgba(0, 216, 216, 0.30);
  border-radius: 8px;
  color: #dfffff;
  font-size: 10px;
  letter-spacing: 0;
  padding: 4px 8px;
}

.topbar nav {
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nav-group {
  min-width: 0;
  position: relative;
}

.topbar .nav-link,
.topbar .nav-trigger {
  --nav-accent: var(--primary);
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 10px;
  color: #eaffff !important;
  flex: 0 1 auto;
  font-size: 13px;
  font-weight: 800;
  gap: 9px;
  line-height: 1.1;
  min-height: 46px;
  min-width: 0;
  padding: 8px 11px;
  text-transform: none;
  white-space: nowrap;
}

.topbar .nav-link span,
.topbar .nav-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar .nav-icon {
  background: color-mix(in srgb, var(--nav-accent) 16%, #0a1516);
  border: 1px solid color-mix(in srgb, var(--nav-accent) 32%, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  color: var(--nav-accent);
  flex: 0 0 30px;
  height: 30px;
  padding: 7px;
  width: 30px;
}

.topbar .nav-dashboard {
  --nav-accent: #00d8d8;
}

.topbar .nav-attendance {
  --nav-accent: #2dd4bf;
}

.topbar .nav-documents,
.topbar .nav-leaves,
.topbar .nav-chat,
.topbar .nav-password,
.topbar .nav-group-self-service .nav-trigger {
  --nav-accent: #38bdf8;
}

.topbar .nav-employees,
.topbar .nav-reports,
.topbar .nav-daily,
.topbar .nav-group-people .nav-trigger {
  --nav-accent: #22c55e;
}

.topbar .nav-payroll,
.topbar .nav-edit,
.topbar .nav-corrections,
.topbar .nav-group-admin .nav-trigger {
  --nav-accent: #f59e0b;
}

.topbar .nav-logout {
  --nav-accent: #fb7185;
}

.topbar .nav-link:hover,
.topbar .nav-link:focus-visible,
.topbar .nav-trigger:hover,
.topbar .nav-trigger:focus-visible,
.topbar .nav-link.active,
.topbar .nav-group.active .nav-trigger {
  background: color-mix(in srgb, var(--nav-accent) 14%, rgba(255, 255, 255, 0.05)) !important;
  border-color: color-mix(in srgb, var(--nav-accent) 48%, rgba(255, 255, 255, 0.12)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nav-accent) 13%, transparent);
  color: #ffffff !important;
  transform: none;
}

.topbar .nav-link.active .nav-icon,
.topbar .nav-group.active .nav-trigger .nav-icon {
  background: color-mix(in srgb, var(--nav-accent) 28%, #071213);
  color: #ffffff;
}

.chevron {
  color: var(--primary);
  flex: 0 0 auto;
  margin-left: auto;
}

.nav-menu {
  background: rgba(5, 15, 16, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.46);
  display: none;
  gap: 5px;
  min-width: 230px;
  padding: 8px;
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu,
.nav-group.active .nav-menu {
  display: grid;
}

.nav-group::after {
  bottom: -10px;
  content: "";
  height: 10px;
  left: 0;
  position: absolute;
  right: 0;
}

.nav-menu .nav-link {
  background: transparent !important;
  border-color: transparent !important;
  border-radius: 8px;
  color: #d8f7f8 !important;
  min-height: 40px;
  width: 100%;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
  background: rgba(0, 216, 216, 0.10) !important;
  border-color: rgba(0, 216, 216, 0.20) !important;
}

.container {
  max-width: 1360px;
  padding: 30px;
  width: 100%;
}

.page-title {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
}

h1,
h2,
.document-group h3,
.chat-rail-head strong,
.chat-thread-head h2 {
  color: var(--text-strong);
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(28px, 3vw, 38px);
}

h2 {
  font-size: 19px;
}

p,
.page-title p,
.muted,
.chat-rail-head small,
.chat-thread-head p,
.chat-search span {
  color: var(--muted);
}

.panel,
.stat,
.login-copy,
.mini-form,
.detail-list,
.chat-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

.panel:hover,
.stat:hover {
  border-color: rgba(0, 216, 216, 0.32);
}

.panel,
.login-copy {
  padding: 22px;
}

.panel-title {
  border-bottom-color: var(--line);
  flex-wrap: wrap;
  gap: 12px;
}

.stats-grid {
  gap: 16px;
}

.stat {
  min-height: 124px;
  overflow: hidden;
  padding: 20px;
}

.stat::before {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 999px;
  height: 58px;
  left: auto;
  opacity: 0.18;
  right: -14px;
  top: -14px;
  width: 58px;
}

.stat span {
  color: #a7c3c7;
  font-size: 13px;
  text-transform: none;
}

.stat strong {
  color: var(--text-strong);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 850;
}

label {
  color: #d9f4f4;
}

input,
select,
textarea,
.chat-search input,
.chat-composer textarea,
.emoji-popover input {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(192, 252, 252, 0.18);
  border-radius: 8px;
  color: var(--text);
  min-height: 44px;
}

input::placeholder,
textarea::placeholder {
  color: #78979b;
}

input:focus,
select:focus,
textarea:focus,
.chat-search input:focus,
.chat-composer textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 216, 216, 0.14);
}

select option {
  background: #071213;
  color: var(--text);
}

.button,
button.button,
summary.button {
  align-items: center;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(192, 252, 252, 0.20);
  border-radius: 8px;
  box-shadow: none;
  color: #f0ffff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 1 auto;
  font-weight: 800;
  justify-content: center;
  line-height: 1.15;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 15px;
  text-align: center;
  white-space: nowrap;
}

.button:hover,
.button:focus-visible,
button.button:hover,
button.button:focus-visible,
summary.button:hover,
summary.button:focus-visible {
  background: rgba(0, 216, 216, 0.12);
  border-color: rgba(0, 216, 216, 0.42);
  box-shadow: 0 0 0 3px rgba(0, 216, 216, 0.10);
  color: #ffffff;
  transform: none;
}

.button.primary {
  background: linear-gradient(135deg, #009f9f, #00d8d8);
  border-color: rgba(0, 216, 216, 0.42);
  color: #001819;
  text-shadow: none;
}

.button.primary:hover {
  background: linear-gradient(135deg, #00bcbc, #29f2d1);
  color: #001819;
}

.button:disabled,
button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.54;
  transform: none;
}

.button.danger {
  background: rgba(255, 107, 107, 0.10);
  border-color: rgba(255, 107, 107, 0.34);
  color: #ffd8d8;
}

.button.subtle {
  background: rgba(255, 255, 255, 0.045);
  color: #c6e3e6;
}

.button.small {
  border-radius: 8px;
  min-height: 34px;
  padding: 7px 11px;
}

.actions,
.status-buttons,
.inline-form,
.month-picker,
.tabs-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions .button,
.status-buttons .button,
.month-picker .button,
.inline-form .button,
.tabs-row .button {
  flex: 0 1 auto;
}

.status-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.status-buttons .button {
  width: 100%;
}

.filter-form,
.two-column-form {
  align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.filter-form .button,
.month-picker .button {
  width: auto;
}

.table-wrap {
  background: rgba(3, 10, 11, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
  overflow: auto;
}

table {
  background: transparent;
}

th,
td {
  border-bottom: 1px solid rgba(129, 226, 226, 0.13);
  color: #e8fbfb;
}

th {
  background: rgba(0, 216, 216, 0.07);
  color: #a7dfe1;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

tbody tr:hover {
  background: rgba(0, 216, 216, 0.06);
}

td .button.small {
  white-space: nowrap;
}

.badge,
.flag {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-weight: 850;
}

.badge.active,
.badge.approved {
  background: rgba(50, 213, 131, 0.15);
  color: #b8ffd7;
}

.badge.idle,
.badge.break,
.badge.lunch,
.badge.meeting,
.badge.pending,
.flag {
  background: rgba(253, 176, 34, 0.15);
  color: #ffe1a3;
}

.badge.logged_out,
.badge.rejected {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.flag.danger {
  background: rgba(255, 107, 107, 0.15);
  color: #ffd4d4;
}

.notice {
  border: 1px solid transparent;
  border-radius: 8px;
}

.notice.info {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.26);
  color: #c8efff;
}

.notice.success {
  background: rgba(50, 213, 131, 0.13);
  border-color: rgba(50, 213, 131, 0.26);
  color: #c9fadc;
}

.notice.error {
  background: rgba(255, 107, 107, 0.13);
  border-color: rgba(255, 107, 107, 0.28);
  color: #ffd4d4;
}

.detail-list,
.mini-form {
  background: rgba(3, 10, 11, 0.45);
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  color: #ffffff;
}

.login-shell {
  min-height: calc(100dvh - 132px);
}

.login-copy {
  background:
    linear-gradient(135deg, rgba(0, 216, 216, 0.15), rgba(0, 0, 0, 0)),
    rgba(7, 18, 19, 0.96);
}

.login-copy h1,
.login-copy p {
  color: var(--text-strong);
}

.setup-link {
  color: var(--accent);
}

.token-reveal code {
  background: #020607;
  border-color: var(--line);
  color: #dfffff;
}

.chat-page-title {
  align-items: center;
}

.chat-live-pill {
  background: rgba(50, 213, 131, 0.12);
  border-color: rgba(50, 213, 131, 0.28);
  color: #d5ffe6;
}

.chat-shell {
  background: rgba(5, 15, 16, 0.96);
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  height: clamp(620px, calc(100dvh - 190px), 820px);
  min-height: 560px;
  overflow: hidden;
}

.chat-rail {
  background: rgba(3, 10, 11, 0.76);
  border-right: 1px solid var(--line);
}

.chat-notify-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(192, 252, 252, 0.18);
  color: #eaffff;
}

.chat-shell .contact-link {
  border-radius: 8px;
  color: var(--text);
  min-height: 56px;
}

.chat-shell .contact-link strong {
  color: #ffffff;
}

.chat-shell .contact-link small {
  color: #9db8bb;
}

.chat-shell .contact-link:hover,
.chat-shell .contact-link.active {
  background: rgba(0, 216, 216, 0.12);
  border-color: rgba(0, 216, 216, 0.26);
  transform: none;
}

.contact-avatar,
.message-avatar {
  background: linear-gradient(135deg, #007f7f, #00d8d8);
  border-radius: 8px;
  color: #ffffff;
}

.chat-workspace {
  background: rgba(8, 20, 22, 0.95);
  color: var(--text);
  min-height: 0;
}

.chat-thread-head,
.chat-composer {
  background: rgba(5, 15, 16, 0.96);
  border-color: var(--line);
}

.chat-shell .message-list {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 160px),
    rgba(8, 20, 22, 0.88);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px;
}

.chat-shell .message {
  border-radius: 8px;
  color: var(--text);
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 4px 7px;
}

.chat-shell .message:hover {
  background: rgba(255, 255, 255, 0.045);
}

.message-body {
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  max-width: 980px;
  padding: 5px 8px;
}

.chat-shell .message.mine .message-body {
  background: rgba(0, 216, 216, 0.08);
}

.message-meta strong,
.chat-shell .message p {
  color: #f7ffff;
}

.message-meta time {
  color: #8eaaae;
}

.message-actions {
  gap: 10px;
}

.message-actions button {
  color: #7ff9ee;
}

.reply-preview,
.composer-reply {
  background: rgba(0, 216, 216, 0.10);
  border-left-color: var(--primary);
  color: #dfffff;
}

.reply-preview strong {
  color: var(--accent);
}

.reaction-chip {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(192, 252, 252, 0.18);
  color: #efffff;
}

.reaction-chip.active {
  background: rgba(0, 216, 216, 0.20);
  border-color: rgba(0, 216, 216, 0.42);
}

.chat-empty {
  border-color: var(--line);
  color: var(--muted);
}

.chat-composer {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.composer-tools {
  grid-template-columns: 44px minmax(0, 1fr);
  min-width: 0;
}

.emoji-button,
.composer-reply button {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(192, 252, 252, 0.20);
  color: #dfffff;
}

.chat-composer .button {
  min-height: 44px;
  min-width: 82px;
}

.emoji-popover {
  background: #071213;
  border-color: var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
  color: var(--text);
}

.emoji-grid button {
  background: transparent;
  color: var(--text);
}

.emoji-grid button:hover {
  background: rgba(0, 216, 216, 0.14);
}

@media (min-width: 1180px) {
  .topbar {
    align-items: stretch;
    background: rgba(3, 8, 9, 0.94);
    border-bottom: 0;
    border-right: 1px solid var(--line);
    bottom: 0;
    flex-direction: column;
    justify-content: flex-start;
    left: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 18px 14px;
    position: fixed;
    top: 0;
    width: 276px;
  }

  .brand {
    margin-bottom: 18px;
    padding: 2px 8px 14px;
  }

  .brand-logo {
    height: 44px;
    max-width: 214px;
  }

  .topbar nav {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
  }

  .topbar .nav-link,
  .topbar .nav-trigger {
    justify-content: flex-start;
    width: 100%;
  }

  .nav-group {
    width: 100%;
  }

  .nav-group::after {
    display: none;
  }

  .nav-menu {
    box-shadow: none;
    margin: 5px 0 8px 39px;
    min-width: 0;
    padding: 4px;
    position: static;
    width: calc(100% - 39px);
  }

  .container {
    margin-left: 276px;
    max-width: none;
    padding: 34px 42px;
    width: calc(100% - 276px);
  }

  .chat-shell {
    height: calc(100dvh - 168px);
  }
}

@media (max-width: 1179px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    position: sticky;
  }

  .topbar nav {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
    justify-content: stretch;
    width: 100%;
  }

  .nav-group {
    width: 100%;
  }

  .topbar .nav-link,
  .topbar .nav-trigger {
    justify-content: flex-start;
    width: 100%;
  }

  .nav-menu {
    margin-top: 6px;
    position: static;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .container {
    padding: 22px 16px;
    width: 100%;
  }

  .page-title {
    grid-template-columns: 1fr;
  }

  .page-title .button {
    width: fit-content;
  }

  .stats-grid,
  .attendance-grid {
    grid-template-columns: 1fr;
  }

  .chat-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .chat-rail {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    max-height: 330px;
  }

  .chat-workspace {
    min-height: 620px;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    height: 38px;
    max-width: 178px;
  }

  .topbar {
    padding: 12px;
  }

  .topbar nav {
    grid-template-columns: 1fr;
  }

  .topbar .nav-link,
  .topbar .nav-trigger {
    min-height: 44px;
  }

  .panel,
  .login-copy {
    padding: 16px;
  }

  .actions .button,
  .month-picker .button,
  .filter-form .button {
    width: 100%;
  }

  .chat-composer {
    grid-template-columns: 1fr;
  }

  .chat-composer .button {
    width: 100%;
  }
}

/* Fit dense admin tables inside the page */
.panel {
  max-width: 100%;
}

.employees-table-wrap {
  overflow-x: hidden;
}

.employees-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.employees-table th,
.employees-table td {
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  padding: 12px 10px;
  white-space: normal;
}

.employees-table th:nth-child(1),
.employees-table td:nth-child(1) {
  width: 17%;
}

.employees-table th:nth-child(2),
.employees-table td:nth-child(2) {
  width: 10%;
}

.employees-table th:nth-child(3),
.employees-table td:nth-child(3) {
  width: 13%;
}

.employees-table th:nth-child(4),
.employees-table td:nth-child(4) {
  width: 19%;
}

.employees-table th:nth-child(5),
.employees-table td:nth-child(5) {
  width: 9%;
}

.employees-table th:nth-child(6),
.employees-table td:nth-child(6) {
  width: 10%;
}

.employees-table th:nth-child(7),
.employees-table td:nth-child(7) {
  width: 12%;
}

.employees-table th:nth-child(8),
.employees-table td:nth-child(8) {
  width: 10%;
}

.users-table th:nth-child(1),
.users-table td:nth-child(1) {
  width: 13%;
}

.users-table th:nth-child(2),
.users-table td:nth-child(2) {
  width: 17%;
}

.users-table th:nth-child(3),
.users-table td:nth-child(3) {
  width: 10%;
}

.users-table th:nth-child(4),
.users-table td:nth-child(4) {
  width: 15%;
}

.users-table th:nth-child(5),
.users-table td:nth-child(5) {
  width: 11%;
}

.users-table th:nth-child(6),
.users-table td:nth-child(6) {
  width: 13%;
}

.users-table th:nth-child(7),
.users-table td:nth-child(7) {
  width: 21%;
}

.employees-table .badge,
.employees-table .flag {
  font-size: 11px;
  padding: 4px 7px;
}

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

.users-table .inline-form input {
  max-width: none;
  min-width: 0;
}

@media (max-width: 760px) {
  .employees-table-wrap {
    overflow-x: auto;
  }

  .employees-table {
    min-width: 760px;
  }
}

/* Keep chat input controls visible */
.chat-workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}

.chat-shell .message-list {
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 18px;
}

.chat-composer {
  border-top: 1px solid var(--line);
  bottom: 0;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 70px;
  position: sticky;
  z-index: 6;
}

.composer-tools {
  align-items: end;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr);
  min-width: 0;
}

.emoji-button {
  font-size: 0;
  height: 44px;
  min-height: 44px;
  width: 44px;
}

.emoji-button::before {
  content: "\263A";
  font-size: 20px;
  line-height: 1;
}

.composer-reply button {
  font-size: 0;
}

.composer-reply button::before {
  content: "\00D7";
  font-size: 18px;
  line-height: 1;
}

.chat-composer textarea {
  display: block;
  min-height: 44px;
  width: 100%;
}

.message-actions {
  opacity: 0.72;
}

.message:hover .message-actions,
.message:focus-within .message-actions {
  opacity: 1;
}

@media (max-width: 640px) {
  .chat-composer {
    grid-template-columns: 1fr;
  }
}
