:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --text: #172033;
  --muted: #64748b;
  --line: #dbe3ef;
  --line-soft: #edf1f7;
  --primary: #2563eb;
  --primary-2: #60a5fa;
  --cyan: #06b6d4;
  --pink: #db2777;
  --green: #16a34a;
  --orange: #f59e0b;
  --red: #ef4444;
  --blue: #2563eb;
  --yellow: #f59e0b;
  --purple: #7c3aed;
  --gray: #64748b;
  --slate: #334155;
  --shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
  --radius: 8px;
  --topbar: 56px;
  --sidebar: 240px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #101522;
  --panel: #172033;
  --panel-2: #202b3f;
  --text: #eef4ff;
  --muted: #a7b4c9;
  --line: #334158;
  --line-soft: #26344a;
  --primary: #ff8a2a;
  --primary-2: #ffc35a;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --green: #34d399;
  --orange: #f59e0b;
  --red: #fb7185;
  --blue: #60a5fa;
  --yellow: #fbbf24;
  --purple: #a78bfa;
  --gray: #a7b4c9;
  --slate: #d6e0ef;
  --shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  letter-spacing: 0;
}

[data-theme="dark"] body {
  background:
    linear-gradient(rgba(255, 138, 42, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    var(--bg);
}

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

button {
  border: 0;
  cursor: pointer;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #111827;
  border-color: #374151;
  color: var(--text);
}

input,
select {
  height: 38px;
  padding: 0 12px;
}

textarea {
  min-height: 78px;
  padding: 10px 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 18px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at var(--mx, 55%) var(--my, 42%), rgba(255, 138, 42, 0.26), transparent 28rem),
    radial-gradient(circle at 16% 26%, rgba(255, 195, 90, 0.28), transparent 24rem),
    linear-gradient(135deg, #fff8eb 0%, #fff3df 44%, #ffd2bd 100%);
}

.login-stage {
  width: min(420px, 100%);
  display: block;
  position: relative;
  z-index: 2;
}

.login-card {
  width: 100%;
  padding: 56px 32px 38px;
  border: 1px solid rgba(255, 157, 74, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 60px rgba(177, 88, 18, 0.14);
  backdrop-filter: blur(18px);
}

.login-logo {
  display: block;
  width: 260px;
  max-width: 86%;
  height: auto;
  margin: 0 auto 22px;
}

.login-card h1 {
  margin: 0 0 12px;
  color: #df5b05;
  font-size: 28px;
  line-height: 1.2;
  text-align: center;
}

.login-card p {
  margin: 0 0 28px;
  color: #966747;
  font-weight: 700;
  text-align: center;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  color: #7f5a44;
  font-weight: 700;
  font-size: 13px;
}

.password-row {
  position: relative;
}

.password-row input {
  padding-right: 52px;
}

.ghost-link {
  position: absolute;
  right: 8px;
  top: 6px;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: transparent;
  color: #a8795d;
}

.login-button {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff7615, #ff9a35);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(255, 118, 21, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(255, 118, 21, 0.34);
}

.login-error {
  min-height: 22px;
  color: var(--red);
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

.particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.login-theme-button {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #ff7615;
  box-shadow: 0 14px 28px rgba(177, 88, 18, 0.16);
  backdrop-filter: blur(14px);
}

[data-theme="dark"] .login-page {
  background:
    radial-gradient(circle at var(--mx, 55%) var(--my, 42%), rgba(255, 138, 42, 0.18), transparent 28rem),
    radial-gradient(circle at 18% 22%, rgba(34, 211, 238, 0.14), transparent 24rem),
    linear-gradient(135deg, #0e1420 0%, #141d2c 48%, #251b18 100%);
}

[data-theme="dark"] .login-card {
  border-color: rgba(255, 195, 90, 0.2);
  background: rgba(19, 28, 43, 0.88);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

[data-theme="dark"] .login-card h1 {
  color: #ffb35c;
}

[data-theme="dark"] .login-card p,
[data-theme="dark"] .field label {
  color: #d5bb9f;
}

[data-theme="dark"] .ghost-link,
[data-theme="dark"] .login-theme-button {
  color: #ffb35c;
}

[data-theme="dark"] .login-theme-button {
  background: rgba(17, 24, 39, 0.9);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  background: var(--bg);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 35;
  width: var(--sidebar);
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 14px 12px;
  overflow: auto;
}

.shell.sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.shell.sidebar-collapsed .sidebar {
  width: 72px;
  padding: 14px 8px;
  overflow: visible;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 10px 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(219, 234, 254, 0.9);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 56%, #fff7ed 100%);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
  overflow: hidden;
}

.sidebar-brand img {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
  filter: drop-shadow(0 10px 18px rgba(37, 99, 235, 0.16));
}

.sidebar-brand > div {
  min-width: 0;
  display: block;
}

.sidebar-brand strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

.sidebar-brand span {
  display: block;
  margin-top: 5px;
  color: #f59e0b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.shell.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  min-height: 66px;
  padding: 4px 0 12px;
}

.shell.sidebar-collapsed .sidebar-brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
}

.shell.sidebar-collapsed .sidebar-brand div {
  display: none;
}

.sidebar-profile {
  display: none;
}

.shell.sidebar-collapsed .sidebar .profile {
  justify-content: center;
  padding: 0 0 18px;
}

.shell.sidebar-collapsed .sidebar .profile > div:not(.avatar):not(.profile-menu),
.shell.sidebar-collapsed .nav-text,
.shell.sidebar-collapsed .badge {
  display: none;
}

.shell.sidebar-collapsed .nav-item {
  min-height: 48px;
  grid-template-columns: 1fr;
  padding: 6px;
  justify-items: center;
}

.shell.sidebar-collapsed .nav-icon {
  width: 40px;
  height: 40px;
}

.shell.sidebar-collapsed .sidebar .profile-menu {
  left: 54px;
  top: 4px;
}

.shell.sidebar-collapsed .sidebar .profile-caret {
  display: none;
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 20px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  cursor: pointer;
}

.sidebar .sidebar-profile {
  display: none !important;
}

.profile-caret {
  width: 24px;
  height: 24px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  flex: 0 0 auto;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-status-dot {
  position: absolute;
  right: -2px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.profile-status-dot.orange {
  background: #f59e0b;
}

.profile-status-dot.gray {
  background: #94a3b8;
}

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

.profile span {
  color: var(--muted);
  font-size: 12px;
}

.profile-menu {
  position: absolute;
  top: 54px;
  left: 8px;
  z-index: 50;
  width: 210px;
  display: none;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.13);
  cursor: default;
}

.profile-menu.open {
  display: grid;
}

.profile-menu-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 4px 8px;
}

.profile-menu-head strong {
  min-width: 0;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-head span {
  color: #2563eb;
  font-size: 12px;
}

.profile-role-pill {
  max-width: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 900;
}

.profile-menu-section {
  display: grid;
  gap: 6px;
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
}

.profile-menu-section h3 {
  margin: 0;
  color: var(--slate);
  font-size: 13px;
}

.profile-menu-actions {
  display: grid;
  gap: 6px;
}

.profile-menu-actions.bottom {
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
}

.profile-menu button {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border-radius: 12px;
  background: transparent;
  color: var(--slate);
  text-align: left;
  white-space: nowrap;
}

.profile-menu button:hover {
  background: var(--panel-2);
  color: var(--primary);
}

.profile-switch-row {
  justify-content: space-between;
  height: 34px;
  border-radius: 12px;
}

.profile-switch-row span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--slate);
  font-size: 14px;
}

.profile-switch {
  width: 34px;
  height: 20px;
  position: relative;
  border-radius: 999px;
  background: #dbe3ee;
  flex: 0 0 auto;
  transition: background 0.18s ease;
}

.profile-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease;
}

.profile-switch.on {
  background: #2563eb;
}

.profile-switch.on::after {
  transform: translateX(14px);
}

.profile-menu .danger {
  color: var(--red);
}

.message-popover.profile-edit-popover {
  width: min(340px, calc(100vw - 32px));
}

.profile-edit-popover .message-popover-head {
  justify-content: space-between;
  align-items: flex-start;
}

.profile-edit-popover .message-popover-head > div {
  min-width: 0;
  text-align: left;
}

.profile-edit-popover .icon-button {
  transition: transform 0.42s ease, background 0.18s ease, color 0.18s ease;
}

.profile-edit-popover .icon-button:hover {
  color: var(--primary);
  background: #eff6ff;
  transform: rotate(360deg);
}

.message-popover.profile-password-popover {
  width: min(320px, calc(100vw - 32px));
  gap: 12px;
  padding: 16px;
}

.message-popover.performance-verify-popover {
  width: min(340px, calc(100vw - 32px));
  gap: 12px;
  padding: 16px;
}

.profile-password-popover .message-popover-head h2 {
  font-size: 17px;
}

.profile-password-popover .message-popover-head span {
  font-size: 12px;
}

.profile-password-popover .field {
  gap: 6px;
  margin-bottom: 10px;
}

.profile-password-popover input {
  min-height: 38px;
}

.profile-password-popover .message-popover-foot {
  justify-content: flex-end;
  gap: 8px;
}


.menu-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 800;
  margin: 28px 12px 12px;
}

.sidebar-toggle {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.shell.sidebar-collapsed .menu-title {
  display: flex;
  justify-content: center;
  margin: 18px 0 12px;
}

.shell.sidebar-collapsed .menu-title span {
  display: none;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  background: transparent;
  color: var(--slate);
}

.nav-item:hover,
.nav-item.active {
  border-color: color-mix(in srgb, var(--nav-color) 36%, #dbe3ef);
  background: color-mix(in srgb, var(--nav-color) 12%, #fff);
  color: var(--primary);
}

.nav-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--nav-color) 16%, #fff);
  color: var(--nav-color);
}

.nav-image-icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.nav-item[title="飞书收集箱"] .nav-image-icon {
  width: 20px;
  height: 20px;
}

.nav-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.nav-text span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.main {
  grid-column: 2;
  min-width: 0;
  display: grid;
  grid-template-rows: var(--topbar) minmax(0, 1fr);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 5px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.top-pills {
  display: grid;
  grid-template-columns: minmax(330px, 440px) minmax(260px, 420px);
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  min-width: 0;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.72);
  background: rgba(255, 255, 255, 0.94);
  color: var(--slate);
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.08);
}

.pill strong {
  color: var(--primary);
  flex: 0 0 auto;
  font-weight: 900;
  font-size: 14px;
}

.pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #334155;
  font-weight: 600;
  font-size: 12px;
}

.pill-svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.notice-pill {
  position: relative;
  cursor: pointer;
}

.notice-pill.has-unread {
  border-color: rgba(239, 68, 68, 0.45);
  background: #fff7f7;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.12);
}

.notice-pill.has-unread::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.motto-pill strong {
  color: #1d4ed8;
}

.motto-pill span {
  overflow: visible;
  text-overflow: clip;
}

.enterprise-pill strong {
  color: #2563eb;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
}

.top-profile {
  min-height: 46px;
  gap: 9px;
  padding: 4px 8px 4px 5px;
  border: 1px solid rgba(219, 234, 254, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.top-profile:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  background: #fff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.12);
}

.top-profile .avatar {
  width: 36px;
  height: 36px;
  font-size: 12px;
}

.top-profile strong {
  max-width: 92px;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-profile span {
  font-size: 11px;
}

.top-profile .profile-caret {
  width: 20px;
  height: 20px;
}

.top-profile .profile-menu {
  top: 48px;
  right: 0;
  left: auto;
}

.top-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.top-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #e0f7fa);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.72);
}

.top-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.icon-button,
.small-button,
.primary-button,
.danger-button,
.dark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--slate);
  padding: 0 12px;
  font-weight: 700;
}

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

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

.danger-button {
  color: var(--red);
  border-color: #fecaca;
}

.dark-button {
  background: #1f2937;
  border-color: #1f2937;
  color: #fff;
}

.small-button {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
}

.content {
  min-width: 0;
  padding: 16px;
}

.content.map-content {
  height: calc(100vh - var(--topbar));
  overflow: hidden;
}

