/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import "actiontext.css";

:root {
  --admin-bg: #f4fbfa;
  --admin-surface: rgba(255, 255, 255, 0.88);
  --admin-surface-strong: #ffffff;
  --admin-border: rgba(20, 97, 111, 0.12);
  --admin-text: #17323a;
  --admin-muted: #60757d;
  --admin-text-muted: #8aa0a6;
  --admin-accent: #1ba784;
  --admin-accent-strong: #0f766e;
  --admin-accent-soft: rgba(27, 167, 132, 0.1);
  --admin-danger: #c05656;
  --admin-shadow: 0 20px 50px rgba(31, 78, 91, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

body {
  color: #102033;
  background: #f3f6fa;
  font-family: "Avenir Next", "PingFang SC", "Segoe UI", sans-serif;
}

.site-shell {
  min-height: 100vh;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(37, 88, 148, 0.12), transparent 24%),
    radial-gradient(circle at bottom right, rgba(92, 162, 220, 0.1), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
}

.site-header,
.site-hero,
.site-section,
.site-contact,
.site-footer {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 32px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 251, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(19, 55, 96, 0.08);
}

.site-header__brand h1,
.site-hero h2,
.site-section h3,
.site-contact h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

.site-header__eyebrow,
.site-kicker,
.site-stat-card__label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5f7b98;
}

.site-header__brand h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  flex: 1;
}

.site-header__nav a {
  color: #17304b;
  text-decoration: none;
  font-weight: 600;
}

.site-header__nav a:hover,
.site-header__phone:hover,
.site-mobile-nav__panel a:hover {
  color: #3e92cc;
}

.site-header__cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header__admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(22, 53, 92, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.site-header__phone {
  color: #17304b;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.site-mobile-nav {
  display: none;
}

.site-mobile-nav__summary {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(19, 55, 96, 0.12);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  list-style: none;
}

.site-mobile-nav__summary::-webkit-details-marker {
  display: none;
}

.site-mobile-nav__summary span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #17304b;
  border-radius: 999px;
}

.site-mobile-nav__panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(19, 55, 96, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(18, 58, 105, 0.08);
}

.site-mobile-nav__panel a {
  color: #17304b;
  text-decoration: none;
  font-weight: 600;
}

.site-main {
  display: grid;
  gap: 28px;
}

.site-hero,
.site-section,
.site-contact {
  padding: 32px;
  border: 1px solid rgba(19, 55, 96, 0.08);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(22, 43, 78, 0.08);
  backdrop-filter: blur(12px);
}

.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.site-hero h2 {
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.02;
  max-width: 10ch;
}

.site-copy {
  margin: 0;
  color: #526579;
  line-height: 1.85;
}

.site-hero__content {
  display: grid;
  gap: 20px;
}

.site-actions,
.site-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.site-button--primary {
  color: #f9fcff;
  background: linear-gradient(135deg, #123a69 0%, #1d5ea3 100%);
  box-shadow: 0 14px 28px rgba(18, 58, 105, 0.2);
}

.site-button--ghost {
  color: #17304b;
  border: 1px solid rgba(19, 55, 96, 0.12);
  background: rgba(248, 251, 255, 0.94);
}

.site-hero__panel {
  display: grid;
  gap: 14px;
}

.site-stat-card,
.site-card,
.site-process-card {
  padding: 22px;
  border: 1px solid rgba(19, 55, 96, 0.08);
  border-radius: 24px;
  background: rgba(248, 251, 255, 0.94);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.site-stat-card:hover,
.site-card:hover,
.site-process-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(18, 58, 105, 0.08);
  border-color: rgba(62, 146, 204, 0.26);
}

.site-stat-card strong,
.site-card h4,
.site-service-item h4,
.site-process-card h4 {
  display: block;
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.site-card-grid,
.site-process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.site-card p,
.site-service-item p,
.site-process-card p,
.site-stat-card p {
  margin: 0;
  color: #526579;
  line-height: 1.8;
}

.site-section__header {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.site-section h3,
.site-contact h3 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

.site-section--accent {
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.98) 0%, rgba(240, 246, 252, 0.98) 100%);
}

.site-service-list {
  display: grid;
  gap: 16px;
}

.site-service-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(19, 55, 96, 0.08);
}

.site-service-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.site-service-item__index,
.site-process-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(92, 162, 220, 0.16);
  color: #17406f;
  font-size: 18px;
  font-weight: 800;
}

.site-process-card {
  display: grid;
  gap: 14px;
}

.site-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-contact--cta {
  align-items: center;
}

.site-contact__info {
  display: grid;
  gap: 14px;
  min-width: min(100%, 420px);
}

.site-contact__item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(19, 55, 96, 0.08);
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.94);
}

.site-contact__item span {
  color: #5f7b98;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-contact__item strong {
  font-size: 18px;
  line-height: 1.5;
}

.site-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(92, 162, 220, 0.18);
  border-radius: 999px;
  background: rgba(92, 162, 220, 0.08);
  color: #17406f;
  font-size: 14px;
  font-weight: 700;
}

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

.site-card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-section--grid {
  display: grid;
  gap: 0;
}

.site-footer {
  padding: 24px 0 8px;
  text-align: center;
  color: #6a7b8e;
}

.site-footer p {
  margin: 4px 0;
}

body.admin-body {
  min-height: 100vh;
  color: var(--admin-text);
  background: linear-gradient(180deg, #f7fcfb 0%, #edf8f6 100%);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

body.admin-body input[type="checkbox"],
body.admin-body input[type="radio"] {
  accent-color: var(--admin-accent);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.admin-sidebar {
  padding: 36px 28px;
  border-right: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--admin-text);
  box-shadow: 16px 0 40px rgba(31, 78, 91, 0.06);
}

.admin-eyebrow,
.page-kicker,
.feature-label {
  margin: 0 0 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.admin-brand,
.page-header h2,
.feature-card h3,
.empty-state h3,
.form-errors h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

.admin-brand {
  font-size: 34px;
  line-height: 1.1;
}

.admin-copy,
.page-copy,
.feature-card p,
.empty-state p,
.field-hint {
  color: var(--admin-muted);
  line-height: 1.7;
}

.admin-copy {
  margin: 14px 0 0;
  color: var(--admin-muted);
}

.admin-nav {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}

.admin-nav-link {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(20, 97, 111, 0.1);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  background: rgba(244, 251, 250, 0.72);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.admin-nav-link:hover,
.admin-nav-link.is-active {
  border-color: rgba(27, 167, 132, 0.26);
  background: rgba(27, 167, 132, 0.1);
  color: var(--admin-accent-strong);
  transform: translateX(2px);
}

.admin-nav-group {
  padding: 12px;
  border: 1px solid rgba(20, 97, 111, 0.1);
  border-radius: 18px;
  background: rgba(244, 251, 250, 0.72);
}

.admin-nav-group.is-active {
  border-color: rgba(27, 167, 132, 0.26);
  background: rgba(27, 167, 132, 0.08);
}

.admin-nav-group__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--admin-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  list-style: none;
  user-select: none;
}

.admin-nav-group__title::-webkit-details-marker {
  display: none;
}

.admin-nav-group__title::after {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  opacity: 0.78;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.admin-nav-group[open] .admin-nav-group__title {
  margin-bottom: 10px;
}

.admin-nav-group[open] .admin-nav-group__title::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.admin-nav-sublist {
  display: grid;
  gap: 8px;
}

.admin-nav-link--child {
  padding: 11px 12px 11px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.admin-main {
  min-width: 0;
  padding: 40px;
}

.admin-session-card {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(20, 97, 111, 0.1);
  border-radius: 20px;
  background: rgba(244, 251, 250, 0.82);
}

.admin-session-label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--admin-muted);
}

.admin-session-value {
  margin: 0;
  font-weight: 700;
  color: var(--admin-text);
}

.admin-session-meta {
  margin: 8px 0 16px;
  color: var(--admin-muted);
  line-height: 1.7;
}

.admin-page {
  width: 100%;
  min-width: 0;
  max-width: 1080px;
}

.admin-page > * {
  min-width: 0;
}

.admin-page--wide {
  max-width: 1280px;
}

.admin-page--salary {
  max-width: min(100%, 1560px);
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 520px);
  padding: 28px;
  border: 1px solid var(--admin-border);
  border-radius: 28px;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
}

.auth-title {
  margin: 0 0 12px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(34px, 6vw, 44px);
  line-height: 1.05;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  margin-bottom: 28px;
}

.page-header > * {
  min-width: 0;
}

.page-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}

.page-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-footer-links {
  margin-top: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  background: linear-gradient(135deg, var(--admin-accent) 0%, var(--admin-accent-strong) 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.2);
}

.button--ghost {
  border-color: var(--admin-border);
  color: var(--admin-text);
  background: rgba(255, 255, 255, 0.64);
}

.button--danger {
  color: var(--admin-danger);
  border-color: rgba(192, 86, 86, 0.28);
  background: rgba(255, 247, 247, 0.88);
}

.performance-ranking__rank {
  font-weight: 900;
  color: var(--admin-accent-strong);
}

.performance-ranking__name {
  font-weight: 800;
  color: var(--admin-text);
}

.button--full {
  width: 100%;
}

.button--small {
  min-height: 36px;
  padding: 0 14px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.feature-card,
.table-card,
.form-card,
.flash {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--admin-border);
  border-radius: 24px;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
  backdrop-filter: blur(10px);
}

.feature-card {
  padding: 24px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 28px;
}

.flash {
  margin-bottom: 20px;
  padding: 16px 18px;
}

.flash--notice {
  border-color: rgba(51, 124, 84, 0.24);
  background: rgba(236, 248, 241, 0.92);
}

.flash--alert {
  border-color: rgba(192, 86, 86, 0.24);
  background: rgba(254, 242, 242, 0.92);
}

.table-card,
.form-card {
  padding: 24px;
  min-width: 0;
}

.table-toolbar {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin-bottom: 20px;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  min-width: 0;
  margin-bottom: 20px;
}

.stat-card {
  display: flex;
  flex: 1 1 180px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 20px;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  background: var(--admin-surface-strong);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--admin-accent);
}

