:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --panel-soft: #fafbfc;
  --border: #e9edf3;
  --border-strong: #dfe5ee;
  --text: #172033;
  --muted: #6e7787;
  --subtle: #98a2b3;
  --brand: #08111f;
  --accent: #020a15;
  --accent-soft: #eef2f7;
  --blue: #2b6df6;
  --danger: #e04646;
  --green: #20a06b;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

button:active,
.button:active,
.menu-item:active {
  transform: translateY(1px) scale(0.99);
}

::selection {
  color: #fff;
  background: #111827;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px 0 26px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-logo {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}

.brand-name {
  font-size: 18px;
}

.top-links {
  display: none;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.muted-link,
.top-link-button {
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.muted-link:hover,
.top-link-button:hover {
  color: var(--text);
}

.user-menu {
  position: relative;
}

.user-trigger {
  min-width: 214px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
}

.user-trigger:hover,
.user-menu.open .user-trigger {
  border-color: var(--border);
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
}

.user-avatar {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #111827;
  font-size: 13px;
  font-weight: 800;
}

.user-avatar.large {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.user-meta {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
}

.user-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.user-email {
  max-width: 130px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 1.5px solid #8b95a5;
  border-bottom: 1.5px solid #8b95a5;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.16s ease;
}

.user-menu.open .chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: 248px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
  visibility: hidden;
}

.user-menu.open .user-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.dropdown-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.dropdown-profile strong,
.dropdown-profile small {
  display: block;
}

.dropdown-profile strong {
  font-size: 14px;
}

.dropdown-profile small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.dropdown-item {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  color: #394150;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.dropdown-item:hover {
  background: #f4f6f9;
  color: var(--text);
  transform: translateX(2px);
}

.dropdown-item.logout {
  color: var(--danger);
}

.logout-banner {
  display: none;
  align-items: center;
  gap: 10px;
  max-width: 1120px;
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid #d8eadf;
  border-radius: 8px;
  color: #136847;
  background: #f1fbf5;
}

.logout-banner.show {
  display: flex;
}

.logout-banner::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.workspace {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 64px;
  height: calc(100dvh - 64px);
  min-height: 0;
  overflow: hidden;
  padding: 14px 14px 12px;
  background: var(--panel);
  border-right: 1px solid var(--border);
}

.menu {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  scrollbar-width: thin;
}

.menu-section {
  margin-bottom: 8px;
}

.menu-heading {
  height: 40px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #394150;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
}

.menu-heading::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.6px solid #9aa3b2;
  border-bottom: 1.6px solid #9aa3b2;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.menu-heading:hover {
  color: var(--text);
  background: #f7f9fb;
}

.menu-heading:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.menu-section:not(.is-open) .menu-heading::after {
  transform: rotate(-45deg);
}

.menu-items {
  max-height: 100px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.22s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.menu-section:not(.is-open) .menu-items {
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.menu-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  position: relative;
}

.settings-icon {
  border: 2px solid #111827;
  border-radius: 50%;
}

.settings-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #111827;
}

.dashboard-icon {
  border: 1.7px solid #4e6580;
  border-radius: 4px;
  background:
    linear-gradient(#4e6580, #4e6580) 3px 3px / 4px 4px no-repeat,
    linear-gradient(#4e6580, #4e6580) 9px 3px / 4px 7px no-repeat,
    linear-gradient(#4e6580, #4e6580) 3px 9px / 4px 4px no-repeat,
    linear-gradient(#4e6580, #4e6580) 9px 12px / 4px 1px no-repeat;
}

.billing-icon {
  border: 1.8px solid #9aa3b2;
  border-radius: 4px;
}

.billing-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 5px;
  border-top: 1.8px solid #9aa3b2;
}

.subscribe-icon {
  border-radius: 4px;
  background: linear-gradient(135deg, #a3adb9, #687386);
}

.notification-icon {
  border: 1.8px solid #9aa3b2;
  border-radius: 8px 8px 5px 5px;
}

.notification-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9aa3b2;
}

.wecom-robot-icon {
  width: 17px;
  height: 14px;
  margin-top: 2px;
  border: 1.8px solid #4e6580;
  border-radius: 5px;
  background: #f7fafc;
}

.wecom-robot-icon::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 7px;
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: #4e6580;
  box-shadow: 0 -1px 0 1px #f7fafc, 0 -2px 0 1px #4e6580;
}

.wecom-robot-icon::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 4px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #4e6580;
  box-shadow: 6px 0 0 #4e6580;
}

.menu-item {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  margin: 2px 0 2px 30px;
  padding: 0 14px;
  color: #626b7b;
  border-radius: 8px;
  transition: background 0.16s ease, color 0.16s ease;
}

.menu-item:hover {
  color: var(--text);
  background: #f4f6f9;
  transform: translateX(2px);
}

.menu-item.active {
  color: var(--accent);
  background: #eef1f5;
  font-weight: 600;
}

.menu-item.active::before {
  content: "";
  position: absolute;
  left: 8px;
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: #111827;
}

.button.dark:hover,
.login-submit:hover {
  background: #172033;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.16);
}

.community {
  flex: 0 0 auto;
  margin-top: 6px;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 10px 14px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.community-quote {
  max-width: 210px;
  margin: 10px 0 0;
  padding: 0 12px;
  color: #4a5568;
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
}

.qr-image {
  width: 76px;
  height: 76px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  border: 8px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
}

.community-caption {
  font-size: 13px;
}

@media (max-height: 700px) {
  .sidebar { padding-top: 10px; }
  .community-quote {
    display: -webkit-box;
    max-height: 4.95em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .qr-image { width: 64px; height: 64px; }
}

.content {
  min-width: 0;
  padding: 34px 42px 48px;
}

.content:focus {
  outline: none;
}

.page {
  max-width: 1120px;
  animation: pageIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.page-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

.page-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.section-card {
  padding: 24px;
  margin-bottom: 18px;
}

.section-card:hover,
.metric:hover,
.plan-card:hover {
  border-color: #d7dee9;
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

.card-title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
}

.field-list {
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 46px;
}

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

.field-value {
  min-width: 0;
  color: var(--text);
  word-break: break-word;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #6a7280;
  background: #f0f2f5;
  font-size: 13px;
}

.action-link {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

.action-link.danger {
  color: var(--danger);
}

.action-link.is-copied {
  color: var(--green);
}

.action-link:disabled {
  cursor: wait;
  opacity: 0.65;
}

.verified-note {
  color: var(--green);
  font-weight: 700;
}

.enterprise-summary {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.enterprise-summary strong {
  font-weight: 700;
}

.button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.button:hover {
  border-color: #cfd7e3;
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
  transform: translateY(-1px);
}

.button.dark {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.button:active {
  transform: translateY(1px);
}

.ui-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button.ghost {
  background: var(--panel-soft);
}

.button.danger {
  color: var(--danger);
  border-color: #f0c8c8;
  background: #fffafa;
}

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

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

.select-box {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.select-box:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
  outline: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.36);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(100%, 420px);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
  background: #f8fafc;
}

.enterprise-modal {
  width: min(100%, 520px);
}

.password-form,
.enterprise-form {
  display: grid;
  gap: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.callout {
  display: flex;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 8px;
  color: #3f4959;
  background: #f5f7fb;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.callout-mark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #111827;
  font-size: 12px;
  font-weight: 700;
}

.callout.send-submitted {
  color: #1f6a45;
  background: #effaf4;
  border-color: #c4e9d3;
}

.callout.send-submitted .callout-mark {
  background: #23945a;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.message-log-table th:nth-child(4),
.message-log-table td:nth-child(4) { min-width: 260px; }

.log-content {
  display: -webkit-box;
  overflow: hidden;
  max-width: 460px;
  color: var(--text);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.log-content-link {
  color: var(--blue);
  text-decoration: none;
}

.log-content-link:hover { text-decoration: underline; }

.log-content-image {
  display: flex;
  align-items: center;
  gap: 9px;
}

.log-content-image img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  object-fit: cover;
}

.group-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  font-weight: 600;
}

.group-name img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--accent-soft);
}

.group-section-label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.group-section-label > span {
  padding: 3px 8px;
  border-radius: 999px;
  color: #506176;
  background: #eff3f7;
  font-size: 12px;
  font-weight: 650;
}

.group-toolbar {
  align-items: flex-end;
}

.group-toolbar-actions,
.task-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.excluded-groups-modal {
  width: min(560px, calc(100vw - 32px));
}

.excluded-group-list {
  display: grid;
  gap: 10px;
  max-height: min(48vh, 380px);
  margin: 18px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.excluded-group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel-soft);
}

.excluded-group-item strong,
.excluded-group-item small {
  display: block;
}

.excluded-group-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.excluded-group-empty {
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.group-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 190px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.group-search:focus-within {
  border-color: #9ab0c9;
  box-shadow: 0 0 0 3px rgba(43, 109, 246, .1);
}

.group-search svg {
  width: 16px;
  height: 16px;
  margin-left: 11px;
  flex: 0 0 auto;
  fill: none;
  stroke: #718198;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.group-search input {
  width: 100%;
  height: 100%;
  padding: 0 10px 0 8px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 13px;
}

.group-search input::placeholder {
  color: #8795a8;
}

.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;
}

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

.group-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff 0%, #fafbfd 100%);
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.02);
}

.group-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.group-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.group-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 13px;
  object-fit: cover;
  background: var(--accent-soft);
}

.group-avatar-fallback {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #d8e1ee;
  color: #45607e;
  background: linear-gradient(145deg, #eef4fb 0%, #e3ebf5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.group-avatar-fallback::before,
.group-avatar-fallback::after {
  content: none;
}

.group-avatar-fallback span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  color: #3f5874;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  transform: translateX(0.02em);
}

.group-card-title {
  min-width: 0;
}

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

.group-card-title h3 {
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 0 5px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-name-edit,
.group-name-delete {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #62738b;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
}

.group-name-edit:hover {
  color: var(--accent);
  background: #edf3fa;
}

.group-name-delete { color: #9a5a5a; }

.group-name-delete:hover {
  color: #a33a3a;
  background: #fff3f3;
}

.group-name-edit svg,
.group-name-delete svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.group-name-delete svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.group-member-count {
  color: #52705f;
  font-size: 12px;
  font-weight: 650;
}

.group-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 auto;
}

.group-card-details div {
  min-width: 0;
}

.group-card-details span,
.group-card-foot {
  display: block;
  color: var(--subtle);
  font-size: 11px;
}

.group-card-details strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #4a5568;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-card-details strong.current-wecom {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  line-height: 22px;
}

.current-wecom-avatar {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #e8eff7;
}

.current-wecom-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3f5874;
  font-size: 11px;
}

.current-wecom em {
  display: block;
  overflow: hidden;
  color: #344866;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-card-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.group-directory-note {
  margin: 15px 0 0;
  color: var(--subtle);
  font-size: 12px;
}

.group-empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.group-empty .empty-graphic {
  margin: 0;
}

.task-modal {
  width: min(100%, 720px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.wecom-connection-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.wecom-connection-card .page-subtitle {
  margin: 7px 0 0;
}

.wecom-connection-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wecom-status-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #aab4c2;
  color: #fff;
}

.wecom-status-mark .ui-icon { width: 12px; height: 12px; stroke-width: 2.5; }
.wecom-connection-status.online { color: #177c58; }
.wecom-connection-status.online .wecom-status-mark { background: #20a675; box-shadow: 0 0 0 4px #e7f7f0; }
.wecom-connection-status.offline { color: #667085; }
.wecom-connection-status small { margin-left: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }

.wecom-login-modal { width: min(100%, 440px); }

.wecom-qr-content { display: grid; justify-items: center; gap: 14px; padding: 10px 0 2px; text-align: center; }

.wecom-login-qr { width: min(260px, 72vw); aspect-ratio: 1; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: #fff; object-fit: contain; }

.wecom-login-tip { margin: 0; color: var(--muted); font-size: 13px; }

.task-modal .modal-header {
  align-items: flex-start;
}

.task-form {
  display: grid;
  gap: 18px;
}

.task-form-grid,
.task-content-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.group-target-picker {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.group-target-picker legend {
  padding: 0;
  color: #475467;
  font-size: 12px;
  font-weight: 650;
}

.group-target-picker > p {
  margin: 7px 0 9px;
  color: var(--subtle);
  font-size: 11px;
  line-height: 1.5;
}

.group-target-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
}

.group-target-trigger:hover { border-color: #7b8ba3; }

.group-target-trigger:focus-visible {
  outline: none;
  border-color: #7b8ba3;
  box-shadow: 0 0 0 3px rgba(43, 109, 246, 0.1);
}

.group-target-trigger > [data-group-target-label] {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-target-count {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.group-target-caret {
  width: 7px;
  height: 7px;
  margin: -3px 2px 0 2px;
  border-right: 1.5px solid #667085;
  border-bottom: 1.5px solid #667085;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.group-target-trigger[aria-expanded="true"] .group-target-caret { transform: rotate(225deg); margin-top: 3px; }

.group-target-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(28, 39, 60, 0.14);
}

.group-target-search { position: relative; margin-bottom: 7px; }

.group-target-search::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 11px;
  width: 10px;
  height: 10px;
  border: 1.5px solid #98a2b3;
  border-radius: 50%;
  transform: translateY(-58%);
}

.group-target-search::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: calc(50% + 4px);
  left: 21px;
  width: 5px;
  border-top: 1.5px solid #98a2b3;
  transform: rotate(45deg);
}

.task-form .group-target-search input { min-height: 36px; padding: 7px 10px 7px 31px; font-size: 12px; }

.group-target-options {
  display: grid;
  max-height: 180px;
  gap: 7px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: #fff;
}

.task-form .group-target-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 7px;
  border-radius: 5px;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 550;
}

.task-form .group-target-option:hover { background: #f4f7fb; }

.task-form .group-target-option[hidden] { display: none; }

.task-form .group-target-option input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.group-target-empty {
  margin: 12px 7px 5px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.task-content-fields {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.task-content-fields[hidden] {
  display: none;
}

.task-form label {
  display: grid;
  gap: 7px;
  color: #475467;
  font-size: 12px;
  font-weight: 650;
}

.task-form input,
.task-form select,
.task-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  outline: none;
  color: var(--text);
  background: #fff;
  resize: vertical;
}

.task-form input:focus,
.task-form select:focus,
.task-form textarea:focus {
  border-color: #7b8ba3;
  box-shadow: 0 0 0 3px rgba(43, 109, 246, 0.1);
}

.task-content-fields label:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.image-upload-field input[type="file"] {
  min-height: 44px;
  padding: 8px;
  border-style: dashed;
  cursor: pointer;
}

.image-upload-field small {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 500;
}

.link-thumb-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: #fafbfd;
  font-size: 12px;
  font-weight: 650;
}

.link-thumb-preview img {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  object-fit: cover;
  background: #fff;
}

@media (max-width: 680px) {
  .wecom-connection-card { align-items: flex-start; flex-direction: column; }

  .task-form-grid,
  .task-content-fields {
    grid-template-columns: 1fr;
  }

  .task-content-fields label:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

th {
  color: #4a5568;
  background: #fafbfc;
  font-size: 13px;
  font-weight: 700;
}

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

.table-empty {
  height: 120px;
  color: var(--muted);
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 18px 2px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.pagination-meta,
.pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pagination-total,
.pagination-page {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.pagination-total {
  color: var(--muted);
  white-space: nowrap;
}

.pagination-separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}

.pagination-page {
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: var(--panel-soft);
  font-weight: 700;
  white-space: nowrap;
}

.pagination-button {
  min-width: 92px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap !important;
}

.pagination-button:hover {
  border-color: #b8c6d9;
  color: var(--blue);
  background: #f7faff;
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.06);
}

.pagination-button:focus-visible {
  outline: 3px solid rgba(43, 109, 246, 0.18);
  outline-offset: 2px;
}

.pagination-arrow {
  color: var(--blue);
  font-size: 18px;
  font-weight: 400;
  line-height: 0.75;
}

.pagination-button:disabled {
  cursor: not-allowed;
  color: var(--subtle);
  background: #f8fafc;
  border-color: var(--border);
  opacity: 1;
  transform: none;
  box-shadow: none;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 240px;
  color: var(--muted);
  text-align: center;
}

.empty-graphic {
  width: 72px;
  height: 58px;
  border: 2px solid #dce2ea;
  border-radius: 10px;
  background:
    linear-gradient(#dce2ea, #dce2ea) 18px 20px / 36px 2px no-repeat,
    linear-gradient(#dce2ea, #dce2ea) 24px 30px / 24px 2px no-repeat,
    #fff;
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.metric-label {
  color: var(--muted);
  margin-bottom: 14px;
}

.metric-value {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: 0;
}

.metric-note {
  margin-top: 8px;
  color: var(--subtle);
  font-size: 13px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-metric {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.dashboard-metric > span,
.dashboard-metric > small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-metric strong {
  display: block;
  margin: 12px 0;
  color: var(--text);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.dashboard-metric a,
.dashboard-metric small {
  color: #0f5c56;
  font-size: 13px;
  font-weight: 650;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-panel {
  padding: 22px;
}

.task-list,
.progress-list {
  display: grid;
}

.task-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.task-row:last-child {
  border-bottom: 0;
}

.task-row strong,
.task-row small {
  display: block;
}

.task-row strong {
  color: var(--text);
  font-size: 14px;
}

.task-row small,
.task-row time {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.task-row time {
  margin: 0;
  white-space: nowrap;
}

.task-priority {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.priority-high { background: #d05d49; }
.priority-medium { background: #c38b3c; }
.priority-low { background: #4f948a; }

.progress-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}

.progress-list > div:last-child {
  border-bottom: 0;
}

.progress-list span { color: var(--text); }
.progress-list b { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }

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

.work-link-grid a {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-soft);
}

.work-link-grid a:hover {
  border-color: #a8c9c4;
  background: #f2f8f7;
}

.work-link-grid strong { color: var(--text); }
.work-link-grid span { color: var(--muted); font-size: 13px; line-height: 1.5; }

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #765416;
  background: #fff8e8;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.status-chip.complete {
  color: #176155;
  background: #eaf7f4;
}

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

.plan-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.plan-card.featured {
  border-color: #101828;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.09);
}

.plan-name {
  font-size: 18px;
  font-weight: 700;
}

.plan-price {
  margin: 18px 0 8px;
  font-size: 30px;
  font-weight: 800;
}

.plan-price span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
  color: #475467;
}

.feature-list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 1px;
}

.notice-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #f0f2f5;
}

.notice-tab {
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.notice-tab.active {
  color: var(--text);
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.08);
}

.login-body {
  min-height: 100vh;
  background: #f5f7fb;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(430px, 42vw) minmax(0, 1fr);
  background: #fff;
}

.login-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 42px;
  background: #fff;
  border-right: 1px solid var(--border);
  animation: loginPanelIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-header {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
}

.login-region {
  color: var(--muted);
  font-size: 13px;
}

.login-card {
  width: min(100%, 390px);
  margin: auto;
  padding: 14px 0 54px;
}

.login-eyebrow,
.showcase-eyebrow {
  margin: 0 0 10px;
  color: #0f5c56;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.login-title {
  margin: 0;
  color: #172033;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.login-description {
  margin: 12px 0 30px;
  color: var(--muted);
  line-height: 1.7;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-field {
  display: grid;
  gap: 8px;
  color: #475467;
  font-weight: 600;
}

.login-field em {
  margin-left: 6px;
  color: var(--subtle);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.login-field input {
  height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.login-field input:focus {
  border-color: #0f5c56;
  box-shadow: 0 0 0 3px rgba(15, 92, 86, 0.12);
}

.login-submit {
  margin-top: 8px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #0f5c56;
  cursor: pointer;
  font-weight: 700;
}

.login-submit:disabled {
  opacity: 0.68;
  cursor: wait;
}

.login-submit:active {
  transform: translateY(1px) scale(0.99);
}

.form-message {
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

.form-message.info {
  color: var(--muted);
}


.login-showcase {
  min-height: 100vh;
  padding: 44px;
  background: #eef5f3;
  overflow: hidden;
}

.showcase-inner {
  max-width: 900px;
  min-height: calc(100dvh - 88px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(300px, 1.22fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.showcase-eyebrow {
  margin-bottom: 12px;
}

.showcase-inner h2 {
  margin: 0;
  color: #101828;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.showcase-subtitle {
  margin: 18px 0 24px;
  color: #667085;
  font-size: 16px;
  line-height: 1.75;
}

.tax-capabilities {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #344054;
  font-weight: 650;
}

.tax-capabilities li {
  padding-left: 14px;
  border-left: 2px solid #78aaa3;
}

.tax-hero-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(24, 64, 60, 0.14);
}

.tax-hero-figure img {
  display: block;
  width: 100%;
  height: min(66vh, 680px);
  object-fit: cover;
  object-position: 62% center;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loginPanelIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes loginCardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes showcaseIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cardFloatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.model-row strong,
.model-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-row strong {
  font-size: 13px;
}

.model-row b {
  font-size: 15px;
}

.model-logo {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #111827;
  font-size: 13px;
  font-weight: 800;
}

.model-logo.moon {
  background: #6d7bff;
}

.model-logo.blue {
  background: #2b6df6;
}

.model-logo.dark {
  background: #101828;
}

.model-logo.google {
  background: #34a853;
}

.model-logo.red {
  background: #f04438;
}

.model-logo.seed {
  background: #7a5af8;
}

@media (max-width: 920px) {
  .topbar {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 18px;
  }

  .topbar-right {
    flex: 0 0 auto;
    justify-content: space-between;
    padding-bottom: 0;
  }

  .top-links {
    gap: 14px;
  }

  .user-trigger {
    min-width: 188px;
  }

  .workspace {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 112px);
  }

  .sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .content {
    padding: 24px 18px 40px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .balance-grid,
  .plan-grid,
  .dashboard-metrics,
  .dashboard-grid,
  .work-link-grid {
    grid-template-columns: 1fr;
  }

  .group-toolbar {
    align-items: stretch;
  }

  .group-toolbar-actions,
  .task-toolbar-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

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

  .pagination {
    gap: 12px;
    padding-left: 0;
    padding-right: 0;
  }

  .pagination-meta,
  .pagination-actions {
    flex-shrink: 1;
  }

  .pagination-button {
    min-width: 0;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-panel {
    min-height: auto;
    padding: 22px 18px 36px;
    border-right: 0;
  }

  .login-card {
    margin: 48px auto 0;
  }

  .login-showcase {
    min-height: auto;
    padding: 28px 18px 40px;
  }

  .showcase-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .showcase-inner h2 {
    font-size: 34px;
  }

  .tax-hero-figure img {
    height: min(72vw, 540px);
  }
}

@media (max-width: 600px) {
  .group-toolbar-actions,
  .task-toolbar-actions {
    justify-content: stretch;
  }

  .group-search {
    flex: 1 1 150px;
  }

  .task-toolbar-actions .group-search { flex: 1 1 180px; }

  .group-toolbar-actions > .button,
  .task-toolbar-actions > .button {
    flex: 0 0 auto;
  }

  .group-directory {
    grid-template-columns: 1fr;
  }
}
.task-delete-button {
  border-color: #f0c8c8;
  color: #a33a3a;
}

.task-delete-button:hover {
  border-color: #d87a7a;
  color: #8b2929;
  background: #fff5f5;
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 260px;
}

.task-actions .button,
.task-edit-button,
.task-toggle-button {
  margin: 0;
  padding: 0 9px;
  font-size: 12px;
}

.task-edit-button { color: #3d5876; }
.task-toggle-button { color: #475467; }
