:root {
  --sidebar-width: 228px;
  --page-bg: #fffaf7;
  --card-bg: #ffffff;
  --line: #f2e9e3;
  --text: #282833;
  --muted: #9696a0;
  --shadow: 0 12px 28px rgba(255, 120, 72, 0.07);
  --red: #ff5533;
  --orange: #ff9d22;
  --green: #59ca69;
  --purple: #a268ff;
  --blue: #5a9cff;
  --gold: #ffb029;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 128, 76, 0.08), transparent 20%),
    radial-gradient(circle at 86% 12%, rgba(255, 179, 109, 0.08), transparent 24%),
    var(--page-bg);
}

body.admin-modal-open {
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

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

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

.sidebar {
  background: linear-gradient(180deg, #fffefe 0%, #fff7f2 100%);
  border-right: 1px solid #f3e8e0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.sidebar-brand {
  height: 88px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  background: linear-gradient(90deg, #ff4327 0%, #ff6035 100%);
}

.sidebar-brand__mark {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-brand__mark svg {
  width: 44px;
  height: 44px;
}

.sidebar-brand__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.06;
}

.sidebar-brand__subtitle {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.sidebar-nav {
  padding: 16px 14px 0;
  display: grid;
  gap: 8px;
}

.nav-item {
  height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 12px;
  color: #35353d;
  font-size: 16px;
  font-weight: 600;
}

.nav-item.is-active {
  color: #fff;
  background: linear-gradient(90deg, #ff5836 0%, #ff7042 100%);
  box-shadow: 0 14px 24px rgba(255, 101, 58, 0.18);
}

.nav-icon {
  width: 20px;
  height: 20px;
  position: relative;
  display: inline-block;
  color: #5e5e68;
  flex: 0 0 auto;
}

.nav-item.is-active .nav-icon {
  color: #fff;
}

.nav-icon::before,
.nav-icon::after {
  content: "";
  position: absolute;
}

.nav-icon--home::before {
  left: 2px;
  top: 6px;
  width: 16px;
  height: 11px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px;
}

.nav-icon--home::after {
  left: 1px;
  top: 1px;
  width: 18px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) skew(-12deg, -12deg);
}

.nav-icon--content::before,
.nav-icon--suggestions::before {
  left: 3px;
  top: 2px;
  width: 14px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.nav-icon--content::after,
.nav-icon--suggestions::after {
  left: 6px;
  top: 7px;
  width: 8px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
}

.nav-icon--activities::before,
.nav-icon--services::before {
  left: 2px;
  top: 3px;
  width: 16px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.nav-icon--activities::after,
.nav-icon--services::after {
  left: 5px;
  top: 0;
  width: 10px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.nav-icon--communities::before,
.nav-icon--users::before {
  left: 2px;
  top: 3px;
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 8px 0 0 -2px currentColor, 8px 0 0 0 currentColor;
}

.nav-icon--communities::after,
.nav-icon--users::after {
  left: 1px;
  top: 11px;
  width: 16px;
  height: 7px;
  border: 2px solid currentColor;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom: 0;
}

.nav-icon--life-circle::before {
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-icon--life-circle::after {
  left: 7px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.nav-icon--micro-actions::before {
  left: 4px;
  top: 2px;
  width: 12px;
  height: 16px;
  border-radius: 10px 10px 8px 8px;
  border: 2px solid currentColor;
}

.nav-icon--micro-actions::after {
  left: 8px;
  top: 5px;
  width: 4px;
  height: 8px;
  background: currentColor;
  border-radius: 3px;
}

.nav-icon--partners::before {
  left: 2px;
  top: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-icon--partners::after {
  left: 10px;
  top: 7px;
  width: 8px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor, 0 -4px 0 currentColor;
}

.nav-icon--points::before {
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-icon--points::after {
  left: 7px;
  top: 6px;
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-icon--volunteers::before {
  left: 3px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 5px 5px 4px 4px;
  transform: rotate(-18deg);
}

.nav-icon--volunteers::after {
  left: 10px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 5px 5px 4px 4px;
  transform: rotate(18deg);
}

.nav-icon--statistics::before {
  left: 3px;
  bottom: 2px;
  width: 3px;
  height: 10px;
  background: currentColor;
  box-shadow: 6px -3px 0 currentColor, 12px -7px 0 currentColor;
  border-radius: 2px;
}

.nav-icon--image-bed::before {
  left: 2px;
  top: 4px;
  width: 16px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.nav-icon--image-bed::after {
  left: 5px;
  top: 8px;
  width: 10px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: skew(-28deg);
}

.sidebar-scene {
  margin: auto 6px 8px;
  height: 116px;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sidebar-scene__image {
  display: block;
  width: auto;
  height: 100%;
  mix-blend-mode: multiply;
}

.main-layout {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  height: 100vh;
  overflow: auto;
  background: rgba(255, 255, 255, 0.74);
  border-top-left-radius: 26px;
}

.main-layout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 30px;
  background: #fff;
  border-bottom-right-radius: 22px;
  z-index: 3;
}

.main-header {
  height: 78px;
  padding: 0 22px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #f2ebe4;
  position: sticky;
  top: 0;
  z-index: 7;
}

.main-layout.is-loading .main-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #ff623a 20%, #ff9d3a 50%, #ff623a 80%, transparent 100%);
  background-size: 180% 100%;
  animation: adminLoadingBar 1s linear infinite;
}

.main-header__title {
  font-size: 22px;
  font-weight: 700;
}

.main-header__tools {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.header-menu {
  position: relative;
}

.header-interactive {
  border: 1px solid #f0e5dc;
  background: #fff;
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.header-interactive:hover {
  border-color: #f2c8b6;
  box-shadow: 0 12px 24px rgba(255, 101, 57, 0.08);
  transform: translateY(-1px);
}

.header-interactive[aria-expanded="true"] {
  border-color: #ff6b3d;
  box-shadow: 0 14px 26px rgba(255, 101, 57, 0.12);
}

.weather-chip,
.notify-chip,
.admin-chip {
  display: inline-flex;
  align-items: center;
}

.weather-chip {
  gap: 12px;
  color: #4d4d55;
  font-size: 14px;
  padding: 10px 14px;
  min-width: 214px;
  justify-content: flex-start;
  text-align: left;
}

.weather-chip__sun {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ffb11b;
  position: relative;
}

.weather-chip__sun::before,
.weather-chip__sun::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-top: 2px solid #ffb11b;
  border-bottom: 2px solid #ffb11b;
}

.weather-chip__sun::after {
  transform: rotate(90deg);
}

.weather-chip__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.weather-chip__summary {
  color: #2d2d35;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.weather-chip__meta {
  color: #8c817a;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notify-chip {
  width: 48px;
  height: 48px;
  justify-content: center;
  position: relative;
  padding: 0;
}

.notify-chip__bell {
  width: 14px;
  height: 14px;
  position: relative;
  border: 2px solid #3e3e47;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.notify-chip__bell::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: -5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3e3e47;
}

.notify-dot {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff4d31;
  color: #fff;
  font-size: 12px;
  line-height: 22px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 6px 14px rgba(255, 77, 49, 0.24);
}

.notify-dot.is-hidden {
  display: none;
}

.admin-chip {
  gap: 10px;
  font-size: 15px;
  padding: 7px 12px 7px 8px;
}

.admin-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cdefs%3E%3ClinearGradient id='bg' x1='0' x2='1' y1='0' y2='1'%3E%3Cstop stop-color='%23f6d4b2'/%3E%3Cstop offset='1' stop-color='%23ecd8c8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='80' height='80' rx='40' fill='url(%23bg)'/%3E%3Cpath d='M18 34c4-13 15-20 28-18 8 1 15 8 18 17-8-5-13-7-17-7-10 0-19 4-29 8z' fill='%238f6346'/%3E%3Ccircle cx='40' cy='37' r='14' fill='%23f6d8c0'/%3E%3Cpath d='M24 70c3-12 12-19 25-19s22 7 25 19' fill='%23d6a377'/%3E%3Ccircle cx='35' cy='37' r='1.5' fill='%2362463a'/%3E%3Ccircle cx='45' cy='37' r='1.5' fill='%2362463a'/%3E%3Cpath d='M36 44c2 2 6 2 8 0' stroke='%23c78367' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.admin-avatar--large {
  width: 42px;
  height: 42px;
}

.admin-name {
  color: #33333b;
  font-weight: 600;
}

.admin-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid #75757d;
  border-bottom: 2px solid #75757d;
  transform: rotate(45deg) translateY(-2px);
}

.header-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 290px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid #f1e6df;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 44px rgba(43, 30, 19, 0.12);
  z-index: 8;
}

.header-panel--weather {
  min-width: 330px;
}

.header-panel--admin {
  min-width: 248px;
}

.header-panel__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #2e2e36;
}

.header-panel__title-row strong {
  font-size: 16px;
}

.header-panel__link,
.header-panel__count,
.header-panel__label {
  color: #8c817a;
  font-size: 12px;
}

.header-panel__link {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.weather-panel__hero {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.weather-panel__temp {
  font-size: 32px;
  font-weight: 800;
  color: #2d2d35;
  line-height: 1;
}

.weather-panel__status {
  font-size: 16px;
  color: #ff6b3d;
  font-weight: 700;
}

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

.weather-panel__grid > div,
.header-profile {
  border-radius: 16px;
  background: #fff7f2;
  padding: 12px 14px;
}

.weather-panel__grid strong,
.header-profile__name {
  display: block;
  margin-top: 4px;
  color: #2e2e36;
  font-size: 14px;
  font-weight: 700;
}

.header-notification-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.header-notification-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: #faf7f4;
  border: 1px solid #f3ebe4;
}

.header-notification-item.is-unread {
  background: #fff4ec;
  border-color: #ffd8c4;
}

.header-notification-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.header-notification-item__head strong {
  color: #2d2d35;
  font-size: 14px;
}

.header-notification-item__head span,
.header-notification-item p,
.header-profile__desc,
.header-empty {
  color: #877b73;
  font-size: 12px;
}

.header-notification-item p {
  margin: 0;
  line-height: 1.55;
}

.header-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logout-form {
  margin-top: 12px;
}

.header-logout-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff6b3d, #ff8a4c);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 14px;
  cursor: pointer;
}

.header-empty {
  padding: 18px 8px 10px;
  text-align: center;
}

.page-body {
  padding: 20px 22px 14px;
  position: relative;
  transition: opacity 0.18s ease;
}

.page-body.is-loading {
  opacity: 0.8;
  pointer-events: none;
}

.page-body.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 250, 246, 0.28);
  backdrop-filter: blur(1px);
  border-radius: 24px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.summary-card,
.panel-card,
.card,
.login-panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.summary-card,
.panel-card,
.card {
  border-radius: 22px;
}

.summary-card {
  min-height: 110px;
  padding: 18px 18px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.summary-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: 0 10px 18px rgba(255, 117, 64, 0.16);
}

.summary-card__icon svg {
  width: 32px;
  height: 32px;
}

.summary-card__icon--red { background: linear-gradient(135deg, #ff5a43 0%, #ff8454 100%); }
.summary-card__icon--orange { background: linear-gradient(135deg, #ff9f23 0%, #ffbf4f 100%); }
.summary-card__icon--green { background: linear-gradient(135deg, #57c967 0%, #7cdd87 100%); }
.summary-card__icon--purple { background: linear-gradient(135deg, #9f63ff 0%, #c685ff 100%); }
.summary-card__icon--blue { background: linear-gradient(135deg, #5196ff 0%, #74b5ff 100%); }
.summary-card__icon--gold { background: linear-gradient(135deg, #ffb029 0%, #ffd35a 100%); }

.summary-card__body {
  min-width: 0;
}

.summary-card__title {
  color: #4f4f58;
  font-size: 15px;
  white-space: nowrap;
}

.summary-card__value {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 700;
}

.summary-card__delta {
  margin-top: 8px;
  color: #9a99a2;
  font-size: 13px;
}

.summary-card__delta strong {
  color: #ff5a36;
}

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

.dashboard-grid--top {
  grid-template-columns: 1fr 1fr 0.92fr;
}

.dashboard-grid--bottom {
  grid-template-columns: 1.1fr 1.02fr 0.96fr;
}

.panel-card {
  padding: 16px 20px 14px;
}

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

.panel-card__title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-card__title {
  font-size: 18px;
  font-weight: 700;
}

.panel-card__info {
  width: 16px;
  height: 16px;
  border: 1px solid #d5d3da;
  border-radius: 50%;
  color: #a2a0a9;
  font-size: 11px;
  line-height: 14px;
  text-align: center;
}

.panel-card__filter,
.panel-card__more {
  height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #f2e8e2;
  border-radius: 12px;
  color: #a19fa7;
  font-size: 13px;
  white-space: nowrap;
}

.panel-card__more {
  border-color: transparent;
  padding-right: 0;
}

.filter-caret,
.link-arrow {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.filter-caret {
  transform: rotate(45deg) translateY(-1px);
}

.link-arrow {
  transform: rotate(-45deg);
}

.chart-legend {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
  color: #96959d;
  font-size: 13px;
}

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

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot--red { background: #ff5136; }
.legend-dot--orange { background: #ffae2f; }

.chart-wrap {
  position: relative;
  padding-left: 34px;
}

.chart-axis {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 34px;
  color: #9c9aa2;
  font-size: 12px;
}

.chart-axis span {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
}

.trend-chart {
  width: 100%;
  height: 220px;
  display: block;
}

.grid-line {
  stroke: #f3ece5;
  stroke-width: 1;
}

.trend-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-line--red { stroke: #ff5136; }
.trend-line--orange { stroke: #f7a61c; }

.trend-point {
  stroke: #fff;
  stroke-width: 2;
}

.trend-point--red {
  fill: #ff5136;
}

.trend-point--orange {
  fill: #f7a61c;
}

.chart-label {
  fill: #9a98a1;
  font-size: 12px;
}

.service-top-head {
  margin: 2px 0 12px;
  display: flex;
  justify-content: space-between;
  color: #aeacb5;
  font-size: 13px;
}

.service-top-list {
  display: grid;
  gap: 16px;
  padding-top: 6px;
}

.service-top-row {
  display: grid;
  grid-template-columns: 136px 1fr 44px;
  gap: 12px;
  align-items: center;
}

.service-top-row__left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  min-width: 0;
}

.service-top-row__name {
  white-space: nowrap;
}

.service-rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.service-rank--1,
.service-rank--2,
.service-rank--3 {
  background: linear-gradient(135deg, #ff7a31 0%, #ff5b36 100%);
}

.service-rank--4,
.service-rank--5 {
  background: #d9dbe2;
  color: #585862;
}

.service-top-row__bar {
  height: 7px;
  border-radius: 999px;
  background: #f5f0eb;
  overflow: hidden;
}

.service-top-row__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.service-top-row__value {
  text-align: right;
  color: #5b5b63;
  font-size: 14px;
}

.light-table {
  width: 100%;
  border-collapse: collapse;
}

.light-table th,
.light-table td {
  padding: 14px 4px;
  text-align: left;
  border-bottom: 1px solid #f5ede6;
  font-size: 14px;
}

.light-table th {
  color: #a5a3ab;
  font-weight: 500;
}

.light-table td:first-child {
  max-width: 0;
}

.table-empty {
  padding: 36px 0;
  text-align: center !important;
  color: #b4b1b9;
}

.status-pill {
  min-width: 56px;
  height: 28px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill--warning {
  color: #ff8e08;
  background: #fff0d2;
}

.status-pill--info {
  color: #4692ff;
  background: #e7f0ff;
}

.status-pill--success {
  color: #34b75a;
  background: #e6f8ea;
}

.tab-strip {
  display: flex;
  gap: 30px;
  margin: -2px 0 14px;
  border-bottom: 1px solid #f3ece6;
}

.tab-strip__item {
  position: relative;
  padding-bottom: 12px;
  color: #8e8c95;
  font-size: 14px;
  font-weight: 600;
}

.tab-strip__item span {
  font-weight: 600;
}

.tab-strip__item.is-active {
  color: #ff4f31;
}

.tab-strip__item.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: #ff4f31;
  border-radius: 999px;
}

.task-list {
  display: grid;
  gap: 14px;
}

.task-empty {
  min-height: 210px;
  display: grid;
  place-items: center;
  color: #b4b1b9;
  font-size: 14px;
}

.task-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
}

.task-row__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 8px 16px rgba(255, 120, 72, 0.18);
}

.task-row__icon::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 4px;
}

.task-row__icon::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 7px;
  width: 8px;
  height: 6px;
  border-left: 2px solid #fff;
  border-right: 2px solid #fff;
}

.task-row__icon--red { background: linear-gradient(135deg, #ff5b38 0%, #ff8555 100%); }
.task-row__icon--green { background: linear-gradient(135deg, #59c869 0%, #7ed88e 100%); }
.task-row__icon--blue { background: linear-gradient(135deg, #4f8dff 0%, #79b2ff 100%); }
.task-row__icon--purple { background: linear-gradient(135deg, #9d62ff 0%, #c285ff 100%); }
.task-row__icon--orange { background: linear-gradient(135deg, #ff9831 0%, #ffbd59 100%); }
.task-row__icon--gold { background: linear-gradient(135deg, #ffb12b 0%, #ffd362 100%); }

.task-row__body {
  min-width: 0;
}

.task-row__title {
  font-size: 15px;
  font-weight: 700;
}

.task-row__summary,
.task-row__time {
  margin-top: 4px;
  color: #95939d;
  font-size: 13px;
}

.task-row__stat {
  color: #9a97a2;
  font-size: 13px;
  white-space: nowrap;
}

.task-row__stat strong {
  margin-left: 4px;
  color: #ff5d38;
  font-size: 24px;
  font-weight: 700;
}

.task-row__action {
  min-width: 68px;
  height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ff6c4a;
  border-radius: 8px;
  color: #ff5a36;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.task-footer-link {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8d8b94;
  font-size: 13px;
}

.metric-grid-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid transparent;
}

.metric-box {
  min-height: 94px;
  padding: 14px 18px 12px 0;
  position: relative;
}

.metric-box:nth-child(1),
.metric-box:nth-child(2),
.metric-box:nth-child(4),
.metric-box:nth-child(5) {
  border-right: 1px solid #f0e8e2;
}

.metric-box:nth-child(-n + 3) {
  border-bottom: 1px solid #f0e8e2;
  padding-bottom: 16px;
}

.metric-box:nth-child(n + 4) {
  padding-top: 18px;
}

.metric-box__label {
  color: #8d8a95;
  font-size: 13px;
}

.metric-box__value {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 700;
}

.metric-box__delta {
  margin-top: 8px;
  color: #a19ea7;
  font-size: 13px;
}

.metric-up {
  color: #ff5a37;
  font-size: 11px;
}

.metrics-footer {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid #f3ece6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8d8b94;
  font-size: 13px;
}

.metrics-footer__label {
  position: relative;
  padding-left: 18px;
}

.metrics-footer__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 12px;
  height: 10px;
  border-left: 2px solid #8d8b94;
  border-bottom: 2px solid #8d8b94;
}

.metrics-footer__label::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 2px;
  height: 8px;
  background: #8d8b94;
  box-shadow: 4px -2px 0 #8d8b94, 8px -4px 0 #8d8b94;
  border-radius: 2px;
}

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

.page-footer {
  padding: 8px 10px 4px;
  display: flex;
  justify-content: center;
  gap: 46px;
  color: #aaa8b0;
  font-size: 13px;
}

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

.panel-title {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
}

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

.card-head .panel-title {
  margin-bottom: 0;
}

.page-action-card {
  padding-top: 16px;
  padding-bottom: 16px;
  position: sticky;
  top: 94px;
  z-index: 4;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
}

.page-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.page-action-bar__meta {
  display: grid;
  gap: 6px;
}

.page-action-bar__meta p {
  margin: 0;
  color: #928d95;
  font-size: 14px;
}

.page-action-bar__group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-action-bar .panel-title {
  margin-bottom: 0;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar input,
.toolbar select,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #efe4dc;
  background: #fff;
  font: inherit;
}

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

.form-grid label {
  display: grid;
  gap: 8px;
}

.form-grid span {
  font-size: 14px;
  color: #8f8c96;
}

.form-grid textarea {
  min-height: 100px;
  resize: vertical;
}

.admin-picker-grid {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.admin-picker-grid--range {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-picker-grid--weekly {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-picker-field {
  display: grid;
  gap: 6px;
}

.admin-picker-field__label {
  font-size: 12px;
  color: #a09ca6;
}

.admin-picker-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #efe4dc;
  background: #fffdfb;
  font: inherit;
}

.selection-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 14px;
}

.selection-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #efe4dc;
  border-radius: 12px;
  background: #fff;
}

.selection-item input {
  width: auto;
  min-height: auto;
}

.selection-item span {
  color: #41363d;
  font-size: 14px;
}

.full-row {
  grid-column: 1 / -1;
}

.primary-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #ff5b37 0%, #ff7240 100%);
  color: #fff;
  cursor: pointer;
}

.table-wrap {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 10px;
  border-bottom: 1px solid #f5ece6;
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  color: #a5a3ab;
  font-weight: 500;
}

.data-table tbody tr:hover {
  background: #fff9f5;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 132, 84, 0.12), transparent 20%),
    radial-gradient(circle at 82% 14%, rgba(255, 190, 120, 0.1), transparent 24%),
    #fff9f6;
}

.login-panel {
  width: 460px;
  padding: 34px;
  border-radius: 24px;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #ff5a36 0%, #ff7542 100%);
  font-weight: 700;
}

.login-panel h1 {
  margin: 18px 0 10px;
}

.login-panel p {
  margin: 0 0 18px;
  color: #8e8c96;
  line-height: 1.7;
}

.alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff2ea;
  color: #d34c24;
}

.image-bed-hero {
  padding-bottom: 14px;
}

.image-bed-desc {
  margin: 0;
  color: #8f8c96;
  line-height: 1.7;
}

.image-bed-alert {
  margin-top: 16px;
  margin-bottom: 0;
}

.image-bed-alert--success {
  background: #eefaf1;
  color: #24884a;
}

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

.image-bed-grid--single {
  grid-template-columns: 1fr;
  justify-items: center;
}

.image-bed-card--login {
  width: min(920px, 100%);
  margin-bottom: 0;
}

.image-bed-tips {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.image-bed-actions {
  margin-top: 14px;
}

.system-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.system-settings-card {
  display: grid;
  gap: 18px;
}

.system-settings-shell {
  display: grid;
  gap: 18px;
}

.system-settings-panel {
  display: grid;
  gap: 18px;
}

.system-settings-lead {
  margin: -8px 0 0;
  color: #8f8c96;
  line-height: 1.7;
}

.system-settings-form {
  margin-top: 2px;
}

.system-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.system-settings-actions form {
  margin: 0;
}

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

.system-settings-meta-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffaf7 0%, #fff5ef 100%);
  border: 1px solid #f4e6dc;
}

.system-settings-meta-item span {
  color: #9a9098;
  font-size: 13px;
}

.system-settings-meta-item strong {
  color: #35353d;
  font-size: 14px;
  line-height: 1.6;
}

.system-settings-meta-item--full {
  grid-column: 1 / -1;
}

.system-settings-category-form {
  display: grid;
  gap: 16px;
}

.system-settings-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.system-settings-category-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #f2e5db;
  background: linear-gradient(180deg, #fffdfb 0%, #fff7f2 100%);
}

.system-settings-category-card span {
  color: #393944;
  font-weight: 700;
}

.system-settings-category-card small,
.system-settings-category-card em {
  color: #968b93;
  font-size: 13px;
  line-height: 1.6;
  font-style: normal;
}

.system-settings-category-card textarea {
  width: 100%;
  min-height: 142px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #efe4dc;
  background: #fff;
  resize: vertical;
  font: inherit;
  line-height: 1.6;
}

.system-settings-preview-list {
  display: grid;
  gap: 12px;
}

.system-settings-preview-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #f4e6dc;
  background: #fffaf7;
}

.system-settings-preview-title {
  color: #393944;
  font-weight: 700;
}

.system-settings-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.system-settings-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f0ddd1;
  color: #7f5c49;
  font-size: 13px;
}

.system-settings-chip.is-muted {
  color: #988f97;
  background: #fff7f2;
}

.system-settings-backup-bar {
  margin-bottom: 20px;
}

.system-settings-backup-form {
  margin-bottom: 20px;
}

.image-bed-host-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #f3e5da;
  background: linear-gradient(135deg, #fff8f3 0%, #fffdfb 100%);
}

.image-bed-host-banner span {
  color: #918b94;
  font-size: 14px;
}

.image-bed-host-banner strong {
  color: #35353d;
  font-size: 15px;
  word-break: break-all;
}

.image-bed-status {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #efe4dc;
  background: #fff;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #6f6b74;
}

.image-bed-status.is-online {
  color: #24884a;
  background: #eefaf1;
  border-color: #cfead7;
}

.image-bed-status.is-offline {
  color: #b0672d;
  background: #fff7ef;
  border-color: #f2dfcf;
}

.image-bed-tip {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff8f3;
  border: 1px solid #f6e7dc;
  color: #8a7b72;
  font-size: 14px;
}

.image-bed-result {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.image-bed-preview,
.image-bed-gallery__thumb {
  background: #fff7f2;
  border: 1px solid #f4e5da;
  border-radius: 18px;
  overflow: hidden;
}

.image-bed-preview {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-bed-preview img,
.image-bed-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-bed-preview__empty,
.image-bed-gallery__empty {
  padding: 24px;
  color: #a09aa2;
  font-size: 14px;
}

.image-bed-fields {
  display: grid;
  gap: 14px;
}

.image-bed-field {
  display: grid;
  gap: 8px;
}

.image-bed-field span {
  font-size: 14px;
  color: #8f8c96;
}

.image-bed-field input,
.image-bed-copy input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #efe4dc;
  background: #fff;
  font: inherit;
}

.image-bed-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.image-bed-copy__btn {
  min-width: 102px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #ffd3c5;
  border-radius: 12px;
  background: #fff6f2;
  color: #ff5b37;
  cursor: pointer;
  font: inherit;
}

.secondary-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #ffd3c5;
  border-radius: 12px;
  background: #fff7f2;
  color: #ff5b37;
  cursor: pointer;
  font: inherit;
}

.image-bed-sync-form {
  margin-top: 14px;
}

.image-bed-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.image-bed-gallery__item {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid #f3e6dd;
  background: #fffaf7;
}

.image-bed-gallery__thumb {
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
}

.image-bed-gallery__name {
  margin-bottom: 10px;
  font-weight: 600;
  color: #393944;
  word-break: break-all;
}

.image-bed-table {
  margin-top: 8px;
}

.image-bed-link {
  max-width: 340px;
  white-space: normal;
  word-break: break-all;
}

.image-bed-empty {
  padding: 22px 18px;
  border-radius: 18px;
  background: #fff8f3;
  color: #948d95;
  line-height: 1.7;
}

.management-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.management-grid--stack {
  grid-template-columns: 1fr;
}

.management-grid > .card,
.management-grid > article.card,
.management-grid > section.card {
  width: 100%;
}

.home-config-shell {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.home-config-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-config-tab {
  height: 42px;
  padding: 0 18px;
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  border: 1px solid #f1dfd4;
  border-radius: 999px;
  background: #fff8f4;
  color: #8e8380;
  font: inherit;
  line-height: 40px !important;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  vertical-align: middle;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.home-config-tab:hover {
  border-color: #f3c6b2;
  color: #d7643d;
}

.home-config-tab.is-active {
  border-color: transparent;
  background: linear-gradient(90deg, #ff5a36 0%, #ff7645 100%);
  color: #fff;
  box-shadow: 0 14px 26px rgba(255, 102, 58, 0.16);
}

.home-config-panel {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid #f3e7df;
  background: #fffdfb;
}

.home-config-panel[hidden] {
  display: none !important;
}

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

.home-config-subcard {
  margin-bottom: 0;
  padding: 16px;
  background: #fffaf7;
}

.home-config-subcard--full {
  grid-column: 1 / -1;
}

.content-empty-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 54px;
  border-radius: 10px;
  border: 1px dashed #e9d8cd;
  color: #a8a0a8;
  font-size: 12px;
  background: #fff9f5;
}

.summary-card__letter {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.table-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff4ed;
  color: #e06035;
  font-size: 13px;
  font-weight: 600;
}

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

.action-btn {
  min-height: 34px;
  padding: 0 12px;
}

.activity-layout {
  grid-template-columns: 1fr;
}

.activity-layout > .card,
.activity-layout > article.card,
.activity-layout > section.card {
  width: 100%;
}

.activity-table-cover {
  width: 92px;
  height: 68px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  border: 1px solid #f3e6dd;
  display: block;
  background: linear-gradient(180deg, #fffaf7 0%, #fff4ee 100%);
}

.activity-table-title {
  font-weight: 700;
  color: #30303a;
}

.activity-table-sub {
  margin-top: 6px;
  color: #9a98a1;
  font-size: 13px;
  white-space: normal;
}

.activity-badge-muted {
  margin-left: 6px;
  background: #fff8f3;
  color: #98684d;
}

.activity-detail-grid {
  display: grid;
  grid-template-columns: 1.24fr 0.92fr;
  gap: 18px;
  margin-bottom: 18px;
}

.activity-detail-card,
.activity-linked-card {
  border-radius: 18px;
  border: 1px solid #f3e6dd;
  background: #fffaf7;
}

.activity-detail-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.activity-detail-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #f0e1d7;
  background: linear-gradient(180deg, #fffaf7 0%, #fff4ee 100%);
  overflow: hidden;
}

.activity-detail-poster {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  display: block;
}

.activity-detail-card__body h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.activity-detail-meta {
  margin: 0 0 8px;
  color: #8e8b94;
}

.activity-detail-desc {
  margin: 14px 0 0;
  line-height: 1.8;
  color: #4d4b53;
}

.activity-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.activity-side-stack {
  display: grid;
  gap: 16px;
}

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

.mini-stat {
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid #f3e6dd;
  background: #fffaf7;
  display: grid;
  gap: 8px;
}

.mini-stat strong {
  font-size: 24px;
}

.mini-stat span {
  color: #908d96;
  font-size: 13px;
}

.activity-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.activity-inline-form input,
.activity-inline-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #efe4dc;
  background: #fff;
  font: inherit;
}

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

.activity-linked-card {
  padding: 16px;
}

.panel-title--small {
  margin-bottom: 12px;
  font-size: 16px;
}

.activity-list-block {
  display: grid;
  gap: 10px;
}

.activity-list-block__item {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f3e6dd;
  color: #5d5962;
  line-height: 1.6;
}

.admin-enhanced [data-admin-panel] {
  display: none;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 23, 20, 0.38);
  backdrop-filter: blur(4px);
}

.admin-modal__dialog {
  position: relative;
  width: min(1220px, calc(100vw - 48px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  border-radius: 28px;
  background: #fffdfb;
  border: 1px solid #f0e2d9;
  box-shadow: 0 28px 70px rgba(36, 21, 10, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.admin-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #f2e7df;
  background: rgba(255, 251, 247, 0.96);
}

.admin-modal__title {
  font-size: 20px;
  font-weight: 700;
}

.admin-modal__close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #fff3ec;
  color: #d86439;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.admin-modal__body {
  overflow: auto;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 138, 92, 0.08), transparent 22%),
    #fffdfb;
}

.admin-modal__body > .card,
.admin-modal__body > .management-grid,
.admin-modal__body > .activity-linked-card,
.admin-modal__body > .activity-layout,
.admin-modal__body > .activity-detail-grid {
  margin-top: 0;
}

.admin-modal__body > :last-child {
  margin-bottom: 0;
}

.admin-toast-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 90;
  display: grid;
  gap: 10px;
}

.admin-toast {
  min-width: 260px;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(48, 31, 18, 0.16);
  border: 1px solid transparent;
  background: #eefaf1;
  color: #26834a;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.admin-toast--error {
  background: #fff1ea;
  color: #ce5a2f;
  border-color: #ffd6c7;
}

.admin-toast.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
}

@keyframes adminLoadingBar {
  0% {
    background-position: 180% 0;
  }

  100% {
    background-position: -20% 0;
  }
}

@media (max-width: 1180px) {
  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-grid--top,
  .dashboard-grid--bottom,
  .metric-grid-panel {
    grid-template-columns: 1fr;
  }

  .metric-box:nth-child(1),
  .metric-box:nth-child(2),
  .metric-box:nth-child(4),
  .metric-box:nth-child(5) {
    border-right: 0;
  }

  .metric-box:nth-child(-n + 5) {
    border-bottom: 1px solid #f0e8e2;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .main-layout {
    border-top-left-radius: 0;
  }

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

  .page-footer {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .management-grid,
  .activity-layout,
  .activity-detail-grid,
  .activity-linked-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .image-bed-grid,
  .image-bed-result,
  .image-bed-gallery,
  .system-settings-grid,
  .system-settings-category-grid,
  .system-settings-meta-grid,
  .activity-detail-card,
  .activity-inline-form {
    grid-template-columns: 1fr;
  }

  .admin-modal__dialog {
    width: calc(100vw - 20px);
    margin: 10px auto;
    max-height: calc(100vh - 20px);
    border-radius: 22px;
  }

  .admin-modal__header,
  .admin-modal__body {
    padding: 16px;
  }

  .image-bed-copy {
    grid-template-columns: 1fr;
  }

  .image-bed-host-banner,
  .home-config-subgrid {
    grid-template-columns: 1fr;
  }

  .system-settings-actions {
    flex-direction: column;
  }

  .system-settings-actions form,
  .system-settings-actions .primary-btn,
  .system-settings-actions .secondary-btn {
    width: 100%;
  }

  .image-bed-host-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .mini-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-action-card {
    top: 84px;
  }
}

.point-rule-doc {
  display: grid;
  gap: 18px;
}

.point-rule-doc__section {
  padding: 18px 20px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: #fcfcfd;
}

.point-rule-doc__title {
  margin: 0 0 10px;
  font-size: 18px;
  color: #101828;
}

.point-rule-doc__subtitle {
  margin: 14px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #344054;
}

.point-rule-doc__paragraph {
  margin: 0;
  color: #475467;
  line-height: 1.8;
}

.point-rule-doc__paragraph + .point-rule-doc__paragraph {
  margin-top: 8px;
}

.point-rule-doc__subsection + .point-rule-doc__subsection {
  margin-top: 6px;
}
