/* =========================================================
   Workspace · customer app, market, orders, admin
   ========================================================= */

.app-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  background: #f3efe3;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px 16px;
  background: #eeeadc;
  border-right: 1px solid rgba(28, 43, 33, 0.09);
  overflow-y: auto;
  z-index: 30;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 6px 8px;
}

.role-chip {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(23, 63, 46, 0.1);
  color: var(--forest);
  white-space: nowrap;
}

.farm-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 5px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.55);
  border: 1px solid rgba(28, 43, 33, 0.07);
  font-size: 9.5px;
  color: var(--muted);
}

.farm-status .live-dot {
  width: 6px;
  height: 6px;
  background: #5f8d5c;
  box-shadow: 0 0 0 3px rgba(95, 141, 92, 0.14);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.side-label {
  padding: 0 12px;
  margin: 10px 0 5px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 12.5px;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}

.side-link .icon {
  width: 17px;
  height: 17px;
  opacity: 0.75;
}

.side-link:hover {
  background: rgba(255, 253, 248, 0.7);
}

.side-link.is-active {
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 6px 14px rgba(23, 63, 46, 0.14);
}

.side-link.is-active .icon {
  opacity: 1;
  color: var(--lime);
}

.side-link em {
  margin-left: auto;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
}

.sidebar-help {
  margin-top: auto;
  padding: 17px 15px 15px;
  border-radius: 14px;
  background: var(--lime-soft);
  border: 1px solid rgba(23, 63, 46, 0.08);
  position: relative;
  overflow: hidden;
}

.sidebar-help::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(23, 63, 46, 0.1);
  right: -26px;
  top: -26px;
}

.sidebar-help-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: var(--forest);
  color: var(--lime);
  margin-bottom: 12px;
}

.sidebar-help-icon .icon {
  width: 15px;
  height: 15px;
}

.sidebar-help strong {
  display: block;
  font-size: 11.5px;
  margin-bottom: 4px;
}

.sidebar-help p {
  font-size: 9.5px;
  line-height: 1.7;
  color: rgba(23, 63, 46, 0.62);
  margin-bottom: 10px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 7px 2px;
  border-top: 1px solid rgba(28, 43, 33, 0.09);
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  min-width: 0;
}

.sidebar-user-info strong {
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-info span {
  font-size: 8.5px;
  color: var(--muted);
}

.sidebar-user .icon-btn {
  margin-left: auto;
  width: 29px;
  height: 29px;
}

.sidebar-user .icon-btn .icon {
  width: 14px;
  height: 14px;
}

.app-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  background: rgba(243, 239, 227, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(28, 43, 33, 0.08);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  min-width: 0;
}

.crumb {
  color: var(--muted);
}

.crumb-sep {
  color: var(--line-strong);
}

.crumb-current {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.weather-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.6);
  font-size: 10px;
  color: var(--muted);
}

.weather-chip .icon {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.weather-chip strong {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.topbar-icon {
  position: relative;
}

.notify-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clay);
  border: 1px solid var(--cream);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
}

.topbar-user:hover {
  background: rgba(255, 253, 248, 0.7);
}

.topbar-user .icon {
  width: 12px;
  height: 12px;
  color: var(--muted);
}

.app-main {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 28px 32px 64px;
  flex: 1;
}

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

.page-heading h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-top: 7px;
}

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

.mobile-nav {
  display: none;
}

/* ---------------- dashboard ---------------- */

.dash-welcome {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  min-height: 282px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--forest);
  color: var(--cream);
  margin-bottom: 16px;
}

.dash-welcome-copy {
  padding: 40px 42px;
  position: relative;
  z-index: 2;
}

.dash-welcome-copy .eyebrow {
  color: rgba(246, 242, 231, 0.48);
}

.dash-welcome-copy h2 {
  margin: 13px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.dash-welcome-copy h2 em {
  font-style: normal;
  color: var(--lime);
}

.dash-welcome-copy > p:not(.eyebrow) {
  font-size: 11.5px;
  color: rgba(246, 242, 231, 0.6);
  line-height: 1.7;
}

.dash-welcome-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.dash-welcome-actions .btn {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 11.5px;
}

.dash-welcome-art {
  position: relative;
  overflow: hidden;
}

.dash-welcome-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--forest) 0%, rgba(23, 63, 46, 0.7) 26%, rgba(23, 63, 46, 0) 70%);
}

.dash-welcome-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.dash-weather-float {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(255, 253, 248, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.dw-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--lime);
}

.dw-icon .icon {
  width: 20px;
  height: 20px;
}

.dash-weather-float div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.dash-weather-float strong {
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 400;
}

.dash-weather-float span:not(.dw-icon) {
  font-size: 8px;
  color: rgba(246, 242, 231, 0.62);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  position: relative;
}

.stat-card .stat-icon {
  width: 37px;
  height: 37px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--lime-soft);
  color: var(--moss);
}

.stat-card .stat-icon .icon {
  width: 17px;
  height: 17px;
}

.stat-card > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-card > div > span {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.stat-card strong {
  font-family: var(--font-num);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-card strong small {
  font-family: var(--font-sans);
  font-size: 9px;
  color: var(--muted);
  margin-left: 2px;
  font-weight: 400;
}

.stat-card > em {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-style: normal;
  font-size: 7.5px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}

.dash-main,
.dash-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 21px;
  min-width: 0;
}

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

.panel-head h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 4px;
  line-height: 1.25;
}