.stat-label {
  font-size: 14px;
  color: var(--admin-muted);
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.search-form__input {
  flex: 1 1 320px;
  min-width: 0;
}

.filter-dropdown {
  position: relative;
  flex: 1 1 320px;
  min-width: 0;
}

.filter-dropdown__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(20, 97, 111, 0.18);
  border-radius: 16px;
  background: var(--admin-surface-strong);
  color: var(--admin-text);
  cursor: pointer;
  list-style: none;
}

.filter-dropdown__summary::-webkit-details-marker {
  display: none;
}

.filter-dropdown__summary::after {
  content: "▾";
  color: var(--admin-muted);
  font-size: 14px;
}

.filter-dropdown[open] .filter-dropdown__summary {
  border-color: rgba(27, 167, 132, 0.3);
  box-shadow: 0 10px 24px rgba(20, 97, 111, 0.08);
}

.filter-dropdown__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 8px;
  max-height: 260px;
  padding: 14px;
  overflow-y: auto;
  border: 1px solid rgba(20, 97, 111, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px rgba(20, 97, 111, 0.12);
}

.filter-dropdown__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.filter-dropdown__option:hover {
  background: rgba(27, 167, 132, 0.08);
}

.filter-dropdown__option input {
  margin: 0;
}

.upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.field-input--file {
  width: auto;
  max-width: 320px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
}

.search-summary {
  margin: 0;
  color: var(--admin-muted);
  line-height: 1.6;
}

.data-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  white-space: nowrap;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--admin-border);
  text-align: left;
}

