* { box-sizing: border-box; }

:root {
  --bg: #f7f7f8;
  --panel: #ffffff;
  --text: #252525;
  --muted: #8a8f98;
  --line: #eceef1;
  --line-strong: #e1e4e8;
  --brand: #f2555b;
  --brand-dark: #dc3f47;
  --brand-soft: #fff1f2;
  --green: #16845f;
  --green-soft: #edf8f3;
  --orange: #b76a23;
  --orange-soft: #fff4e8;
  --blue: #4d64b6;
  --blue-soft: #f0f2ff;
  --shadow: 0 8px 28px rgba(24, 32, 45, .045);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

[hidden] {
  display: none !important;
}

html, body { min-height: 100%; }
body { margin: 0; color: var(--text); background: var(--bg); }
h1, h2, h3, p { margin: 0; }
p { color: var(--muted); line-height: 1.65; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button > svg { width: 15px; height: 15px; flex: 0 0 auto; }
.hidden, [hidden] { display: none !important; }

button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--brand);
  font-size: 13px;
  font-weight: 650;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
button:hover { background: var(--brand-dark); }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(242, 85, 91, .13);
  outline-offset: 1px;
}

input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--text);
  background: #fff;
  outline: none;
}
input::placeholder, textarea::placeholder { color: #b5bac2; }
input:focus, textarea:focus, select:focus { border-color: #ee9ca0; }
textarea { resize: vertical; }

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

.sidebar-shell {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: 6px 0 24px rgba(25, 31, 39, .025);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 78px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 7px 18px rgba(242, 85, 91, .19);
  font-size: 19px;
  font-weight: 850;
}
.logo-mark svg { width: 21px; height: 21px; stroke-width: 2; }
.side-brand h1 { font-size: 16px; line-height: 1.25; }
.side-brand p { margin-top: 3px; font-size: 11px; }

.sidebar {
  flex: 1;
  min-height: 0;
  padding: 13px 11px 22px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #dedede transparent;
}
.nav-group + .nav-group { margin-top: 9px; }
.nav-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 34px;
  padding: 0 11px;
  color: #9a9ea6;
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  text-align: left;
}
.nav-group-title:hover { color: #3f4349; background: #f8f8f9; }
.nav-group-title::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-right: 1.5px solid #aeb2b9;
  border-bottom: 1.5px solid #aeb2b9;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.nav-group.current .nav-group-title { color: var(--brand-dark); }
.nav-group.collapsed .nav-group-title::after { transform: rotate(-45deg); }
.nav-items { max-height: 480px; overflow: hidden; opacity: 1; transition: max-height .22s ease, opacity .16s ease; }
.nav-group.collapsed .nav-items { max-height: 0; opacity: 0; pointer-events: none; }
.nav-group-title small { margin-left: auto; margin-right: 10px; color: #b1b5bc; font-size: 10px; }
.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 38px;
  margin: 2px 0;
  padding: 0 12px;
  border-radius: 7px;
  color: #62666d;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}
.nav-item:hover { color: #292929; background: #f7f7f8; }
.nav-item.active { color: var(--brand-dark); background: var(--brand-soft); font-weight: 650; }
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
}
.nav-icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  color: var(--nav-icon, #8f959d);
  background: var(--nav-icon-bg, #f3f4f5);
}
.nav-icon svg { width: 14px; height: 14px; stroke-width: 1.85; }
.nav-item.active .nav-icon { color: #fff; background: var(--nav-icon, var(--brand)); }
.nav-item.tone-coral { --nav-icon: #e9575e; --nav-icon-bg: #fff0f1; }
.nav-item.tone-blue { --nav-icon: #5375c6; --nav-icon-bg: #eef3ff; }
.nav-item.tone-orange { --nav-icon: #bc732d; --nav-icon-bg: #fff3e8; }
.nav-item.tone-green { --nav-icon: #278265; --nav-icon-bg: #eaf7f2; }
.nav-item.tone-violet { --nav-icon: #7b64bd; --nav-icon-bg: #f2effb; }
.nav-item.tone-cyan { --nav-icon: #32858b; --nav-icon-bg: #eaf7f7; }
.nav-item.tone-gold { --nav-icon: #9a7b29; --nav-icon-bg: #f8f3e6; }
.nav-item.tone-slate { --nav-icon: #66717f; --nav-icon-bg: #eff2f5; }
.nav-item small { display: none; }

.sidebar-account {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
}
.account-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: #2f3034;
  font-size: 13px;
  font-weight: 700;
}
.account-copy { min-width: 0; }
.account-copy strong, .account-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { font-size: 12px; }
.account-copy small { margin-top: 3px; color: #a0a4ab; font-size: 10px; }
.icon-button {
  display: grid;
  width: 29px;
  place-items: center;
  min-height: 28px;
  padding: 0;
  color: #93979e;
  background: transparent;
  font-size: 11px;
}
.icon-button svg { width: 14px; height: 14px; }
.icon-button:hover { color: var(--brand-dark); background: var(--brand-soft); }

.main-shell {
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  margin: 0;
  padding: 13px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.breadcrumb { margin-bottom: 7px; color: #a1a5ac; font-size: 11px; }
.breadcrumb span { color: #6d727a; }
.topbar h2 { color: #222326; font-size: 21px; line-height: 1.25; }
.topbar p { margin-top: 5px; font-size: 13px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.today { padding-right: 14px; border-right: 1px solid var(--line-strong); text-align: right; }
.today small, .today strong { display: block; }
.today small { margin-bottom: 3px; color: #aaaeb5; font-size: 9px; }
.today strong { color: #555a62; font-size: 11px; font-weight: 650; }
.system-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #596068;
  background: #fff;
  font-size: 11px;
}
.system-state i, .updated-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25a675;
  box-shadow: 0 0 0 3px rgba(37, 166, 117, .11);
}
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  color: #4e535b;
  background: #fff;
  border: 1px solid var(--line-strong);
}
.ghost-btn:hover { color: var(--brand-dark); background: #fff; border-color: #edb1b4; }

.dashboard-view, .module-view { min-width: 0; padding: 28px 30px 42px; }
.dashboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 15px;
  padding: 2px 1px;
}
.dashboard-heading span { color: var(--brand-dark); font-size: 11px; font-weight: 700; }
.dashboard-heading h3 { margin-top: 6px; font-size: 20px; }
.dashboard-heading p { margin-top: 5px; font-size: 12px; }
.updated-state { display: inline-flex; align-items: center; gap: 8px; color: #687079; font-size: 11px; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.metric-card {
  position: relative;
  min-width: 0;
  min-height: 112px;
  overflow: hidden;
  padding: 18px 19px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.metric-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--metric-color, var(--brand)); }
.metric-card:nth-child(2) { --metric-color: #3478e5; }
.metric-card:nth-child(3) { --metric-color: #ed9237; }
.metric-card:nth-child(4) { --metric-color: #8b63d7; }
.metric-card:nth-child(5) { --metric-color: #e85850; }
.metric-card:nth-child(6) { --metric-color: #32a5a5; }
.metric-card:nth-child(7) { --metric-color: #d85b91; }
.metric-card:nth-child(8) { --metric-color: #178f78; }
.metric-card:hover { transform: translateY(-2px); border-color: #edb4b7; box-shadow: 0 12px 28px rgba(35, 41, 50, .07); }
.metric-head { display: flex; align-items: flex-start; justify-content: space-between; }
.metric-head span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--metric-color, var(--brand)); background: #f5f6f8; font-size: 11px; font-weight: 750; }
.metric-head span svg { width: 16px; height: 16px; }
.metric-label { color: #777c85; font-size: 12px; font-weight: 600; }
.metric-value { margin-top: 4px; color: #222326; font-size: 25px; font-weight: 750; line-height: 1.2; }
.metric-trend { margin-top: 6px; color: #a2a6ad; font-size: 10px; }
.metric-card.attention .metric-value { color: var(--brand-dark); }

.dashboard-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.dashboard-panel, .panel {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.dashboard-panel { padding: 20px 21px; }
.dashboard-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.dashboard-panel-head h3 { font-size: 15px; }
.dashboard-panel-head p { margin-top: 4px; font-size: 11px; }
.todo-list { display: grid; }
.todo-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 58px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  background: #fff;
  text-align: left;
}
.todo-item:last-child { border-bottom: 0; }
.todo-item:hover { color: var(--text); background: #fafafa; }
.todo-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 700;
}
.todo-icon svg, .quick-icon-large svg { width: 15px; height: 15px; }
.todo-item strong, .todo-item small { display: block; }
.todo-item strong { font-size: 12px; }
.todo-item small { margin-top: 3px; color: #a0a4ab; font-size: 10px; }
.todo-number { color: var(--brand-dark); font-size: 18px; font-weight: 750; }
.todo-number.zero { color: #a9adb4; }

.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick-action {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.quick-action:hover { background: #fafafa; border-color: #dddfe3; }
.quick-icon-large {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 7px;
  color: #fff;
  background: #3a3c41;
  font-size: 12px;
  font-weight: 700;
}
.quick-action:nth-child(2) .quick-icon-large { background: var(--green); }
.quick-action:nth-child(3) .quick-icon-large { background: var(--blue); }
.quick-action:nth-child(4) .quick-icon-large { background: var(--orange); }
.quick-action:nth-child(5) .quick-icon-large { background: var(--brand); }
.quick-action:nth-child(6) .quick-icon-large { background: #568a74; }
.quick-name { overflow: hidden; color: #3b3e44; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.quick-desc { margin-top: 3px; overflow: hidden; color: #a0a4ab; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.activity-panel { margin-top: 15px; padding: 0; overflow: hidden; }
.activity-panel-head { min-height: 67px; margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.activity-tabs { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border-radius: 7px; background: #f4f5f6; }
.activity-tab {
  min-height: 29px;
  padding: 0 12px;
  border-radius: 5px;
  color: #777c84;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
}
.activity-tab:hover { color: #33363b; background: #fff; }
.activity-tab.active { color: var(--brand-dark); background: #fff; box-shadow: 0 1px 4px rgba(34, 39, 47, .08); }
.activity-list { min-height: 116px; }
.activity-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 94px 122px 18px;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 62px;
  padding: 9px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  background: #fff;
  text-align: left;
}
.activity-row:last-child { border-bottom: 0; }
.activity-row:hover { color: var(--text); background: #fff8f9; }
.activity-main { min-width: 0; }
.activity-main strong, .activity-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-main strong { font-size: 12px; font-weight: 650; }
.activity-main small { margin-top: 4px; color: #989da5; font-size: 10px; }
.activity-row time { color: #999ea6; font-size: 10px; text-align: right; }
.activity-arrow { color: #b6bac0; font-size: 20px; font-weight: 400; text-align: right; }
.activity-empty { display: grid; min-height: 116px; place-items: center; color: #a5a9b0; font-size: 11px; }

.data-panel { overflow: hidden; }
.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  min-height: 64px;
  padding: 13px 18px;
}
.module-group-label { color: var(--brand-dark); font-size: 11px; font-weight: 700; }
.toolbar h2 { margin-top: 0; font-size: 16px; }
.toolbar p { max-width: 650px; margin-top: 4px; font-size: 11px; }
.toolbar-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.search-box { display: flex; align-items: center; width: 310px; }
.search-box input { height: 38px; border-radius: 7px 0 0 7px; }
.search-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: 0 0 72px; height: 38px; padding: 0; border-radius: 0 7px 7px 0; white-space: nowrap; }
.toolbar-actions > #create { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: 0 0 72px; padding: 0; white-space: nowrap; }
.list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 47px;
  padding: 7px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fafafb;
}
.status-filters { display: flex; align-items: center; gap: 5px; }
.filter-button {
  min-height: 30px;
  padding: 0 12px;
  color: #747982;
  background: transparent;
  font-size: 11px;
}
.filter-button:hover { color: #33363b; background: #f1f2f4; }
.filter-button.active { color: var(--brand-dark); background: #fff; box-shadow: 0 1px 5px rgba(30, 36, 44, .08); }
.module-count { color: #969ba3; font-size: 11px; }

.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { height: 54px; padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
th { height: 44px; color: #858a92; background: #fafafa; font-size: 11px; font-weight: 650; }
td { color: #454950; font-size: 12px; }
tbody tr:hover td { background: #fff8f9; }
tbody tr:last-child td { border-bottom: 0; }
.actions { white-space: nowrap; }
.link-btn {
  min-height: 28px;
  margin-right: 5px;
  padding: 0 9px;
  border: 1px solid #e0e3e7;
  border-radius: 999px;
  color: #4e5969;
  background: #fff;
  font-size: 11px;
  font-weight: 550;
}
.link-btn:hover { color: var(--brand-dark); background: var(--brand-soft); }
.link-btn.danger { color: #a77072; }
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 10px;
  font-weight: 650;
}
.status-chip.pending { color: var(--orange); background: var(--orange-soft); }
.status-chip.disabled { color: #858a92; background: #f0f1f3; }
.empty-cell { height: 180px; color: #a5a9b0; text-align: center; }
.value-cell { display: inline-block; max-width: 360px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.money-value { color: #c4454c; font-weight: 700; }

dialog {
  width: min(780px, calc(100vw - 42px));
  max-height: calc(100vh - 52px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}
dialog::backdrop { background: rgba(26, 30, 37, .48); backdrop-filter: blur(3px); }
.editor-card { overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 28px 80px rgba(15, 20, 28, .2); }
.editor-card > h3 { padding: 20px 23px; border-bottom: 1px solid var(--line); font-size: 18px; }
.editor-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  max-height: calc(100vh - 190px);
  padding: 20px 23px;
  overflow-y: auto;
}
.editor-fields label { min-width: 0; color: #5d626a; font-size: 12px; font-weight: 600; }
.editor-fields label span { display: block; margin-bottom: 7px; }
.editor-fields label.wide { grid-column: 1 / -1; }
.editor-fields textarea { min-height: 40px; }
.prize-editor { grid-column: 1 / -1; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.prize-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; }
.prize-editor-heading button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 6px; color: var(--brand-dark); background: #fff; padding: 7px 10px; cursor: pointer; }
.prize-editor-heading button:hover { background: var(--brand-soft); }
.prize-editor-heading svg, .prize-remove svg { width: 15px; height: 15px; }
.prize-editor p { margin: 0; color: #7d838d; font-size: 11px; }
.prize-row { display: grid; grid-template-columns: minmax(140px, 2fr) minmax(80px, 1fr) minmax(75px, .8fr) minmax(70px, .8fr) 36px; gap: 8px; align-items: end; margin-bottom: 8px; }
.prize-row label { min-width: 0; }
.prize-row input { width: 100%; }
.prize-remove { display: grid; place-items: center; height: 40px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #a14c53; cursor: pointer; }
.image-field-control { display: grid; gap: 9px; }
.image-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.image-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 13px;
  margin: 0;
  border: 1px solid #ebc8cb;
  border-radius: 7px;
  color: var(--brand-dark) !important;
  background: var(--brand-soft);
  cursor: pointer;
  white-space: nowrap;
}
.image-upload-button:hover { border-color: #dc9fa4; background: #ffeaec; }
.image-upload-button.loading { opacity: .62; pointer-events: none; }
.image-upload-button > span { margin: 0 !important; }
.image-upload-button svg { width: 15px; height: 15px; }
.image-upload-input { display: none; }
.image-upload-result { display: flex; align-items: center; gap: 9px; min-height: 34px; color: #9499a1; font-size: 11px; font-weight: 500; }
.image-upload-result img { width: 46px; height: 34px; border: 1px solid var(--line); border-radius: 6px; object-fit: cover; }
.image-upload-result .upload-error { color: var(--brand-dark); }
.editor-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 23px; border-top: 1px solid var(--line); background: #fafafb; }
button.secondary { color: #4d5259; background: #fff; border: 1px solid var(--line-strong); }
button.secondary:hover { color: var(--brand-dark); border-color: #ecafb3; }
.detail-field { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fafafb; }
.detail-field.wide { grid-column: 1 / -1; }
.detail-field span, .detail-field strong { display: block; }
.detail-field span { margin-bottom: 7px; color: #9297a0; font-size: 11px; }
.detail-field strong { color: #383c43; font-size: 12px; font-weight: 600; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }

.confirm-dialog { width: min(420px, calc(100vw - 36px)); }
.confirm-card { padding: 27px 26px 0; border-radius: 12px; background: #fff; box-shadow: 0 28px 80px rgba(15, 20, 28, .22); text-align: center; }
.confirm-mark { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 15px; border-radius: 50%; color: var(--brand-dark); background: var(--brand-soft); font-size: 18px; font-weight: 800; }
.confirm-card h3 { font-size: 17px; }
.confirm-card > p { margin: 8px 0 23px; font-size: 12px; }
.confirm-card .editor-actions { margin: 0 -26px; }

.login-panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #f4f5f7;
}
.login-panel.hidden { display: none; }
.login-card {
  display: grid;
  grid-template-columns: minmax(440px, .95fr) minmax(420px, 1.05fr);
  width: min(960px, 100%);
  min-height: 610px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(28, 34, 43, .14);
}
.login-visual { position: relative; min-height: 610px; overflow: hidden; background: #f2ede8; }
.login-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.login-visual-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.64) 0%, rgba(255,255,255,.08) 43%, rgba(24,28,34,.56) 100%); }
.login-visual-head {
  position: absolute;
  top: 28px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-visual-head .logo-mark { width: 42px; height: 42px; }
.login-visual-head strong, .login-visual-head span { display: block; }
.login-visual-head strong { color: #23262b; font-size: 17px; }
.login-visual-head span { margin-top: 3px; color: #6f747b; font-size: 10px; }
.login-visual-copy { position: absolute; right: 32px; bottom: 34px; left: 32px; color: #fff; text-shadow: 0 2px 16px rgba(18,22,28,.2); }
.login-visual-copy > span { font-size: 9px; font-weight: 750; letter-spacing: .16em; opacity: .78; }
.login-visual-copy h1 { margin-top: 8px; font-size: 30px; line-height: 1.32; }
.login-visual-copy p { margin-top: 10px; color: rgba(255,255,255,.82); font-size: 12px; }
.login-form-panel { display: flex; flex-direction: column; justify-content: center; padding: 58px 66px 42px; }
.login-form-head { margin-bottom: 27px; }
.login-form-head > span { color: var(--brand-dark); font-size: 11px; font-weight: 700; }
.login-form-head h2 { margin-top: 8px; color: #22252a; font-size: 28px; }
.login-form-head p { margin-top: 7px; font-size: 12px; }
.login-field { display: block; margin-top: 17px; color: #555b64; font-size: 12px; font-weight: 600; }
.login-field > span { display: block; margin-bottom: 8px; }
.login-field input { height: 47px; padding: 0 14px; background: #fbfbfc; }
.login-field input:focus { background: #fff; box-shadow: 0 0 0 3px rgba(242,85,91,.08); }
.login-button { width: 100%; height: 47px; margin-top: 25px; box-shadow: 0 8px 20px rgba(242,85,91,.2); }
.login-error { min-height: 20px; margin-top: 10px; color: var(--brand-dark); font-size: 11px; text-align: center; }
.login-foot { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: auto; color: #a0a5ad; font-size: 10px; }
.login-foot i { width: 6px; height: 6px; border-radius: 50%; background: #25a675; box-shadow: 0 0 0 3px rgba(37,166,117,.1); }

@media (max-width: 1260px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-columns { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .admin-app { grid-template-columns: 76px minmax(0, 1fr); }
  .side-brand { justify-content: center; padding: 0; }
  .side-brand > div:last-child, .nav-group-title, .nav-item > span:not(.nav-icon), .sidebar-account .account-copy, .sidebar-account .icon-button { display: none; }
  .sidebar-account { display: flex; justify-content: center; padding: 12px 0; }
  .nav-item { display: flex; justify-content: center; padding: 0; }
  .nav-item.active::before { left: -11px; }
  .dashboard-view, .module-view { padding: 20px; }
  .topbar { align-items: flex-start; }
  .today, .system-state { display: none; }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-actions, .search-box { width: 100%; }
  .search-box { flex: 1; }
  .login-card { grid-template-columns: minmax(300px, .85fr) minmax(380px, 1.15fr); }
  .login-form-panel { padding: 48px 40px 36px; }
}

@media (max-width: 640px) {
  .dashboard-view, .module-view { padding: 16px 12px 30px; }
  .topbar p { display: none; }
  .topbar h2 { font-size: 21px; }
  .dashboard-heading { padding: 17px; }
  .updated-state { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-columns { grid-template-columns: 1fr; }
  .activity-panel-head { align-items: flex-start; flex-direction: column; }
  .activity-tabs { width: 100%; }
  .activity-tab { flex: 1; padding: 0 6px; }
  .activity-row { grid-template-columns: minmax(0, 1fr) auto 14px; gap: 8px; padding: 10px 14px; }
  .activity-row time { display: none; }
  .quick-actions { grid-template-columns: 1fr; }
  .toolbar-actions { align-items: stretch; flex-direction: column; }
  .editor-fields { grid-template-columns: 1fr; }
  .editor-fields label.wide { grid-column: auto; }
  .prize-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prize-row label:first-child { grid-column: 1 / -1; }
  .prize-remove { grid-column: 2; justify-self: end; width: 36px; }
  .login-panel { padding: 14px; }
  .login-card { display: block; min-height: 0; border-radius: 12px; }
  .login-visual { min-height: 220px; }
  .login-visual-head { top: 20px; left: 20px; }
  .login-visual-copy { right: 20px; bottom: 20px; left: 20px; }
  .login-visual-copy h1 { font-size: 23px; }
  .login-visual-copy p { display: none; }
  .login-form-panel { padding: 30px 24px 24px; }
  .login-form-head { margin-bottom: 17px; }
  .login-foot { margin-top: 24px; }
}

/* 运营后台视觉体系 */
:root {
  --bg: #f3f5f7;
  --panel: #ffffff;
  --text: #1f232b;
  --muted: #7c8491;
  --line: #e8eaee;
  --line-strong: #dfe3e8;
  --brand: #ef5b61;
  --brand-dark: #d9464e;
  --brand-soft: #fff0f1;
  --sidebar: #191c24;
  --sidebar-panel: #222630;
  --sidebar-text: #e7e9ed;
  --sidebar-muted: #858d9c;
  --shadow: 0 10px 30px rgba(30, 36, 48, .045);
}

body { background: var(--bg); }
.admin-app { grid-template-columns: 252px minmax(0, 1fr); }

.sidebar-shell {
  color: var(--sidebar-text);
  background: var(--sidebar);
  border-right: 0;
  box-shadow: 8px 0 28px rgba(16, 19, 27, .08);
}
.side-brand {
  min-height: 82px;
  padding: 0 21px;
  border-bottom-color: rgba(255, 255, 255, .07);
}
.side-brand .logo-mark {
  width: 41px;
  height: 41px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 8px 20px rgba(239, 91, 97, .24);
}
.side-brand h1 { color: #fff; font-size: 17px; font-weight: 720; }
.side-brand p { color: #858d9c; font-size: 10px; }
.side-workspace {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
  min-height: 64px;
  margin: 13px 12px 4px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 8px;
  background: var(--sidebar-panel);
}
.workspace-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 7px;
  color: #ffb0b3;
  background: rgba(239, 91, 97, .13);
}
.workspace-mark svg { width: 15px; height: 15px; }
.side-workspace > span:nth-child(2) { min-width: 0; }
.side-workspace small, .side-workspace strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-workspace small { margin-bottom: 3px; color: #757e8e; font-size: 9px; font-weight: 500; }
.side-workspace strong { color: #e8eaee; font-size: 11px; font-weight: 580; }
.side-workspace > svg { width: 13px; color: #687181; }

.sidebar { padding: 9px 11px 18px; scrollbar-color: #343944 transparent; }
.nav-group + .nav-group { margin-top: 7px; }
.nav-group-title {
  height: 34px;
  color: #737c8d;
  background: transparent;
  font-size: 10px;
  font-weight: 620;
}
.nav-group-title:hover { color: #b7bdc8; background: rgba(255, 255, 255, .035); }
.nav-group.current .nav-group-title { color: #aeb5c1; }
.nav-group-title::after { border-color: #596272; }
.nav-group-title small { color: #626b7a; }
.nav-item {
  min-height: 41px;
  margin: 2px 0;
  padding: 0 11px;
  color: #aab0bc;
  font-size: 12px;
  font-weight: 520;
}
.nav-item:hover { color: #f4f5f7; background: rgba(255, 255, 255, .05); }
.nav-item.active {
  color: #fff;
  background: rgba(239, 91, 97, .14);
  box-shadow: inset 0 0 0 1px rgba(239, 91, 97, .08);
}
.nav-item.active::before {
  left: 0;
  top: 10px;
  bottom: 10px;
  border-radius: 0 2px 2px 0;
  background: #ff676d;
}
.nav-icon,
.nav-item.tone-coral .nav-icon,
.nav-item.tone-blue .nav-icon,
.nav-item.tone-orange .nav-icon,
.nav-item.tone-green .nav-icon,
.nav-item.tone-violet .nav-icon,
.nav-item.tone-cyan .nav-icon,
.nav-item.tone-gold .nav-icon,
.nav-item.tone-slate .nav-icon {
  color: #8b94a4;
  background: rgba(255, 255, 255, .045);
}
.nav-item.active .nav-icon { color: #ff9fa3; background: rgba(239, 91, 97, .12); }
.sidebar-account {
  min-height: 74px;
  padding: 12px 16px;
  border-top-color: rgba(255, 255, 255, .07);
  background: #171a21;
}
.account-avatar { background: #303541; color: #f2f3f5; }
.account-copy strong { color: #eceef1; }
.account-copy small { color: #70798a; }
.icon-button { color: #70798a; }
.icon-button:hover { color: #ff9196; background: rgba(239, 91, 97, .1); }

.main-shell { background: var(--bg); }
.topbar {
  min-height: 94px;
  padding: 14px clamp(24px, 2.8vw, 42px);
  border-bottom-color: #e7e9ed;
  background: rgba(255, 255, 255, .97);
}
.breadcrumb { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; color: #9aa1ac; }
.breadcrumb svg { width: 12px; height: 12px; }
.breadcrumb b { color: #c9cdd3; font-weight: 400; }
.breadcrumb span:last-child { color: #626a76; }
.topbar h2 { color: #1d2128; font-size: 23px; font-weight: 720; }
.topbar p { color: #8b929d; font-size: 12px; }
.today { padding-right: 17px; }
.system-state { background: #f8faf9; border-color: #e5ebe8; color: #59655f; }
.ghost-btn { min-height: 36px; background: #fff; }
.ghost-btn.loading svg { animation: refresh-spin .7s linear infinite; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }

.dashboard-view, .module-view {
  width: min(100%, 1580px);
  margin: 0 auto;
  padding: 30px clamp(24px, 2.8vw, 42px) 48px;
}
.dashboard-heading { margin-bottom: 18px; }
.dashboard-heading span { color: #c64b52; font-size: 9px; font-weight: 750; letter-spacing: .1em; }
.dashboard-heading h3 { margin-top: 7px; color: #232730; font-size: 21px; font-weight: 700; }
.dashboard-heading p { color: #8a919d; }
.updated-state {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #e4e9e6;
  border-radius: 7px;
  color: #626b66;
  background: #fff;
}
.updated-state span { color: inherit; font-size: 10px; font-weight: 560; letter-spacing: 0; }

.cards { gap: 13px; margin-bottom: 17px; }
.metric-card {
  min-height: 126px;
  padding: 20px 20px 16px 22px;
  border-color: #e4e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(28, 35, 47, .04);
}
.metric-card::before { inset: 19px auto 19px 0; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
.metric-card:hover { transform: translateY(-2px); border-color: #d8dce2; box-shadow: 0 13px 34px rgba(28, 35, 47, .075); }
.metric-head span { width: 35px; height: 35px; border: 1px solid #edf0f3; background: #f8f9fa; }
.metric-head span svg { width: 17px; height: 17px; }
.metric-label { color: #737b87; font-size: 11px; }
.metric-value { margin-top: 7px; color: #20242c; font-size: 28px; font-weight: 720; }
.metric-trend { display: flex; align-items: center; gap: 5px; margin-top: 7px; color: #9aa0aa; }
.metric-trend::after { content: "→"; color: #c0c4ca; }

.dashboard-columns { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; }
.dashboard-panel, .panel { border-color: #e2e5e9; box-shadow: 0 10px 30px rgba(29, 35, 46, .04); }
.dashboard-panel { padding: 21px 22px; }
.dashboard-panel-head { min-height: 37px; margin-bottom: 13px; }
.dashboard-panel-head h3 { color: #252931; font-size: 15px; font-weight: 680; }
.dashboard-panel-head p { color: #969ca6; }
.todo-item { min-height: 61px; padding: 8px 4px; }
.todo-item:hover { background: #f8f9fa; }
.todo-icon { width: 34px; height: 34px; color: #d94a52; background: #fff1f2; }
.todo-item strong { color: #363b44; font-weight: 620; }
.todo-number { min-width: 26px; text-align: center; }
.quick-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.quick-action { min-height: 77px; padding: 12px; border-color: #e7e9ed; background: #fbfbfc; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.quick-action:hover { transform: translateY(-1px); background: #fff; border-color: #d9dde3; }
.quick-icon-large { width: 34px; height: 34px; }
.quick-name { font-weight: 630; }

.activity-panel { margin-top: 16px; }
.activity-panel-head { min-height: 72px; padding: 15px 22px; }
.activity-tabs { background: #f1f3f5; }
.activity-row { min-height: 65px; padding: 10px 22px; }
.activity-row:hover { background: #fafbfc; }
.activity-main strong { color: #323741; }

.data-panel { border-radius: 8px; }
.toolbar { min-height: 78px; padding: 17px 20px; align-items: center; }
.toolbar h2 { color: #22262e; font-size: 17px; font-weight: 690; }
.search-box { width: min(360px, 30vw); }
.search-box input { background: #f8f9fa; }
.search-box input:focus { background: #fff; }
.toolbar-actions > #create { min-width: 80px; }
.list-tools { min-height: 51px; padding: 8px 20px; background: #f8f9fa; }
.filter-button { min-height: 32px; }
.filter-button.active { box-shadow: 0 2px 8px rgba(30, 36, 45, .08); }
.table-wrap { max-height: calc(100vh - 275px); }
table { font-size: 12px; }
th { position: sticky; top: 0; z-index: 1; height: 46px; color: #7b838f; background: #f5f7f8; font-weight: 620; }
td { height: 59px; color: #454b55; }
tbody tr { transition: background .15s ease; }
tbody tr:hover td { background: #fafbfc; }
tbody td:first-child { color: #2d323a; font-weight: 590; }
.actions { display: flex; align-items: center; min-height: 59px; }
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  border-radius: 6px;
  color: #59616d;
  background: #fff;
}
.link-btn svg { width: 13px; height: 13px; }
.link-btn:hover { color: #d64850; background: #fff3f4; border-color: #f0cdd0; }
.link-btn.primary-link { color: #fff; background: #303541; border-color: #303541; }
.link-btn.primary-link:hover { color: #fff; background: #20242c; border-color: #20242c; }
.link-btn.danger { color: #b35358; }
.status-chip { border-radius: 6px; }

.editor-card { border-radius: 8px; }
.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 75px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
}
.editor-head > div > span { display: block; margin-bottom: 5px; color: var(--brand-dark); font-size: 9px; font-weight: 700; }
.editor-head h3 { color: #232730; font-size: 18px; }
.dialog-close { display: grid; width: 34px; min-height: 34px; padding: 0; place-items: center; color: #858c96; background: #f3f4f6; }
.dialog-close:hover { color: #2f343c; background: #e9ebee; }
.dialog-close svg { width: 16px; height: 16px; }
.editor-fields { background: #fff; }
.editor-fields label { color: #555d68; }
.editor-fields input, .editor-fields textarea, .editor-fields select { background: #fafbfc; }
.editor-fields input:focus, .editor-fields textarea:focus, .editor-fields select:focus { background: #fff; }

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
  min-height: 50px;
  padding: 10px 15px;
  border: 1px solid #dce7e1;
  border-radius: 8px;
  color: #315d4d;
  background: #fff;
  box-shadow: 0 16px 48px rgba(24, 31, 42, .16);
  font-size: 12px;
  font-weight: 620;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { color: #a33d44; border-color: #f0d5d7; }
.toast-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 7px; color: #17855f; background: #eaf7f1; }
.toast.error .toast-icon { color: #cb454d; background: #fff0f1; }
.toast-icon svg { width: 15px; height: 15px; }

@media (max-width: 1260px) {
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .admin-app { grid-template-columns: 76px minmax(0, 1fr); }
  .side-workspace { display: none; }
  .side-brand h1, .side-brand p { display: none; }
  .sidebar { padding-top: 12px; }
  .topbar { min-height: 84px; padding: 12px 20px; }
  .dashboard-view, .module-view { padding: 22px 20px 40px; }
}

@media (max-width: 640px) {
  .topbar { padding: 12px 14px; }
  .dashboard-view, .module-view { padding: 18px 12px 32px; }
  .quick-actions { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; }
  .search-box { width: 100%; }
  .table-wrap { max-height: none; }
  .toast { right: 14px; bottom: 14px; left: 90px; min-width: 0; }
}

/* 宠物品牌细节与登录动效 */
.page-heading { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 13px; }
.page-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #f1d9db;
  border-radius: 8px;
  color: #d94b52;
  background: #fff3f4;
}
.page-icon svg { width: 19px; height: 19px; }
.page-icon[data-tone="blue"] { color: #4869b8; background: #f0f4ff; border-color: #dce5fa; }
.page-icon[data-tone="orange"] { color: #b86925; background: #fff5e9; border-color: #f5e2c9; }
.page-icon[data-tone="green"] { color: #237b62; background: #edf8f3; border-color: #d9eee5; }
.page-icon[data-tone="violet"] { color: #705ab2; background: #f3f0fb; border-color: #e6e0f5; }
.page-icon[data-tone="cyan"] { color: #2d7d84; background: #edf8f8; border-color: #d9ecee; }
.page-icon[data-tone="gold"] { color: #8d7124; background: #faf6e9; border-color: #eee6cb; }
.page-icon[data-tone="slate"] { color: #576271; background: #f1f3f5; border-color: #e2e6ea; }

.status-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .75;
}
.empty-cell { height: 230px; color: #a1a7b0; }
.empty-cell .empty-mark,
.empty-cell strong,
.empty-cell small { display: block; margin-right: auto; margin-left: auto; }
.empty-cell .empty-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 11px;
  place-items: center;
  border: 1px solid #f0dfe1;
  border-radius: 8px;
  color: #d96a70;
  background: #fff6f6;
}
.empty-cell .empty-mark svg { width: 18px; height: 18px; }
.empty-cell strong { color: #656d78; font-size: 12px; font-weight: 620; }
.empty-cell small { margin-top: 5px; color: #a5abb4; font-size: 10px; font-weight: 400; }
.loading-cell .empty-mark svg { animation: refresh-spin .8s linear infinite; }

.login-panel { overflow: hidden; background: #eef1f3; }
.login-card { width: min(1020px, 100%); min-height: 630px; border-color: rgba(40, 46, 57, .08); box-shadow: 0 38px 100px rgba(27, 33, 43, .18); }
.login-visual { min-height: 630px; isolation: isolate; --motion-x: 0px; --motion-y: 0px; }
.login-visual > img {
  inset: -14px;
  width: calc(100% + 28px);
  height: calc(100% + 28px);
  transform: translate(var(--motion-x), var(--motion-y)) scale(1.035);
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
  animation: pet-scene-breathe 12s ease-in-out infinite alternate;
}
@keyframes pet-scene-breathe {
  from { transform: translate(var(--motion-x), var(--motion-y)) scale(1.035); }
  to { transform: translate(var(--motion-x), var(--motion-y)) scale(1.085); }
}
.login-visual-shade { background: linear-gradient(180deg, rgba(255,255,255,.69) 0%, rgba(255,255,255,.03) 47%, rgba(22,26,34,.66) 100%); }
.login-visual-head { z-index: 3; }
.login-visual-copy { z-index: 3; }
.login-visual-copy > span { letter-spacing: .14em; }
.login-motion { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.motion-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 7px;
  color: #30353d;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 9px 28px rgba(25, 31, 41, .12);
  backdrop-filter: blur(9px);
  font-size: 10px;
  font-weight: 620;
}
.motion-chip svg { width: 13px; height: 13px; color: var(--brand); }
.motion-health { top: 120px; right: 27px; animation: pet-chip-float 4.8s ease-in-out infinite; }
.motion-growth { top: 186px; left: 28px; animation: pet-chip-float 5.6s ease-in-out .7s infinite; }
.motion-service { right: 25px; bottom: 206px; animation: pet-chip-float 5.1s ease-in-out 1.2s infinite; }
@keyframes pet-chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.paw-step { position: absolute; width: 15px; height: 15px; color: rgba(255, 255, 255, .68); filter: drop-shadow(0 2px 4px rgba(20,25,33,.16)); animation: paw-step-glow 3.6s ease-in-out infinite; }
.paw-step-one { right: 78px; bottom: 157px; transform: rotate(-18deg); }
.paw-step-two { right: 54px; bottom: 134px; transform: rotate(5deg); animation-delay: .45s; }
.paw-step-three { right: 31px; bottom: 105px; transform: rotate(18deg); animation-delay: .9s; }
@keyframes paw-step-glow { 0%, 100% { opacity: .24; } 45% { opacity: .9; } }

.login-form-panel { position: relative; padding: 58px 68px 42px; }
.login-form-head { position: relative; z-index: 1; }
.login-status { display: inline-flex; align-items: center; gap: 7px; color: #bd4d53 !important; }
.login-status i { width: 6px; height: 6px; border-radius: 50%; background: #23a97a; box-shadow: 0 0 0 4px rgba(35,169,122,.1); }
.login-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.login-button svg { width: 15px; height: 15px; }
.login-button.loading svg { animation: refresh-spin .8s linear infinite; }
.login-button:disabled { cursor: wait; opacity: .82; }

@media (prefers-reduced-motion: reduce) {
  .login-visual > img, .motion-chip, .paw-step, .loading-cell .empty-mark svg, .ghost-btn.loading svg, .login-button.loading svg { animation: none !important; }
}

@media (max-width: 900px) {
  .page-heading { grid-template-columns: minmax(0, 1fr); }
  .page-icon { display: none; }
}

@media (max-width: 640px) {
  .login-motion { display: none; }
  .login-card { min-height: 0; }
  .login-visual { min-height: 230px; }
}

/* 明亮宠物服务工作台 */
:root {
  --bg: #f5f7f8;
  --sidebar: #ffffff;
  --sidebar-panel: #fff4f3;
  --sidebar-text: #30343c;
  --sidebar-muted: #9298a1;
}
.sidebar-shell {
  color: #30343c;
  background: #fff;
  border-right: 1px solid #e7eaed;
  box-shadow: 7px 0 24px rgba(39, 46, 56, .035);
}
.side-brand { border-bottom-color: #edf0f2; }
.side-brand h1 { color: #242830; }
.side-brand p { color: #9197a0; }
.side-brand .logo-mark { box-shadow: 0 8px 20px rgba(239, 91, 97, .2); }
.side-workspace {
  grid-template-columns: 36px minmax(0, 1fr) 14px;
  border-color: #f1dddd;
  background: #fff5f4;
}
.workspace-pet {
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 8px;
  object-fit: cover;
  object-position: 58% 54%;
  box-shadow: 0 4px 12px rgba(66, 42, 42, .12);
}
.side-workspace small { color: #b08283; }
.side-workspace strong { color: #5c3c3e; }
.side-workspace > svg { color: #bd9698; }
.sidebar { scrollbar-color: #dfe3e6 transparent; }
.nav-group-title { color: #989fa9; }
.nav-group-title:hover { color: #555d68; background: #f7f8f9; }
.nav-group.current .nav-group-title { color: #d44d54; }
.nav-group-title::after { border-color: #adb3bc; }
.nav-group-title small { color: #b0b5bd; }
.nav-item { color: #5e6671; }
.nav-item:hover { color: #2c323a; background: #f7f8f9; }
.nav-item.active {
  color: #cf424a;
  background: #fff0f0;
  box-shadow: inset 0 0 0 1px #fde6e7;
}
.nav-item.active::before { background: #ef5b61; }
.nav-icon { border: 1px solid transparent; }
.nav-item.tone-coral .nav-icon { color: #df545b; background: #fff0f1; border-color: #fbe0e2; }
.nav-item.tone-blue .nav-icon { color: #5073bd; background: #eef3ff; border-color: #dfe7fb; }
.nav-item.tone-orange .nav-icon { color: #bd722e; background: #fff3e8; border-color: #f5e2ce; }
.nav-item.tone-green .nav-icon { color: #287e66; background: #eaf7f2; border-color: #daece5; }
.nav-item.tone-violet .nav-icon { color: #7561b3; background: #f2effb; border-color: #e4def3; }
.nav-item.tone-cyan .nav-icon { color: #327f86; background: #eaf7f7; border-color: #d9ebec; }
.nav-item.tone-gold .nav-icon { color: #927528; background: #faf5e6; border-color: #eee4c9; }
.nav-item.tone-slate .nav-icon { color: #64707f; background: #eff2f5; border-color: #e1e5e9; }
.nav-item.active .nav-icon { color: #fff; background: #ef5b61; border-color: #ef5b61; }
.sidebar-account { border-top-color: #e9ecef; background: #fbfcfc; }
.account-avatar { color: #fff; background: #ef5b61; }
.account-copy strong { color: #30353d; }
.account-copy small { color: #9aa0aa; }
.icon-button { color: #9aa0aa; }
.icon-button:hover { color: #d74850; background: #fff0f1; }

.main-shell, body { background: #f5f7f8; }
.topbar { background: rgba(255, 255, 255, .97); }
.dashboard-heading span { color: #d74e55; }
.metric-card { background: #fff; }
.metric-card:nth-child(1) { --metric-color: #ef5b61; }
.metric-card:nth-child(2) { --metric-color: #4b8d7b; }
.metric-card:nth-child(3) { --metric-color: #d49a36; }
.metric-card:nth-child(4) { --metric-color: #6676bd; }

.pet-operations {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  gap: 16px;
  margin-bottom: 16px;
}
.pet-snapshot,
.recent-pets-panel {
  min-width: 0;
  min-height: 214px;
  overflow: hidden;
  border: 1px solid #e3e7ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(29, 35, 46, .04);
}
.pet-snapshot {
  display: grid;
  grid-template-columns: 178px minmax(220px, 1fr) 190px;
  align-items: stretch;
}
.pet-snapshot-photo { min-height: 214px; overflow: hidden; }
.pet-snapshot-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 62%;
  transform: scale(1.04);
  transition: transform .5s ease;
}
.pet-snapshot:hover .pet-snapshot-photo img { transform: scale(1.08); }
.pet-snapshot-copy { align-self: center; padding: 22px 24px; }
.pet-snapshot-copy > span { color: #d84d54; font-size: 10px; font-weight: 720; }
.pet-snapshot-copy h3 { max-width: 340px; margin-top: 8px; color: #242830; font-size: 18px; line-height: 1.45; }
.pet-snapshot-copy p { max-width: 390px; margin-top: 7px; color: #8a919a; font-size: 11px; }
.pet-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 33px;
  margin-top: 15px;
  padding: 0 11px;
  color: #bf4148;
  background: #fff0f1;
  border: 1px solid #f8dcde;
  font-size: 10px;
}
.pet-link:hover { color: #fff; background: #e95158; border-color: #e95158; }
.pet-link svg { width: 12px; height: 12px; }
.pet-type-summary { align-self: center; display: grid; gap: 9px; padding: 20px 20px 20px 0; }
.pet-type-item {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 9px;
  min-height: 47px;
  padding: 7px 9px;
  border: 1px solid #ebedef;
  border-radius: 7px;
  background: #fafbfb;
}
.pet-type-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 7px; color: #d75057; background: #fff0f1; }
.pet-type-item.cat .pet-type-icon { color: #357e70; background: #e9f6f1; }
.pet-type-item.other .pet-type-icon { color: #aa7725; background: #fff4df; }
.pet-type-icon svg { width: 15px; height: 15px; }
.pet-type-item small, .pet-type-item strong { display: block; }
.pet-type-item small { color: #9097a1; font-size: 9px; }
.pet-type-item strong { margin-top: 2px; color: #333840; font-size: 14px; }
.pet-type-bar { height: 5px; overflow: hidden; border-radius: 3px; background: #e9ecef; }
.pet-type-bar b { display: block; min-width: 4px; height: 100%; border-radius: inherit; background: #ed686e; }
.pet-type-bar b.bar-0 { width: 4px; }
.pet-type-bar b.bar-1 { width: 10%; }
.pet-type-bar b.bar-2 { width: 20%; }
.pet-type-bar b.bar-3 { width: 30%; }
.pet-type-bar b.bar-4 { width: 40%; }
.pet-type-bar b.bar-5 { width: 50%; }
.pet-type-bar b.bar-6 { width: 60%; }
.pet-type-bar b.bar-7 { width: 70%; }
.pet-type-bar b.bar-8 { width: 80%; }
.pet-type-bar b.bar-9 { width: 90%; }
.pet-type-bar b.bar-10 { width: 100%; }
.pet-type-item.cat .pet-type-bar b { background: #5b9b89; }
.pet-type-item.other .pet-type-bar b { background: #d7a14b; }

.recent-pets-panel { padding: 18px 19px; }
.recent-pets-panel .dashboard-panel-head { margin-bottom: 8px; }
.text-action { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 5px; color: #9a7072; background: transparent; font-size: 9px; }
.text-action:hover { color: #d44850; background: transparent; }
.text-action svg { width: 11px; height: 11px; }
.recent-pets { display: grid; }
.recent-pet {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 9px;
  min-height: 51px;
  padding: 6px 2px;
  border-bottom: 1px solid #edf0f1;
  border-radius: 0;
  color: #31363e;
  background: #fff;
  text-align: left;
}
.recent-pet:last-child { border-bottom: 0; }
.recent-pet:hover { color: #31363e; background: #fafbfb; }
.recent-pet > svg { width: 13px; height: 13px; color: #b2b7bf; }
.pet-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; color: #c3434a; background: #ffecee; font-size: 12px; font-weight: 720; }
.pet-avatar.tone-1 { color: #337967; background: #e8f5ef; }
.pet-avatar.tone-2 { color: #9a6d27; background: #fff2dc; }
.pet-avatar.tone-3 { color: #5a68ad; background: #eef0fb; }
.recent-pet-copy { min-width: 0; }
.recent-pet-copy strong, .recent-pet-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-pet-copy strong { font-size: 11px; }
.recent-pet-copy small { margin-top: 3px; color: #989fa8; font-size: 9px; }
.pet-owner { max-width: 80px; overflow: hidden; color: #8b929b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.recent-pets-empty { display: grid; min-height: 132px; place-items: center; align-content: center; gap: 8px; color: #a1a7af; font-size: 10px; }
.recent-pets-empty svg { width: 20px; height: 20px; color: #dc7a7f; }

@media (max-width: 1360px) {
  .pet-snapshot { grid-template-columns: 150px minmax(210px, 1fr) 170px; }
  .pet-snapshot-copy { padding: 20px; }
}
@media (max-width: 1120px) {
  .pet-operations { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar-shell { background: #fff; }
  .side-brand { border-bottom-color: #edf0f2; }
}
@media (max-width: 640px) {
  .pet-snapshot { grid-template-columns: 104px minmax(0, 1fr); }
  .pet-type-summary { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 14px 14px; }
  .pet-type-item { grid-template-columns: 28px minmax(0, 1fr); }
  .pet-type-bar { display: none; }
  .pet-snapshot-copy { padding: 16px; }
  .pet-snapshot-copy h3 { font-size: 15px; }
  .pet-snapshot-copy p { display: none; }
}

/* 精简侧栏：保留业务身份，减少重复品牌和装饰性控件 */
.admin-app { grid-template-columns: 244px minmax(0, 1fr); }
.side-workspace {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 86px;
  margin: 0;
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  border-radius: 0;
  background: #fff;
}
.workspace-pet {
  width: 44px;
  height: 44px;
  border: 1px solid #f0e3e4;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(55, 43, 44, .1);
}
.side-workspace small {
  margin-bottom: 4px;
  color: #9c9293;
  font-size: 10px;
  font-weight: 550;
}
.side-workspace strong {
  color: #292d34;
  font-size: 15px;
  font-weight: 720;
}
.sidebar { padding: 13px 12px 20px; }
.nav-home {
  margin-bottom: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid #f0f1f3;
}
.nav-group + .nav-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f2f4;
}
.nav-items { max-height: none; overflow: visible; opacity: 1; transition: none; }
.nav-item {
  grid-template-columns: 30px minmax(0, 1fr);
  min-height: 37px;
  margin: 1px 0;
  padding: 0 11px;
  border-radius: 6px;
  color: #59616c;
  font-size: 13px;
  font-weight: 530;
}
.nav-item:hover { color: #22272e; background: #f6f7f8; }
.nav-item.active {
  color: #d7474e;
  background: #fff1f2;
  box-shadow: none;
  font-weight: 680;
}
.nav-item.active::before {
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  background: #ef5b61;
}
.nav-icon,
.nav-item.active .nav-icon {
  width: 24px;
  height: 24px;
  border: 0;
  color: #9299a3;
  background: transparent;
}
.nav-item:hover .nav-icon { color: #656d77; background: transparent; }
.nav-item.active .nav-icon { color: #e5535a; background: transparent; }
.nav-icon svg { width: 17px; height: 17px; stroke-width: 1.8; }
.dashboard-heading > div:first-child > span { letter-spacing: 0; }
.action-card { width: min(620px, calc(100vw - 40px)); }
.action-desc {
  margin: -2px 0 18px;
  padding: 11px 13px;
  border-left: 3px solid #ef5b61;
  border-radius: 0 6px 6px 0;
  color: #727984;
  background: #fff6f6;
  font-size: 12px;
}

@media (max-width: 900px) {
  .admin-app { grid-template-columns: 76px minmax(0, 1fr); }
  .side-workspace {
    display: grid;
    grid-template-columns: 44px;
    justify-content: center;
    padding: 15px;
  }
  .side-workspace > span { display: none; }
  .nav-home { margin-right: 0; margin-left: 0; }
}