.panel-head .eyebrow {
  font-size: 8.5px;
}

.panel-count {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.panel-foot-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  color: var(--moss);
}

.panel-foot-link .icon {
  width: 12px;
  height: 12px;
}

/* order cards */

.order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-card {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}

.order-card:hover {
  border-color: rgba(28, 43, 33, 0.22);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.order-cover {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  min-height: 126px;
}

.order-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease);
}

.order-card:hover .order-cover img {
  transform: scale(1.04);
}

.order-cat {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(252, 250, 244, 0.92);
  color: var(--forest);
}

.order-main {
  min-width: 0;
  padding: 3px 3px 2px 0;
  display: flex;
  flex-direction: column;
}

.order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.order-code {
  display: block;
  font-family: var(--font-num);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  margin-bottom: 1px;
}

.order-head h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.order-head h3 a:hover {
  color: var(--clay);
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 5px;
}

.order-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  color: var(--muted);
}

.order-meta .icon {
  width: 11px;
  height: 11px;
}

.progress-line {
  margin-top: auto;
  padding-top: 10px;
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  color: var(--muted);
  margin-bottom: 4px;
}

.progress-label strong {
  font-family: var(--font-num);
  font-size: 10px;
  color: var(--ink);
  font-weight: 500;
}

.progress-track {
  height: 4px;
  background: rgba(28, 43, 33, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), #a6bd70);
  transition: width 0.8s var(--ease);
}

.order-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.order-next {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  color: var(--muted);
}

.order-next .icon {
  width: 11px;
  height: 11px;
}

.order-services {
  font-size: 9px;
  color: var(--clay);
  margin-left: auto;
}

.order-foot .text-link {
  font-size: 10px;
  gap: 3px;
}

.order-foot .text-link .icon {
  width: 11px;
  height: 11px;
}

/* log strip */

.log-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.log-strip-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  transition: transform 0.25s, border-color 0.2s;
}

.log-strip-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.log-strip-img {
  height: 92px;
  position: relative;
  background: var(--lime-soft);
  overflow: hidden;
}

.log-strip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.log-strip-img > span {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--moss);
}

.log-strip-type {
  position: absolute;
  left: 7px;
  bottom: 7px;
  font-size: 8px;
  font-weight: 600;
  color: var(--cream);
  background: rgba(23, 63, 46, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 4px;
  padding: 2px 5px;
}

.log-strip-body {
  padding: 10px 11px 11px;
}

.log-strip-body > span {
  font-size: 7.5px;
  color: var(--muted-2);
  letter-spacing: 0.03em;
}

.log-strip-body strong {
  display: block;
  font-size: 11px;
  margin: 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-strip-body p {
  font-size: 8.5px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* tasks */

.task-mini-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.task-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.2s;
}

.task-mini:hover {
  border-color: var(--line-strong);
}

.task-date {
  width: 34px;
  height: 36px;
  flex: none;
  border-radius: 7px;
  background: var(--lime-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.task-date strong {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 500;
}

.task-date small {
  font-size: 6.5px;
  color: var(--muted);
  margin-top: 2px;
}

.task-mini > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.35;
}

.task-mini > div strong {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-mini > div span {
  font-size: 8px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-mini .badge {
  font-size: 8px;
  padding: 2px 6px;
}

/* live card */

.live-card {
  border-radius: 17px;
  overflow: hidden;
  background: var(--forest);
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-card-media {
  position: relative;
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
}

.live-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.live-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 47, 34, 0.08), rgba(16, 47, 34, 0.55));
}

.live-card-media .live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.live-time {
  position: absolute;
  right: 10px;
  bottom: 9px;
  z-index: 2;
  font-size: 7.5px;
  color: rgba(255, 255, 255, 0.6);
}

.live-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 3;
  background: rgba(252, 250, 244, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  color: var(--cream);
}

.live-play .icon {
  width: 15px;
  height: 15px;
  margin-left: 2px;
}

.live-card-body {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-card-body > div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.live-card-body strong {
  font-size: 11px;
}

.live-card-body span:not(.live-online) {
  font-size: 8px;
  color: rgba(246, 242, 231, 0.5);
}

.live-online {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: var(--lime);
}

.live-online .live-dot {
  width: 4px;
  height: 4px;
  background: var(--lime);
  box-shadow: none;
}

.steward-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.steward-line > div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.steward-line strong {
  font-size: 12.5px;
}

.steward-line span {
  font-size: 8.5px;
  color: var(--muted);
}

.steward-note {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--cream);
  font-size: 9.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------------- market ---------------- */

.market-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 270px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--forest);
  color: var(--cream);
  margin-bottom: 18px;
}

.market-hero-copy {
  position: relative;
  z-index: 2;
  padding: 40px 42px;
}

.market-hero-copy .eyebrow {
  color: rgba(246, 242, 231, 0.48);
}

.market-hero-copy h2 {
  margin: 12px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.market-hero-copy > p:not(.eyebrow) {
  font-size: 11.5px;
  color: rgba(246, 242, 231, 0.6);
  line-height: 1.8;
  max-width: 380px;
}

.market-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 21px;
}

.market-hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px 8px;
  color: rgba(246, 242, 231, 0.72);
}

.market-hero-chips .icon {
  width: 10px;
  height: 11px;
  color: var(--lime);
}

.market-hero-art {
  position: relative;
  overflow: hidden;
}

.market-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--forest) 0%, rgba(23, 63, 46, 0.55) 30%, rgba(23, 63, 46, 0) 75%);
}