.data-table th {
  color: var(--admin-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.admin-table-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.data-table tbody tr {
  transition: background 0.16s ease;
}

.data-table tbody tr:hover {
  background: rgba(27, 167, 132, 0.035);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(20, 97, 111, 0.12);
  border-radius: 999px;
  background: rgba(244, 251, 250, 0.86);
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge--role {
  background: rgba(27, 167, 132, 0.1);
  color: var(--admin-accent-strong);
}

.status-badge--success {
  background: rgba(27, 167, 132, 0.12);
  color: var(--admin-accent-strong);
}

.status-badge--danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.status-badge--muted {
  background: rgba(232, 241, 242, 0.72);
  color: var(--admin-muted);
}

.salary-sheet-list {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.salary-sheet {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  background: var(--admin-surface-strong);
  overflow: hidden;
}

.salary-sheet + .detail-card {
  margin-top: 24px;
}

.salary-sheet__header {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(240px, 2fr) auto;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 18px;
  border-bottom: 1px solid var(--admin-border);
}

.salary-sheet__label {
  margin: 0 0 4px;
  color: var(--admin-muted);
  font-size: 13px;
}

.salary-sheet__name {
  margin: 0;
  font-size: 24px;
}

.salary-sheet__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.salary-sheet__meta span {
  padding: 7px 10px;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--admin-muted);
  font-size: 13px;
}

.salary-sheet__actions {
  justify-content: flex-end;
}

.salary-metric-scroller {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.salary-metric-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(124px, 1fr));
  width: 100%;
  min-width: 1240px;
  border-top: 1px solid rgba(20, 97, 111, 0.08);
  border-left: 1px solid rgba(20, 97, 111, 0.08);
}

.salary-metric {
  display: grid;
  grid-template-rows: 48px 58px 58px;
  min-width: 0;
  border-right: 1px solid rgba(20, 97, 111, 0.12);
  border-bottom: 1px solid rgba(20, 97, 111, 0.12);
  background: rgba(255, 255, 255, 0.42);
}

.salary-metric__title,
.salary-metric__value,
.salary-metric__amount {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  padding: 0 10px;
  border-bottom: 1px solid rgba(20, 97, 111, 0.1);
  line-height: 1.24;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.salary-metric__title {
  justify-content: flex-start;
  color: var(--admin-text);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.salary-metric__value {
  color: var(--admin-text);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.salary-metric__amount {
  border-bottom: 0;
  color: var(--admin-accent-strong);
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.salary-metric--deduction .salary-metric__amount {
  color: var(--admin-danger);
}

.salary-metric--total {
  background: rgba(236, 248, 241, 0.9);
}

.salary-metric--total .salary-metric__title,
.salary-metric--total .salary-metric__amount {
  color: #2f6d4a;
}

.table-link {
  color: var(--admin-accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.table-link:hover {
  text-decoration: underline;
}

.page-header--compact {
  margin-bottom: 16px;
}

.product-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
  margin-bottom: 24px;
}

.calculator-rows {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.calculator-row {
  min-width: 0;
  max-width: 100%;
  padding: 22px;
  border: 1px solid var(--admin-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.calculator-row__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 8px;
}

.calculator-row__title {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 30px;
  line-height: 1.1;
}

.calculator-row__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.field-error {
  margin: 0;
  color: var(--admin-danger);
  font-weight: 700;
  line-height: 1.6;
}

.calculator-result {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(51, 124, 84, 0.18);
  border-radius: 20px;
  background: rgba(236, 248, 241, 0.92);
}

.calculator-result--error {
  border-color: rgba(192, 86, 86, 0.24);
  background: rgba(254, 242, 242, 0.92);
}

.calculator-result__price {
  margin: 0 0 16px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(34px, 4vw, 42px);
  line-height: 1.05;
}

.pricing-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(23, 50, 58, 0.38);
  backdrop-filter: blur(6px);
}

.pricing-loading-card {
  width: min(100%, 420px);
  padding: 28px;
  border: 1px solid var(--admin-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--admin-shadow);
  text-align: center;
}

.pricing-loading-card h3 {
  margin: 0 0 12px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 30px;
}

.pricing-loading-card p {
  margin: 0;
  color: var(--admin-muted);
  line-height: 1.8;
}

.pricing-loading-spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border: 4px solid rgba(27, 167, 132, 0.16);
  border-top-color: var(--admin-accent);
  border-radius: 50%;
  animation: pricing-loading-spin 0.8s linear infinite;
}

@keyframes pricing-loading-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.rule-table th:last-child,
.rule-table td:last-child {
  min-width: 240px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
  margin-bottom: 24px;
}

.detail-grid--single {
  grid-template-columns: 1fr;
}

.detail-card {
  min-width: 0;
  max-width: 100%;
  padding: 24px;
  border: 1px solid var(--admin-border);
  border-radius: 24px;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
  backdrop-filter: blur(10px);
}

.detail-card h3 {
  margin: 0 0 16px;
  font-size: 24px;
}

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

.detail-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--admin-border);
}

.detail-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-list dt {
  color: var(--admin-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  line-height: 1.7;
  word-break: break-word;
}

.code-block {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(20, 97, 111, 0.12);
  border-radius: 18px;
  background: rgba(23, 50, 58, 0.96);
  color: #ffffff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

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

.table-actions--compact {
  flex-wrap: nowrap;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
}

.pagination__current {
  cursor: default;
}

.pagination__disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.schedule-board {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(20, 97, 111, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
}

body.schedule-smart-modal-open {
  overflow: hidden;
}

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

.schedule-smart-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.schedule-smart-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 50, 58, 0.42);
  backdrop-filter: blur(4px);
}

.schedule-smart-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 560px);
  margin: 8vh auto 0;
  padding: 28px;
  border: 1px solid var(--admin-border);
  border-radius: 28px;
  background: var(--admin-surface-strong);
  box-shadow: var(--admin-shadow);
}

.schedule-smart-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.schedule-smart-modal__header h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 28px;
}

.schedule-assignee-card {
  margin-bottom: 24px;
}

.schedule-assignee-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  margin-bottom: 18px;
}

.schedule-assignee-card__header h3 {
  margin: 0;
  font-size: 24px;
}

.schedule-assignee-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  min-width: 0;
}

.schedule-assignee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(20, 97, 111, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.schedule-assignee-item__checkbox {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.schedule-assignee-item__name {
  flex: 1 1 auto;
  font-weight: 700;
}

.schedule-assignee-item__meta {
  color: var(--admin-text-muted);
  font-size: 13px;
  white-space: nowrap;
}

.schedule-board__scroller {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.schedule-board__table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
}

.schedule-board__table th,
.schedule-board__table td {
  min-width: 92px;
  padding: 16px 12px;
  border: 1px solid rgba(20, 97, 111, 0.08);
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
}

.schedule-board__table th.schedule-board__stat-heading,
.schedule-board__table td.schedule-board__stat {
  min-width: 88px;
}

.schedule-board__table th {
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.schedule-board__sticky-column {
  position: sticky;
  left: 0;
  z-index: 3;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 1px 0 0 rgba(20, 97, 111, 0.08);
}

tbody .schedule-board__sticky-column {
  z-index: 2;
}

.schedule-board__name,
.schedule-board__position {
  min-width: 132px;
  font-weight: 700;
  white-space: nowrap;
}

.schedule-board__stat {
  font-size: 22px;
  font-weight: 800;
}

.schedule-board__cell {
  vertical-align: middle;
}

.schedule-board__cell--locked {
  background: rgba(232, 241, 242, 0.9) !important;
}

.schedule-cell-editor {
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(23, 50, 58, 0.08);
}

.schedule-chip--button {
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.schedule-chip--button:hover,
.schedule-chip--button:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(23, 50, 58, 0.14);
  outline: none;
}

.schedule-chip--locked,
.schedule-chip--locked:hover,
.schedule-chip--locked:focus {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.72;
}

.schedule-chip--morning {
  background: #2fbf9f;
}

.schedule-chip--evening {
  background: #5b8def;
}

.schedule-chip--rest {
  background: #64748b;
}

.schedule-chip--regular {
  background: #9a6b18;
}

.schedule-chip--empty {
  color: rgba(23, 50, 58, 0.22);
  background: rgba(232, 241, 242, 0.72);
  box-shadow: none;
}

.empty-state {
  padding: 24px 8px 8px;
  text-align: center;
}

.admin-form {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.field-static {
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--admin-text);
  font-weight: 600;
}

.stack-list {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.detail-card--nested {
  padding: 18px;
  border-style: dashed;
}

.field-group {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.form-grid {
  display: grid;
  gap: 18px;
  min-width: 0;
}

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

.form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.subsection-card {
  display: grid;
  gap: 22px;
  min-width: 0;
  max-width: 100%;
  padding: 24px;
  border: 1px solid rgba(20, 97, 111, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.subsection-card__header h3 {
  margin: 0 0 8px;
}

.subsection-card__header p {
  margin: 0;
  color: var(--admin-muted);
  line-height: 1.7;
}

.field-group--inline {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.field-label {
  font-weight: 700;
}

.field-label--inline {
  min-width: 68px;
}

.field-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(20, 97, 111, 0.18);
  border-radius: 16px;
  background: var(--admin-surface-strong);
  color: var(--admin-text);
  font: inherit;
}

.range-inputs {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.range-inputs__input {
  max-width: 260px;
}

.search-form__date-range {
  flex: 1 1 420px;
  min-width: 360px;
}

.search-form__date-range .field-input {
  flex: 1 1 0;
  max-width: none;
  min-width: 0;
}

.search-form__shop-picker {
  flex: 1 1 280px;
  min-width: 240px;
}

.range-inputs__dash {
  color: var(--admin-muted);
  font-size: 24px;
  line-height: 1;
}

.field-input--multiselect {
  min-height: 180px;
  padding: 12px 14px;
}

.field-input:focus {
  outline: 2px solid rgba(27, 167, 132, 0.25);
  outline-offset: 2px;
}

.field-input--invalid {
  border-color: rgba(192, 86, 86, 0.6);
  background: rgba(254, 242, 242, 0.95);
}

.button--disabled,
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.inline-note {
  padding: 14px 16px;
  border: 1px dashed rgba(20, 97, 111, 0.18);
  border-radius: 16px;
  color: var(--admin-muted);
  background: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.form-errors {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(192, 86, 86, 0.22);
  border-radius: 18px;
  background: rgba(254, 242, 242, 0.95);
}

.form-errors-list {
  margin: 10px 0 0;
  padding-left: 20px;
}

.permission-groups {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.permission-group {
  min-width: 0;
  max-width: 100%;
  padding: 18px;
  border: 1px solid rgba(20, 97, 111, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
}

.permission-group__title {
  margin: 0 0 14px;
  font-size: 18px;
}

.permission-group__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  min-width: 0;
}

.permission-groups--overrides {
  margin-top: 12px;
}

.permission-override-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.permission-override {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.permission-override__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  min-width: 0;
}

.permission-override__meta code,
.permission-override__meta span {
  color: var(--admin-muted);
  font-size: 13px;
}

.permission-override__choices {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.permission-override__choices label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(20, 97, 111, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.permission-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.permission-matrix th,
.permission-matrix td {
  white-space: nowrap;
}

.permission-matrix__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.tag-list--compact {
  gap: 6px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(27, 167, 132, 0.1);
  color: var(--admin-accent-strong);
  font-size: 14px;
  font-weight: 600;
}

.shop-selector {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.shop-selector__search {
  margin-bottom: 2px;
}

.shop-selector__selected {
  min-height: 44px;
}

.shop-selector__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 8px 6px 14px;
  border: 1px solid rgba(27, 167, 132, 0.16);
  border-radius: 999px;
  background: rgba(27, 167, 132, 0.1);
  color: var(--admin-accent-strong);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.shop-selector__remove {
  min-height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.shop-selector__remove:hover {
  background: rgba(15, 118, 110, 0.18);
}

.shop-selector__empty {
  margin: 0;
}

.shop-picker {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.shop-picker__trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(20, 97, 111, 0.18);
  border-radius: 16px;
  background: var(--admin-surface-strong);
  cursor: pointer;
  min-height: 48px;
}

.shop-picker__trigger:hover {
  border-color: rgba(20, 97, 111, 0.3);
}

.shop-picker__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-grow: 1;
  min-width: 0;
}

.shop-picker__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 12px;
  border: 1px solid rgba(27, 167, 132, 0.16);
  border-radius: 999px;
  background: rgba(27, 167, 132, 0.1);
  color: var(--admin-accent-strong);
  font-size: 14px;
  font-weight: 600;
}

.shop-picker__tag button {
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.7;
}

.shop-picker__tag button:hover {
  opacity: 1;
}

.shop-picker__placeholder {
  color: var(--admin-muted);
}

.shop-picker__arrow {
  color: var(--admin-muted);
  font-size: 10px;
  user-select: none;
}

.shop-picker__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(20, 97, 111, 0.18);
  border-radius: 16px;
  background: var(--admin-surface-strong);
  box-shadow: 0 8px 24px rgba(31, 78, 91, 0.12);
  z-index: 100;
}

.shop-picker__dropdown.is-open {
  display: block;
}

.shop-picker__search {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(20, 97, 111, 0.12);
  border-radius: 12px;
  background: var(--admin-bg);
  font: inherit;
  margin-bottom: 8px;
}

.shop-picker__search:focus {
  outline: 2px solid rgba(27, 167, 132, 0.25);
  outline-offset: 2px;
}

.shop-picker__list {
  max-height: 240px;
  overflow-y: auto;
}

.shop-picker__option {
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.shop-picker__option:hover {
  background: rgba(27, 167, 132, 0.08);
}

.shop-picker__option.is-selected {
  background: rgba(27, 167, 132, 0.12);
  color: var(--admin-accent-strong);
  font-weight: 600;
}

.is-hidden {
  display: none;
}

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

.users-index-page {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.users-index-page > * {
  min-width: 0;
}

.users-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.users-summary-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 32px rgba(31, 78, 91, 0.06);
}

.users-summary-card--primary {
  border-color: rgba(27, 167, 132, 0.28);
  background: linear-gradient(180deg, rgba(236, 253, 247, 0.96), rgba(255, 255, 255, 0.9));
}

.users-summary-card__label {
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 800;
}

.users-summary-card strong {
  color: var(--admin-text);
  font-size: 34px;
  line-height: 1;
}

.users-summary-card span:last-child {
  color: var(--admin-muted);
  font-size: 13px;
}

.users-table-header {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(420px, 1.6fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.users-table-header h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.users-search-form {
  justify-content: flex-end;
}

.users-search-form__input {
  min-width: 360px;
}

.users-data-table {
  min-width: 1120px;
}

.users-data-table th {
  background: rgba(244, 251, 250, 0.78);
}

.users-data-table__id {
  color: var(--admin-muted);
  font-variant-numeric: tabular-nums;
}

.users-data-table__name {
  font-weight: 800;
}

.users-data-table__shops {
  min-width: 180px;
}

@media (max-width: 960px) {
  .site-shell {
    padding: 20px;
  }

  .site-header {
    flex-direction: column;
    padding-bottom: 24px;
  }

  .site-header__nav {
    justify-content: flex-start;
  }

  .site-hero {
    grid-template-columns: 1fr;
  }

  .site-card-grid,
  .site-process-grid,
  .site-value-grid,
  .site-card-grid--three {
    grid-template-columns: 1fr;
  }

  .site-contact {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-contact__info {
    min-width: 100%;
  }

  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-sidebar {
    padding: 24px 20px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--admin-border);
  }

  .admin-main {
    padding: 24px 20px 32px;
  }

  .admin-nav {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .admin-nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .admin-nav-group {
    flex: 0 0 auto;
    min-width: 190px;
  }

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

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

  .users-table-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .users-search-form {
    justify-content: stretch;
  }

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

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

  .calculator-row__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding: 14px;
  }

  .site-hero,
  .site-section,
  .site-contact {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .site-hero h2 {
    max-width: none;
    font-size: clamp(34px, 11vw, 48px);
  }

  .site-header__brand h1 {
    font-size: 26px;
  }

  .site-header {
    align-items: stretch;
    gap: 16px;
  }

  .site-header__nav,
  .site-header__cta {
    display: none;
  }

  .site-mobile-nav {
    display: block;
  }

  .site-actions,
  .site-contact__actions {
    flex-direction: column;
  }

  .site-button {
    width: 100%;
  }

  .site-service-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-tag-list {
    gap: 8px;
  }

  .admin-brand {
    font-size: 28px;
  }

  .admin-sidebar,
  .admin-main {
    padding: 16px;
  }

  .admin-page {
    max-width: 100%;
  }

  .page-header {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }

  .page-header h2 {
    font-size: 30px;
  }

  .page-actions,
  .form-actions,
  .upload-form,
  .table-actions,
  .pagination {
    width: 100%;
    justify-content: stretch;
  }

  .page-actions .button,
  .form-actions .button,
  .upload-form .button,
  .table-actions .button,
  .pagination .button,
  .pagination > span {
    width: 100%;
  }

  .search-form {
    flex-direction: column;
  }

  .table-toolbar {
    gap: 16px;
  }

  .filter-dropdown,
  .search-form__shop-picker,
  .search-form__input,
  .field-input,
  .field-input--file {
    width: 100%;
    max-width: none;
  }

  .filter-dropdown__panel {
    position: static;
    margin-top: 8px;
    max-height: 220px;
    box-shadow: none;
  }

  .field-group--inline,
  .range-inputs {
    flex-direction: column;
    align-items: stretch;
  }

  .form-grid,
  .form-grid--two,
  .form-grid--three,
  .form-grid--four {
    grid-template-columns: 1fr;
  }

  .permission-override {
    grid-template-columns: 1fr;
  }

  .permission-override__choices {
    width: 100%;
  }

  .salary-sheet__header {
    grid-template-columns: 1fr;
  }

  .salary-sheet__actions {
    justify-content: stretch;
  }

  .salary-metric-grid {
    grid-template-columns: repeat(10, minmax(112px, 1fr));
    min-width: 1120px;
  }

  .salary-metric {
    grid-template-rows: 44px 52px 52px;
  }

  .salary-metric__title {
    font-size: 14px;
  }

  .salary-metric__value,
  .salary-metric__amount {
    font-size: 19px;
  }

  .field-label--inline,
  .range-inputs__input {
    min-width: 0;
    max-width: none;
  }

  .range-inputs__dash {
    align-self: center;
  }

  .search-form__input {
    flex-basis: auto;
  }

  .users-summary-grid {
    grid-template-columns: 1fr;
  }

  .users-summary-card {
    min-height: auto;
  }

  .users-search-form__input {
    min-width: 0;
  }

  .table-card,
  .form-card,
  .feature-card,
  .detail-card {
    padding: 18px;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .data-table th,
  .data-table td {
    padding: 12px 10px;
  }

  .table-actions--compact {
    justify-content: flex-start;
  }

  .table-actions--compact .button {
    width: auto;
  }

  .product-hero {
    flex-direction: column;
  }

  .detail-grid,
  .permission-group__list {
    grid-template-columns: 1fr;
  }

  .shop-picker__dropdown {
    position: static;
    margin-top: 8px;
    box-shadow: none;
  }

  .schedule-smart-modal__dialog {
    width: calc(100% - 20px);
    margin-top: 4vh;
    padding: 20px;
  }

  .schedule-assignee-list {
    grid-template-columns: 1fr;
  }

  .schedule-board__table {
    min-width: 860px;
  }

  .schedule-board__table th,
  .schedule-board__table td {
    min-width: 74px;
    padding: 12px 8px;
  }

  .schedule-board__sticky-column,
  .schedule-board__name {
    min-width: 104px;
  }

  .schedule-board__stat {
    font-size: 18px;
  }

  .schedule-chip {
    min-width: 46px;
    min-height: 38px;
    padding: 0 10px;
    font-size: 16px;
  }

  .calculator-row {
    padding: 18px;
  }

  .calculator-row__title {
    font-size: 24px;
  }

  .auth-card {
    padding: 22px;
    border-radius: 22px;
  }
}

@media (max-width: 480px) {
  .site-stat-card,
  .site-card,
  .site-process-card {
    padding: 18px;
    border-radius: 20px;
  }

  .site-section h3,
  .site-contact h3 {
    font-size: 26px;
  }

  .admin-eyebrow,
  .page-kicker,
  .feature-label {
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .button {
    min-height: 42px;
    padding: 0 14px;
  }

  .admin-nav-link {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .admin-nav-group {
    padding: 10px;
    border-radius: 14px;
  }

  .admin-nav-group__title {
    font-size: 12px;
  }

  .admin-nav-link--child {
    padding: 10px 12px;
  }

  .shop-picker__trigger,
  .field-input,
  .filter-dropdown__summary {
    min-height: 44px;
  }

  .schedule-board__table {
    min-width: 760px;
  }

  .schedule-board__table th,
  .schedule-board__table td {
    min-width: 66px;
    padding: 10px 6px;
  }

  .schedule-board__sticky-column,
  .schedule-board__name {
    min-width: 96px;
  }

  .schedule-chip {
    min-width: 40px;
    min-height: 34px;
    font-size: 15px;
  }
}

/* Office admin refresh: compact, calm, table-first UI for daily operations. */
body.admin-body {
  --admin-bg: #f5fbfb;
  --admin-surface: #ffffff;
  --admin-surface-strong: #ffffff;
  --admin-surface-soft: #f8fcfc;
  --admin-border: rgba(15, 95, 104, 0.14);
  --admin-border-strong: rgba(15, 95, 104, 0.22);
  --admin-text: #17323a;
  --admin-muted: #60757d;
  --admin-text-muted: #7f969d;
  --admin-accent: #0891b2;
  --admin-accent-strong: #0f766e;
  --admin-accent-soft: rgba(8, 145, 178, 0.1);
  --admin-success: #16a34a;
  --admin-warning: #b7791f;
  --admin-danger: #c05656;
  --admin-shadow: 0 10px 28px rgba(19, 78, 74, 0.08);
  min-height: 100vh;
  color: var(--admin-text);
  background: var(--admin-bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
}

body.admin-body * {
  letter-spacing: 0;
}

body.admin-body a:focus-visible,
body.admin-body button:focus-visible,
body.admin-body summary:focus-visible,
body.admin-body input:focus-visible,
body.admin-body select:focus-visible,
body.admin-body textarea:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.32);
  outline-offset: 2px;
}

body.admin-body input[type="checkbox"],
body.admin-body input[type="radio"] {
  accent-color: var(--admin-accent-strong);
}

body.admin-body .admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  background:
    linear-gradient(90deg, #ffffff 0, #ffffff 272px, transparent 272px),
    var(--admin-bg);
}

body.admin-body .admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  overflow-y: auto;
  border-right: 1px solid var(--admin-border);
  background: #ffffff;
  box-shadow: none;
}

body.admin-body .admin-sidebar__header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 6px 6px 16px;
  border-bottom: 1px solid var(--admin-border);
}

body.admin-body .admin-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #ffffff;
  background: #0891b2;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(8, 145, 178, 0.22);
}

body.admin-body .admin-eyebrow,
body.admin-body .page-kicker,
body.admin-body .feature-label {
  margin: 0 0 6px;
  color: var(--admin-accent-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

body.admin-body .admin-brand,
body.admin-body .page-header h2,
body.admin-body .feature-card h3,
body.admin-body .empty-state h3,
body.admin-body .form-errors h3,
body.admin-body .auth-title,
body.admin-body .calculator-row__title,
body.admin-body .pricing-loading-card h3 {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Arial, sans-serif;
}

body.admin-body .admin-brand {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

body.admin-body .admin-copy {
  margin: 12px 6px 0;
  color: var(--admin-muted);
  font-size: 13px;
}

body.admin-body .admin-nav {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

body.admin-body .admin-nav-link,
body.admin-body .admin-nav-group {
  border-radius: 8px;
  box-shadow: none;
}

body.admin-body .admin-nav-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  color: #31545a;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

body.admin-body .admin-nav-link:hover {
  color: var(--admin-accent-strong);
  background: var(--admin-accent-soft);
  transform: none;
}

body.admin-body .admin-nav-link.is-active {
  color: #ffffff;
  border-color: rgba(15, 118, 110, 0.18);
  background: linear-gradient(135deg, #0891b2 0%, #0f766e 100%);
  transform: none;
}

body.admin-body .admin-nav-group {
  padding: 6px;
  border: 1px solid transparent;
  background: transparent;
}

body.admin-body .admin-nav-group.is-active {
  border-color: var(--admin-border);
  background: #f4fbfa;
}

body.admin-body .admin-nav-group__title {
  min-height: 34px;
  padding: 0 6px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

body.admin-body .admin-nav-group[open] .admin-nav-group__title {
  margin-bottom: 6px;
}

body.admin-body .admin-nav-sublist {
  display: grid;
  gap: 4px;
}

body.admin-body .admin-nav-link--child {
  min-height: 36px;
  padding: 0 10px 0 16px;
  color: #3f5f63;
  background: transparent;
  font-size: 14px;
}

body.admin-body .admin-session-card {
  margin: 20px 0 0;
  padding: 12px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #f8fcfc;
}

body.admin-body .admin-session-label {
  margin: 0 0 6px;
  color: var(--admin-muted);
  font-size: 12px;
}

body.admin-body .admin-session-value {
  font-weight: 800;
}

body.admin-body .admin-session-meta {
  margin: 6px 0 10px;
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.55;
}

body.admin-body .admin-main {
  min-width: 0;
  padding: 24px;
}

body.admin-body .admin-page,
body.admin-body .admin-page--wide,
body.admin-body .admin-page--salary {
  width: 100%;
  max-width: min(100%, 1560px);
}

body.admin-body .page-header {
  align-items: center;
  gap: 16px;
  min-height: 68px;
  margin-bottom: 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--admin-border);
}

body.admin-body .page-header--compact,
body.admin-body .page-header--embedded {
  min-height: 0;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

body.admin-body .page-header h2 {
  margin: 0;
  color: var(--admin-text);
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.2;
  font-weight: 800;
}

body.admin-body .page-copy,
body.admin-body .feature-card p,
body.admin-body .empty-state p,
body.admin-body .field-hint,
body.admin-body .search-summary {
  margin: 8px 0 0;
  color: var(--admin-muted);
  line-height: 1.65;
}

body.admin-body .page-actions,
body.admin-body .form-actions,
body.admin-body .table-actions,
body.admin-body .upload-form,
body.admin-body .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.admin-body .button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  box-shadow: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

body.admin-body .button--primary {
  color: #ffffff;
  background: #0f766e;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.16);
}

body.admin-body .button--primary:hover {
  background: #0b655f;
}

body.admin-body .button--ghost {
  color: #31545a;
  border-color: var(--admin-border-strong);
  background: #ffffff;
}

body.admin-body .button--ghost:hover {
  color: var(--admin-accent-strong);
  border-color: rgba(8, 145, 178, 0.32);
  background: #f8fcfc;
}

body.admin-body .button--danger {
  color: var(--admin-danger);
  border-color: rgba(192, 86, 86, 0.32);
  background: #fff7f7;
}

body.admin-body .button--danger:hover {
  color: #a84545;
  border-color: rgba(192, 86, 86, 0.46);
  background: #fff1f1;
}

body.admin-body .button--small {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 13px;
}

body.admin-body .button--full {
  width: 100%;
}

body.admin-body .button--disabled,
body.admin-body .button:disabled,
body.admin-body .pagination__disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

body.admin-body .feature-card,
body.admin-body .table-card,
body.admin-body .form-card,
body.admin-body .detail-card,
body.admin-body .subsection-card,
body.admin-body .permission-group,
body.admin-body .calculator-row,
body.admin-body .salary-sheet,
body.admin-body .auth-card,
body.admin-body .flash,
body.admin-body .schedule-board,
body.admin-body .schedule-smart-modal__dialog,
body.admin-body .admin-table-shell {
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
  backdrop-filter: none;
}

body.admin-body .table-card,
body.admin-body .form-card,
body.admin-body .detail-card,
body.admin-body .feature-card {
  padding: 18px;
}

body.admin-body .feature-card h3,
body.admin-body .detail-card h3,
body.admin-body .schedule-assignee-card__header h3,
body.admin-body .permission-group__title {
  margin: 0 0 10px;
  color: var(--admin-text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

body.admin-body .feature-card .form-actions {
  margin-top: 14px;
}

body.admin-body .admin-grid {
  gap: 12px;
}

body.admin-body .stats-row {
  gap: 10px;
  margin-bottom: 14px;
}

body.admin-body .stat-card,
body.admin-body .salary-sheet__meta span,
body.admin-body .inline-note,
body.admin-body .field-static,
body.admin-body .schedule-assignee-item,
body.admin-body .shop-picker__trigger,
body.admin-body .shop-picker__dropdown,
body.admin-body .shop-picker__tag,
body.admin-body .filter-dropdown__summary,
body.admin-body .filter-dropdown__panel {
  border-radius: 8px;
}

body.admin-body .stat-card {
  min-height: 72px;
  padding: 12px 14px;
  background: #ffffff;
}

body.admin-body .stat-value {
  color: var(--admin-accent);
  font-size: 24px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

body.admin-body .stat-label {
  color: var(--admin-muted);
  font-size: 13px;
}

body.admin-body .flash {
  margin-bottom: 14px;
  padding: 12px 14px;
  font-weight: 700;
}

body.admin-body .flash--notice {
  color: #166534;
  border-color: rgba(22, 163, 74, 0.24);
  background: #f0fdf4;
}

body.admin-body .flash--alert {
  color: #9f3333;
  border-color: rgba(192, 86, 86, 0.24);
  background: #fef2f2;
}

body.admin-body .table-toolbar {
  gap: 10px;
  margin-bottom: 14px;
}

body.admin-body .search-form,
body.admin-body .users-search-form {
  gap: 8px;
  align-items: center;
}

body.admin-body .field-group {
  gap: 7px;
}

body.admin-body .field-label {
  color: #31545a;
  font-size: 13px;
  font-weight: 800;
}

body.admin-body .field-input,
body.admin-body .field-input--file,
body.admin-body .filter-dropdown__summary,
body.admin-body .shop-picker__trigger {
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--admin-text);
  font-size: 14px;
}

body.admin-body textarea.field-input,
body.admin-body .field-textarea {
  min-height: 104px;
  padding-top: 10px;
  padding-bottom: 10px;
}

body.admin-body .field-input:focus,
body.admin-body .filter-dropdown[open] .filter-dropdown__summary,
body.admin-body .shop-picker__trigger:focus {
  border-color: rgba(8, 145, 178, 0.48);
  outline: 3px solid rgba(34, 211, 238, 0.22);
  outline-offset: 1px;
  box-shadow: none;
}

body.admin-body .form-grid {
  gap: 12px;
}

body.admin-body .data-table {
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
}

body.admin-body .data-table th,
body.admin-body .data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 95, 104, 0.1);
  vertical-align: middle;
}

body.admin-body .data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #527075;
  background: #f4fbfa;
  font-size: 12px;
  font-weight: 850;
  text-transform: none;
}

body.admin-body .data-table tbody tr:hover {
  background: #f8fcfc;
}

body.admin-body .table-link {
  color: var(--admin-accent-strong);
  font-weight: 800;
}

body.admin-body .status-badge {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border-color: var(--admin-border);
  background: #f4fbfa;
  font-size: 12px;
  font-weight: 800;
}

body.admin-body .status-badge--success {
  color: #166534;
  background: #dcfce7;
}

body.admin-body .status-badge--danger {
  color: #9f3333;
  background: #fee2e2;
}

body.admin-body .status-badge--muted {
  color: #60757d;
  background: #eef5f5;
}

body.admin-body .status-badge--role {
  color: var(--admin-accent-strong);
  background: #e7f8f4;
}

body.admin-body .detail-grid,
body.admin-body .calculator-grid,
body.admin-body .permission-groups,
body.admin-body .salary-sheet-list {
  gap: 12px;
}

body.admin-body .detail-list {
  gap: 8px;
}

body.admin-body .detail-list div {
  gap: 3px;
  padding-bottom: 9px;
}

body.admin-body .detail-list dt {
  color: var(--admin-muted);
  font-size: 12px;
  text-transform: none;
}

body.admin-body .detail-list dd {
  line-height: 1.55;
}

body.admin-body .empty-state {
  padding: 28px 12px;
}

body.admin-body .empty-state h3 {
  font-size: 20px;
}

body.admin-body .schedule-smart-modal__dialog {
  width: min(100% - 32px, 640px);
  padding: 20px;
}

body.admin-body .schedule-smart-modal__header {
  margin-bottom: 14px;
}

body.admin-body .schedule-smart-modal__header h3 {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
}

body.admin-body .schedule-board {
  background: #ffffff;
  overflow: hidden;
}

body.admin-body .schedule-board__table {
  min-width: 1180px;
}

body.admin-body .schedule-board__table th,
body.admin-body .schedule-board__table td {
  min-width: 82px;
  padding: 9px 7px;
  border-color: rgba(15, 95, 104, 0.1);
  background: #ffffff;
}

body.admin-body .schedule-board__table th {
  color: #527075;
  background: #f4fbfa;
  font-size: 13px;
  font-weight: 850;
}

body.admin-body .schedule-board__name,
body.admin-body .schedule-board__position {
  min-width: 112px;
}

body.admin-body .schedule-board__stat {
  color: var(--admin-text);
  font-size: 17px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

body.admin-body .schedule-chip {
  min-width: 42px;
  min-height: 32px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 15px;
  box-shadow: none;
}

body.admin-body .schedule-chip--morning {
  background: #0f9f83;
}

body.admin-body .schedule-chip--evening {
  background: #2563eb;
}

body.admin-body .schedule-chip--rest {
  background: #64748b;
}

body.admin-body .schedule-chip--regular {
  background: #b7791f;
}

body.admin-body .schedule-chip--empty {
  color: rgba(23, 50, 58, 0.28);
  background: #eef5f5;
}

body.admin-body .salary-sheet {
  overflow: hidden;
}

body.admin-body .salary-sheet__header {
  padding: 14px;
  background: #f8fcfc;
}

body.admin-body .salary-sheet__name {
  font-size: 20px;
}

body.admin-body .salary-metric-grid {
  border-color: rgba(15, 95, 104, 0.1);
}

body.admin-body .salary-metric {
  background: #ffffff;
}

body.admin-body .salary-metric__title {
  font-size: 13px;
}

body.admin-body .salary-metric__value,
body.admin-body .salary-metric__amount {
  font-size: 18px;
}

body.admin-body .auth-shell {
  background: var(--admin-bg);
}

body.admin-body .auth-card {
  border-radius: 8px;
}

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

@media (max-width: 1100px) {
  body.admin-body .admin-shell {
    grid-template-columns: minmax(0, 1fr);
    background: var(--admin-bg);
  }

  body.admin-body .admin-sidebar {
    position: static;
    height: auto;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--admin-border);
  }

  body.admin-body .admin-sidebar__header {
    padding-bottom: 10px;
  }

  body.admin-body .admin-copy,
  body.admin-body .admin-session-card {
    display: none;
  }

  body.admin-body .admin-nav {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 4px;
    overflow-x: auto;
  }

  body.admin-body .admin-nav-link,
  body.admin-body .admin-nav-group {
    flex: 0 0 auto;
  }

  body.admin-body .admin-nav-group {
    min-width: 180px;
  }

  body.admin-body .admin-main {
    padding: 18px 16px 28px;
  }
}

@media (max-width: 720px) {
  body.admin-body {
    font-size: 14px;
  }

  body.admin-body .admin-main {
    padding: 14px 12px 24px;
  }

  body.admin-body .page-header {
    align-items: stretch;
    min-height: 0;
    margin-bottom: 14px;
  }

  body.admin-body .page-header h2 {
    font-size: 24px;
  }

  body.admin-body .table-card,
  body.admin-body .form-card,
  body.admin-body .detail-card,
  body.admin-body .feature-card {
    padding: 12px;
  }

  body.admin-body .page-actions,
  body.admin-body .form-actions,
  body.admin-body .table-actions,
  body.admin-body .upload-form,
  body.admin-body .pagination {
    width: 100%;
    align-items: stretch;
  }

  body.admin-body .page-actions .button,
  body.admin-body .form-actions .button,
  body.admin-body .upload-form .button,
  body.admin-body .pagination .button,
  body.admin-body .pagination > span {
    width: 100%;
  }

  body.admin-body .table-actions .button {
    width: auto;
  }

  body.admin-body .field-input,
  body.admin-body .field-input--file,
  body.admin-body .filter-dropdown__summary,
  body.admin-body .shop-picker__trigger {
    min-height: 38px;
  }

  body.admin-body .schedule-board__table {
    min-width: 860px;
  }
}

/*
首页已迁移到独立项目，旧官网样式暂时保留为注释。

.corp-page {
  --corp-primary: #0891b2;
  --corp-primary-dark: #0f5f68;
  --corp-cta: #16a34a;
  --corp-ink: #134e4a;
  --corp-muted: #52666d;
  --corp-soft: #f0fdfa;
  --corp-line: #d7efeb;
  --corp-warm: #b7791f;
  color: var(--corp-ink);
  background: #ffffff;
  font-family: Figtree, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

.corp-page *,
.corp-page *::before,
.corp-page *::after {
  box-sizing: border-box;
}

.corp-page a:not(.corp-button) {
  color: inherit;
}

.corp-page a:focus-visible,
.corp-page button:focus-visible {
  outline: 4px solid rgba(34, 211, 238, 0.32);
  outline-offset: 3px;
}

.corp-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--corp-primary-dark);
  text-decoration: none;
}

.corp-skip-link:focus {
  transform: translateY(0);
}

.corp-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.corp-nav {
  position: sticky;
  top: 0;
  z-index: 99;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(8, 145, 178, 0.12);
  box-shadow: 0 10px 30px rgba(19, 78, 74, 0.06);
  backdrop-filter: blur(14px);
}

.corp-nav__container {
  width: min(1180px, calc(100% - 40px));
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.corp-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--corp-ink);
  text-decoration: none;
  white-space: nowrap;
}

.corp-logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--corp-primary);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(8, 145, 178, 0.22);
}

.corp-logo__text {
  font-size: 19px;
  font-weight: 800;
}

.corp-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  flex-wrap: wrap;
}

.corp-menu a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: #315f61;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.corp-menu a:hover {
  color: var(--corp-primary-dark);
  background: rgba(8, 145, 178, 0.08);
}

.corp-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.corp-button:hover {
  transform: translateY(-1px);
}

.corp-button--nav,
.corp-button--primary {
  color: #ffffff;
  background: var(--corp-cta);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.2);
}

.corp-button--nav:hover,
.corp-button--primary:hover {
  background: #15803d;
}

.corp-button--secondary {
  color: var(--corp-primary-dark);
  background: #ffffff;
  border-color: rgba(8, 145, 178, 0.22);
  box-shadow: 0 12px 26px rgba(19, 78, 74, 0.08);
}

.corp-button--secondary:hover {
  border-color: rgba(8, 145, 178, 0.44);
  background: #f8fffd;
}

.corp-button--light {
  color: var(--corp-primary-dark);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(1, 60, 52, 0.18);
}

.corp-hero {
  min-height: calc(100vh - 82px);
  padding: 78px 0 64px;
  display: flex;
  align-items: center;
  background: #f7fffc;
  border-bottom: 1px solid rgba(8, 145, 178, 0.1);
}

.corp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: clamp(36px, 5vw, 74px);
  align-items: center;
}

.corp-hero__content {
  max-width: 720px;
}

.corp-kicker {
  margin: 0 0 12px;
  color: #087f8f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.corp-hero h1 {
  margin: 0;
  color: #123c3d;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: 0;
}

.corp-hero h1 span {
  display: block;
}

.corp-hero__lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: #3f5f63;
  font-size: 18px;
  line-height: 1.9;
}

.corp-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.corp-hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.corp-hero__meta div {
  min-height: 108px;
  padding: 18px;
  border: 1px solid rgba(8, 145, 178, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(19, 78, 74, 0.07);
}

.corp-hero__meta span,
.corp-signal span,
.corp-flow-card__header span,
.corp-contact-item span {
  display: block;
  color: #647b7e;
  font-size: 13px;
}

.corp-hero__meta strong,
.corp-signal strong,
.corp-flow-card__header strong {
  display: block;
  margin-top: 8px;
  color: var(--corp-ink);
  font-size: 16px;
  line-height: 1.45;
}

.corp-hero-panel {
  padding: 24px;
  border: 1px solid rgba(8, 145, 178, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(19, 78, 74, 0.14);
}

.corp-hero-panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--corp-line);
}

.corp-hero-panel__top span {
  color: #6b7e80;
  font-size: 13px;
}

.corp-hero-panel__top strong {
  display: block;
  margin-top: 4px;
  color: #123c3d;
  font-size: 22px;
}

.corp-status {
  flex: 0 0 auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #166534 !important;
  background: #dcfce7;
  font-size: 12px !important;
  font-weight: 800;
}

.corp-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.corp-signal {
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(8, 145, 178, 0.13);
  border-radius: 8px;
  background: #f8fffd;
}

.corp-flow-card {
  margin-top: 20px;
  padding: 20px;
  border-radius: 8px;
  color: #ffffff;
  background: #0f5f68;
}

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

.corp-flow-card__header span,
.corp-flow-card__header strong {
  color: #ffffff;
}

.corp-flow-card__header strong {
  margin-top: 0;
}

.corp-mini-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.corp-mini-flow li {
  min-height: 86px;
  padding: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.corp-mini-flow span {
  display: block;
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 800;
}

.corp-mini-flow strong {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.35;
}

.corp-section {
  padding: 86px 0;
}

.corp-section--soft {
  background: var(--corp-soft);
}

.corp-section--deep {
  color: #ffffff;
  background: #0f5f68;
}

.corp-section__header {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.corp-section__header--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: end;
  text-align: left;
}

.corp-title {
  margin: 0;
  color: #123c3d;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.24;
  font-weight: 850;
  letter-spacing: 0;
}

.corp-title--light {
  color: #ffffff;
}

.corp-section__summary {
  margin: 16px 0 0;
  color: var(--corp-muted);
  font-size: 16px;
  line-height: 1.9;
}

.corp-section--deep .corp-section__summary,
.corp-section--deep .corp-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.corp-feature-grid {
  display: grid;
  gap: 18px;
}

.corp-feature-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.corp-feature-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.corp-feature-card,
.corp-capability-card,
.corp-resource-card,
.corp-compliance-card,
.corp-boundary-card,
.corp-business-card {
  border: 1px solid rgba(8, 145, 178, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(19, 78, 74, 0.07);
}

.corp-feature-card {
  min-height: 250px;
  padding: 28px;
}

.corp-feature-card__label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  color: #0f766e;
  background: #dff8f1;
  font-size: 12px;
  font-weight: 800;
}

.corp-feature-card h3,
.corp-capability-card h3,
.corp-resource-card h3,
.corp-compliance-card h3,
.corp-business-card h3,
.corp-boundary-card h3,
.corp-process h3 {
  margin: 16px 0 10px;
  color: #123c3d;
  font-size: 19px;
  line-height: 1.38;
}

.corp-feature-card p,
.corp-capability-card p,
.corp-resource-card p,
.corp-compliance-card p,
.corp-business-card p,
.corp-process p {
  margin: 0;
  color: var(--corp-muted);
  font-size: 15px;
  line-height: 1.85;
}

.corp-business-list {
  display: grid;
  gap: 16px;
}

.corp-business-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 28px;
}

.corp-business-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--corp-primary);
  font-size: 18px;
  font-weight: 850;
}

.corp-business-card h3 {
  margin-top: 0;
}

.corp-platform-app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 36px;
  align-items: center;
}

.corp-platform-app-copy p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.95;
}

.corp-boundary-card {
  padding: 30px;
  color: var(--corp-ink);
}

.corp-boundary-card h3 {
  margin-top: 0;
}

.corp-check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.corp-check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--corp-muted);
  font-size: 15px;
  line-height: 1.75;
}

.corp-check-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--corp-cta);
  font-size: 12px;
  font-weight: 900;
  content: "✓";
}

.corp-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 24px;
  border: 1px solid rgba(8, 145, 178, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(19, 78, 74, 0.08);
}

.corp-process article {
  min-height: 210px;
  padding: 28px;
  border-right: 1px solid var(--corp-line);
}

.corp-process article:last-child {
  border-right: 0;
}

.corp-process span {
  color: var(--corp-warm);
  font-size: 13px;
  font-weight: 850;
}

.corp-process h3 {
  margin-top: 14px;
}

.corp-capability-card,
.corp-resource-card,
.corp-compliance-card {
  min-height: 210px;
  padding: 24px;
}

.corp-resource-card {
  background: #ffffff;
}

.corp-compliance-card {
  background: #f8fffd;
}

.corp-cta {
  padding: 68px 0;
  color: #ffffff;
  text-align: center;
  background: #0c4f58;
}

.corp-cta .corp-kicker {
  color: #a7f3d0;
}

.corp-cta h2 {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.3;
}

.corp-cta p:not(.corp-kicker) {
  margin: 14px auto 26px;
  color: rgba(255, 255, 255, 0.78);
}

.corp-footer {
  padding: 46px 0 34px;
  color: #ffffff;
  background: #112b32;
  text-align: left;
}

.corp-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.corp-footer__brand h2 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
}

.corp-footer__brand p,
.corp-footer__copyright {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

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

.corp-contact-item {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.corp-contact-item span {
  color: rgba(255, 255, 255, 0.62);
}

.corp-contact-item strong,
.corp-contact-item a {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.55;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.corp-contact-item a:hover {
  color: #a7f3d0;
}

.corp-footer__copyright {
  margin-top: 24px;
  font-size: 13px;
}

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

@media (max-width: 1080px) {
  .corp-menu {
    justify-content: flex-start;
    order: 3;
    width: 100%;
  }

  .corp-nav__container {
    flex-wrap: wrap;
  }

  .corp-hero {
    min-height: auto;
  }

  .corp-hero__grid,
  .corp-platform-app-layout,
  .corp-section__header--split {
    grid-template-columns: 1fr;
  }

  .corp-hero__content {
    max-width: none;
  }

  .corp-feature-grid--four,
  .corp-process,
  .corp-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .corp-feature-grid--six,
  .corp-feature-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .corp-process article:nth-child(2) {
    border-right: 0;
  }

  .corp-process article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--corp-line);
  }
}

@media (max-width: 720px) {
  .corp-container,
  .corp-nav__container {
    width: min(100% - 32px, 1180px);
  }

  .corp-nav {
    padding: 10px 0;
  }

  .corp-nav__actions,
  .corp-nav__actions .corp-button {
    display: none;
  }

  .corp-menu {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .corp-menu::-webkit-scrollbar {
    display: none;
  }

  .corp-menu a {
    flex: 0 0 auto;
    justify-content: center;
    padding: 0 8px;
    font-size: 14px;
  }

  .corp-hero {
    padding: 48px 0;
  }

  .corp-hero__lead {
    font-size: 16px;
  }

  .corp-hero h1 {
    font-size: 32px;
    line-height: 1.22;
  }

  .corp-hero__actions,
  .corp-hero__actions .corp-button,
  .corp-cta .corp-button {
    width: 100%;
  }

  .corp-hero__actions {
    flex-direction: column;
  }

  .corp-hero__meta,
  .corp-feature-grid--three,
  .corp-feature-grid--four,
  .corp-feature-grid--six,
  .corp-process,
  .corp-contact-grid {
    grid-template-columns: 1fr;
  }

  .corp-signal-grid,
  .corp-mini-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .corp-hero-panel {
    padding: 18px;
  }

  .corp-hero-panel__top {
    flex-direction: column;
  }

  .corp-business-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .corp-process article,
  .corp-process article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--corp-line);
  }

  .corp-process article:last-child {
    border-bottom: 0;
  }

  .corp-section {
    padding: 58px 0;
  }

  .corp-feature-card,
  .corp-capability-card,
  .corp-resource-card,
  .corp-compliance-card,
  .corp-boundary-card,
  .corp-business-card {
    min-height: auto;
    padding: 22px;
  }
}
*/

.table-toolbar--stacked {
  gap: 16px;
}

.search-form--filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.search-form--filters .search-form__input {
  min-width: 280px;
}

.search-form__select {
  min-width: 180px;
}

.detail-copy {
  margin: 0 0 24px;
  color: #4b5563;
  line-height: 1.8;
}

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

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

.rich-editor trix-toolbar {
  margin-bottom: 12px;
}

.rich-editor trix-editor {
  border: 1px solid rgba(19, 55, 96, 0.14);
  border-radius: 18px;
  background: #fff;
  padding: 18px 20px;
  min-height: 360px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.rich-editor trix-editor:focus {
  border-color: #3e92cc;
  box-shadow: 0 0 0 4px rgba(62, 146, 204, 0.14);
}

.article-body p {
  margin: 0;
  color: #1f2937;
  line-height: 1.9;
  white-space: pre-wrap;
}

.article-body.trix-content {
  color: #1f2937;
  line-height: 1.9;
}

.article-body.trix-content h1,
.article-body.trix-content h2,
.article-body.trix-content h3,
.article-body.trix-content h4 {
  color: #102033;
}

.article-body.trix-content a {
  color: #0a2463;
}

.attachment__preview-link {
  display: inline-block;
}

.attachment__name--link {
  color: #0a2463;
  font-weight: 600;
  text-decoration: none;
}

.attachment__name--link:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .search-form--filters {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form--filters .search-form__input,
  .search-form__select {
    min-width: 0;
    width: 100%;
  }

  .search-form__date-range {
    flex-direction: row;
    align-items: center;
    min-width: 0;
    width: 100%;
  }

  .search-form__shop-picker {
    min-width: 0;
    width: 100%;
  }

  .detail-card--wide {
    grid-column: span 1;
  }
}