.workspace-card {
  min-height: calc(100vh - var(--topbar) - 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 22px;
}

.company-workspace-card,
.list-workspace-card {
  padding: 18px 4px 12px 10px;
}

.page-head,
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.page-head h1,
.section-head h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.page-head p,
.section-head p {
  margin: 0;
  color: var(--muted);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 16px;
}

.toolbar.compact {
  grid-template-columns: minmax(220px, 1fr) repeat(5, auto);
}

.toolbar.slim-toolbar {
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.toolbar.slim-toolbar label,
.toolbar.slim-toolbar .date-filter {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.toolbar.slim-toolbar input,
.toolbar.slim-toolbar select {
  height: 34px;
  font-size: 13px;
  font-weight: 700;
}

.toolbar.slim-toolbar .searchbox::before {
  top: 6px;
}

.company-toolbar {
  grid-template-columns: minmax(260px, 1fr) auto minmax(360px, auto);
}

.company-page-head {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(430px, 1fr) auto auto;
}

.company-title-block {
  min-width: 0;
}

.company-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.company-head-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(100%, 1120px);
}

.page-action-group {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.page-action-button {
  min-width: 74px;
  height: 34px;
  justify-content: center;
  padding: 0 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.page-action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
}

.company-page-head h1 {
  flex: 0 0 auto;
  margin-bottom: 6px;
}

.company-page-head p {
  line-height: 1.35;
}

.company-title-search {
  flex: 0 1 430px;
  min-width: 320px;
}

.company-title-search::before {
  top: 10px;
  left: 16px;
  color: #7c8aa3;
}

.company-title-search input {
  width: 100%;
  height: 42px;
  padding-left: 42px;
  border-color: rgba(148, 163, 184, 0.34);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  color: var(--slate);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.company-title-search input:focus {
  border-color: rgba(37, 99, 235, 0.48);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.company-head-tools .date-filter input {
  width: 128px;
  height: 34px;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.notice-publish {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate);
  font-weight: 800;
}

.notice-publish input {
  width: min(300px, 24vw);
  height: 34px;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
}

.notice-publish input:hover {
  border-color: rgba(37, 99, 235, 0.42);
  background: #f8fbff;
}

.date-filter-group,
.date-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.date-filter-group {
  flex-wrap: wrap;
}

.date-filter {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.date-filter input {
  width: 136px;
  cursor: pointer;
}

.crm-date-picker {
  position: fixed;
  z-index: 170;
  width: 282px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #fff;
  color: #1e293b;
  box-shadow: 0 22px 58px rgba(37, 99, 235, 0.16), 0 8px 22px rgba(15, 23, 42, 0.08);
  user-select: none;
  animation: crmDatePickerIn 0.16s ease-out;
}

.crm-date-picker-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.crm-date-picker-title {
  min-width: 0;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
  color: #0f172a;
  transition: background 0.16s ease, transform 0.16s ease;
}

.crm-date-picker-title:hover,
.crm-date-picker-title.open {
  transform: translateY(-1px);
  background: #eff6ff;
}

.crm-date-picker-head strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.crm-date-picker-head strong span {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #1e3a8a;
  transition: transform 0.16s ease;
}

.crm-date-picker-title.open span {
  transform: rotate(180deg);
}

.crm-date-picker-nav {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.crm-date-picker-nav:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  background: #dbeafe;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.14);
}

.crm-date-picker-nav.prev svg {
  transform: rotate(90deg);
}

.crm-date-picker-nav.next svg {
  transform: rotate(-90deg);
}

.crm-date-picker-week,
.crm-date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.crm-date-picker-week {
  margin-bottom: 6px;
}

.crm-date-picker-week span {
  display: grid;
  place-items: center;
  height: 24px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.crm-date-picker-grid {
  gap: 3px;
}

.crm-date-picker-day {
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #1e293b;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.14s ease, color 0.14s ease, background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.crm-date-picker-day:hover {
  transform: translateY(-1px);
  border-color: #dbeafe;
  background: #eff6ff;
  color: #2563eb;
}

.crm-date-picker-day.muted {
  color: rgba(100, 116, 139, 0.5);
}

.crm-date-picker-day.today {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #2563eb;
}

.crm-date-picker-day.selected {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.24);
}

.crm-date-picker-day.selected:hover {
  color: #fff;
  background: #1d4ed8;
}

.crm-date-picker-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #e0ecff;
}

.crm-date-picker-foot button {
  min-width: 68px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f8fbff;
  color: #2563eb;
  font-size: 14px;
  font-weight: 900;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.crm-time-row {
  min-width: 100px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #f8fbff;
  color: #1e293b;
  font-weight: 900;
}

.crm-time-row input {
  width: 40px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1e293b;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  outline: 0;
}

.crm-time-row input::-webkit-outer-spin-button,
.crm-time-row input::-webkit-inner-spin-button {
  margin: 0;
  opacity: 0.35;
}

.crm-month-panel {
  position: absolute;
  top: 58px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: none;
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.16);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.crm-month-panel.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.crm-month-panel > * {
  min-height: 0;
}

.crm-month-panel-head {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.crm-month-panel-head strong {
  color: #1e293b;
  font-size: 14px;
  text-align: center;
}

.crm-month-panel-head button {
  width: 30px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  transition: transform 0.16s ease, background 0.16s ease;
}

.crm-month-panel-head button:hover {
  transform: translateY(-1px);
  background: #dbeafe;
}

.crm-month-panel-head button:first-child svg {
  transform: rotate(90deg);
}

.crm-month-panel-head button:last-child svg {
  transform: rotate(-90deg);
}

.crm-month-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.crm-month-grid button {
  height: 30px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.crm-month-grid button:hover {
  transform: translateY(-2px) scale(1.03);
  background: #eff6ff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}

.crm-month-grid button.active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.crm-date-picker-foot button:hover {
  transform: translateY(-1px);
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #dbeafe;
}

.searchbox {
  position: relative;
}

.searchbox input {
  padding-left: 38px;
}

.searchbox::before {
  content: "⌕";
  position: absolute;
  left: 14px;
  top: 7px;
  color: var(--muted);
  font-size: 17px;
}

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

table {
  width: 100%;
  min-width: 1240px;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-data-table th,
.compact-data-table td {
  padding-left: 7px;
  padding-right: 7px;
}

.company-data-table th,
.company-data-table td,
.candidate-data-table th,
.candidate-data-table td {
  padding-left: 5px;
  padding-right: 5px;
}

.company-data-table {
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 8px 8px 0 0;
}

.company-data-table table,
.candidate-data-table table {
  min-width: 1120px;
}

.company-data-table th {
  position: relative;
}

.company-data-table th > span {
  display: inline-block;
  max-width: calc(100% - 10px);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.company-col-resizer {
  position: absolute;
  top: 7px;
  right: 0;
  bottom: 7px;
  width: 8px;
  cursor: col-resize;
  border-radius: 99px;
}

.company-col-resizer::after {
  content: "";
  position: absolute;
  top: 20%;
  bottom: 20%;
  left: 3px;
  width: 2px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.55);
}

.company-col-resizer:hover::after {
  background: var(--primary);
}

.company-bottom-scroll {
  position: sticky;
  bottom: 0;
  z-index: 5;
  height: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(248, 250, 252, 0.98);
}

.company-bottom-scroll > div {
  height: 1px;
}

.qiye-shouji-lunbo,
.mingdan-shouji-list,
.shouji-dibu-daohang {
  display: none;
}

.qiye-shouji-wutai {
  overflow: hidden;
}

.qiye-shouji-guidao {
  display: flex;
  transition: transform 0.24s ease;
}

.qiye-shouji-ka {
  flex: 0 0 100%;
}

.candidate-followup-table table {
  table-layout: fixed;
}

.candidate-followup-table th,
.candidate-followup-table td {
  padding-left: 4px;
  padding-right: 4px;
}

.candidate-followup-table th:last-child,
.candidate-followup-table td:last-child {
  overflow: visible;
}

.candidate-followup-table .actions {
  width: 100%;
  justify-content: flex-start;
  gap: 4px;
  white-space: nowrap;
}

.candidate-followup-table .small-button {
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.candidate-followup-table .table-action {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f3f5f9;
  color: #64748b;
  font-weight: 800;
}

.th-sort-button {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
}

.th-sort-button img {
  width: 15px;
  height: 15px;
  opacity: 0.58;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.th-sort-button:hover {
  color: var(--primary);
}

.th-sort-button:hover img {
  opacity: 0.95;
}

.th-sort-button.asc img {
  transform: rotate(180deg);
}

tbody tr:hover {
  background: #f8fbff;
}

tbody tr {
  transition: background 0.14s ease;
}

.editable-row [data-edit-cell] {
  cursor: pointer;
}

.editable-row [data-edit-cell]:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.06);
}

.inline-date-input {
  height: 30px;
  min-width: 132px;
  padding: 0 8px;
}

.cell-popover {
  position: fixed;
  z-index: 80;
  width: min(260px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.cell-text-popover {
  max-height: 150px;
  overflow: auto;
  padding: 10px 12px;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.full-text-popover {
  width: fit-content;
  min-width: min(170px, calc(100vw - 24px));
  max-width: min(420px, calc(100vw - 24px));
  max-height: min(260px, calc(100vh - 24px));
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.15);
}

.company-full-text-popover {
  width: fit-content;
  min-width: min(170px, calc(100vw - 24px));
  max-width: min(420px, calc(100vw - 24px));
  max-height: min(360px, calc(100vh - 24px));
  padding: 10px 14px;
  border-radius: 4px;
  line-height: 1.72;
}

.cell-editor-popover {
  padding: 10px;
  animation: popIn 0.14s ease-out;
}

.cell-editor-popover label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cell-editor-popover input[type="text"],
.cell-editor-popover input[type="number"],
.cell-editor-popover textarea {
  width: 100%;
}

.cell-radio-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin: 4px 0 12px;
}

.cell-radio-group label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  margin: 0;
  color: var(--slate);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  animation: optionSlideIn 0.16s ease-out both;
}

.cell-radio-group label:nth-child(2) {
  animation-delay: 0.025s;
}

.cell-radio-group label:nth-child(3) {
  animation-delay: 0.05s;
}

.cell-radio-group label:nth-child(4) {
  animation-delay: 0.075s;
}

.cell-radio-group label:nth-child(5) {
  animation-delay: 0.1s;
}

.cell-radio-group label:nth-child(6) {
  animation-delay: 0.125s;
}

.cell-radio-group label:nth-child(7) {
  animation-delay: 0.15s;
}

.cell-radio-group label:hover {
  transform: translateX(2px);
  border-color: rgba(37, 99, 235, 0.32);
  background: #f1f5ff;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.1);
}

.cell-radio-group label:has(input:checked) {
  border-color: rgba(37, 99, 235, 0.5);
  background: #eff6ff;
  color: var(--primary);
  box-shadow: inset 3px 0 0 var(--primary);
}

.cell-radio-group input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--primary);
}

.cell-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.cell-editor-actions .small-button,
.cell-editor-actions .primary-button {
  height: 30px;
  min-width: 48px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.timeline-summary {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  color: var(--slate);
  text-align: left;
}

.timeline-summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-summary em {
  font-style: normal;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.timeline-summary:hover span {
  color: var(--primary);
}

.timeline-popover {
  width: min(680px, calc(100vw - 32px));
}

.assign-popover {
  width: min(520px, calc(100vw - 32px));
}

.assign-body {
  display: grid;
  gap: 12px;
}

.assign-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.batch-action-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.06);
  color: var(--slate);
  font-size: 13px;
  font-weight: 800;
}

.batch-action-bar.active,
.batch-action-bar:has(button) {
  display: flex;
}

.batch-action-bar strong {
  color: var(--primary);
}

.select-column {
  text-align: center;
}

.select-column input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.format-choice-popover {
  width: min(460px, calc(100vw - 32px));
}

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

.format-choice-card {
  display: grid;
  gap: 8px;
  min-height: 124px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.92);
  color: var(--text);
  text-align: left;
}

.format-choice-card:hover {
  border-color: rgba(37, 99, 235, 0.38);
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

.format-choice-card strong {
  font-size: 18px;
}

.format-choice-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.reward-fee-list {
  display: grid;
  gap: 8px;
}

.reward-fee-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
}

.reward-fee-list .small-button {
  justify-content: flex-start;
  min-height: 34px;
  white-space: normal;
  text-align: left;
}

.reward-fee-list .reward-fee-option {
  position: relative;
  border-color: var(--reward-border, var(--line));
  background: var(--reward-bg, #fff);
  color: var(--slate);
  gap: 8px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.reward-fee-row .reward-fee-option {
  width: 100%;
  border-color: var(--line);
  background: var(--option-bg, #fff);
}

.reward-fee-list .reward-fee-option::before {
  content: "";
  display: none;
}

.reward-fee-list .reward-fee-option:hover {
  transform: translateX(3px);
  border-color: rgba(37, 99, 235, 0.42);
  color: var(--slate);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.reward-fee-list .reward-fee-option.active {
  border-color: rgba(37, 99, 235, 0.48);
  background: var(--option-bg-active, var(--option-bg, #eff6ff));
  color: var(--text);
}

.reward-fee-list .reward-fee-option.active::after {
  content: "已选";
  margin-left: auto;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.reward-fee-color {
  width: 34px;
  height: 34px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  cursor: pointer;
}

.tone-select,
.company-option-list {
  display: grid;
  gap: 8px;
}

.tone-option-row,
.company-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
}

.tone-option,
.company-option-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--option-bg, #fff);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.tone-option:hover,
.company-option-button:hover {
  transform: translateX(3px);
  border-color: rgba(37, 99, 235, 0.42);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.tone-option.active,
.company-option-button.active {
  border-color: rgba(37, 99, 235, 0.48);
  background: var(--option-bg-active, var(--option-bg, #eff6ff));
  color: var(--text);
}

.tone-option.active::after,
.company-option-button.active::after {
  content: "已选";
  margin-left: auto;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.tone-option-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.tone-option-color,
.company-option-color {
  width: 34px;
  height: 34px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  cursor: pointer;
}

.company-option-popover {
  width: min(280px, calc(100vw - 24px));
}

.timeline-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.timeline-item time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.timeline-item strong {
  display: block;
  margin-bottom: 4px;
}

.timeline-item p {
  margin: 0;
  color: var(--slate);
  line-height: 1.65;
  word-break: break-word;
}

.timeline-edit-item,
.timeline-add-item {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.timeline-edit-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.timeline-edit-item span em {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.timeline-edit-item textarea,
.timeline-add-item textarea {
  min-height: 42px;
  box-sizing: border-box;
  line-height: 1.45;
  overflow: hidden;
  resize: vertical;
  white-space: pre-wrap;
}

.timeline-edit-item.locked textarea {
  background: #f8fafc;
  color: var(--muted);
  cursor: not-allowed;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes crmDatePickerIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dashboardChartIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    filter: saturate(0.82);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

.actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.table-action {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: var(--slate);
  background: transparent;
}

.table-action:hover {
  background: #eef2ff;
  color: var(--primary);
}

.table-action.delete:hover {
  background: #fff1f2;
  color: var(--red);
}

.feishu-shouji-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.feishu-shouji-summary span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.feishu-shouji-summary span:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.feishu-shouji-summary strong {
  color: var(--primary);
  font-size: 15px;
}

.feishu-shouji-summary .small-button,
.feishu-shouji-summary .primary-button {
  height: 34px;
  border-radius: 999px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.feishu-shouji-summary .small-button:hover,
.feishu-shouji-summary .primary-button:hover,
.feishu-shouji-table .small-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.14);
}

.feishu-mode-pill {
  background: #eff6ff !important;
  border-color: #dbeafe !important;
  color: #1e293b !important;
}

.feishu-refresh-button svg {
  transform-origin: center;
}

.feishu-refresh-button.spinning svg {
  animation: feishuRefreshSpin 0.6s ease-in-out;
}

.feishu-protect-note {
  color: #b45309 !important;
  background: #fffbeb !important;
  border-color: #fde68a !important;
}

@keyframes feishuRefreshSpin {
  to {
    transform: rotate(1080deg);
  }
}

.feishu-shouji-table table {
  table-layout: fixed;
}

.feishu-shouji-table th,
.feishu-shouji-table td {
  position: relative;
  padding-left: 6px;
  padding-right: 6px;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feishu-shouji-table th > span {
  display: inline-block;
  max-width: calc(100% - 10px);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.feishu-col-resizer {
  position: absolute;
  top: 7px;
  right: 0;
  bottom: 7px;
  width: 8px;
  cursor: col-resize;
  border-radius: 99px;
}

.feishu-col-resizer::after {
  content: "";
  position: absolute;
  top: 20%;
  bottom: 20%;
  left: 3px;
  width: 2px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.55);
}

.feishu-col-resizer:hover::after {
  background: var(--primary);
}

.feishu-shouji-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.compact-empty {
  min-height: 120px;
  border: 0;
  background: transparent;
}

.empty {
  min-height: 166px;
  display: grid;
  place-items: center;
  color: #94a3b8;
  background: #f7f8fb;
  border-radius: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.tag.green {
  background: #dcfce7;
  color: #15803d;
}

.tag.blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.tag.pink,
.tag.purple {
  background: #fce7f3;
  color: #7e22ce;
}

.tag.orange,
.tag.yellow {
  background: #fef3c7;
  color: #b45309;
}

.tag.red {
  background: #fee2e2;
  color: #b91c1c;
}

.tag.gray {
  background: #f1f5f9;
  color: #64748b;
}

.tag.option-tag {
  border-color: transparent;
  background: var(--option-bg, #f1f5f9);
  color: var(--text);
}

.muted-dash {
  color: #94a3b8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.stat-card {
  min-height: 86px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--stat-color) 32%, #dbe3ef);
  background: color-mix(in srgb, var(--stat-color) 12%, #fff);
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--stat-color) 52%, #dbeafe);
  background: color-mix(in srgb, var(--stat-color) 16%, #fff);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--stat-color) 18%, transparent);
}

.stat-card:hover .stat-icon {
  transform: scale(1.06) rotate(-2deg);
}

.stat-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--stat-color);
  color: #fff;
  transition: transform 0.18s ease;
}

.stat-card span {
  color: var(--stat-color);
  font-size: 13px;
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.chart-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.chart-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  cursor: pointer;
}

.chart-card h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.chart-card canvas {
  width: 100%;
  height: 280px;
  display: block;
}

.chart-grid.three canvas {
  height: 250px;
}

.home-workspace {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.035), rgba(20, 184, 166, 0.025)),
    #fff;
}

.home-head {
  align-items: center;
  margin-bottom: 14px;
}

.home-head-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.home-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.home-view-switch select {
  height: 32px;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  padding: 0 10px;
}

.home-head h1 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-density-tabs {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
}

.home-density-tabs button {
  min-width: 42px;
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.home-density-tabs button:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.home-density-tabs button.active {
  background: var(--primary);
  color: #fff;
}

.home-scope-pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.home-body {
  display: grid;
  gap: 14px;
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 10px;
}

.home-stat-card {
  width: 100%;
  min-height: 96px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border: 1px solid color-mix(in srgb, var(--home-color) 24%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--home-color) 8%, #fff);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.home-stat-card:hover,
.home-todo-item:hover,
.home-interview-item:hover,
.home-progress-item:hover,
.home-distribution-item:hover,
.home-funnel-numbers button:hover,
.home-funnel-summary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.home-stat-card:hover {
  border-color: color-mix(in srgb, var(--home-color) 45%, var(--line));
}

.home-stat-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--home-color) 15%, #fff);
  color: var(--home-color);
}

.home-stat-icon img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.home-stat-content {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
}

.home-stat-card span,
.home-stat-card em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-stat-card span {
  color: var(--slate);
  font-size: 12px;
  font-weight: 800;
}

.home-stat-metric {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.home-stat-card strong {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.home-stat-card em {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}

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

.home-panel {
  min-width: 0;
  height: 250px;
  min-height: 250px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
  transition: opacity 0.16s ease, transform 0.16s ease, box-shadow 0.18s ease;
}

.home-panel.is-switching {
  opacity: 0.55;
  transform: translateY(3px);
}

.home-funnel-panel {
  height: 250px;
  min-height: 250px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.home-density-medium .home-body {
  gap: 17px;
}

.home-density-medium .home-grid {
  gap: 15px;
}

.home-density-medium .home-stat-card {
  min-height: 112px;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 13px;
  padding: 17px 15px;
}

.home-density-medium .home-stat-icon {
  width: 58px;
  height: 58px;
}

.home-density-medium .home-stat-icon img {
  width: 40px;
  height: 40px;
}

.home-density-medium .home-panel,
.home-density-medium .home-funnel-panel {
  height: 310px;
  min-height: 310px;
  padding: 17px;
}

.home-density-medium .home-chart-panel canvas,
.home-density-medium .home-donut-wrap canvas {
  height: 230px;
}

.home-density-medium .home-distribution-list {
  max-height: 230px;
}

.home-density-medium .home-funnel-arrow {
  grid-template-rows: 60px 76px 40px;
  gap: 11px;
  padding: 16px 0 11px;
}

.home-density-loose .home-body {
  gap: 22px;
}

.home-density-loose .home-grid {
  gap: 20px;
}

.home-density-loose .home-stat-card {
  min-height: 142px;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 20px;
}

.home-density-loose .home-stat-icon {
  width: 76px;
  height: 76px;
}

.home-density-loose .home-stat-icon img {
  width: 52px;
  height: 52px;
}

.home-density-loose .home-panel,
.home-density-loose .home-funnel-panel {
  height: 410px;
  min-height: 410px;
  padding: 22px;
}

.home-density-loose .home-chart-panel canvas,
.home-density-loose .home-donut-wrap canvas {
  height: 318px;
}

.home-density-loose .home-distribution-list {
  max-height: 318px;
}

.home-density-loose .home-funnel-arrow {
  grid-template-rows: 78px 104px 48px;
  gap: 16px;
  padding: 24px 0 18px;
}

.home-funnel-panel .home-panel-head {
  margin-bottom: 0;
}

.home-funnel-history {
  position: relative;
}

.home-funnel-months {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: 214px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.home-funnel-months[hidden] {
  display: none;
}

.home-funnel-months button {
  height: 28px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--slate);
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
}

.home-funnel-months button.active {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.home-funnel-months button:disabled {
  cursor: not-allowed;
  border-color: #e5e7eb;
  background: #f1f5f9;
  color: #b6c1cf;
}

.home-wide {
  grid-column: span 2;
}

.home-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.home-panel-head h2 {
  margin: 0;
  font-size: 15px;
}

.home-panel-head span,
.plain-link-button {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.plain-link-button {
  padding: 0;
  background: transparent;
  color: var(--primary);
}

.home-period-tabs {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
}

.home-period-tabs button {
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.home-period-tabs button:hover {
  transform: translateY(-1px);
  color: var(--primary);
}

.home-period-tabs button.active {
  background: var(--primary);
  color: #fff;
}

.home-chart-panel canvas {
  width: 100%;
  height: 170px;
  display: block;
}

.home-donut-wrap {
  display: grid;
  grid-template-columns: minmax(184px, 0.95fr) minmax(128px, 1fr);
  gap: 12px;
  align-items: center;
}

.home-donut-wrap canvas {
  width: 100%;
  height: 176px;
  display: block;
}

.home-funnel {
  display: grid;
  gap: 10px;
}

.home-funnel-arrow {
  display: grid;
  grid-template-rows: 48px 58px 34px;
  gap: 8px;
  height: 100%;
  align-content: center;
  padding: 10px 0 8px;
}

.home-funnel-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.home-funnel-step {
  position: relative;
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 0 18px 0 14px;
  border: 0;
  background: linear-gradient(135deg, #2563eb, #20b7d8);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 15px 50%);
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.home-funnel-step:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.home-funnel-step:first-child {
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
  border-radius: 8px 0 0 8px;
}

.home-funnel-step:last-child {
  border-radius: 0 8px 8px 0;
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.home-funnel-step:nth-child(2) {
  background: linear-gradient(135deg, #38bdf8, #06b6d4);
}

.home-funnel-step:nth-child(3) {
  background: linear-gradient(135deg, #14b8a6, #0fba81);
}

.home-funnel-step:nth-child(4) {
  background: linear-gradient(135deg, #34d399, #22c55e);
}

.home-funnel-step span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-funnel-numbers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  text-align: center;
}

.home-funnel-numbers button {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 56px;
  padding: 4px;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.home-funnel-numbers strong {
  display: block;
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
}

.home-funnel-numbers span {
  display: block;
  min-height: 14px;
  margin-top: 3px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.home-funnel-summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  width: 100%;
  min-height: 30px;
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--slate);
  font-family: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-funnel-summary b {
  color: var(--primary);
  font-size: 15px;
}

.home-funnel-summary span {
  font-weight: 900;
}

.home-funnel-summary span.up {
  color: var(--green);
}

.home-funnel-summary span.down {
  color: var(--red);
}

.home-funnel-row {
  display: grid;
  grid-template-columns: 72px 1fr 42px;
  align-items: center;
  gap: 10px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 800;
}

.home-funnel-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-funnel-row div {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.home-funnel-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #14b8a6, #16a34a);
}

.home-distribution-list,
.home-todo-list,
.home-interview-list,
.home-progress-list {
  display: grid;
  gap: 8px;
}

.home-distribution-list {
  align-content: center;
  max-height: 176px;
  overflow: auto;
  gap: 6px;
}

.home-distribution-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  border: 0;
  color: var(--slate);
  font-size: 11px;
  font-weight: 800;
  min-height: 24px;
  padding: 3px 5px;
  border-radius: 6px;
  background: rgba(248, 250, 252, 0.88);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.home-distribution-item i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--dot-color);
}

.home-distribution-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-distribution-item em {
  color: var(--muted);
  font-style: normal;
}

.home-todo-item,
.home-action {
  width: 100%;
  display: grid;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  color: var(--slate);
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-todo-item {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 54px;
  padding: 9px 10px;
}

.home-todo-item > span,
.home-action span {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

.home-todo-item > span {
  width: 32px;
  height: 32px;
}

.home-todo-item.high > span {
  background: rgba(239, 68, 68, 0.09);
  color: var(--red);
}

.home-todo-item strong,
.home-todo-item em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-todo-item strong {
  font-size: 13px;
}

.home-todo-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.home-todo-item b {
  color: var(--red);
  font-size: 12px;
}

.home-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-action {
  min-height: 80px;
  grid-template-columns: 38px 1fr;
  padding: 12px;
}

.home-action span {
  width: 38px;
  height: 38px;
  background: color-mix(in srgb, var(--action-color) 13%, #fff);
  color: var(--action-color);
}

.home-action strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
}

.home-interview-item {
  display: grid;
  grid-template-columns: 36px minmax(120px, 1fr) 132px auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-interview-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: linear-gradient(135deg, #dbeafe 0%, #ccfbf1 100%);
  color: #2563eb;
  font-size: 16px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 8px 18px rgba(37, 99, 235, 0.1);
}

.home-interview-item strong,
.home-interview-item span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-interview-item span,
.home-interview-item time {
  color: var(--muted);
  font-size: 12px;
}

.home-progress-item {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 10px;
  align-items: center;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-progress-item:last-child {
  border-bottom: 0;
}

.home-progress-item > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  grid-column: 1 / -1;
  color: var(--slate);
  font-size: 12px;
  font-weight: 800;
}

.home-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.home-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--progress-color);
  width: var(--target-width, 0);
  transition: width 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-animate {
  animation: homeFadeUp 0.34s ease both;
}

.dashboard-animate {
  animation: homeFadeUp 0.34s ease both;
}

.home-animate .home-progress-track i {
  width: 0;
}

.home-animate.is-ready .home-progress-track i {
  width: var(--target-width, 0);
}

[data-home-number],
.home-stat-card strong,
.home-funnel-numbers strong,
.home-distribution-item strong {
  animation: homeNumberPop 0.38s ease both;
}

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

@keyframes homeNumberPop {
  0% {
    opacity: 0.35;
    transform: translateY(4px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-progress-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.home-goal-card {
  display: grid;
  gap: 8px;
}

.home-goal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.mini-empty {
  min-height: 92px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 13px;
}

.performance-main .content {
  padding-top: 14px;
}

.performance-workspace {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #f4f7fb;
  overflow: hidden;
}

.performance-workspace.is-refreshing {
  cursor: progress;
}

.performance-workspace.is-refreshing canvas,
.performance-workspace.is-refreshing .performance-panel,
.performance-workspace.is-refreshing .performance-stat-card {
  transition: opacity 0.16s ease;
}

.performance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.performance-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.performance-title h1 {
  margin: 0;
  color: var(--slate);
  font-size: 22px;
  white-space: nowrap;
}

.performance-title p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.performance-svg {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

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

.performance-stat-card,
.performance-panel {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055);
}

.performance-stat-card {
  position: relative;
  min-height: 120px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.performance-stat-card.has-switch {
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
}

.performance-stat-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--performance-color) 15%, #fff);
}

.performance-stat-icon .performance-svg {
  width: 52px;
  height: 52px;
}

.performance-stat-main {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.performance-stat-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.performance-stat-title > span {
  min-width: 0;
  flex: 0 1 auto;
}

.performance-stat-main span {
  color: #000 !important;
  font-size: 15px;
  font-weight: 800;
}

.performance-stat-main strong {
  color: #000 !important;
  font-size: 29px;
  line-height: 1;
  white-space: nowrap;
}

.performance-month-switch {
  flex: 0 0 auto;
  min-width: 0;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.performance-month-switch:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.13);
}

.performance-month-switch.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.performance-switch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.86;
}

.performance-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.86fr) minmax(0, 0.96fr);
  gap: 14px;
  align-items: stretch;
}

.performance-bottom-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1.35fr) minmax(340px, 0.8fr);
  gap: 14px;
}

.performance-panel {
  min-width: 0;
  padding: 14px;
}

.performance-panel > header {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.performance-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.performance-panel-title .performance-svg {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.performance-panel-title h2 {
  margin: 0;
  color: var(--slate);
  font-size: 16px;
}

.performance-trend-panel canvas,
.performance-donut-panel canvas {
  width: 100%;
  height: 250px;
  display: block;
  cursor: pointer;
}

.performance-trend-panel canvas {
  height: 330px;
}

.performance-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.performance-legend button {
  min-width: 0;
  height: 34px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: var(--slate);
}

.performance-legend button.active,
.performance-ranking-list button.active {
  border-color: rgba(37, 99, 235, 0.5);
  background: #eff6ff;
}

.performance-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--legend-color);
}

.performance-legend span,
.performance-legend strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.performance-table-wrap {
  max-height: 310px;
}

.performance-table-wrap table {
  min-width: 760px;
}

.performance-table-wrap th,
.performance-table-wrap td {
  padding: 9px 10px;
}

.performance-hint {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.performance-employee-panel .performance-table-wrap {
  max-height: 400px;
}

.performance-ranking-list {
  display: grid;
  gap: 10px;
}

.performance-ranking-list button {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.performance-rank-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.performance-rank-mark.rank-1 {
  background: #fef3c7;
  color: #b45309;
}

.performance-rank-mark.rank-2 {
  background: #eef2ff;
  color: #475569;
}

.performance-rank-mark.rank-3 {
  background: #ffedd5;
  color: #c2410c;
}

.performance-ranking-list strong,
.performance-ranking-list em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-ranking-list strong {
  color: var(--slate);
  font-size: 14px;
}

.performance-ranking-list em {
  margin: 4px 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.performance-ranking-list i {
  height: 7px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.performance-ranking-list b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #16a34a);
}

.dashboard-workspace {
  padding: 20px 22px 24px;
}

.dashboard-head {
  align-items: center;
  margin-bottom: 12px;
}

.dashboard-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
}

.quick-action-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--slate);
  font-weight: 800;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.quick-action-button:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.34);
  color: var(--primary);
  background: #f8fbff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.1);
}

.dashboard-stats {
  margin-bottom: 14px;
}

.stat-content {
  min-width: 0;
}

.stat-trend {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

.stat-trend.up {
  color: var(--green);
}

.stat-trend.down {
  color: var(--red);
}

.dashboard-config-panel {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.dashboard-config-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.dashboard-config-head strong {
  display: block;
  color: var(--text);
}

.dashboard-config-head span {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-config-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-config-list label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.dashboard-config-list label:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  background: #f8fbff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
}

.dashboard-config-list select {
  height: 28px;
}

.dashboard-widget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-widget-card {
  min-height: 250px;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.16s ease, border-color 0.2s ease;
}

.dashboard-widget-card:hover {
  transform: translateY(-3px);
  border-color: #dbeafe;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.1);
}

.dashboard-widget-card.is-switching {
  opacity: 0.55;
  transform: translateY(3px);
}

.dashboard-widget-card.wide {
  grid-column: span 2;
}

.dashboard-widget-card.dragging {
  opacity: 0.62;
}

.dashboard-widget-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.dashboard-widget-tools {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-period-tabs button {
  min-width: 36px;
  height: 22px;
  padding: 0 6px;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.dashboard-period-tabs button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.1);
}

.dashboard-history-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 24;
  width: 252px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.dashboard-history-menu[hidden] {
  display: none;
}

.dashboard-history-year {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  gap: 6px;
  margin-bottom: 8px;
}

.dashboard-history-year button,
.dashboard-history-year select,
.dashboard-history-months button {
  height: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--slate);
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.dashboard-history-year button:hover,
.dashboard-history-months button:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.1);
}

.dashboard-history-year select {
  padding: 0 8px;
}

.dashboard-history-months {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.dashboard-history-months button.active {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.dashboard-history-months button:disabled {
  cursor: not-allowed;
  border-color: #e5e7eb;
  background: #f1f5f9;
  color: #b6c1cf;
}

.dashboard-widget-card h2 {
  margin: 3px 0 0;
  font-size: 16px;
}

.drag-handle,
.chart-count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.drag-handle {
  cursor: grab;
}

.dashboard-widget-card canvas {
  height: 230px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  animation: dashboardChartIn 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.dashboard-widget-card.compact-chart canvas {
  height: 188px;
}

.dashboard-canvas-animate {
  animation: dashboardChartIn 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.dashboard-empty {
  grid-column: 1 / -1;
}

.pricing-workspace {
  min-height: calc(100vh - var(--topbar) - 32px);
  padding: 10px;
}

.pricing-frame {
  width: 100%;
  min-height: 780px;
  height: calc(100vh - var(--topbar) - 52px);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
}

.tabs {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #f1f5f9;
}

.tab {
  height: 32px;
  padding: 0 28px;
  border-radius: 6px;
  background: transparent;
  color: var(--slate);
  font-weight: 700;
}

.tab.active {
  background: var(--primary);
  color: #fff;
}

.map-layout {
  position: relative;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.map-layout.map-side-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.map-panel {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #eef5fb;
}

.baidu-map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.map-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: linear-gradient(180deg, #f8fbff, #eef5fb);
  text-align: center;
  padding: 24px;
}

.map-toolbar {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: minmax(280px, 420px) 140px 140px 140px 1fr;
  gap: 12px;
}

.map-destination-box {
  position: relative;
}

.map-coverage-toggle {
  width: 140px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.map-coverage-toggle:hover,
.map-coverage-toggle.active {
  border-color: #1d4ed8;
  background: #1d4ed8;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
  transform: translateY(-1px);
}

.map-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  max-height: 290px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.map-suggestions.open {
  display: grid;
  gap: 4px;
}

.map-suggestions button {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--text);
  text-align: left;
}

.map-suggestions button:hover {
  background: rgba(37, 99, 235, 0.08);
}

.map-suggestions span {
  color: var(--muted);
  font-size: 12px;
}

.map-filter-select {
  width: 140px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  padding: 0 10px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.map-filter-select:hover,
.map-filter-select:focus {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  background: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

#markStyle {
  width: 140px;
  height: 38px;
  padding: 0 10px;
  justify-content: center;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

#markStyle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.map-marker {
  position: absolute;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 0;
  background: var(--red);
  color: #fff;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
  z-index: 2;
}

.map-marker span {
  transform: rotate(45deg);
  font-size: 11px;
  font-weight: 800;
}

.map-label {
  position: absolute;
  transform: translate(8px, -34px);
  background: rgba(255, 255, 255, 0.9);
  color: var(--slate);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  white-space: nowrap;
}

.map-info-window,
.map-detail-modal .modal-body {
  display: grid;
  gap: 6px;
}

.map-info-window p {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.map-info-window strong {
  color: var(--text);
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.map-style-modal {
  width: min(880px, calc(100vw - 48px));
  max-height: min(86vh, 760px);
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.map-style-modal .modal-head,
.map-style-modal .modal-foot {
  padding: 18px 26px;
}

.map-style-modal .modal-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0f2748;
  font-size: 24px;
  font-weight: 900;
}

.map-style-modal .modal-head h2 svg {
  color: var(--primary);
}

.map-style-modal .modal-body {
  display: grid;
  gap: 22px;
  max-height: min(64vh, 560px);
  overflow: auto;
  padding: 22px 28px 26px;
}

.map-style-modal .modal-foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  border-top: 1px solid var(--line);
}

.map-style-modal .modal-head .icon-button,
.map-style-modal .modal-foot button {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.map-style-modal .modal-head .icon-button:hover {
  color: var(--primary);
  background: #eff6ff;
  transform: rotate(180deg) scale(1.04);
}

.map-style-modal .modal-foot button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.map-style-modal .modal-foot button:active {
  transform: translateY(0) scale(0.98);
}

.map-style-section {
  display: grid;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}

.map-style-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.map-style-section h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.map-style-section h3::before {
  content: "";
  width: 5px;
  height: 22px;
  border-radius: 99px;
  background: var(--primary);
}

.map-style-rows {
  display: grid;
  gap: 16px;
}

.map-style-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.map-style-row > span {
  color: var(--slate);
  font-size: 16px;
  font-weight: 850;
}

.map-style-row select,
.map-style-row input[type="text"],
.map-style-row input[type="number"] {
  height: 46px;
  border-radius: 8px;
  font-size: 16px;
}

.map-style-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px auto;
  align-items: center;
  gap: 14px;
}

.map-style-range input[type="range"] {
  height: 34px;
  accent-color: var(--primary);
}

.map-style-number {
  text-align: center;
}

.map-style-range em {
  color: var(--slate);
  font-style: normal;
  font-size: 18px;
  font-weight: 850;
}

.map-style-color {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
}

.map-style-color input[type="color"] {
  height: 46px;
  padding: 6px;
  border-radius: 8px 0 0 8px;
}

.map-style-color input[type="text"] {
  border-left: 0;
  border-radius: 0 8px 8px 0;
  font-family: Consolas, "Segoe UI", monospace;
  letter-spacing: 0;
}

.map-style-tip {
  margin: 0 0 0 168px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.map-distance {
  color: #b45309;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.map-route-panel {
  position: absolute;
  z-index: 4;
  left: 18px;
  bottom: 18px;
  display: none;
  width: min(380px, calc(100% - 36px));
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

.map-route-panel.open {
  display: block;
}

.map-route-head,
.map-route-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.map-route-panel p,
.map-route-loading {
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

.map-route-summary {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.map-route-search {
  position: relative;
  margin-top: 10px;
}

.map-route-inline {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(420px, 100%);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.map-route-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.map-route-inline p {
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.map-route-search input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  color: var(--text);
  background: var(--panel);
}

.map-route-modes {
  display: grid;
  align-items: stretch;
  gap: 6px;
}

.map-route-modes span {
  padding: 6px 8px;
  border-radius: 7px;
  background: rgba(37, 99, 235, 0.08);
}

.map-route-mode-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.tag.gray {
  background: #f1f5f9;
  color: #64748b;
}

.map-side {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-left: 1px solid var(--line);
  padding: 20px;
  overflow: hidden;
}

.map-side .section-head {
  align-items: center;
}

.map-side .icon-button,
.map-route-panel button,
.map-suggestions button {
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.map-side .icon-button:hover,
.map-route-panel button:hover,
.map-suggestions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
}

.map-side-collapsed .map-side {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 44px;
  min-height: auto;
  border-left: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.map-side-collapsed .map-side .section-head {
  display: flex;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.map-side-collapsed .map-side .section-head > div:first-child {
  display: none;
}

.map-side-collapsed .map-side .toolbar-actions {
  width: auto;
  display: flex;
  justify-content: center;
}

.map-side-collapsed #mapSideToggle {
  width: 38px;
  height: 38px;
  margin: 0;
  border: 1px solid #dbeafe;
  background: rgba(255, 255, 255, 0.96);
  color: #2563eb;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.map-side-collapsed #mapSideToggle:hover {
  transform: translateY(-1px) scale(1.03);
  background: #eff6ff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.18);
}

.map-side-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.map-side-collapsed .map-side h2,
.map-side-collapsed .map-side-body,
.map-side-collapsed #refreshMap {
  display: none;
}

.company-list {
  display: grid;
  align-content: start;
  gap: 18px;
  margin-top: 16px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.company-item {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.company-item strong {
  font-size: 15px;
}

.company-item span {
  color: var(--muted);
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.38);
  animation: modalBackdropIn 0.22s ease-out;
}

.drawer-backdrop {
  place-items: stretch end;
  padding: 0;
  background: rgba(15, 23, 42, 0.18);
}

.modal-backdrop.closing {
  animation: modalBackdropOut 0.2s ease-in forwards;
}

.modal-backdrop.closing .modal {
  animation: modalScaleOut 0.2s ease-in forwards;
}

.message-popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: start center;
  padding: 72px 18px 28px;
  background: rgba(15, 23, 42, 0.24);
  animation: modalBackdropIn 0.18s ease-out;
}

.message-popover {
  width: min(760px, calc(100vw - 32px));
  max-height: min(78vh, 680px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.delete-confirm-backdrop {
  place-items: center;
  padding: 18px;
}

.delete-confirm-popover {
  width: min(420px, calc(100vw - 32px));
  gap: 14px;
}

.delete-confirm-body {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 8px;
  background: rgba(254, 242, 242, 0.72);
}

.delete-confirm-body strong {
  color: var(--red);
  font-size: 15px;
}

.delete-confirm-body p,
.delete-confirm-body em,
.delete-confirm-body small {
  margin: 0;
  line-height: 1.55;
}

.delete-confirm-body p {
  color: var(--text);
  font-weight: 900;
}

.delete-confirm-body em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  word-break: break-word;
}

.delete-confirm-body small {
  color: #991b1b;
  font-weight: 700;
}

.action-confirm-popover,
.column-settings-popover {
  width: min(420px, calc(100vw - 32px));
  gap: 14px;
}

.column-settings-popover {
  width: min(720px, calc(100vw - 32px));
  gap: 20px;
  padding: 34px 40px 0;
  border-radius: 20px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
}

.column-settings-popover .message-popover-head {
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 0 4px;
}

.column-settings-popover .message-popover-head h2 {
  font-size: 30px;
  line-height: 1.1;
}

.column-settings-popover .message-popover-head span {
  margin-top: 12px;
  font-size: 17px;
  color: #778195;
}

.column-settings-popover .icon-button {
  width: 40px;
  height: 40px;
  color: #778195;
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.column-settings-popover .icon-button:hover {
  color: var(--red);
  background: #fee2e2;
  transform: rotate(90deg);
}

.action-confirm-body,
.column-settings-list {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.88);
}

.action-confirm-body strong {
  color: var(--text);
  font-size: 15px;
}

.action-confirm-body p,
.action-confirm-body small {
  margin: 0;
  line-height: 1.55;
}

.action-confirm-body p {
  font-weight: 900;
}

.action-confirm-body small {
  color: var(--muted);
  font-weight: 700;
}

.action-confirm-list {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.action-confirm-list li {
  padding: 9px 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  color: #1f2937;
  font-weight: 800;
  line-height: 1.45;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.action-confirm-list li:hover {
  transform: translateY(-1px);
  border-color: #9bb8ff;
  background: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1);
}

.action-confirm-popover .message-popover-foot button {
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.action-confirm-popover .message-popover-foot button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.action-confirm-popover .message-popover-foot button:active {
  transform: translateY(0) scale(0.98);
}

.action-confirm-popover .message-popover-foot .primary-button:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
}

.column-settings-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}

.column-settings-popover .column-settings-list {
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

.column-settings-option {
  position: relative;
  min-height: 68px;
  padding: 0 24px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.column-settings-option:hover {
  border-color: #b7c8ff;
  background: #f8fbff;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.11);
  transform: translateY(-2px);
}

.column-settings-option:active {
  transform: translateY(0) scale(0.99);
}

.column-settings-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.column-settings-check {
  width: 27px;
  height: 27px;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 27px;
  border: 2px solid #b8c2d0;
  border-radius: 6px;
  color: transparent;
  background: #fff;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.column-settings-check::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg) scale(0.45);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.column-settings-text {
  font-size: 20px;
  color: #1f2937;
  letter-spacing: 0;
}

.column-settings-option:has(input:checked) {
  border-color: #a8c0ff;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.13);
}

.column-settings-option:has(input:checked) .column-settings-check {
  border-color: #2563eb;
  color: #fff;
  background: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
  transform: scale(1.02);
}

.column-settings-option:has(input:checked) .column-settings-check::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.column-settings-popover .message-popover-foot {
  justify-content: flex-end;
  margin: 8px -40px 0;
  padding: 18px 40px;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.96);
}

.column-settings-popover .message-popover-foot button {
  min-width: 104px;
  min-height: 44px;
  font-size: 16px;
}

.message-popover-head,
.message-popover-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.message-popover-head h2 {
  margin: 0;
  font-size: 18px;
}

.message-popover-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.notice-card-list {
  display: grid;
  gap: 12px;
  max-height: min(64vh, 620px);
  overflow: auto;
  padding: 4px 6px 4px 0;
}

.notice-dialog-backdrop {
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.32);
}

.notice-dialog {
  width: min(920px, calc(100vw - 48px));
  max-height: min(88vh, 820px);
  gap: 16px;
  padding: 22px 24px 18px;
  border-color: rgba(203, 213, 225, 0.9);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff 0%, #f8fbff 62%, #eef5ff 100%);
}

.notice-dialog-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.notice-dialog-head h2 {
  margin: 0;
  color: #0f2748;
  font-size: 20px;
}

.notice-dialog-head span {
  display: block;
  margin-top: 8px;
  color: #526686;
  font-size: 15px;
  font-weight: 800;
}

.notice-dialog-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef4ff;
  color: var(--primary);
}

.notice-dialog-icon img {
  width: 26px;
  height: 26px;
}

.notice-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 10px 14px 12px 16px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-left: 4px solid #2f6df6;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.notice-card:hover {
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.notice-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notice-type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: #eaf2ff;
  color: #1d5fe8;
  font-size: 13px;
  font-weight: 900;
}

.notice-card-top time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.notice-card-title {
  min-width: 0;
  color: #0f2748;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.notice-company {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--slate);
}

.notice-company-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef5ff;
}

.notice-company-icon img {
  width: 19px;
  height: 19px;
}

.notice-company b {
  min-width: 0;
  color: #0f2748;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.notice-change-list {
  display: grid;
  gap: 8px;
}

.notice-change-list p {
  margin: 0;
  color: var(--slate);
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.notice-change {
  display: grid;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f8fafc, #f4f8ff);
}

.notice-change-field {
  color: var(--slate);
  font-size: 13px;
  font-weight: 900;
}

.notice-change-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notice-old,
.notice-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.notice-old {
  background: #fff1f2;
  color: #be123c;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.notice-new {
  background: #ecfdf5;
  color: #047857;
}

.notice-old em,
.notice-new em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.notice-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f8fafc;
  font-weight: 800;
}

.notice-read-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #526686;
  font-size: 14px;
  font-weight: 800;
}

.notice-read-stats button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: #fff;
  color: #526686;
  font: inherit;
}

.notice-read-stats button:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--primary);
  background: #f8fbff;
}

.notice-dialog-hint {
  margin-right: auto;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.notice-confirm-button {
  min-width: 92px;
}

.notice-user-backdrop {
  z-index: 110;
}

.notice-user-popover {
  width: min(360px, calc(100vw - 32px));
  max-height: min(70vh, 480px);
}

.notice-user-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: auto;
}

.notice-user-list span {
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--slate);
  font-size: 13px;
  font-weight: 800;
}

.pending-notice-popover {
  width: min(820px, calc(100vw - 32px));
}

.pending-notice-list {
  display: grid;
  gap: 12px;
  max-height: 500px;
  overflow: auto;
  padding-right: 4px;
}

.pending-notice-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.pending-notice-item span {
  color: var(--slate);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
}

.pending-notice-item textarea {
  min-height: 92px;
  line-height: 1.65;
  font-size: 13px;
}

.pending-notice-item .small-button {
  justify-self: end;
}

.tangram-suggestion-main {
  z-index: 120 !important;
}

.modal {
  width: min(960px, 100%);
  max-height: min(88vh, 840px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
  overflow: hidden;
  animation: modalScaleIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.invoice-application-modal {
  width: min(1340px, calc(100vw - 48px));
  max-height: min(92vh, 900px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
  overflow: hidden;
  animation: modalScaleIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-backdrop.closing .invoice-application-modal {
  animation: modalScaleOut 0.2s ease-in forwards;
}

.invoice-application-head,
.invoice-application-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}

.invoice-application-foot {
  justify-content: flex-end;
  border-top: 1px solid var(--line-soft);
  border-bottom: 0;
  box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.05);
}

.invoice-application-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 22px;
}

.invoice-application-head .icon-button {
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.invoice-application-head .icon-button:hover {
  background: #fee2e2;
  color: var(--red);
  transform: rotate(90deg) scale(1.04);
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.14);
}

.invoice-application-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  padding: 18px 28px;
  overflow: auto;
  background: #fff;
}

.invoice-application-main {
  display: grid;
  gap: 14px;
}

.invoice-panel,
.invoice-preview-panel {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.invoice-panel {
  padding: 22px 26px;
}

.invoice-panel h3,
.invoice-preview-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--text);
  font-size: 18px;
}

.invoice-panel h3::before {
  content: "";
  width: 6px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary);
}

.invoice-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}

.invoice-apply-grid {
  align-items: start;
}

.invoice-status-grid {
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  align-items: start;
}

.invoice-form-grid .wide {
  grid-column: 1 / -1;
}

.invoice-form-grid .field {
  display: grid;
  gap: 9px;
}

.invoice-form-grid .field > span {
  color: var(--slate);
  font-size: 14px;
  font-weight: 900;
}

.invoice-form-grid .field b {
  color: var(--red);
}

.amount-field {
  position: relative;
}

.amount-field input {
  padding-right: 34px;
}

.amount-field em {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: var(--slate);
  font-style: normal;
  font-weight: 800;
}

.invoice-choice-group {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  gap: 10px;
  justify-content: start;
}

.invoice-choice-group:has(input[name="invoice_kind"]) {
  grid-template-columns: repeat(2, 126px);
}

.invoice-choice-group label {
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.invoice-choice-group label:has(input:checked) {
  border-color: rgba(37, 99, 235, 0.78);
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.25), 0 2px 6px rgba(37, 99, 235, 0.08);
}

.invoice-choice-group label:has(input:disabled),
.reimburse-choice-group label:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.72;
}

.invoice-choice-group label:hover {
  border-color: rgba(37, 99, 235, 0.45);
  color: var(--primary);
}

.invoice-choice-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.invoice-form-grid textarea {
  min-height: 82px;
}

.invoice-status-grid textarea {
  min-height: 44px;
  height: 44px;
}

.invoice-form-grid small {
  justify-self: end;
  color: var(--muted);
  font-weight: 700;
}

.invoice-status-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
}

.invoice-step {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.invoice-step span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.invoice-step.active span {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.invoice-step strong {
  color: var(--slate);
  font-size: 13px;
}

.invoice-step em {
  min-height: 16px;
  font-style: normal;
}

.invoice-preview-panel {
  align-self: start;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.invoice-preview-panel h3 {
  margin: 0;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line-soft);
}

.invoice-preview-panel [data-invoice-preview] {
  display: grid;
  gap: 16px;
  padding: 24px 28px;
}

.invoice-preview-section {
  display: grid;
  gap: 8px;
}

.invoice-preview-section span,
.invoice-preview-row span,
.invoice-preview-total span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.invoice-preview-section strong {
  color: var(--slate);
  line-height: 1.5;
}

.invoice-preview-row,
.invoice-preview-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.invoice-preview-row strong {
  min-width: 0;
  color: var(--slate);
  text-align: right;
  word-break: break-word;
}

.invoice-preview-divider {
  height: 1px;
  background: var(--line);
  margin: 8px 0;
}

.invoice-preview-subtitle {
  color: var(--text);
}

.invoice-preview-total {
  margin-top: 2px;
  padding: 14px;
  border-radius: 6px;
  background: #f3f6fb;
}

.invoice-preview-total strong {
  color: var(--primary);
  font-size: 18px;
}

.reimbursement-form-grid {
  align-items: start;
  gap: 12px 18px;
}

.reimbursement-application-modal {
  width: min(1160px, calc(100vw - 48px));
}

.reimbursement-application-modal .invoice-application-body {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  padding: 14px 22px;
}

.reimbursement-application-modal .invoice-panel {
  padding: 18px;
}

.reimbursement-application-modal .invoice-panel h3,
.reimbursement-application-modal .invoice-preview-panel h3 {
  margin-bottom: 14px;
  font-size: 16px;
}

.reimburse-choice-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  justify-content: start;
  width: min(100%, 336px);
}

.reimburse-choice-group label {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.reimburse-choice-group label:has(input:checked) {
  border-color: rgba(37, 99, 235, 0.78);
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.25), 0 2px 6px rgba(37, 99, 235, 0.08);
}

.reimburse-choice-group label:hover {
  border-color: rgba(37, 99, 235, 0.45);
  color: var(--primary);
}

.reimburse-choice-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reimburse-upload-box {
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px dashed #b6c2d3;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--slate);
  text-align: center;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.reimburse-upload-box:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
}

.reimburse-upload-box b {
  color: var(--primary);
}

.reimburse-upload-box strong {
  color: var(--slate);
}

.reimburse-upload-box em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.reimburse-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reimburse-file-chip {
  min-width: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 3px 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #f8fafc;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.reimburse-file-chip:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.reimburse-file-chip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reimburse-file-chip em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.reimburse-file-chip a {
  grid-row: span 2;
  align-self: center;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.reimburse-file-chip button {
  grid-row: span 2;
  background: transparent;
  color: var(--slate);
  font-size: 20px;
  transition: color 0.16s ease, transform 0.16s ease;
}

.reimburse-file-chip button:hover {
  color: var(--red);
  transform: rotate(90deg) scale(1.08);
}

.reimbursement-preview-panel [data-reimbursement-preview] {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.reimburse-preview-card,
.reimburse-preview-total,
.reimburse-preview-attach {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.reimburse-preview-total strong {
  color: var(--primary);
  font-size: 24px;
}

.reimburse-preview-attach {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.detail-modal {
  width: min(1480px, calc(100vw - 96px));
  max-height: min(86vh, 820px);
}

.home-trend-modal {
  width: min(1320px, calc(100vw - 72px));
  max-height: min(84vh, 760px);
}

.home-trend-modal-body {
  padding: 18px 22px 24px;
}

.home-trend-modal canvas {
  width: 100%;
  height: min(56vh, 460px);
  display: block;
  cursor: pointer;
}

@keyframes modalBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalBackdropOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalScaleOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}

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

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

.detail-search {
  margin-bottom: 14px;
}

.detail-table {
  min-width: 1180px;
}

.modal-head,
.modal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}

.modal-foot {
  justify-content: flex-end;
  border-top: 1px solid var(--line-soft);
  border-bottom: 0;
  box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.05);
}

.modal-head h2 {
  margin: 0;
  font-size: 18px;
}

.field {
  position: relative;
}

.address-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 130;
  display: none;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 6px;
}

.address-suggestions.open {
  display: grid;
  gap: 4px;
}

.address-suggestions button {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.address-suggestions button:hover {
  background: var(--panel-2);
}

.address-suggestions span {
  color: var(--muted);
  font-size: 12px;
}

.modal-body {
  overflow: auto;
  padding: 18px 22px 20px;
}

.form-section-list {
  display: grid;
  gap: 16px;
}

.form-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fbfcff;
}

.form-section h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.form-section h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 14px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--primary);
  vertical-align: -2px;
}

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

.candidate-entry-modal {
  width: min(900px, calc(100vw - 32px));
  max-height: min(86vh, 760px);
}

.candidate-entry-modal .modal-head {
  padding: 14px 20px;
}

.candidate-entry-modal .modal-body {
  padding: 14px 20px 16px;
}

.candidate-entry-modal .modal-foot {
  padding: 12px 20px;
}

.candidate-entry-modal .form-section-list {
  gap: 12px;
}

.candidate-entry-modal .form-section {
  gap: 10px;
  padding: 12px 14px;
}

.candidate-entry-modal .form-grid {
  gap: 10px 12px;
}

.candidate-entry-modal .field {
  gap: 6px;
  margin-bottom: 0;
}

.candidate-entry-modal input,
.candidate-entry-modal select {
  min-height: 38px;
  padding: 0 10px;
}

.candidate-entry-modal textarea {
  min-height: 86px;
  padding: 9px 10px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.form-section[data-form-section="组织信息"] .form-grid {
  grid-template-columns: minmax(150px, 1fr) minmax(220px, 1.35fr) minmax(120px, 0.8fr);
  gap: 10px;
  align-items: end;
}

.form-section[data-form-section="组织信息"] .field {
  margin-bottom: 0;
}

.form-section[data-form-section="组织信息"] select {
  height: 36px;
}

.form-radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 8px;
}

.form-radio-group label {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--slate);
  font-weight: 700;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.form-radio-group label:has(input:checked) {
  border-color: rgba(37, 99, 235, 0.5);
  background: #eff6ff;
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.form-radio-group input {
  width: auto;
  height: auto;
}

[data-field-key="group_name"] .form-radio-group {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

[data-field-key="group_name"] .form-radio-group label {
  justify-content: center;
  text-align: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  line-height: 1;
}

[data-field-key="group_name"] .form-radio-group input {
  margin: 0;
  flex: 0 0 auto;
  transform: translateY(0);
}

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

.invoice-title-row h1 {
  margin: 0;
}

.invoice-month-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate);
  font-size: 13px;
}

.invoice-month-summary strong {
  color: var(--primary);
  font-size: 14px;
}

.invoice-month-summary select {
  width: auto;
  min-width: 150px;
  height: 32px;
  font-size: 12px;
}

.invoice-summary-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.invoice-summary-range button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--slate);
  font-size: 12px;
  font-weight: 800;
}

.invoice-summary-range button.active {
  border-color: rgba(37, 99, 235, 0.6);
  background: #eff6ff;
  color: var(--primary);
}

.invoice-summary-range input {
  width: 126px;
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.invoice-summary-range span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

#refreshInvoices svg {
  transform-origin: center;
}

#refreshInvoices.is-refreshing svg {
  animation: refreshSpin 0.42s ease-in-out;
}

@keyframes refreshSpin {
  to {
    transform: rotate(360deg);
  }
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 800;
}

.required-star {
  margin-left: 4px;
  color: #dc2626;
  font-weight: 900;
}

.field .form-radio-group label {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.invoice-form-grid .field .invoice-choice-group label,
.invoice-form-grid .field .reimburse-choice-group label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.invoice-form-grid .field .invoice-choice-group label {
  height: 28px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.invoice-form-grid .field .invoice-choice-group label:has(input:checked) {
  color: var(--primary);
}

.invoice-form-grid .field .reimburse-choice-group label {
  height: 30px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.invoice-form-grid .field .reimburse-choice-group label:has(input:checked) {
  color: var(--primary);
}

.invoice-form-grid .field .invoice-choice-group label:has(input:disabled),
.invoice-form-grid .field .reimburse-choice-group label:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.72;
}

.permission-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 90px 90px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
}

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

.permission-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate);
}

.permission-row input {
  width: 16px;
  height: 16px;
}

.role-permission-panel {
  display: grid;
  gap: 16px;
}

.role-permission-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.role-permission-card > header,
.role-permission-card > section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.role-permission-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
}

.role-permission-card h3,
.role-permission-card h4 {
  margin: 0;
}

.role-permission-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.role-table-wrap {
  overflow-x: auto;
  background: #fff;
}

.motto-management-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
}

.motto-editor,
.motto-history {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.72);
}

.motto-editor textarea {
  resize: vertical;
}

.motto-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.motto-time-field {
  cursor: pointer;
}

.motto-time-field input {
  cursor: pointer;
}

.motto-history-list {
  display: grid;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
}

.motto-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: var(--panel);
}

.motto-history-item strong {
  display: block;
  color: var(--text);
  line-height: 1.5;
}

.motto-history-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.motto-history-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.role-permission-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--slate);
  font-size: 14px;
}

.role-permission-table th,
.role-permission-table td {
  height: 36px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.role-permission-table th:last-child,
.role-permission-table td:last-child {
  border-right: 0;
}

.role-permission-table thead th {
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.role-permission-table thead th:first-child {
  padding-left: 20px;
  text-align: left;
}

.role-permission-table tbody th {
  padding: 0 20px;
  font-weight: 800;
  text-align: left;
}

.role-permission-table tbody td {
  text-align: center;
}

.role-permission-table tbody tr:hover:not(.role-table-group) {
  background: #f8fbff;
}

.role-table-group td {
  height: 38px;
  padding: 0 18px;
  background: linear-gradient(180deg, #f7faff, #f2f6ff);
  color: #1e293b;
  font-size: 14px;
  font-weight: 900;
}

.role-table-group svg {
  margin-right: 8px;
  color: var(--primary);
  vertical-align: -2px;
}

.role-table-item th {
  color: #334155;
}

.role-table-subitem th {
  padding-left: 36px;
  color: #475569;
}

.permission-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 30px;
  margin: 0 auto;
  cursor: pointer;
}

.permission-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.permission-check:hover input {
  transform: scale(1.08);
}

.permission-dash {
  color: #94a3b8;
  font-weight: 900;
}

.toast-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  gap: 8px;
}

.toast {
  min-width: 220px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: #1f2937;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.24);
}

.toast.error {
  background: var(--red);
}

.toast.ok {
  background: var(--green);
}

.loading {
  padding: 40px;
  color: var(--muted);
  text-align: center;
}

[data-theme="dark"] .sidebar,
[data-theme="dark"] .workspace-card,
[data-theme="dark"] .chart-card,
[data-theme="dark"] .home-workspace,
[data-theme="dark"] .home-panel,
[data-theme="dark"] .performance-panel,
[data-theme="dark"] .performance-stat-card,
[data-theme="dark"] .map-layout,
[data-theme="dark"] .modal {
  background: var(--panel);
}

[data-theme="dark"] .topbar {
  background: rgba(23, 32, 51, 0.9);
}

[data-theme="dark"] .nav-item:hover,
[data-theme="dark"] .nav-item.active,
[data-theme="dark"] .nav-icon,
[data-theme="dark"] .home-stat-card,
[data-theme="dark"] .stat-card {
  background: color-mix(in srgb, var(--nav-color, var(--stat-color, var(--primary))) 18%, var(--panel));
}

[data-theme="dark"] .badge,
[data-theme="dark"] .pill,
[data-theme="dark"] .tabs,
[data-theme="dark"] .empty,
[data-theme="dark"] .toolbar,
[data-theme="dark"] .dashboard-quick-row,
[data-theme="dark"] .dashboard-config-panel,
[data-theme="dark"] .performance-workspace,
[data-theme="dark"] .form-section {
  background: var(--panel-2);
}

[data-theme="dark"] .pill span {
  color: var(--slate);
}

[data-theme="dark"] .top-avatar {
  background: linear-gradient(135deg, #1e3a8a, #0f766e);
  color: #dbeafe;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.42);
}

[data-theme="dark"] .sidebar-brand {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(30, 58, 138, 0.45) 58%, rgba(124, 45, 18, 0.36) 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .sidebar-brand strong {
  color: #f8fafc;
}

[data-theme="dark"] .sidebar-brand span {
  color: #fbbf24;
}

[data-theme="dark"] .top-profile {
  border-color: rgba(147, 197, 253, 0.34);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(219, 234, 254, 0.9));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .top-profile strong {
  color: #0f172a;
}

[data-theme="dark"] .top-profile span {
  color: #334155;
}

[data-theme="dark"] .top-profile .profile-caret {
  color: #1e3a8a;
}

[data-theme="dark"] .company-title-search input {
  border-color: rgba(147, 197, 253, 0.38);
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .company-title-search input::placeholder {
  color: #64748b;
}

[data-theme="dark"] .performance-workspace,
[data-theme="dark"] .performance-panel,
[data-theme="dark"] .performance-stat-card {
  border-color: rgba(148, 163, 184, 0.32);
  background: #1f2b3d;
  color: #e5edf7;
}

[data-theme="dark"] .performance-title h1,
[data-theme="dark"] .performance-title p,
[data-theme="dark"] .performance-stat-main span,
[data-theme="dark"] .performance-stat-main strong,
[data-theme="dark"] .performance-panel-title h2,
[data-theme="dark"] .performance-table th,
[data-theme="dark"] .performance-table td,
[data-theme="dark"] .performance-ranking-name,
[data-theme="dark"] .performance-hint {
  color: #f8fafc !important;
}

[data-theme="dark"] .performance-stat-icon,
[data-theme="dark"] .performance-panel-title .performance-svg {
  background: rgba(248, 250, 252, 0.92);
}

[data-theme="dark"] .performance-panel .empty,
[data-theme="dark"] .performance-empty,
[data-theme="dark"] .performance-company-detail .empty {
  background: #26364d;
  color: #dbeafe;
}

[data-theme="dark"] .invoice-application-modal,
[data-theme="dark"] .invoice-application-head,
[data-theme="dark"] .invoice-application-foot,
[data-theme="dark"] .invoice-application-body,
[data-theme="dark"] .invoice-panel,
[data-theme="dark"] .invoice-preview-panel {
  border-color: rgba(148, 163, 184, 0.34);
  background: #1f2b3d;
  color: #e5edf7;
}

[data-theme="dark"] .invoice-application-head h2,
[data-theme="dark"] .invoice-panel h3,
[data-theme="dark"] .invoice-preview-panel h3,
[data-theme="dark"] .invoice-form-grid .field > span,
[data-theme="dark"] .invoice-preview-section span,
[data-theme="dark"] .invoice-preview-row span,
[data-theme="dark"] .invoice-preview-total span,
[data-theme="dark"] .invoice-preview-section strong,
[data-theme="dark"] .invoice-preview-row strong {
  color: #f8fafc;
}

[data-theme="dark"] .invoice-form-grid input,
[data-theme="dark"] .invoice-form-grid select,
[data-theme="dark"] .invoice-form-grid textarea {
  border-color: rgba(147, 197, 253, 0.34);
  background: #111827;
  color: #f8fafc;
}

[data-theme="dark"] .invoice-form-grid input::placeholder,
[data-theme="dark"] .invoice-form-grid textarea::placeholder {
  color: #94a3b8;
}

[data-theme="dark"] .invoice-choice-group label,
[data-theme="dark"] .reimburse-choice-group label {
  border-color: rgba(147, 197, 253, 0.34);
  background: #111827;
  color: #dbeafe;
}

[data-theme="dark"] .invoice-choice-group label:has(input:checked),
[data-theme="dark"] .reimburse-choice-group label:has(input:checked) {
  border-color: #60a5fa;
  background: #1e3a8a;
  color: #fff;
}

[data-theme="dark"] .invoice-preview-total {
  background: #111827;
}

[data-theme="dark"] .profile-status-dot {
  border-color: var(--panel);
}

[data-theme="dark"] .profile-role-pill {
  background: rgba(96, 165, 250, 0.18);
  color: #bfdbfe;
}

[data-theme="dark"] .icon-button,
[data-theme="dark"] .small-button,
[data-theme="dark"] .danger-button {
  background: var(--panel-2);
  color: var(--slate);
}

[data-theme="dark"] th,
[data-theme="dark"] tbody tr:hover,
[data-theme="dark"] .table-action:hover {
  background: #202b3f;
}

[data-theme="dark"] .tag {
  background: #253249;
  color: #d6e0ef;
}

[data-theme="dark"] .tag.green {
  border-color: rgba(74, 222, 128, 0.34);
  background: rgba(22, 101, 52, 0.38);
  color: #bbf7d0;
}

[data-theme="dark"] .tag.blue {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(30, 64, 175, 0.42);
  color: #bfdbfe;
}

[data-theme="dark"] .tag.pink,
[data-theme="dark"] .tag.purple {
  border-color: rgba(216, 180, 254, 0.36);
  background: rgba(107, 33, 168, 0.42);
  color: #e9d5ff;
}

[data-theme="dark"] .tag.orange,
[data-theme="dark"] .tag.yellow {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(146, 64, 14, 0.4);
  color: #fde68a;
}

[data-theme="dark"] .tag.red {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(153, 27, 27, 0.38);
  color: #fecaca;
}

[data-theme="dark"] .tag.gray {
  border-color: rgba(148, 163, 184, 0.24);
  background: #253249;
  color: #cbd5e1;
}

[data-theme="dark"] .tag.option-tag {
  border-color: rgba(148, 163, 184, 0.22);
  background: var(--option-bg-dark, #253249);
  color: #f8fafc;
}

[data-theme="dark"] .tone-option,
[data-theme="dark"] .company-option-button,
[data-theme="dark"] .reward-fee-row .reward-fee-option {
  border-color: rgba(148, 163, 184, 0.26);
  background: var(--option-bg-dark, #1f2937);
  color: #f8fafc;
}

[data-theme="dark"] .tone-option:hover,
[data-theme="dark"] .company-option-button:hover,
[data-theme="dark"] .tone-option.active,
[data-theme="dark"] .company-option-button.active,
[data-theme="dark"] .reward-fee-row .reward-fee-option:hover,
[data-theme="dark"] .reward-fee-row .reward-fee-option.active {
  border-color: rgba(96, 165, 250, 0.45);
  background: var(--option-bg-dark, #111827);
  color: #fff;
}

[data-theme="dark"] .notice-card,
[data-theme="dark"] .timeline-item,
[data-theme="dark"] .timeline-edit-item,
[data-theme="dark"] .timeline-add-item,
[data-theme="dark"] .home-todo-item,
[data-theme="dark"] .home-action,
[data-theme="dark"] .home-interview-item,
[data-theme="dark"] .quick-action-button,
[data-theme="dark"] .dashboard-config-list label,
[data-theme="dark"] .message-popover {
  background: var(--panel);
}

[data-theme="dark"] .home-funnel-row div,
[data-theme="dark"] .home-funnel-summary,
[data-theme="dark"] .home-distribution-item,
[data-theme="dark"] .home-period-tabs,
[data-theme="dark"] .home-funnel-months,
[data-theme="dark"] .home-progress-track {
  background: #26344a;
}

[data-theme="dark"] .home-interview-avatar {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.42) 0%, rgba(34, 211, 238, 0.28) 100%);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 22px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .notice-change,
[data-theme="dark"] .notice-empty {
  background: #202b3f;
}

[data-theme="dark"] .modal-head,
[data-theme="dark"] .modal-foot,
[data-theme="dark"] .table-wrap {
  background: var(--panel);
}

[data-theme="dark"] .map-panel {
  background: #101522;
}

[data-theme="dark"] .map-style-modal {
  background: rgba(23, 32, 51, 0.98);
}

[data-theme="dark"] .map-style-modal .modal-head h2 {
  color: var(--text);
}

[data-theme="dark"] .map-fallback {
  background: linear-gradient(180deg, #172033, #101522);
}

[data-theme="dark"] .map-suggestions,
[data-theme="dark"] .map-route-panel,
[data-theme="dark"] .format-choice-card,
[data-theme="dark"] .motto-editor,
[data-theme="dark"] .motto-history,
[data-theme="dark"] .motto-history-item {
  background: var(--panel-2);
}

[data-theme="dark"] .map-label {
  background: rgba(23, 32, 51, 0.9);
}

[data-theme="dark"] .top-pills .pill {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(31, 43, 61, 0.94);
  color: #dbeafe;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

[data-theme="dark"] .top-pills .pill strong,
[data-theme="dark"] .motto-pill strong,
[data-theme="dark"] .enterprise-pill strong {
  color: #fbbf24;
}

[data-theme="dark"] .top-pills .pill span {
  color: #d6e0ef;
}

[data-theme="dark"] .notice-pill.has-unread {
  border-color: rgba(251, 113, 133, 0.46);
  background: rgba(127, 29, 29, 0.32);
}

[data-theme="dark"] .top-profile {
  border-color: rgba(148, 163, 184, 0.38);
  background: linear-gradient(180deg, #1f2b3d, #172033);
  color: #eef4ff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .top-profile:hover {
  border-color: rgba(251, 191, 36, 0.48);
  background: linear-gradient(180deg, #26364d, #1f2b3d);
}

[data-theme="dark"] .top-profile strong,
[data-theme="dark"] .profile-menu-head strong {
  color: #f8fafc;
}

[data-theme="dark"] .top-profile span {
  color: #cbd5e1;
}

[data-theme="dark"] .top-profile .profile-caret {
  color: #e5edf7;
}

[data-theme="dark"] .profile-menu {
  border-color: rgba(148, 163, 184, 0.28);
  background: #172033;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.38);
}

[data-theme="dark"] .profile-menu-head,
[data-theme="dark"] .profile-menu-section,
[data-theme="dark"] .profile-menu-actions.bottom {
  border-color: rgba(148, 163, 184, 0.22);
}

[data-theme="dark"] .profile-menu-section h3,
[data-theme="dark"] .profile-menu button,
[data-theme="dark"] .profile-switch-row span {
  color: #d6e0ef;
}

[data-theme="dark"] .profile-menu button:hover {
  background: #202b3f;
  color: #fbbf24;
}

[data-theme="dark"] .profile-switch {
  background: #475569;
}

[data-theme="dark"] .profile-switch.on {
  background: var(--primary);
}

[data-theme="dark"] .profile-edit-popover,
[data-theme="dark"] .profile-password-popover {
  border-color: rgba(148, 163, 184, 0.32);
  background: #172033;
  color: #eef4ff;
}

[data-theme="dark"] .profile-edit-popover .message-popover-head span,
[data-theme="dark"] .profile-password-popover .message-popover-head span {
  color: #cbd5e1;
}

[data-theme="dark"] #themeButton,
[data-theme="dark"] #logoutButton {
  border-color: rgba(148, 163, 184, 0.34);
  background: #1f2b3d;
  color: #e5edf7;
}

[data-theme="dark"] #themeButton:hover,
[data-theme="dark"] #logoutButton:hover {
  border-color: rgba(251, 191, 36, 0.48);
  background: #26364d;
  color: #fff;
}

[data-theme="dark"] #logoutButton {
  border-color: rgba(251, 113, 133, 0.36);
  color: #fecaca;
}

[data-theme="dark"] .home-view-switch {
  color: #e5edf7;
}

[data-theme="dark"] .home-view-switch select {
  border-color: rgba(148, 163, 184, 0.34);
  background: #1f2b3d;
  color: #eef4ff;
}

[data-theme="dark"] .home-density-tabs {
  border-color: rgba(148, 163, 184, 0.3);
  background: #1f2b3d;
}

[data-theme="dark"] .home-density-tabs button {
  color: #cbd5e1;
}

[data-theme="dark"] .home-density-tabs button:hover {
  background: #26364d;
  color: #fff;
}

[data-theme="dark"] .home-density-tabs button.active {
  background: var(--primary);
  color: #fff;
}

[data-theme="dark"] .feishu-mode-pill {
  border-color: rgba(251, 191, 36, 0.38) !important;
  background: rgba(146, 64, 14, 0.32) !important;
  color: #fde68a !important;
}

[data-theme="dark"] .feishu-mode-pill strong {
  color: #fff7ed;
}

[data-theme="dark"] .column-settings-popover {
  border-color: rgba(148, 163, 184, 0.32);
  background: #172033;
  color: #eef4ff;
}

[data-theme="dark"] .column-settings-popover .message-popover-head h2,
[data-theme="dark"] .column-settings-text {
  color: #f8fafc;
}

[data-theme="dark"] .column-settings-popover .message-popover-head span,
[data-theme="dark"] .column-settings-popover .icon-button {
  color: #cbd5e1;
}

[data-theme="dark"] .column-settings-option {
  border-color: rgba(148, 163, 184, 0.3);
  background: #1f2b3d;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .column-settings-option:hover {
  border-color: rgba(251, 191, 36, 0.46);
  background: #26364d;
}

[data-theme="dark"] .column-settings-option:has(input:checked) {
  border-color: rgba(96, 165, 250, 0.58);
  background: linear-gradient(180deg, #24334a 0%, #1f2b3d 100%);
}

[data-theme="dark"] .column-settings-check {
  border-color: #64748b;
  background: #111827;
}

[data-theme="dark"] .column-settings-popover .message-popover-foot {
  border-color: rgba(148, 163, 184, 0.24);
  background: #101522;
}

[data-theme="dark"] .invoice-month-summary strong {
  color: #fbbf24;
}

[data-theme="dark"] .invoice-summary-range button {
  border-color: rgba(148, 163, 184, 0.34);
  background: #1f2b3d;
  color: #d6e0ef;
}

[data-theme="dark"] .invoice-summary-range button:hover {
  background: #26364d;
  color: #fff;
}

[data-theme="dark"] .invoice-summary-range button.active {
  border-color: rgba(251, 191, 36, 0.56);
  background: var(--primary);
  color: #fff;
}

[data-theme="dark"] .invoice-summary-range span {
  color: #cbd5e1;
}

[data-theme="dark"] .invoice-month-summary select,
[data-theme="dark"] .invoice-summary-range input {
  border-color: rgba(148, 163, 184, 0.34);
  background: #1f2b3d;
  color: #eef4ff;
}

[data-theme="dark"] .role-permission-card {
  border-color: rgba(148, 163, 184, 0.32);
  background: #172033;
}

[data-theme="dark"] .role-permission-card > header,
[data-theme="dark"] .role-permission-card > section,
[data-theme="dark"] .role-table-wrap,
[data-theme="dark"] .role-permission-table thead th {
  border-color: rgba(148, 163, 184, 0.24);
  background: #1f2b3d;
}

[data-theme="dark"] .role-permission-card h3,
[data-theme="dark"] .role-permission-card h4,
[data-theme="dark"] .role-permission-table {
  color: #eef4ff;
}

[data-theme="dark"] .role-permission-card p,
[data-theme="dark"] .role-permission-table thead th,
[data-theme="dark"] .role-table-item th,
[data-theme="dark"] .role-table-subitem th {
  color: #cbd5e1;
}

[data-theme="dark"] .role-permission-table th,
[data-theme="dark"] .role-permission-table td {
  border-color: rgba(148, 163, 184, 0.22);
}

[data-theme="dark"] .role-table-group td {
  background: linear-gradient(180deg, #26364d, #202b3f);
  color: #f8fafc;
}

[data-theme="dark"] .role-permission-table tbody tr:hover:not(.role-table-group) {
  background: #26364d;
}

@media (max-width: 1180px) {
  .home-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .dashboard-widget-grid,
  .dashboard-config-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .performance-stat-grid,
  .performance-chart-grid,
  .performance-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .performance-employee-panel {
    grid-column: 1 / -1;
  }

  .chart-grid,
  .chart-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .login-stage {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 360px;
  }

  .performance-stat-grid,
  .performance-chart-grid,
  .performance-bottom-grid {
    grid-template-columns: 1fr;
  }

  .performance-stat-card {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .performance-month-switch {
    justify-self: start;
  }

  .shell {
    grid-template-columns: 1fr;
    padding-bottom: 76px;
  }

  .sidebar {
    display: none;
  }

  .main {
    grid-column: auto;
    grid-template-rows: auto 1fr;
  }

  .topbar {
    display: none;
  }

  .shouji-dibu-daohang {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(219, 227, 239, 0.9);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(12px);
  }

  .shouji-dibu-daohang button {
    min-height: 50px;
    display: grid;
    place-items: center;
    gap: 3px;
    border-radius: 16px;
    background: transparent;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
  }

  .shouji-dibu-daohang button svg {
    width: 20px;
    height: 20px;
  }

  .shouji-dibu-daohang button.active {
    background: #eff6ff;
    color: #2563eb;
  }

  .content {
    padding: 12px;
  }

  .company-workspace-card {
    min-height: calc(100vh - 100px);
    padding: 14px 12px 18px;
    border: 0;
    border-radius: 0;
    background: #f8fbff;
    box-shadow: none;
  }

  .company-page-head {
    gap: 10px;
    padding: 0 0 10px;
  }

  .company-page-head h1 {
    color: #0f172a;
    font-size: 24px;
  }

  .company-head-tools,
  .page-action-group {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .company-head-tools::-webkit-scrollbar,
  .page-action-group::-webkit-scrollbar {
    display: none;
  }

  .company-head-tools > *,
  .page-action-group > * {
    flex: 0 0 auto;
  }

  .company-title-search input {
    height: 44px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
  }

  .company-data-table,
  .company-bottom-scroll {
    display: none;
  }

  .qiye-shouji-lunbo {
    display: grid;
    gap: 12px;
    margin-top: 6px;
  }

  .qiye-shouji-dingbu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px;
  }

  .qiye-shouji-dingbu strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
  }

  .qiye-shouji-dingbu span {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
  }

  .qiye-shouji-dingbu em,
  .qiye-shouji-qiehuan span {
    color: #2563eb;
    font-style: normal;
    font-weight: 1000;
  }

  .qiye-shouji-wutai {
    border-radius: 24px;
    perspective: 900px;
  }

  .qiye-shouji-ka {
    min-height: 520px;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(219, 234, 254, 0.92);
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(239, 246, 255, 0.72), rgba(255, 255, 255, 0) 42%),
      #fff;
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.12);
    transform: translateZ(0);
  }

  .qiye-shouji-ka-head,
  .qiye-shouji-ka-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .qiye-shouji-ka-head > span {
    min-width: 62px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 1000;
    text-align: center;
  }

  .qiye-shouji-mingcheng {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
  }

  .qiye-shouji-mingcheng small {
    font-size: 12px;
    font-weight: 900;
    opacity: 0.86;
  }

  .qiye-shouji-mingcheng strong {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 24px;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .qiye-shouji-ziduan {
    display: grid;
    gap: 8px;
  }

  .qiye-shouji-ziduan-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 38px;
    padding: 9px 10px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 14px;
    background: #fff;
  }

  .qiye-shouji-ziduan-row > span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
  }

  .qiye-shouji-ziduan-row p {
    min-width: 0;
    margin: 0;
    color: #172033;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
  }

  .qiye-shouji-ziduan-row .tag {
    max-width: 100%;
    white-space: normal;
  }

  .qiye-shouji-ka:not(.expanded) .qiye-shouji-ziduan-row:nth-child(n + 8) {
    display: none;
  }

  .qiye-shouji-ka.expanded .qiye-shouji-ziduan-row p {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .qiye-shouji-ka-foot {
    align-self: end;
    padding-top: 4px;
  }

  .qiye-shouji-ka-foot .small-button,
  .qiye-shouji-ka-foot .danger-button,
  .qiye-shouji-qiehuan .small-button,
  .qiye-shouji-qiehuan .primary-button {
    min-height: 42px;
    border-radius: 999px;
  }

  .qiye-shouji-caozuo {
    display: flex;
    gap: 8px;
  }

  .qiye-shouji-qiehuan {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
  }

  .qiye-shouji-qiehuan .primary-button,
  .qiye-shouji-qiehuan .small-button {
    width: 100%;
  }

  .topbar,
  .page-head,
  .section-head {
    flex-direction: column;
    display: flex;
    align-items: stretch;
    height: auto;
    padding: 14px;
  }

  .topbar {
    display: none;
  }

  .top-pills,
  .top-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .company-head-tools {
    justify-content: flex-start;
    max-width: 100%;
  }

  .company-workspace-card .company-head-tools,
  .company-workspace-card .page-action-group {
    display: none;
  }

  .company-title-row {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .company-title-search {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }

  .page-action-group {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .company-title-search,
  .company-title-search input,
  .company-head-tools .date-filter-group,
  .company-head-tools .date-filter,
  .company-head-tools .date-filter input,
  .company-head-tools .notice-publish {
    width: 100%;
  }

  .top-pills,
  .company-toolbar,
  .toolbar.compact,
  .toolbar.slim-toolbar {
    grid-template-columns: 1fr;
  }

  .dashboard-widget-grid,
  .dashboard-config-list {
    grid-template-columns: 1fr;
  }

  .home-stats-grid,
  .home-grid,
  .home-donut-wrap,
  .home-action-grid {
    grid-template-columns: 1fr;
  }

  .home-wide {
    grid-column: span 1;
  }

  .home-interview-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .home-funnel-steps,
  .home-funnel-numbers {
    grid-template-columns: 1fr;
  }

  .home-funnel-step,
  .home-funnel-step:first-child {
    min-height: 34px;
    clip-path: none;
    border-radius: 8px;
  }

  .home-funnel-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .dashboard-widget-card.wide {
    grid-column: span 1;
  }

  .dashboard-config-head,
  .dashboard-widget-card header {
    align-items: stretch;
    flex-direction: column;
  }

  .notice-publish {
    width: 100%;
  }

  .notice-publish input {
    width: 100%;
  }

  .toolbar,
  .toolbar.compact,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .content.map-content {
    height: auto;
    overflow: visible;
  }

  .content.map-content .map-layout {
    height: auto;
    min-height: calc(100vh - var(--topbar) - 28px);
  }

  .content.map-content .map-panel {
    min-height: 520px;
  }

  .content.map-content .map-side {
    max-height: 460px;
  }

  .map-style-modal {
    width: min(620px, calc(100vw - 28px));
  }

  .map-style-modal .modal-head,
  .map-style-modal .modal-foot {
    padding: 14px 16px;
  }

  .map-style-modal .modal-body {
    padding: 16px;
  }

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

  .map-style-range,
  .map-style-color {
    grid-template-columns: 1fr;
  }

  .map-style-tip {
    margin-left: 0;
  }

  .map-toolbar {
    grid-template-columns: 1fr;
    right: auto;
    width: min(420px, calc(100% - 36px));
  }

  .motto-management-grid {
    grid-template-columns: 1fr;
  }

  .map-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .content {
    padding: 14px;
  }

  .workspace-card {
    padding: 18px;
  }

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

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

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

  .content {
    width: 100vw;
    max-width: 100%;
    overflow-x: hidden;
  }

  .company-workspace-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 14px 12px 18px;
  }

  .company-page-head,
  .company-title-block,
  .company-title-row,
  .company-title-search,
  .qiye-shouji-lunbo,
  .qiye-shouji-wutai,
  .qiye-shouji-guidao {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .company-page-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .company-page-head h1 {
    width: 100%;
    white-space: nowrap;
    word-break: keep-all;
    writing-mode: horizontal-tb;
  }

  .qiye-shouji-ka {
    flex-basis: 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .qiye-shouji-wutai {
    position: relative;
    overflow: hidden;
    padding: 0 2px 8px;
  }

  .qiye-shouji-wutai::before,
  .qiye-shouji-wutai::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 14px;
    bottom: 0;
    border: 1px solid rgba(191, 219, 254, 0.82);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.09);
    pointer-events: none;
  }

  .qiye-shouji-wutai::before {
    transform: translateX(10px) scale(0.96);
  }

  .qiye-shouji-wutai::after {
    transform: translateX(20px) scale(0.92);
    opacity: 0.6;
  }

  .qiye-shouji-guidao {
    position: relative;
    z-index: 1;
    will-change: transform;
  }

  .qiye-shouji-ka {
    min-height: 0;
    gap: 9px;
    padding: 13px;
    border-radius: 22px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
  }

  .qiye-shouji-ka.active {
    transform: translateY(-2px) rotateX(0.01deg);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.13);
  }

  .qiye-shouji-ka-head > span {
    min-width: 56px;
    padding: 5px 9px;
    font-size: 12px;
  }

  .qiye-shouji-mingcheng {
    gap: 3px;
    padding: 8px 10px;
    border-radius: 15px;
  }

  .qiye-shouji-mingcheng small {
    font-size: 11px;
  }

  .qiye-shouji-mingcheng strong {
    font-size: 20px;
    line-height: 1.12;
  }

  .qiye-shouji-ziduan {
    gap: 6px;
  }

  .qiye-shouji-ziduan-row {
    grid-template-columns: 68px minmax(0, 1fr);
    min-height: 32px;
    padding: 7px 9px;
    border-radius: 12px;
  }

  .qiye-shouji-ziduan-row > span {
    font-size: 11px;
  }

  .qiye-shouji-ziduan-row p {
    font-size: 12px;
    line-height: 1.35;
  }

  .qiye-shouji-ka:not(.expanded) .qiye-shouji-ziduan-row:nth-child(n + 8) {
    display: grid;
  }

  .qiye-shouji-ka:not(.expanded) .qiye-shouji-ziduan-row:nth-child(n + 10) {
    display: none;
  }

  .mingdan-shouji-card.mingdan-interview .page-head p,
  .mingdan-shouji-card.mingdan-onboard .page-head p,
  .mingdan-shouji-card.mingdan-interview .page-action-group,
  .mingdan-shouji-card.mingdan-onboard .page-action-group,
  .mingdan-shouji-card.mingdan-interview .toolbar > :not(.searchbox),
  .mingdan-shouji-card.mingdan-onboard .toolbar > :not(.searchbox) {
    display: none;
  }

  .mingdan-shouji-card.mingdan-interview,
  .mingdan-shouji-card.mingdan-onboard {
    padding: 14px 12px 18px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mingdan-shouji-card.mingdan-interview .page-head,
  .mingdan-shouji-card.mingdan-onboard .page-head {
    padding: 0 0 10px;
  }

  .mingdan-shouji-card.mingdan-interview .toolbar,
  .mingdan-shouji-card.mingdan-onboard .toolbar {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .mingdan-shouji-card.mingdan-interview .searchbox input,
  .mingdan-shouji-card.mingdan-onboard .searchbox input {
    height: 44px;
    border-radius: 999px;
    background: #fff;
  }

  .mingdan-shouji-card.mingdan-interview .candidate-data-table,
  .mingdan-shouji-card.mingdan-onboard .candidate-data-table {
    display: none;
  }

  .mingdan-shouji-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
  }

  .mingdan-shouji-item {
    display: grid;
    gap: 8px;
    padding: 13px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  }

  .mingdan-shouji-main,
  .mingdan-shouji-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mingdan-shouji-main strong {
    min-width: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 16px;
    font-weight: 1000;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mingdan-shouji-main span,
  .mingdan-shouji-meta span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
  }

  .mingdan-shouji-company {
    min-width: 0;
    overflow: hidden;
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-workspace {
    padding: 14px 12px 18px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .home-workspace .home-head,
  .home-workspace .home-stats-grid,
  .home-workspace .home-funnel-panel,
  .home-workspace .home-chart-panel,
  .home-workspace .home-company-panel[data-home-section="interviewCompany"],
  .home-workspace .home-company-panel[data-home-section="onboardCompany"],
  .home-workspace .home-period-tabs {
    display: none;
  }

  .home-workspace .home-grid {
    gap: 12px;
  }

  .home-workspace .home-todo-panel,
  .home-workspace .home-interview-panel,
  .home-workspace .home-goals-panel,
  .home-workspace .home-company-panel[data-home-section="employment"] {
    display: grid;
  }

  .content.map-content {
    height: calc(100vh - 86px);
    min-height: 520px;
    padding: 0;
    overflow: hidden;
  }

  .content.map-content .map-layout {
    position: relative;
    height: 100%;
    min-height: 0;
    display: block;
  }

  .content.map-content .map-panel {
    height: 100%;
    min-height: 0;
    border-radius: 0;
  }

  .content.map-content .map-toolbar {
    display: none;
  }

  .content.map-content .map-side {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 5;
    max-height: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
  }

  .content.map-content .map-side .section-head,
  .content.map-content .map-side #mapCount,
  .content.map-content .map-side .company-list {
    display: none;
  }

  .content.map-content .map-side-body,
  .content.map-content .map-side-collapsed .map-side-body {
    display: block;
    padding: 0;
    pointer-events: auto;
  }

  .content.map-content .map-side .searchbox input {
    height: 46px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .message-popover-backdrop {
    place-items: stretch;
    padding: 18px;
  }

  .message-popover {
    width: 100%;
    max-height: calc(100vh - 36px);
    padding: 14px;
  }

  .notice-card {
    padding: 13px;
  }

  .notice-card-top,
  .message-popover-head,
  .message-popover-foot {
    align-items: stretch;
  }

  .notice-card-top {
    flex-direction: column;
  }

  .notice-change-values {
    display: grid;
  }
}