.market-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-sticker {
  position: absolute;
  z-index: 2;
  right: 28px;
  top: 26px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  line-height: 1.2;
  transform: rotate(8deg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.market-sticker strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

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

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.filter-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.45);
  transition: all 0.2s;
}

.filter-tabs button small {
  font-family: var(--font-num);
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 999px;
  background: rgba(28, 43, 33, 0.07);
}

.filter-tabs button:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.filter-tabs button.is-active {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.filter-tabs button.is-active small {
  background: rgba(255, 255, 255, 0.14);
}

.market-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  flex: none;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.6);
}

.market-search > .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.market-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10.5px;
  width: 100%;
  min-width: 0;
}

.market-search input::placeholder {
  color: var(--muted-2);
}

.market-search .icon-btn {
  width: 20px;
  height: 20px;
  flex: none;
}

.market-search .icon-btn .icon {
  width: 11px;
  height: 11px;
}

.market-search.compact {
  width: 230px;
  padding: 6px 11px;
}

.market .product-grid {
  gap: 16px;
}

.market-no-result {
  padding: 30px 0;
}

.assurance-band {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.assurance-band > div {
  display: grid;
  grid-template-columns: 24px 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
}

.assurance-band > div:last-child {
  border-right: 0;
}

.assurance-band .icon {
  grid-row: span 2;
  width: 19px;
  height: 19px;
  color: var(--moss);
  margin-top: 3px;
}

.assurance-band strong {
  font-size: 10.5px;
}

.assurance-band span {
  font-size: 8.5px;
  color: var(--muted);
}

/* ---------------- orders page ---------------- */

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

.orders-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
}

.orders-summary > div {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  border-right: 1px solid var(--line);
}

.orders-summary > div:last-child {
  border-right: 0;
}

.orders-summary span {
  font-size: 8.5px;
  color: var(--muted);
}

.orders-summary strong {
  font-family: var(--font-num);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
}

.order-list-page {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 12px;
}

.order-list-page .order-card {
  grid-template-columns: 138px minmax(0, 1fr);
}

.order-list-page .order-cover {
  min-height: 152px;
}

.order-list-page .order-head h3 {
  font-size: 20px;
}

.order-cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 174px;
  padding: 24px;
  border-radius: 14px;
  background: var(--forest);
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.06);
  isolation: isolate;
}

.order-cta-card::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 1px solid rgba(217, 236, 155, 0.13);
  right: -60px;
  top: -80px;
  box-shadow: 0 0 0 34px rgba(217, 236, 155, 0.03);
  z-index: -1;
}

.order-cta-card > img {
  position: absolute;
  right: -14px;
  bottom: -36px;
  width: 250px;
  height: 220px;
  object-fit: cover;
  border-radius: 50% 50% 0 0;
  opacity: 0.5;
  z-index: -1;
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}

.octa-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--lime);
  font-weight: 600;
}

.octa-eyebrow .icon {
  width: 12px;
  height: 12px;
}

.octa-copy {
  position: relative;
  z-index: 1;
  max-width: 72%;
}

.octa-copy h3 {
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.octa-copy p {
  margin-top: 6px;
  font-size: 9.5px;
  line-height: 1.7;
  color: rgba(246, 242, 231, 0.56);
}

.octa-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--lime);
  position: relative;
  z-index: 1;
}

.octa-link .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}

.order-cta-card:hover .octa-link .icon {
  transform: translateX(3px);
}

/* ---------------- profile ---------------- */

.profile-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  margin-bottom: 16px;
}

.profile-cover {
  height: 150px;
  overflow: hidden;
  position: relative;
}

.profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(246, 242, 231, 0.7));
}

.profile-main {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  padding: 0 28px 22px;
  margin-top: -42px;
  position: relative;
}

.profile-main .role-chip {
  margin-left: auto;
  margin-bottom: 6px;
}

.profile-name h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
}

.profile-name p {
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 2px;
}

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

.profile-grid .panel h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 4px 0 14px;
}

.avatar-editor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
}

.avatar-editor-copy { flex: 1; min-width: 0; }

.avatar-editor-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .08em;
}

.avatar-choices { display: flex; gap: 7px; flex-wrap: wrap; }

.avatar-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}

.avatar-choice input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-choice.is-selected { border-color: var(--forest); background: var(--paper); }
.avatar-choice small { color: var(--muted); font-size: 7px; }
.avatar-choice .avatar { width: 30px; height: 30px; font-size: 12px; }

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--moss);
  font-size: 8px;
}

.security-badge .icon { width: 12px; height: 12px; }
.security-panel .muted { margin: -4px 0 13px; font-size: 9px; line-height: 1.7; }

.admin-user-modal { max-height: 88vh; overflow-y: auto; }
.admin-user-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 2px 0 14px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--muted);
  font-size: 8px;
}
.admin-user-modal .form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.admin-user-modal .settings-divider { margin: 14px 0; }
[data-admin-user-farm][hidden], [data-admin-user-username][hidden] { display: none !important; }

