:root {
  --bg: #f5f7fc;
  --surface: #fff;
  --ink: #192238;
  --muted: #5d6b84;
  --line: #e7ebf3;
  --blue: #3157ed;
  --blue-dark: #2444cd;
  --blue-soft: #edf1ff;
  --mint: #c8f1df;
  --mint-ink: #17694c;
  --coral: #ff8b75;
  --coral-soft: #fff0e9;
  --violet: #e7e2ff;
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --shadow: 0 6px 24px #22336a06;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea,
a {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8ca2ff;
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #3157ed20;
  border-color: var(--blue) !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -1.1px;
}
h2 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 620;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
small {
  font-size: 14px;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
::selection {
  background: var(--mint);
  color: var(--ink);
}
.boot {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 24px;
  font-weight: 600;
}
.loader {
  width: 20px;
  height: 20px;
  display: inline-block;
  border: 2px solid #dbe2ff;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -1px;
  font-size: 25px;
}
.brand-symbol {
  display: grid;
  place-items: center;
  background: var(--blue);
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -4px;
  padding-right: 4px;
  line-height: 1;
}
.brand-symbol svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.6;
}
.brand .brand-dot {
  color: var(--coral);
}
.app-shell {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: white;
  display: flex;
  flex-direction: column;
  padding: 30px 20px 20px;
  z-index: 30;
  border-right: 1px solid var(--line);
}
.sidebar .brand {
  padding: 0 9px;
}
.company-card {
  margin: 29px 3px 24px;
  border-radius: 13px;
  padding: 14px;
  background: #f0faf5;
  display: flex;
  gap: 11px;
  align-items: center;
}
.company-logo {
  width: 35px;
  height: 35px;
  background: var(--mint);
  color: var(--mint-ink);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
}
.company-info {
  min-width: 0;
}
.company-info b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.company-info span {
  display: block;
  color: #4e725f;
  font-size: 14px;
}
.nav-label {
  padding: 0 14px;
  margin: 0 0 9px;
  color: #60708a;
  font-size: 14px;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav-item {
  width: 100%;
  height: 45px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6a748c;
  border-radius: 10px;
  text-align: left;
  font-weight: 500;
  transition:
    background 0.18s,
    color 0.18s;
}
.nav-item:hover {
  background: #f3f5fc;
  color: var(--blue);
}
.nav-item[aria-current] {
  color: white;
  background: var(--blue);
  box-shadow: 0 5px 11px #3157ed20;
}
.nav-item svg {
  width: 19px;
  height: 19px;
}
.sidebar-note {
  margin-top: auto;
  padding: 25px 13px 18px;
  color: #60708a;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.5;
}
.sidebar-note svg {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: #8ba6a0;
}
.profile-button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 18px 5px 0;
  text-align: left;
  min-width: 0;
}
.profile-info {
  flex: 1;
  min-width: 0;
}
.profile-info b,
.profile-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.profile-info span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}
.profile-button > svg {
  width: 17px;
  color: var(--muted);
}
.avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e4e9fd;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
}
.avatar.mint {
  background: var(--mint);
  color: var(--mint-ink);
}
.avatar.coral {
  background: #ffe2d9;
  color: #a34b36;
}
.workspace {
  margin-left: 250px;
  width: calc(100% - 250px);
  min-width: 0;
}
.topbar {
  height: 88px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.breadcrumbs {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #60708a;
}
.breadcrumbs b {
  font-weight: 500;
  color: #414f6c;
}
.breadcrumbs .separator {
  color: #b1bacb;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}
.time-zone {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.language-select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 27px 7px 10px;
  font-size: 14px;
  max-width: 145px;
  cursor: pointer;
}
.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #e9edf8;
}
.icon-button.outline {
  border-color: var(--line);
  background: #fff;
}
.menu-button {
  display: none;
}
.main {
  padding: 15px 40px 38px;
  max-width: 1720px;
  margin: auto;
  min-height: calc(100dvh - 145px);
  outline: none;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 29px;
}
.page-heading .subtitle {
  margin-top: 9px;
  color: var(--muted);
  font-size: 15px;
}
.date-label {
  color: var(--muted);
  margin-bottom: 11px;
  font-size: 14px;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
  flex-wrap: wrap;
}
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  border: 1px solid #dfe5f1;
  background: #fff;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.button:hover {
  background: #f5f7fd;
  border-color: #ccd5eb;
}
.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 3px 6px #3157ed12;
}
.button.primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}
.button.mint {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--mint-ink);
}
.button.danger {
  color: #b8413e;
  border-color: #f0d6d2;
  background: #fff8f7;
}
.button.small {
  min-height: 34px;
  padding: 5px 11px;
}
.button svg {
  width: 17px;
  height: 17px;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 14px;
  padding: 4px 0;
  font-weight: 500;
}
.text-button:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}
.text-button svg {
  width: 16px;
  height: 16px;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.stat-card {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: #e8edff;
  position: relative;
  overflow: hidden;
  min-height: 151px;
}
.stat-card.mint {
  background: #dff5eb;
}
.stat-card.coral {
  background: #fff0e8;
}
.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
}
.stat-label {
  font-size: 14px;
  color: #52628d;
  font-weight: 500;
}
.mint .stat-label {
  color: #437b66;
}
.coral .stat-label {
  color: #9b6b55;
}
.stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #ffffffa6;
  color: var(--blue);
}
.mint .stat-icon {
  color: var(--mint-ink);
}
.coral .stat-icon {
  color: #ba6343;
}
.stat-value {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  margin-right: 9px;
}
.stat-note {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: #6b789a;
}
.mint .stat-note {
  color: #5b8975;
}
.coral .stat-note {
  color: #aa806d;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}
.column {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}
.card.pad {
  padding: 23px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 15px;
}
.card-head h2 {
  display: flex;
  gap: 10px;
  align-items: center;
}
.count {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  background: #eef1f8;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: #5d6b83;
}
.card-tabs {
  padding: 0 24px;
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
}
.tab {
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  padding: 11px 1px 12px;
  font-size: 14px;
  white-space: nowrap;
}
.tab.active {
  border-color: var(--blue);
  color: var(--blue);
}
.task-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 78px;
  padding: 15px 24px;
  border-bottom: 1px solid #edf0f6;
}
.task-row:last-child {
  border-bottom: 0;
}
.task-check {
  width: 21px;
  height: 21px;
  border: 1.5px solid #cdd5e6;
  border-radius: 7px;
  padding: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: white;
}
.task-check:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.task-check.done {
  background: var(--mint);
  border-color: var(--mint);
  color: #237454;
}
.task-check svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.3;
}
.task-content {
  flex: 1;
  min-width: 0;
}
.task-title {
  display: block;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  padding: 0;
  overflow-wrap: anywhere;
}
.task-title:hover {
  color: var(--blue);
}
.task-row.done .task-title {
  color: #60708a;
  text-decoration: line-through;
}
.meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #60708a;
  font-size: 14px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.project-bullet {
  width: 7px;
  height: 7px;
  background: #93a6f6;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}
.due {
  color: #67758e;
  font-size: 14px;
  white-space: nowrap;
}
.due.overdue {
  color: #b45d49;
}
.task-row .avatar {
  width: 31px;
  height: 31px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--blue-soft);
  color: #4a64bc;
  font-size: 14px;
  line-height: 1.5;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.badge.done,
.badge.employee_reported {
  background: #e4f6ed;
  color: #246f50;
}
.badge.blocked,
.badge.system_supplement {
  background: #fff0df;
  color: #99642c;
}
.badge.cancelled {
  background: #edf0f5;
  color: #5d6b83;
}
.badge.in_progress {
  background: #e8edff;
  color: #4561c5;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 3px 24px 24px;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px;
  text-align: left;
  display: block;
  background: #fff;
  transition: border-color 0.18s;
}
.project-card:hover {
  border-color: #b9c6ff;
}
.project-card:nth-child(3n + 1) {
  background: #f4f2ff;
}
.project-card:nth-child(3n + 2) {
  background: #effaf5;
}
.project-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e4dfff;
  color: #745acc;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
}
.project-card:nth-child(3n + 2) .project-icon {
  background: #d7f0e4;
  color: #387958;
}
.project-card h3 {
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.project-card p {
  color: #60708a;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.progress {
  height: 5px;
  background: #dfe5f1;
  border-radius: 4px;
  margin: 18px 0 8px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: #8f7ed9;
}
.project-card:nth-child(3n + 2) .progress > span {
  background: #6fbd98;
}
.project-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #60708a;
  font-size: 14px;
}
.week-card {
  background: #e4f6ed;
  border-color: #d7eee3;
  padding: 23px;
}
.week-card .card-head {
  padding: 0;
  margin-bottom: 4px;
}
.week-card .week-sub {
  font-size: 14px;
  color: #49745e;
  margin-top: 6px;
}
.week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 25px 0 17px;
}
.week-day {
  text-align: center;
  font-size: 14px;
  color: #49745e;
}
.week-day > span {
  display: grid;
  place-items: center;
  border-radius: 10px;
  min-height: 38px;
  margin-top: 8px;
  border: 1px solid #cde3d7;
  font-weight: 500;
}
.week-day.reported > span {
  background: #389375;
  color: white;
  border-color: #389375;
}
.week-day.system > span {
  background: #f9e6b7;
  border: 1px dashed #b39b55;
  color: #836a2f;
}
.week-day.today > span {
  box-shadow:
    0 0 0 2px #e4f6ed,
    0 0 0 3px #4c9f80;
}
.legend {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #49745e;
}
.legend > span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.legend i {
  width: 9px;
  height: 9px;
  display: block;
  background: #389375;
  border-radius: 3px;
}
.legend .system-dot {
  background: #f9e6b7;
  border: 1px dashed #a08e59;
}
.week-bottom {
  border-top: 1px solid #cfe8db;
  padding-top: 17px;
  margin-top: 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.week-bottom strong {
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
}
.week-bottom span {
  font-size: 14px;
  color: #49745e;
  margin-left: 5px;
}
.week-bottom .text-button {
  color: #276e51;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px 24px;
}
.quick-action {
  min-height: 86px;
  background: #f6f8fd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
}
.quick-action:hover {
  background: #eef2ff;
}
.quick-action svg {
  color: #6f83c1;
  width: 23px;
  height: 23px;
}
.quick-action:nth-child(2) svg {
  color: #d3846a;
}
.quick-action:nth-child(3) svg {
  color: #56a58f;
}
.quick-action:nth-child(4) svg {
  color: #9b7cc1;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
  padding: 15px 24px;
}
.file-row:last-child {
  border: 0;
}
.file-glyph {
  width: 38px;
  height: 43px;
  border-radius: 8px;
  background: #eaf0ff;
  color: #6a87c8;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.file-glyph svg {
  width: 23px;
  height: 23px;
}
.file-info {
  flex: 1;
  min-width: 0;
}
.file-info b {
  display: block;
  font-weight: 500;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-info span {
  display: block;
  color: #60708a;
  font-size: 14px;
  margin-top: 3px;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  padding: 34px 24px;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--blue-soft);
  color: #8195df;
  margin-bottom: 17px;
}
.empty-icon svg {
  width: 27px;
  height: 27px;
}
.empty h3 {
  font-size: 16px;
  font-weight: 550;
  margin-bottom: 6px;
}
.empty p {
  font-size: 14px;
  color: #60708a;
  max-width: 340px;
}
.empty .button {
  margin-top: 19px;
}
.empty.compact {
  min-height: 165px;
}
.error-state .empty-icon {
  background: #fff0e9;
  color: #ce806a;
}
.inline-error {
  background: #fff1ed;
  color: #a24d3e;
  border: 1px solid #f3d9d1;
  border-radius: 10px;
  padding: 12px 15px;
  margin: 0 0 17px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.notice {
  display: flex;
  gap: 12px;
  background: #eef3ff;
  color: #5f6e8c;
  border: 1px solid #dfe7ff;
  padding: 15px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 21px;
}
.notice svg {
  margin-top: 2px;
  width: 19px;
  height: 19px;
  color: #6480d4;
}
.notice.mint {
  background: #effaf5;
  border-color: #dcefe4;
  color: #4d725f;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar-label {
  font-size: 14px;
  color: var(--muted);
}
.input,
.select {
  background: white;
  border: 1px solid #dce3f0;
  border-radius: 9px;
  padding: 9px 12px;
  min-height: 40px;
  max-width: 100%;
}
.select {
  min-width: 140px;
}
.filter-tabs {
  display: flex;
  gap: 5px;
  background: #e9edf7;
  border-radius: 10px;
  padding: 4px;
}
.filter-tabs .tab {
  border: 0;
  border-radius: 7px;
  padding: 7px 14px;
}
.filter-tabs .tab.active {
  background: white;
  box-shadow: 0 2px 5px #22336a08;
}
.table-wrap {
  width: 100%;
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th {
  font-weight: 500;
  text-align: left;
  background: #f8faff;
  color: #64718a;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table tbody tr:last-child td {
  border: 0;
}
.table .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.table .person-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}
.table .person-cell b {
  display: block;
  font-weight: 500;
}
.table .person-cell span:not(.avatar) {
  display: block;
  color: var(--muted);
}
.split-view {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 580px;
  max-height: calc(100dvh - 245px);
  overflow: hidden;
}
.split-rail {
  border-right: 1px solid var(--line);
  padding: 12px;
  overflow: auto;
  background: #fcfdff;
}
.conversation-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  padding: 15px 11px;
  border-radius: 12px;
  text-align: left;
  margin-bottom: 5px;
  border: 1px solid transparent;
}
.conversation-item:hover {
  background: #f0f4ff;
}
.conversation-item.active {
  background: var(--blue-soft);
  border-color: #e0e7ff;
}
.conversation-item .avatar {
  border-radius: 12px;
  width: 40px;
  height: 40px;
}
.conversation-info {
  flex: 1;
  min-width: 0;
}
.conversation-info b {
  display: block;
  font-size: 14px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-info p {
  color: #60708a;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
  font-size: 14px;
}
.conversation-info small {
  display: block;
  color: #60708a;
  font-size: 14px;
  margin-top: 3px;
}
.split-reader {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
}
.reader-head {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.reader-head p {
  color: #60708a;
  font-size: 14px;
  margin-top: 5px;
}
.reader-body {
  padding: 23px 25px;
  overflow: auto;
  flex: 1;
  min-height: 180px;
}
.chat-message {
  display: flex;
  gap: 10px;
  margin-bottom: 21px;
  align-items: flex-start;
}
.chat-message .avatar {
  width: 31px;
  height: 31px;
}
.message-inner {
  max-width: 80%;
  min-width: 0;
}
.message-inner small {
  display: block;
  font-size: 14px;
  color: #60708a;
  margin-bottom: 6px;
}
.message-bubble {
  padding: 11px 15px;
  border-radius: 0 13px 13px 13px;
  background: #f0f3fa;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.7;
}
.chat-message.self {
  justify-content: flex-end;
}
.chat-message.self .message-bubble {
  border-radius: 13px 0 13px 13px;
  background: #e5edff;
  color: #34528c;
}
.chat-message.self small {
  text-align: right;
}
.composer {
  padding: 16px 22px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  border-top: 1px solid var(--line);
  background: #fbfcff;
}
.composer textarea {
  flex: 1;
  min-width: 0;
  resize: vertical;
  min-height: 43px;
  max-height: 150px;
  border: 1px solid #dce3f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
}
.composer .button {
  min-height: 43px;
}
.mail-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
  color: #4c5a75;
}
.mail-subject {
  font-size: 22px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.mail-meta {
  display: grid;
  gap: 7px;
  margin-top: 15px;
  color: #60708a;
}
.mail-meta span {
  overflow-wrap: anywhere;
}
.mail-status {
  margin-top: 15px;
}
.files-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
}
.document-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.document-art {
  height: 132px;
  background: #edf2ff;
  color: #a2b4e4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.document-art svg {
  width: 58px;
  height: 58px;
  stroke-width: 1.1;
}
.document-card:nth-child(3n + 2) .document-art {
  background: #eaf7f0;
  color: #9fcdb6;
}
.document-card:nth-child(3n) .document-art {
  background: #fff0e9;
  color: #e4b6a3;
}
.document-content {
  padding: 20px;
}
.document-content h3 {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.document-content p {
  color: #60708a;
  font-size: 14px;
  margin: 8px 0 17px;
}
.document-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #60708a;
}
.attendance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 23px;
  margin-bottom: 24px;
}
.attendance-calendar {
  padding: 25px;
  background: white;
}
.attendance-calendar .week-days {
  margin: 27px 0 24px;
  gap: 12px;
}
.attendance-calendar .week-day > span {
  min-height: 64px;
  font-size: 20px;
  border-color: #e0e7f1;
  background: #f9fbfe;
}
.attendance-calendar .week-day.reported > span {
  background: #389375;
  border-color: #389375;
}
.attendance-calendar .week-day.system > span {
  background: #f9e6b7;
  border-color: #b39b55;
}
.attendance-calendar .week-day.today > span {
  box-shadow:
    0 0 0 2px white,
    0 0 0 3px #4c9f80;
}
.attendance-summary {
  padding: 23px;
  background: #e4f6ed;
  border-color: #d7eee3;
}
.stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #d7e9df;
  color: #49745e;
}
.stat-line:last-child {
  border-bottom: 0;
}
.stat-line b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #3a6b53;
}
.stat-line.total b {
  font-size: 25px;
}
.payslip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.payslip-card {
  padding: 25px;
}
.payslip-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.payslip-icon {
  background: #f0ebff;
  color: #9176c7;
  border-radius: 13px;
  width: 44px;
  height: 46px;
  display: grid;
  place-items: center;
}
.payslip-meta {
  display: grid;
  gap: 8px;
  color: #60708a;
  margin-bottom: 23px;
}
.payslip-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.settings-grid .card {
  padding: 25px;
}
.detail-line {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.detail-line:last-child {
  border-bottom: 0;
}
.detail-line span {
  display: block;
  color: #60708a;
  font-size: 14px;
}
.detail-line b {
  display: block;
  font-weight: 500;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.security-title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 17px;
}
.security-title svg {
  color: var(--blue);
}
.settings-actions {
  margin-top: 23px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 40px 24px;
  color: #60708a;
  font-size: 14px;
  max-width: 1720px;
  margin: auto;
}
.footer .dot {
  width: 5px;
  height: 5px;
  display: inline-block;
  background: #9dc7b8;
  border-radius: 50%;
  margin-right: 6px;
}
.skeleton {
  padding: 24px;
  display: grid;
  gap: 14px;
}
.skeleton i {
  display: block;
  height: 18px;
  border-radius: 6px;
  background: #edf1f9;
  animation: pulse 1.3s ease-in-out infinite;
}
.skeleton i:nth-child(2) {
  width: 74%;
}
.skeleton i:nth-child(3) {
  width: 88%;
}
.skeleton i:nth-child(4) {
  width: 61%;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  max-width: calc(100vw - 36px);
  transform: translate(-50%, 15px);
  padding: 13px 21px;
  background: #243450;
  color: white;
  border: 1px solid #ffffff14;
  box-shadow: 0 5px 20px #17244020;
  border-radius: 11px;
  z-index: 100;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  padding: 0;
  border: 1px solid #dce3f0;
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
  width: 510px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 50px);
  box-shadow: 0 30px 120px #17244030;
}
dialog::backdrop {
  background: #16254866;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 23px 27px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  font-size: 20px;
}
.dialog-body {
  padding: 22px 27px;
  overflow: auto;
  max-height: calc(100dvh - 245px);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 17px 27px;
  border-top: 1px solid var(--line);
  background: #fbfcff;
}
.field {
  display: grid;
  gap: 7px;
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 500;
}
.field:last-child {
  margin-bottom: 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #dce3f0;
  border-radius: 9px;
  padding: 10px 12px;
  min-height: 44px;
  line-height: 1.6;
  font-weight: 400;
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.field select[multiple] {
  min-height: 145px;
}
.field-hint {
  font-size: 14px;
  color: #60708a;
  font-weight: 400;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.dialog-copy {
  color: #60708a;
  font-size: 14px;
  line-height: 1.8;
}
.history-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.history-row:last-child {
  border: 0;
}
.history-row b {
  font-size: 14px;
  font-weight: 500;
}
.history-row p {
  color: #60708a;
  font-size: 14px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.member-options {
  display: grid;
  gap: 7px;
  max-height: 230px;
  overflow: auto;
}
.member-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.member-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
}
.member-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-disclosure {
  font-size: 14px;
  color: #64728c;
  margin-bottom: 18px;
}
.company-disclosure summary {
  cursor: pointer;
}
.company-disclosure .field {
  margin-top: 14px;
}

.mobile-back {
  display: none;
}
.upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
@media (min-width: 1700px) {
  .sidebar {
    width: 270px;
    padding: 34px 25px;
  }
  .workspace {
    margin-left: 270px;
    width: calc(100% - 270px);
  }
  .main {
    padding-left: 48px;
    padding-right: 48px;
  }
  .topbar {
    padding-left: 48px;
    padding-right: 48px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(350px, 1fr);
  }
  .task-row {
    min-height: 83px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 220px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .workspace {
    margin-left: 220px;
    width: calc(100% - 220px);
  }
  .topbar {
    padding: 0 27px;
  }
  .main {
    padding-left: 27px;
    padding-right: 27px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
    gap: 18px;
  }
  .card-head {
    padding: 20px;
  }
  .task-row {
    padding: 15px 20px;
  }
  .project-grid {
    padding: 3px 20px 20px;
    grid-template-columns: 1fr;
  }
  .project-card:nth-child(n + 3) {
    display: none;
  }
  .quick-grid {
    padding: 0 20px 20px;
    gap: 9px;
  }
  .quick-action {
    padding: 12px;
    gap: 9px;
  }
  .week-card {
    padding: 20px;
  }
  .week-days {
    gap: 5px;
  }
  .stat-card {
    padding: 20px;
  }
  .files-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .attendance-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .split-view {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .time-zone {
    display: none;
  }
}
@media (max-width: 1020px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid > .column:last-child {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .overview-grid {
    gap: 13px;
  }
  .heading-actions {
    gap: 7px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading {
    gap: 15px;
  }
  .page-heading .subtitle {
    font-size: 14px;
  }
  .attendance-layout {
    grid-template-columns: 1fr;
  }
  .attendance-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
  }
  .attendance-summary h2 {
    grid-column: 1/-1;
  }
  .attendance-summary .stat-line {
    border: 0;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .payslip-grid {
    grid-template-columns: 1fr;
  }

  .due {
    display: none;
  }
}
@media (max-width: 800px) {
  .sidebar {
    transform: translateX(-100%);
    width: 264px;
    transition: transform 0.2s;
    box-shadow: 10px 0 40px #18274c10;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-scrim {
    position: fixed;
    inset: 0;
    background: #1d2d4e55;
    z-index: 29;
  }
  .workspace {
    margin-left: 0;
    width: 100%;
  }
  .menu-button {
    display: grid;
  }
  .topbar {
    height: 75px;
    padding: 0 23px;
  }
  .main {
    padding: 10px 23px 30px;
  }
  .breadcrumbs {
    gap: 10px;
  }
  .breadcrumbs > .workspace-label,
  .breadcrumbs > .separator {
    display: none;
  }
  .top-actions {
    gap: 12px;
  }
  .page-heading {
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .footer {
    padding-left: 23px;
    padding-right: 23px;
  }
  .split-view {
    max-height: none;
    min-height: 570px;
  }
  .overview-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 18px;
    min-height: 150px;
  }
  .stat-value {
    font-size: 32px;
  }
  .stat-card-header {
    margin-bottom: 16px;
  }
}
@media (max-width: 580px) {
  body {
    font-size: 14px;
  }
  .topbar {
    padding: 0 18px;
    height: 69px;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions > .avatar {
    display: none;
  }
  .language-select {
    padding-left: 8px;
    max-width: 115px;
  }
  .main {
    padding: 12px 17px 28px;
  }
  .page-heading {
    display: block;
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading .subtitle {
    max-width: 92%;
    line-height: 1.7;
    margin-top: 8px;
  }
  .heading-actions {
    margin-top: 17px;
    padding: 0;
  }
  .heading-actions .button {
    flex: 1;
  }
  .date-label {
    margin-bottom: 9px;
  }
  .overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
  }
  .stat-card {
    padding: 14px 12px;
    min-height: 150px;
    border-radius: 13px;
  }
  .stat-card-header {
    align-items: flex-start;
    margin-bottom: 14px;
  }
  .stat-label {
    font-size: 14px;
    line-height: 1.4;
    max-width: 80px;
  }
  .stat-icon {
    display: none;
  }
  .stat-value {
    font-size: 29px;
  }
  .stat-note {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 9px;
  }
  .dashboard-grid > .column:last-child {
    grid-template-columns: 1fr;
  }
  .dashboard-grid,
  .column {
    gap: 19px;
  }
  .card {
    border-radius: 15px;
  }
  .card-head {
    padding: 19px 19px 13px;
  }
  .card-head h2 {
    font-size: 17px;
  }
  .task-row {
    padding: 15px 18px;
    gap: 11px;
  }
  .task-row .avatar {
    display: none;
  }
  .task-title {
    font-size: 14px;
  }
  .meta {
    font-size: 14px;
  }
  .task-row .badge {
    display: none;
  }
  .card-tabs {
    padding: 0 19px;
    gap: 25px;
  }
  .project-grid {
    padding: 3px 19px 19px;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .project-card {
    padding: 14px;
  }
  .project-card h3 {
    font-size: 14px;
  }
  .project-card p {
    display: none;
  }
  .project-icon {
    margin-bottom: 12px;
  }
  .project-footer {
    font-size: 14px;
  }
  .project-footer span:first-child {
    max-width: 75%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .week-card {
    padding: 21px;
  }
  .week-days {
    gap: 9px;
  }
  .week-day > span {
    min-height: 40px;
  }
  .quick-grid {
    padding-left: 19px;
    padding-right: 19px;
  }
  .quick-action {
    min-height: 78px;
  }
  .toolbar {
    align-items: flex-start;
    gap: 13px;
  }
  .toolbar-group {
    width: 100%;
    gap: 8px;
  }
  .toolbar-group .input {
    flex: 1;
    min-width: 0;
  }
  .toolbar-group .select {
    flex: 1;
    min-width: 0;
  }
  .filter-tabs {
    max-width: 100%;
    overflow: auto;
  }
  .filter-tabs .tab {
    padding: 7px 11px;
  }
  .files-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .document-art {
    height: 105px;
  }
  .document-content {
    padding: 15px;
  }
  .document-content h3 {
    font-size: 14px;
  }
  .document-content p {
    margin: 7px 0 13px;
    font-size: 14px;
  }
  .document-footer {
    flex-wrap: wrap;
  }
  .document-footer > .button {
    width: 100%;
  }
  .attendance-calendar {
    padding: 19px;
  }
  .attendance-calendar .week-days {
    gap: 6px;
  }
  .attendance-calendar .week-day > span {
    min-height: 49px;
    font-size: 18px;
  }
  .attendance-calendar h2 {
    font-size: 16px;
  }
  .attendance-summary {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .attendance-summary .stat-line {
    border-bottom: 1px solid #d7e9df;
  }
  .attendance-summary .stat-line:last-child {
    border: 0;
  }
  .table th,
  .table td {
    padding: 14px 17px;
  }
  .payslip-card {
    padding: 21px;
  }
  .payslip-buttons {
    grid-template-columns: 1fr;
  }
  .settings-grid .card {
    padding: 21px;
  }
  .footer {
    padding: 0 19px 22px;
    display: block;
    font-size: 14px;
  }
  .footer span:last-child {
    display: none;
  }
  .split-view {
    display: block;
    max-height: none;
    min-height: 500px;
  }
  .split-rail {
    border-right: 0;
  }
  .split-view.has-selection .split-rail {
    display: none;
  }
  .split-view:not(.has-selection) .split-reader {
    display: none;
  }
  .split-reader {
    min-height: 500px;
    max-height: calc(100dvh - 230px);
  }
  .mobile-back {
    display: inline-flex;
    margin-right: 8px;
    vertical-align: middle;
  }
  .reader-head {
    padding: 18px;
  }
  .reader-head h2 {
    font-size: 17px;
  }
  .reader-body {
    padding: 20px 16px;
  }
  .composer {
    padding: 13px;
  }
  .composer .button {
    padding: 8px 12px;
  }
  .message-inner {
    max-width: 86%;
  }
  .message-inner small {
    font-size: 14px;
  }
  .message-bubble {
    font-size: 14px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .dialog-head {
    padding: 19px 21px;
  }
  .dialog-body {
    padding: 20px 21px;
  }
  .dialog-actions {
    padding: 16px 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* The work summary shares one surface. */
.overview-grid {
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 0;
  box-shadow: var(--shadow);
}
.stat-card,
.stat-card.mint,
.stat-card.coral {
  background: transparent;
  border-radius: 0;
  min-height: 0;
  padding: 0 25px;
  border-right: 1px solid var(--line);
}
.stat-card:last-child {
  border-right: 0;
}
.stat-card-header {
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 13px;
}
.stat-icon {
  order: -1;
  background: var(--blue-soft);
}
.mint .stat-icon {
  background: #e3f5ec;
}
.coral .stat-icon {
  background: #fff0e9;
}
.stat-label,
.mint .stat-label,
.coral .stat-label {
  color: #6e7b95;
}
.stat-note,
.mint .stat-note,
.coral .stat-note {
  color: #60708a;
}
.stat-value {
  font-size: 32px;
}
.stat-note {
  margin-top: 7px;
}
@media (max-width: 580px) {
  .overview-grid {
    padding: 17px 0;
  }
  .stat-card,
  .stat-card.mint,
  .stat-card.coral {
    padding: 0 12px;
    min-height: 0;
  }
  .stat-card-header {
    margin-bottom: 13px;
  }
  .stat-value {
    font-size: 29px;
  }
  .stat-note {
    font-size: 14px;
  }
  .stat-label {
    font-size: 14px;
    max-width: none;
  }
}

input::placeholder,
textarea::placeholder {
  color: #748097;
  opacity: 1;
}

.stat-label,
.mint .stat-label,
.coral .stat-label,
.stat-note,
.mint .stat-note,
.coral .stat-note {
  color: #60708a;
}

.brand img {
  display: block;
  max-width: 100%;
  height: auto;
}
.brand .brand-light {
  display: none;
}

.brand {
  max-width: 210px;
}
.sidebar .brand {
  padding: 0 5px;
}

.document-actions {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.document-actions .text-button {
  font-size: 14px;
}

.mail-account-strip,
.mail-compose-mode {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: -8px 0 24px;
  color: #60708a;
  font-size: 14px;
}
.mail-compose-mode {
  margin: 0 0 20px;
}
.mail-account-strip .badge svg,
.mail-compose-mode .badge svg {
  width: 15px;
  height: 15px;
}
.recipient-fieldset {
  border: 0;
  margin: 0 0 19px;
  padding: 0;
  min-width: 0;
}
.recipient-fieldset legend {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  padding: 0;
}
.recipient-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
}
.recipient-chips:empty {
  display: none;
}
.recipient-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #edf2ff;
  color: #4562aa;
  border: 1px solid #dee6ff;
  padding: 5px 7px 5px 10px;
  border-radius: 7px;
  font-size: 14px;
  max-width: 100%;
}
.recipient-chip > span {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.recipient-chip button {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  border-radius: 4px;
  padding: 2px;
}
.recipient-chip button:hover {
  background: #d9e3ff;
}
.recipient-chip svg {
  width: 13px;
  height: 13px;
}
.recipient-picker {
  border: 1px solid #dce3f0;
  border-radius: 10px;
  overflow: hidden;
}
.recipient-picker summary {
  font-size: 14px;
  color: #68799d;
  padding: 11px 13px;
  cursor: pointer;
  user-select: none;
}
.recipient-picker[open] summary {
  background: #f8faff;
  border-bottom: 1px solid var(--line);
}
.recipient-picker .input {
  border: 0;
  width: 100%;
  border-radius: 0;
  min-height: 43px;
  border-bottom: 1px solid var(--line);
}
.recipient-options {
  max-height: 195px;
  overflow: auto;
  padding: 6px;
}
.recipient-option {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 7px;
  border-radius: 7px;
  cursor: pointer;
}
.recipient-option:hover {
  background: #f5f7ff;
}
.recipient-option > input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.recipient-option > .avatar {
  width: 32px;
  height: 32px;
}
.recipient-option > span:last-child {
  min-width: 0;
}
.recipient-option b,
.recipient-option small {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recipient-option b {
  font-weight: 500;
}
.recipient-option small {
  color: #60708a;
}
.external-recipient {
  display: flex;
  gap: 9px;
  align-items: flex-end;
  margin-bottom: 19px;
}
.external-recipient .field {
  flex: 1;
  margin: 0;
  min-width: 0;
}
.external-recipient .button {
  min-height: 44px;
}
.mail-settings-card > .card-head {
  padding: 0 0 14px;
}
.dns-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.dns-grid > div {
  background: #f8faff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  display: grid;
  gap: 9px;
  justify-items: start;
}
.dns-grid b {
  font-size: 14px;
  font-weight: 550;
}
@media (max-width: 580px) {
  .dns-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .mail-settings-card > .card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .mail-account-strip {
    margin-top: 0;
  }
  .recipient-option {
    padding: 10px 7px;
  }
  .recipient-chip button {
    width: 28px;
    height: 28px;
  }
  .external-recipient {
    display: block;
  }
  .external-recipient .button {
    margin-top: 9px;
  }
  .mail-compose-mode {
    line-height: 1.5;
  }
}

.message-actions {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.message-actions .icon-button {
  width: 29px;
  height: 27px;
  color: #60708a;
}
.message-actions svg {
  width: 14px;
  height: 14px;
}
.chat-message:hover .message-actions,
.chat-message:focus-within .message-actions {
  opacity: 1;
}
@media (hover: none) {
  .message-actions {
    opacity: 1;
  }
  .message-actions .icon-button {
    width: 33px;
    height: 32px;
  }
}

.provider-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 23px 0 0;
}
.provider-summary > div {
  background: #f8faff;
  border: 1px solid var(--line);
  padding: 17px;
  border-radius: 11px;
  min-width: 0;
}
.provider-summary span,
.provider-summary small {
  display: block;
  color: #60708a;
  font-size: 14px;
}
.provider-summary b {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.migration-summary,
.migration-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
  color: #60708a;
}
.migration-summary strong {
  font-size: 17px;
  color: var(--ink);
  font-weight: 550;
}
.migration-status .badge {
  white-space: normal;
}
.mail-settings-card .card-head h2 svg {
  color: var(--blue);
}
@media (max-width: 580px) {
  .provider-summary {
    grid-template-columns: 1fr;
  }
  .migration-summary,
  .migration-status {
    align-items: flex-start;
    flex-direction: column;
  }
  .card.pad > .card-head {
    flex-wrap: wrap;
  }
  .card.pad > .card-head > .button {
    margin-top: 8px;
  }
}

.mail-attachments {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 25px;
  white-space: normal;
}
.mail-attachments h3 {
  font-size: 15px;
  margin-bottom: 11px;
}
.mail-attachment {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 9px;
  max-width: 100%;
  text-align: left;
  background: #fafcff;
}
.mail-attachment > svg:first-child {
  color: #8a9fcc;
}
.mail-attachment > span {
  min-width: 0;
  flex: 1;
}
.mail-attachment b,
.mail-attachment small {
  display: block;
  font-size: 14px;
}
.mail-attachment b {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.mail-attachment small {
  color: #60708a;
}
.mail-attachment > svg:last-child {
  width: 16px;
  color: var(--blue);
}
.dns-copy-field {
  position: relative;
  border: 1px solid var(--line);
  background: #f8faff;
  border-radius: 10px;
  padding: 15px;
  margin-top: 13px;
  display: grid;
  gap: 7px;
}
.dns-copy-field > span {
  color: #60708a;
  font-size: 14px;
}
.dns-copy-field code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
  padding-right: 80px;
}
.dns-copy-field .button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.footer a {
  color: inherit;
}

.footer a:hover {
  text-decoration: underline;
}
@media (max-width: 580px) {
  .footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .footer span:last-child {
    display: block;
  }
}

h1 {
  overflow-wrap: anywhere;
}
@media (max-width: 580px) {
  .stat-card-header {
    min-height: 40px;
    align-items: flex-start;
  }
  .stat-label {
    min-height: 40px;
  }
}
.bridge-health {
  margin-top: 22px;
  border: 1px solid #dce7f8;
  background: #f6f9ff;
  border-radius: 12px;
  padding: 18px;
}
.bridge-health.has-error {
  background: #fff6ee;
  border-color: #f0dcc8;
}
.bridge-health-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.bridge-health h3 {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}
.bridge-health h3 svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}
.bridge-health.has-error h3 svg {
  color: #a46832;
}
.bridge-health > p {
  color: #5d6b84;
  font-size: 14px;
  margin-top: 10px;
}
.bridge-timings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 16px 0 0;
}
.bridge-timings dt {
  color: #5d6b84;
  font-size: 14px;
}
.bridge-timings dd {
  font-size: 14px;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.bridge-health .bridge-error-code {
  border-top: 1px solid #f0dcc8;
  padding-top: 12px;
  margin-top: 15px;
}
.bridge-error-code code {
  font-size: 14px;
  overflow-wrap: anywhere;
}
@media (max-width: 580px) {
  .bridge-health {
    padding: 15px;
  }
  .bridge-health-head {
    display: grid;
    gap: 9px;
  }
  .bridge-health-head .badge {
    white-space: normal;
    width: fit-content;
  }
  .bridge-timings {
    grid-template-columns: 1fr;
    gap: 13px;
  }
}

.migration-table th,
.migration-table td {
  white-space: nowrap;
}

.mail-load-older {
  width: 100%;
  margin: 10px 0 4px;
  min-height: 42px;
  white-space: normal;
}
.mail-load-older .loader {
  width: 16px;
  height: 16px;
}
.mail-page-error {
  margin: 12px 0 0;
  border: 1px solid #f0d6ce;
  border-radius: 9px;
  padding: 11px;
  background: #fff3ee;
  color: #954b3a;
  font-size: 14px;
  line-height: 1.7;
}
.mail-page-error span {
  display: block;
  margin-top: 4px;
}
.mail-load-older:disabled {
  opacity: 1;
  background: #f6f8ff;
  color: #60708a;
}

.mail-split-view {
  height: calc(100dvh - 270px);
  grid-template-rows: minmax(0, 1fr);
}
.mail-split-view > .split-rail,
.mail-split-view > .split-reader {
  min-height: 0;
}
@media (max-width: 580px) {
  .mail-split-view {
    height: auto;
  }
  .mail-split-view > .split-reader {
    min-height: 500px;
  }
}

/* A month of acknowledged office dates; internal supplements remain visibly separate. */
.attendance-management {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}
.attendance-member-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  min-width: 0;
}
.attendance-member-label .select {
  width: min(310px, 100%);
  min-width: 0;
  color: var(--ink);
}
.attendance-month-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 24px;
  align-items: start;
}
.month-calendar {
  position: relative;
  min-width: 0;
  padding: 24px;
}
.attendance-month-toolbar,
.month-navigation,
.month-picker-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.attendance-month-toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 15px;
}
.month-navigation {
  gap: 10px;
}
.month-navigation h2 {
  min-width: 140px;
  text-align: center;
}
.month-picker-group {
  gap: 8px;
}
#attendance-month {
  min-width: 0;
  width: 164px;
  padding: 9px 10px;
}
.calendar-help {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 22px;
}
.attendance-subject {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--blue-soft);
}
.attendance-subject > span:not(.avatar):not(.badge) {
  display: grid;
  gap: 1px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.attendance-subject > span > span {
  color: var(--muted);
}
.attendance-subject .badge {
  margin-left: auto;
  white-space: normal;
  text-align: right;
}
.attendance-weekdays,
.attendance-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.attendance-weekdays {
  color: var(--muted);
  text-align: center;
  margin-bottom: 10px;
  font-size: 14px;
}
.attendance-read-status {
  position: absolute;
  z-index: 1;
  top: 55%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--blue-dark);
  box-shadow: var(--shadow);
}
.attendance-month-grid.is-loading {
  opacity: 0.35;
}
.attendance-day {
  position: relative;
  min-width: 0;
  min-height: 89px;
  padding: 10px 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 8px 2px;
  text-align: left;
  transition:
    border-color 150ms,
    background-color 150ms;
}
.attendance-day-number {
  font-size: 18px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.attendance-day-mark {
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}
.attendance-day-mark svg {
  width: 16px;
  height: 16px;
}
.attendance-day-source {
  grid-column: 1 / -1;
  align-self: end;
  font-size: 14px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.attendance-day.outside-month {
  background: #f8f9fc;
  color: var(--muted);
}
.attendance-day.today .attendance-day-number {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}
.attendance-day.selected-date {
  outline: 2px solid #b5c4ff;
  outline-offset: 1px;
}
.attendance-day.employee_reported {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.attendance-day.admin_reported {
  background: #edf1ff;
  border-color: #a8b9fa;
  color: #2444cd;
}
.attendance-day.system_supplement {
  background: #fffaf0;
  border: 1px dashed #b49a54;
  color: #7a6025;
}
.attendance-day:not(:disabled):hover {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.attendance-day:disabled {
  opacity: 1;
  cursor: default;
}
.attendance-day:disabled:not(.employee_reported):not(.admin_reported):not(
    .system_supplement
  ) {
  background: #f8f9fc;
  color: #8791a4;
}
.attendance-day[aria-busy="true"] {
  cursor: wait;
}
.date-spinner {
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.attendance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 21px 0 0;
  font-size: 14px;
}
.attendance-legend .employee-dot {
  background: var(--blue);
  border: 1px solid var(--blue);
}
.attendance-legend .admin-dot {
  background: #edf1ff;
  border: 1px solid #7d97ee;
}
.attendance-legend .system-dot {
  background: #fffaf0;
  border: 1px dashed #947331;
}
.attendance-secondary {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.attendance-week-summary,
.attendance-date-detail {
  padding: 22px;
}
.calendar-section-title {
  display: flex;
  gap: 9px;
  align-items: center;
}
.calendar-section-title svg {
  color: var(--blue);
}
.calendar-week-period {
  display: grid;
  gap: 3px;
  color: var(--muted);
  margin: 16px 0 8px;
  font-size: 14px;
}
.calendar-week-period b {
  font-weight: 500;
  color: var(--ink);
}
.attendance-week-summary .stat-line {
  gap: 14px;
  padding: 11px 0;
  font-size: 14px;
  color: var(--ink);
  border-bottom-color: var(--line);
}
.attendance-week-summary .stat-line b {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.attendance-week-summary .stat-line.total {
  color: var(--blue-dark);
}
.attendance-week-summary .stat-line.total b {
  color: var(--blue-dark);
  font-size: 20px;
}
.calendar-stat-note {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.attendance-date-detail h2 {
  font-size: 16px;
  margin-bottom: 12px;
}
.attendance-date-detail p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.attendance-detail-note {
  white-space: pre-wrap;
}
.badge.admin_reported {
  background: #edf1ff;
  color: #2444cd;
}
.week-day {
  min-width: 0;
  padding: 0;
  border-radius: 10px;
}
.week-day:disabled {
  opacity: 1;
  cursor: default;
}
.week-day.employee_reported > span {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.week-day.admin_reported > span {
  background: #edf1ff;
  border-color: #a8b9fa;
  color: #2444cd;
}
.week-day.system_supplement > span {
  background: #fffaf0;
  border: 1px dashed #ad9252;
  color: #7a6025;
}
.week-day.today > span {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px #718df5;
}
.week-card .attendance-legend {
  gap: 9px 15px;
  margin-top: 18px;
}
.week-card .week-bottom {
  flex-wrap: wrap;
  gap: 10px;
}
.week-card .week-bottom > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
}
.home-attendance-feedback:not(:empty),
#attendance-feedback:not(:empty) {
  margin-top: 16px;
}
.payslip-amounts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
}
.payslip-amounts > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}
.payslip-amounts span,
.payslip-amounts small {
  color: var(--muted);
  font-size: 14px;
}
.payslip-amounts strong {
  font-size: 20px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.dialog-signout {
  margin-right: auto;
}
@media (max-width: 1200px) {
  .attendance-month-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .attendance-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
@media (max-width: 600px) {
  .month-calendar {
    padding: 16px;
  }
  .attendance-month-toolbar {
    align-items: stretch;
  }
  .month-navigation,
  .month-picker-group {
    justify-content: space-between;
  }
  .month-navigation {
    width: 100%;
  }
  .month-picker-group {
    width: 100%;
  }
  #attendance-month {
    flex: 1;
    max-width: 230px;
    min-height: 42px;
  }
  .attendance-weekdays,
  .attendance-month-grid {
    gap: 4px;
  }
  .attendance-day {
    min-height: 64px;
    padding: 9px 5px;
    border-radius: 8px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 18px;
    gap: 6px;
    justify-items: center;
    text-align: center;
  }
  .attendance-day-number {
    font-size: 16px;
  }
  .attendance-day-source {
    display: none;
  }
  .attendance-day-mark svg {
    width: 14px;
    height: 14px;
  }
  .attendance-secondary {
    grid-template-columns: minmax(0, 1fr);
  }
  .attendance-member-label {
    width: 100%;
    flex-wrap: wrap;
    gap: 7px;
  }
  .attendance-member-label .select {
    width: 100%;
  }
  .attendance-subject {
    flex-wrap: wrap;
  }
  .attendance-subject .badge {
    margin-left: 0;
  }
  .calendar-help {
    margin-bottom: 18px;
  }
  .attendance-management .filter-tabs {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .payslip-amounts {
    gap: 14px;
  }
  .payslip-amounts strong {
    font-size: 18px;
  }
}
@media (max-width: 360px) {
  .month-calendar {
    padding: 12px;
  }
  .attendance-month-grid,
  .attendance-weekdays {
    gap: 3px;
  }
  .attendance-day {
    min-height: 59px;
    padding: 8px 3px;
  }
  .attendance-weekdays {
    font-size: 14px;
    letter-spacing: -0.4px;
  }
  .attendance-week-summary,
  .attendance-date-detail {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .date-spinner {
    animation-duration: 1500ms;
  }
  .attendance-day {
    transition: none;
  }
}