.settings-payment-panel { margin-top: 16px; }
.payment-config-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.payment-channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 4px 0 16px; }
.payment-channel-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  background: var(--cream);
}
.payment-channel-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.payment-channel-icon { width: 28px; height: 28px; border-radius: 7px; background: var(--lime-soft); color: var(--moss); display: grid; place-items: center; font-size: 12px; flex: none; }
.payment-channel-icon .icon { width: 14px; height: 14px; }
.payment-channel-icon.wechat { background: #e8f6e8; color: #2c8b4b; }
.payment-channel-icon.alipay { background: #e8f1fb; color: #2677c9; }
.payment-channel-toggle > span:nth-child(3) { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.payment-channel-toggle strong { font-size: 9px; font-weight: 500; }
.payment-channel-toggle small { color: var(--muted); font-size: 7px; }
.payment-channel-toggle i { width: 26px; height: 15px; border-radius: 999px; background: #d8d8cf; position: relative; transition: background .2s; flex: none; }
.payment-channel-toggle i::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: white; position: absolute; top: 2px; left: 2px; transition: transform .2s; }
.payment-channel-toggle input:checked ~ i { background: var(--forest); }
.payment-channel-toggle input:checked ~ i::after { transform: translateX(11px); }
.payment-gateway-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payment-gateway-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0; min-width: 0; }
.payment-gateway-card legend { padding: 0 5px; color: var(--moss); font-size: 9px; letter-spacing: .08em; }
.payment-gateway-card .field { margin-bottom: 8px; }
.payment-gateway-card textarea { min-height: 58px; font-size: 9px; }
.payment-config-note { display: flex; align-items: flex-start; gap: 5px; margin: 13px 0 0; color: var(--muted); font-size: 8px; line-height: 1.7; }
.payment-config-note .icon { width: 12px; height: 12px; flex: none; color: var(--moss); margin-top: 1px; }
@media (max-width: 900px) {
  .payment-config-grid, .payment-channel-grid, .payment-gateway-grid { grid-template-columns: 1fr; }
}

.switch-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.switch-list label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.switch-list label:last-child {
  border-bottom: 0;
}

.switch-list label > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.switch-list strong {
  font-size: 11px;
}

.switch-list span {
  font-size: 8.5px;
  color: var(--muted);
}

.switch-list input {
  display: none;
}

.switch-list i {
  width: 34px;
  height: 20px;
  border-radius: 99px;
  background: rgba(28, 43, 33, 0.14);
  position: relative;
  transition: background 0.2s;
  flex: none;
}

.switch-list i::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.switch-list input:checked + i {
  background: var(--moss);
}

.switch-list input:checked + i::after {
  transform: translateX(14px);
}

.demo-panel > p {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.8;
}

.demo-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 13px 0;
}

.demo-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 9.5px;
  color: var(--ink-soft);
}

.demo-list .icon {
  width: 12px;
  height: 12px;
  color: var(--moss);
  margin-top: 3px;
}

.demo-accounts {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  background: var(--cream);
  border-radius: 9px;
}

.demo-accounts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.demo-accounts span {
  font-size: 8.5px;
  color: var(--muted);
}

.demo-accounts code {
  font-size: 9px;
  color: var(--forest);
}

.support-list {
  display: flex;
  flex-direction: column;
}

.support-list button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  text-align: left;
}

.support-list button:last-child {
  border-bottom: 0;
}

.support-list button > span:not(.icon) {
  flex: 1;
}

.support-list .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.support-list .icon:last-child {
  width: 11px;
  height: 11px;
}

/* ---------------- admin ---------------- */

.admin-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  background: var(--forest);
  color: var(--cream);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.admin-welcome::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(217, 236, 155, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(217, 236, 155, 0.025), 0 0 0 120px rgba(217, 236, 155, 0.02);
}

.admin-welcome .eyebrow {
  color: rgba(246, 242, 231, 0.45);
}

.admin-welcome h2 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.admin-welcome h2 em {
  font-style: normal;
  color: var(--lime);
}

.admin-welcome p:not(.eyebrow) {
  font-size: 11px;
  color: rgba(246, 242, 231, 0.58);
}

.admin-welcome-actions {
  display: flex;
  gap: 8px;
  flex: none;
  position: relative;
  z-index: 2;
}

.admin-welcome-actions .btn {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 10.5px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.kpi-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 16px 17px 13px;
}

.kpi-card.kpi-dark {
  background: var(--forest);
  color: var(--cream);
  border-color: transparent;
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
}

.kpi-dark .kpi-top {
  color: rgba(246, 242, 231, 0.55);
}

.kpi-top .icon {
  width: 15px;
  height: 15px;
  opacity: 0.55;
}

.kpi-card > strong {
  display: block;
  font-family: var(--font-num);
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.35;
  margin: 5px 0 4px;
}

.kpi-dark > strong {
  color: var(--lime);
}

.kpi-card > strong small {
  font-family: var(--font-sans);
  font-size: 8.5px;
  color: var(--muted);
  margin-left: 2px;
  font-weight: 400;
}

.kpi-dark > strong small {
  color: rgba(246, 242, 231, 0.5);
}

.kpi-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.kpi-dark .kpi-foot {
  border-color: rgba(255, 255, 255, 0.12);
}

.kpi-foot span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 8px;
}

.kpi-foot .icon {
  width: 10px;
  height: 10px;
}

.kpi-foot .up {
  color: #5c8253;
}

.kpi-dark .kpi-foot .up {
  color: var(--lime);
}

.kpi-foot .warn {
  color: var(--clay);
}

.kpi-foot em {
  font-style: normal;
  font-size: 7.5px;
  color: var(--muted-2);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  align-items: start;
}

.revenue-panel {
  grid-column: span 7;
}

.admin-tasks-panel {
  grid-column: span 5;
}

.recent-orders-panel {
  grid-column: span 8;
}

.completion-panel {
  grid-column: span 4;
}

.revenue-body {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.donut {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(var(--forest) 0 var(--plant), var(--lime) var(--plant) 100%);
  display: grid;
  place-items: center;
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: var(--paper);
}

.donut-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.donut-inner strong {
  font-family: var(--font-num);
  font-size: 27px;
  font-weight: 500;
}

.donut-inner span {
  font-size: 8px;
  color: var(--muted);
}

.revenue-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.revenue-legend > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}

.dot-plant {
  background: var(--forest);
}

.dot-breed {
  background: var(--lime);
}

.revenue-legend div > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.revenue-legend strong {
  font-size: 10px;
}

.revenue-legend small {
  font-size: 8px;
  color: var(--muted);
}

.revenue-legend em {
  font-style: normal;
  font-family: var(--font-num);
  font-size: 13px;
}

.top-products {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.top-product-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.top-product-row img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: cover;
}

.top-product-row > div {
  flex: 1;
  min-width: 0;
}

.top-product-row > div > span {
  display: block;
  font-size: 9px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar {
  height: 4px;
  background: rgba(28, 43, 33, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--leaf);
  border-radius: inherit;
}

.top-product-row > strong {
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}

.admin-task-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-task-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.at-date {
  width: 32px;
  height: 34px;
  flex: none;
  border-radius: 7px;
  background: var(--lime-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.at-date strong {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 500;
}

.at-date small {
  font-size: 6.5px;
  color: var(--muted);
  margin-top: 2px;
}

.at-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.at-info strong {
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.at-info strong small {
  font-family: var(--font-num);
  font-size: 7px;
  color: var(--muted-2);
  font-weight: 400;
  margin-left: 3px;
}

.at-info span {
  font-size: 8px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-task-item .badge {
  font-size: 7.5px;
  padding: 2px 6px;
}

.admin-task-item .btn {
  flex: none;
}

/* tables */

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
}

.data-table th {
  text-align: left;
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(28, 43, 33, 0.06);
  vertical-align: middle;
  white-space: nowrap;
}

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

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

.data-table tbody tr:hover {
  background: rgba(217, 236, 155, 0.1);
}

.data-table td a {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.data-table td a strong {
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 500;
}

.data-table td a small,
.data-table td small {
  font-size: 7.5px;
  color: var(--muted);
}

.data-table .badge {
  font-size: 7.5px;
  padding: 2px 7px;
}

.data-table .table-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.data-table .table-product {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 190px;
  white-space: normal;
}

.data-table .table-product img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: cover;
}

.data-table .table-product small {
  width: 100%;
  padding-left: 30px;
}

.table-progress {
  display: flex;
  align-items: center;
  gap: 6px;
}

.table-progress > span {
  font-family: var(--font-num);
  font-size: 9px;
  color: var(--muted);
  width: 26px;
}

.table-progress .progress-track {
  width: 48px;
}

.table-task-count {
  font-size: 8px;
  color: var(--clay);
  background: var(--clay-soft);
  padding: 2px 6px;
  border-radius: 4px;
}

.completion-ring {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 14px;
}

.progress-ring {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
}

.progress-ring svg {
  position: absolute;
  inset: 0;
}

.progress-ring .ring-bg {
  stroke: rgba(28, 43, 33, 0.08);
}

.progress-ring .ring-fg {
  stroke: var(--forest);
  transition: stroke-dashoffset 1s var(--ease);
}

.progress-ring > strong {
  font-family: var(--font-num);
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
}

.progress-ring > strong small {
  font-size: 9px;
  color: var(--muted);
}

.completion-ring > div:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.completion-ring > div:last-child strong {
  font-family: var(--font-num);
  font-size: 21px;
  font-weight: 500;
}

.completion-ring > div:last-child strong small {
  font-size: 9px;
  color: var(--muted);
}

.completion-ring > div:last-child span {
  font-size: 8.5px;
  color: var(--muted);
}

.completion-notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.completion-notes > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.completion-notes .icon {
  width: 12px;
  height: 12px;
  color: var(--moss);
}

.completion-notes span {
  flex: 1;
  font-size: 8.5px;
  color: var(--muted);
}

.completion-notes strong {
  font-size: 9px;
}

/* admin task page */

.admin-task-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.ats-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.ats-card > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  color: var(--muted);
}

.ats-card > span .icon {
  width: 13px;
  height: 13px;
}

.ats-card > strong {
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
}

.ats-card > strong small {
  font-size: 10px;
}

.ats-card > em {
  font-style: normal;
  font-size: 7.5px;
  color: var(--muted-2);
}

.ats-dark {
  background: var(--forest);
  color: var(--cream);
  border-color: transparent;
}

.ats-dark > span,
.ats-dark > em {
  color: rgba(246, 242, 231, 0.5);
}

.ats-dark > strong {
  color: var(--lime);
}

.toolbar-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  color: var(--muted);
}

.toolbar-note .icon {
  width: 12px;
  height: 12px;
}

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

.task-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, transform 0.2s;
}

.task-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.task-card.task-active {
  border-color: rgba(201, 111, 69, 0.35);
  box-shadow: inset 3px 0 0 var(--clay);
}

.task-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.task-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: var(--muted);
}

.task-cat .icon {
  width: 12px;
  height: 12px;
}

.task-card .badge {
  font-size: 7.5px;
  padding: 2px 7px;
}

.task-card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.task-card-title h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.task-code {
  font-family: var(--font-num);
  font-size: 7px;
  color: var(--muted-2);
}

.task-order {
  font-size: 10px;
  color: var(--muted);
}

.task-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.task-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: var(--muted);
}

.task-card-meta .icon {
  width: 10px;
  height: 10px;
}

.task-note {
  display: flex;
  gap: 5px;
  font-size: 9.5px;
  color: var(--muted);
  line-height: 1.7;
  background: var(--cream);
  border-radius: 7px;
  padding: 8px;
}

.task-note .icon {
  width: 11px;
  height: 11px;
  flex: none;
  margin-top: 2px;
}

.task-result {
  display: flex;
  gap: 6px;
  background: rgba(217, 236, 155, 0.22);
  border-radius: 8px;
  padding: 8px;
  border: 1px solid rgba(106, 142, 88, 0.16);
}

.task-result .icon {
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--moss);
  margin-top: 2px;
}

.task-result p {
  font-size: 8.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.task-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.task-assignee {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: var(--muted);
}

.task-assignee .icon {
  width: 11px;
  height: 11px;
}

.task-card-foot > div {
  display: flex;
  gap: 5px;
}

/* admin orders */

.admin-order-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  margin-bottom: 16px;
}

.admin-order-summary > div {
  padding: 13px 17px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.admin-order-summary > div:last-child {
  border-right: 0;
}

.admin-order-summary span {
  font-size: 8px;
  color: var(--muted);
}

.admin-order-summary strong {
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 500;
}

.table-panel {
  padding: 10px 12px;
}

.data-table-wide {
  font-size: 9px;
}

.data-table-wide th,
.data-table-wide td {
  padding: 9px 9px;
}

.table-empty {
  padding: 20px;
}

/* stepper */

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
  height: 40px;
}

.stepper button {
  width: 36px;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}

.stepper button:hover {
  background: var(--cream);
}

.stepper button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.stepper .icon {
  width: 13px;
  height: 13px;
}

.stepper input {
  width: 42px;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--font-num);
  font-size: 13px;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* =========================================================
   Lifecycle actions, shipping, CMS workspace
   ========================================================= */

.dash-action-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.dash-action-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(217, 164, 65, 0.3);
  background: linear-gradient(100deg, #f5e8c7, #fbf5e7);
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}

.dash-action-banner:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.dash-action-banner.in-transit {
  background: linear-gradient(100deg, #e5eaf6, #f5f7fb);
  border-color: rgba(64, 93, 155, 0.2);
}

.dab-icon {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.7);
  color: #9a6f27;
  display: grid;
  place-items: center;
}

.in-transit .dab-icon {
  color: #405d9b;
}

.dab-icon .icon {
  width: 17px;
  height: 17px;
}

.dash-action-banner > div {
  flex: 1;
  min-width: 0;
}

.dash-action-banner strong {
  display: block;
  font-size: 11px;
}

.dash-action-banner p {
  font-size: 8.5px;
  color: var(--muted);
  margin-top: 2px;
}

.dab-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  font-size: 9.5px;
  font-weight: 600;
  color: #8a601c;
}

.in-transit .dab-cta {
  color: #405d9b;
}

.dab-cta .icon {
  width: 12px;
  height: 12px;
}

/* admin shipping + cms */

.admin-ship-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 17px;
  border-radius: 14px;
  border: 1px solid rgba(201, 111, 69, 0.25);
  background: linear-gradient(100deg, #f4dfd2, #fbf1e9);
  margin-bottom: 14px;
  transition: transform 0.2s;
}

.admin-ship-alert:hover {
  transform: translateY(-1px);
}

.admin-ship-alert > span {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.7);
  color: var(--clay);
  display: grid;
  place-items: center;
}

.admin-ship-alert > span .icon {
  width: 16px;
  height: 16px;
}

.admin-ship-alert > div {
  flex: 1;
}

.admin-ship-alert strong {
  display: block;
  font-size: 10.5px;
}

.admin-ship-alert p {
  font-size: 8.5px;
  color: var(--muted);
}

.admin-ship-alert em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  color: #98522f;
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-ship-alert em .icon {
  width: 12px;
  height: 12px;
}

.shipping-summary,
.cms-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.ship-stat,
.cms-summary > div {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.cms-summary > div {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.cms-summary > .cms-summary-dark {
  background: var(--forest);
  color: var(--cream);
  border-color: transparent;
}

.cms-summary > .cms-summary-dark > span,
.cms-summary > .cms-summary-dark > em {
  color: rgba(246, 242, 231, 0.48);
}

.cms-summary > .cms-summary-dark > strong {
  color: var(--lime);
}

.ship-stat > span,
.cms-summary > div > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  color: var(--muted);
}

.ship-stat > span .icon,
.cms-summary > div > span .icon {
  width: 13px;
  height: 13px;
}

.ship-stat > strong,
.cms-summary > div > strong {
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
}

.ship-stat > strong small,
.cms-summary > div > strong small {
  font-size: 10px;
}

.ship-stat > em,
.cms-summary > div > em {
  font-style: normal;
  font-size: 7.5px;
  color: var(--muted-2);
}

.ship-stat-warn {
  background: #fbf1e7;
  border-color: rgba(201, 111, 69, 0.2);
}

.ship-stat-warn > strong {
  color: var(--clay);
}

.ship-stat-dark,
.cms-summary-dark {
  background: var(--forest);
  color: var(--cream);
  border-color: transparent;
}

.ship-stat-dark > span,
.ship-stat-dark > em,
.cms-summary-dark > span,
.cms-summary-dark > em {
  color: rgba(246, 242, 231, 0.48);
}

.ship-stat-dark > strong,
.cms-summary-dark > strong {
  color: var(--lime);
}

.shipping-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
  align-items: start;
}

.shipping-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: var(--muted);
}

.shipping-hint .icon {
  width: 11px;
  height: 11px;
  color: var(--clay);
}

.ship-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ship-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 12px;
}

.ship-card-top {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.ship-card-top > img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}

.ship-card-title {
  flex: 1;
  min-width: 0;
}

.ship-card-title > span {
  font-family: var(--font-num);
  font-size: 7.5px;
  color: var(--muted-2);
}

.ship-card-title h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.ship-card-title p {
  font-size: 8px;
  color: var(--muted);
  margin-top: 2px;
}

.ship-card-top .badge {
  font-size: 7px;
  padding: 2px 6px;
  flex: none;
}

.ship-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 9px 0;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}

.ship-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 8px;
  color: var(--muted);
}

.ship-card-meta .icon {
  width: 10px;
  height: 10px;
}

.ship-address {
  display: flex;
  gap: 4px;
  padding: 7px 8px;
  background: var(--cream);
  border-radius: 6px;
  color: var(--muted);
}

.ship-address .icon {
  width: 11px;
  height: 11px;
  flex: none;
  margin-top: 2px;
}

.ship-address span {
  font-size: 8px;
  line-height: 1.6;
}

.ship-tracking {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #edf0fa;
  color: #405d9b;
}

.ship-tracking > .icon {
  width: 12px;
  height: 12px;
}

.ship-tracking span {
  font-size: 8px;
  color: #5d729f;
}

.ship-tracking strong {
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 500;
}

.ship-tracking .icon-btn {
  width: 22px;
  height: 22px;
  margin-left: auto;
}

.ship-tracking .icon-btn .icon {
  width: 10px;
  height: 10px;
}

.ship-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 9px;
}

.ship-waiting {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: var(--muted);
  margin-right: auto;
}

.ship-waiting .icon {
  width: 11px;
  height: 11px;
}

.ship-card-actions .btn {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 9px;
}

.recent-shipments {
  margin-bottom: 20px;
}

.table-tracking {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  font-size: 8.5px;
}

.table-tracking small {
  font-family: var(--font-num);
  font-size: 7.5px;
  color: var(--muted);
}

/* cms admin */

.cms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
}

.cms-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cms-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cms-group .panel-head {
  align-items: flex-start;
}

.cms-group-hint {
  font-size: 8px;
  color: var(--muted);
  margin-top: 2px;
}

.cms-block-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cms-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  transition: border-color 0.2s;
}

.cms-block:hover {
  border-color: var(--line-strong);
}

.cms-block.is-offline {
  opacity: 0.55;
}

.cms-block-media {
  width: 74px;
  height: 50px;
  flex: none;
  border-radius: 7px;
  overflow: hidden;
  background: var(--cream);
  display: grid;
  place-items: center;
  color: var(--muted);
}

.cms-block-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cms-block-media .icon {
  width: 19px;
  height: 19px;
}

.cms-block-icon {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: var(--lime-soft);
  color: var(--moss);
  display: grid;
  place-items: center;
}

.cms-block-icon .icon {
  width: 16px;
  height: 16px;
}

.cms-block-main {
  flex: 1;
  min-width: 0;
}

.cms-block-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cms-block-title strong {
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cms-type-chip {
  flex: none;
  font-size: 7px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 4px;
}

.cms-block-main > p {
  font-size: 8.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 2px 0 3px;
}

.cms-block-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 7px;
  color: var(--muted-2);
}

.cms-block-meta .is-online {
  color: #597b4f;
}

.cms-block-meta .is-offline {
  color: var(--clay);
}

.cms-block-actions {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: none;
}

.cms-block-actions .icon-btn {
  width: 27px;
  height: 27px;
}

.cms-block-actions .icon-btn .icon {
  width: 13px;
  height: 13px;
}

.cms-block-actions .danger:hover {
  color: #a8452a;
  background: #f7e4da;
}

.cms-empty-inline {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 9px;
  background: var(--cream);
  border-radius: 9px;
}

.cms-side .panel > h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 4px 0 10px;
}

.cms-settings-form .field {
  margin-bottom: 8px;
}

.cms-settings-form .btn {
  margin-top: 3px;
}

.cms-side-note {
  font-size: 8.5px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 10px;
}

.asset-library {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.asset-library button {
  position: relative;
  border-radius: 7px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  padding: 0;
  text-align: left;
}

.asset-library img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-library span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 6.5px;
  color: #fff;
  padding: 3px 5px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.cms-tip {
  background: var(--lime-soft);
  border-color: rgba(23, 63, 46, 0.1);
}

.cms-tip > span {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--forest);
  color: var(--lime);
  display: grid;
  place-items: center;
  margin-bottom: 9px;
}

.cms-tip > span .icon {
  width: 15px;
  height: 15px;
}

.cms-tip p {
  font-size: 8.5px;
  line-height: 1.75;
  color: rgba(23, 63, 46, 0.65);
  margin-bottom: 9px;
}

.cms-tip .text-link {
  font-size: 9px;
}


/* 导入、设备、管理员与账号设置 */
.import-panel { margin-bottom: 18px; }
.import-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.import-form .field { flex: 1 1 320px; margin: 0; }
.import-form .btn { flex: 0 0 auto; }
.admin-hint { margin: 14px 0 0; color: var(--muted, #7b837c); font-size: 12px; line-height: 1.8; }
.admin-hint code, .device-key { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; background: rgba(31,53,43,.06); padding: 2px 6px; border-radius: 4px; }
.panel-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid rgba(31,53,43,.1); }
.panel-subhead strong { font-size: 13px; }
.panel-subhead span { color: var(--muted, #7b837c); font-size: 11px; }
.agreement-editor-modal textarea { min-height: 260px; }
.data-table td small { display: block; margin-top: 4px; color: var(--muted, #7b837c); font-size: 11px; }

.support-admin-grid { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 18px; }
.support-conversation-list { padding: 14px; }
.support-conversation { display: flex; justify-content: space-between; gap: 8px; padding: 11px 10px; border-radius: 9px; color: var(--ink); }
.support-conversation:hover, .support-conversation.is-active { background: rgba(31,77,58,.07); }
.support-conversation > div:first-child { min-width: 0; display: grid; gap: 3px; }
.support-conversation strong { font-size: 13px; }
.support-conversation span { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 205px; }
.support-conversation small { color: var(--muted); font-size: 10px; }
.support-conversation em { display: inline-flex; min-width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 9px; background: #b46045; color: #fff; font-size: 10px; font-style: normal; margin-left: 5px; }
.support-thread-panel { padding: 16px; }
.support-thread-panel h2 small { font-size: 11px; color: var(--muted); font-weight: 400; }
.support-thread { min-height: 300px; max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: rgba(31,53,43,.04); border-radius: 11px; margin: 14px 0; }
.support-reply-form { display: flex; gap: 8px; align-items: flex-end; }
.support-reply-form textarea { flex: 1; padding: 10px; border: 1px solid rgba(31,53,43,.16); border-radius: 8px; font: inherit; font-size: 13px; resize: vertical; }
@media (max-width: 900px) { .support-admin-grid { grid-template-columns: 1fr; } }

.admin-permission-grid { margin: 14px 0; padding: 12px; border: 1px solid rgba(31,53,43,.1); border-radius: 10px; background: rgba(31,53,43,.025); }
.admin-permission-grid .eyebrow { margin: 0 0 8px; }
.admin-permission-grid label { display: inline-flex; align-items: center; gap: 5px; margin: 4px 9px 4px 0; font-size: 12px; color: var(--ink-soft); }
.admin-permission-grid input { accent-color: var(--forest); }
.admin-permission-grid small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.6; }

.recharge-form { display: grid; gap: 12px; margin-top: 14px; }
.recharge-quick { display: flex; flex-wrap: wrap; gap: 7px; }
.recharge-quick button { flex: 1 1 0; min-width: 62px; padding: 8px 6px; border: 1px solid rgba(31,53,43,.14); border-radius: 8px; background: #fff; color: var(--ink); font-size: 12px; cursor: pointer; }
.recharge-quick button:hover { border-color: var(--forest); color: var(--forest); }
.recharge-channels { display: flex; gap: 8px; flex-wrap: wrap; }
.recharge-channel { flex: 1 1 130px; display: flex; gap: 8px; align-items: center; padding: 10px; border: 1px solid rgba(31,53,43,.14); border-radius: 9px; background: #fff; cursor: pointer; }
.recharge-channel:has(input:checked) { border-color: var(--forest); background: rgba(31,77,58,.05); }
.recharge-channel input { accent-color: var(--forest); }
.recharge-channel-mark { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: #eef5ec; color: #1f4d3a; font-size: 12px; }
.recharge-channel span:last-child { display: grid; gap: 2px; }
.recharge-channel strong { font-size: 12px; }
.recharge-channel small { color: var(--muted); font-size: 10px; }

.recharge-channel.is-disabled { opacity: .55; cursor: not-allowed; }
.recharge-form button[disabled] { opacity: .55; cursor: not-allowed; }

.recharge-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.recharge-quick-grid button { min-width: 0; padding: 9px 4px; }
.recharge-quick-grid button.is-active { border-color: var(--forest); background: rgba(31,77,58,.08); color: var(--forest); font-weight: 600; }
.recharge-unavailable { margin-top: 16px; padding: 18px 14px; border-radius: 12px; background: rgba(31,53,43,.035); text-align: center; display: grid; gap: 8px; justify-items: center; }
.recharge-unavailable-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #eef5ec; color: #1f4d3a; }
.recharge-unavailable h4 { margin: 2px 0 0; font-family: var(--font-serif); font-size: 19px; }
.recharge-unavailable p { margin: 0 0 5px; color: var(--muted); font-size: 12px; line-height: 1.75; max-width: 300px; }
.recharge-unavailable small { color: var(--muted); font-size: 10px; line-height: 1.6; display: inline-flex; gap: 4px; align-items: flex-start; }
.recharge-unavailable .btn { width: 100%; }
@media (max-width: 420px) { .recharge-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.task-service-cost { display: inline-flex; align-items: center; gap: 5px; margin: 8px 0 0; padding: 6px 9px; border-radius: 6px; background: rgba(31,77,58,.06); color: var(--muted); font-size: 10px; }
