:root {
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #7a8499;
  --line: #edf0f6;
  --primary: #1677ff;
  --primary-dark: #0f5fd0;
  --primary-soft: #e8f2ff;
  --success: #19a661;
  --danger: #e5484d;
  --shadow: 0 18px 46px rgba(25, 42, 70, 0.10);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(22, 119, 255, 0.11), transparent 24rem),
    linear-gradient(180deg, #f7faff 0%, var(--bg) 100%);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  padding: 34px 24px 28px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.login-logo {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 20px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(145deg, var(--primary), #55a7ff);
}

.login-card h1 {
  margin: 0;
  text-align: center;
  font-size: 26px;
}

.login-card p {
  margin: 10px 0 28px;
  text-align: center;
  color: var(--muted);
}

.login-form,
.field-form {
  display: grid;
  gap: 15px;
}

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

.field-form label[hidden] {
  display: none !important;
}

.login-form span,
.field-form span {
  color: #4a556f;
  font-size: 14px;
}

.login-form input,
.field-form input,
.field-form select,
.toolbar-card input,
.toolbar-card select,
.filter-row input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #dfe5ef;
  border-radius: 10px;
  outline: none;
  background: #fff;
}

.login-form input:focus,
.field-form input:focus,
.field-form select:focus,
.toolbar-card input:focus,
.toolbar-card select:focus,
.filter-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.field-form input[readonly] {
  color: #667085;
  background: #f5f7fb;
}

.image-upload-field input[type="file"] {
  display: grid;
  align-content: center;
  padding: 10px 12px;
  color: #4a556f;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
}

.field-hint a {
  color: var(--primary);
}

.login-form button,
.primary-btn {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(22, 119, 255, 0.22);
}

.login-form button:disabled {
  opacity: 0.7;
}

.login-notice {
  margin-top: 14px;
  min-height: 24px;
  text-align: center;
}

.notice-error,
.danger-text {
  color: var(--danger);
}

.success-text {
  color: var(--success);
}

.mobile-app {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 12px 84px;
  background: #f6f8fc;
  box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.04);
  overflow-x: hidden;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 -12px;
  padding: 16px 16px 12px;
  background: rgba(246, 248, 252, 0.94);
  backdrop-filter: blur(12px);
}

.app-header h1 {
  margin: 0;
  font-size: 21px;
}

.header-user {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}

.header-user strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.page-content {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.page-content > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.card,
.toolbar-card,
.owner-card,
.profile-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 15px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 22px rgba(25, 42, 70, 0.05);
}

.owner-card {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.22), transparent 7rem),
    linear-gradient(145deg, var(--primary), #4aa1ff);
}

.owner-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.owner-card p {
  margin: 0 0 6px;
  opacity: 0.92;
}

.owner-card strong {
  font-size: 20px;
}

.owner-status-pill {
  display: inline-flex;
  align-items: center;
  min-width: 48px;
  height: 28px;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.owner-status-pill.online {
  color: #066b3e;
  background: rgba(255, 255, 255, 0.92);
}

.owner-status-pill.offline {
  color: #6b7280;
  background: rgba(255, 255, 255, 0.78);
}

.balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.balance-grid span {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}

.balance-grid b {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

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

.quick-item {
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 11px 8px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(25, 42, 70, 0.05);
}

.quick-item strong {
  color: var(--primary-dark);
  font-size: 14px;
}

.quick-item span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

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

.section-title h2,
.block-title,
.profile-card h2 {
  margin: 0;
  font-size: 17px;
}

.section-title span,
.section-title a,
.link-btn {
  color: var(--muted);
  font-size: 13px;
}

.link-btn,
.text-btn {
  border: 0;
  padding: 0;
  color: var(--primary);
  background: transparent;
}

.announcement-card {
  border-left: 4px solid var(--primary);
}

.announcement-modal-list {
  display: grid;
  gap: 10px;
}

.announcement-preview-list {
  display: grid;
  gap: 10px;
  max-height: 212px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: none;
}

.announcement-preview-list::-webkit-scrollbar {
  display: none;
}

.announcement-preview-list.is-autoscroll {
  display: block;
  height: 150px;
  overflow: hidden;
  position: relative;
}

.announcement-preview-track {
  will-change: transform;
}

.announcement-preview-group {
  display: grid;
  gap: 10px;
  padding-bottom: 10px;
}

.announcement-preview-item {
  width: 100%;
  border: 1px solid #e6eef9;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  text-align: left;
  cursor: pointer;
}

.announcement-preview-item strong {
  display: block;
  margin: 0 0 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.announcement-preview-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.announcement-preview-item:active {
  transform: scale(0.995);
  border-color: #cbdcf8;
}

.announcement-item {
  padding: 10px 12px;
  border: 1px solid #e6eef9;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.announcement-item h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 14px;
}

.announcement-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
}

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

.announcement-image-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e6eef9;
  background: #f8fbff;
}

.announcement-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.marquee,
.modal-text,
.tip {
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

.toolbar-card {
  display: grid;
  gap: 12px;
}

.search-row,
.filter-row {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 9px;
  min-width: 0;
}

.search-row > *,
.filter-row > * {
  min-width: 0;
}

.filter-row.two {
  grid-template-columns: 1fr 1fr 1fr 68px;
}

.filter-row.two.commission-filter-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr) 82px;
  padding: 12px;
  border: 1px solid #e7edf6;
  border-radius: 16px;
  background: linear-gradient(180deg, #f9fbff 0%, #f4f8ff 100%);
  align-items: end;
  gap: 14px;
}

.task-filter-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr) 82px;
  padding: 12px;
  border: 1px solid #e7edf6;
  border-radius: 16px;
  background: linear-gradient(180deg, #f9fbff 0%, #f4f8ff 100%);
  align-items: end;
  gap: 10px;
}

.task-filter-row button {
  min-height: 44px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e88ff 0%, #4aa4ff 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(30, 136, 255, 0.2);
}

.task-filter-row button:active {
  transform: translateY(1px);
}

.scroll-page-tip {
  padding: 12px 0 4px;
  color: #8a9ab0;
  font-size: 12px;
  text-align: center;
}

.compact-filter-field {
  display: grid;
  gap: 6px;
}

.compact-filter-field span {
  font-size: 12px;
  line-height: 1;
  color: #70819b;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.compact-filter-field input {
  min-width: 0;
  background: rgba(255, 255, 255, 0.96);
  border-color: #d8e1ee;
}

.compact-filter-field--search input[type="search"] {
  padding-left: 14px;
}

.commission-filter-row button {
  min-height: 44px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e88ff 0%, #4aa4ff 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(30, 136, 255, 0.2);
}

.commission-filter-row button:active {
  transform: translateY(1px);
}

.status-search-row {
  grid-template-columns: 1fr 92px 92px 74px;
}

.search-row button,
.filter-row button,
.seg-row button,
.tabs button,
.row-actions button,
.ghost-btn,
.danger-btn {
  min-height: 38px;
  border: 1px solid #dfe5ef;
  border-radius: 9px;
  color: #46536a;
  background: #fff;
}

.list-row,
.mini-task {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.list-row > div:first-child {
  min-width: 0;
}

.list-row.online-row,
.list-row.offline-row,
.list-row.pending-audit-row,
.list-row.rejected-row {
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
}

.list-row.online-row {
  border-color: rgba(25, 166, 97, 0.18);
  background: linear-gradient(90deg, rgba(25, 166, 97, 0.12), #fff 62%);
}

.list-row.offline-row {
  border-color: rgba(122, 132, 153, 0.22);
  background: linear-gradient(90deg, rgba(122, 132, 153, 0.16), #fff 62%);
  opacity: 0.88;
}

.list-row.pending-audit-row {
  border-color: rgba(245, 158, 11, 0.24);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), #fff 62%);
}

.list-row.rejected-row {
  border-color: rgba(107, 114, 128, 0.2);
  background: linear-gradient(90deg, rgba(107, 114, 128, 0.14), #fff 62%);
  opacity: 0.72;
}

.list-row:last-child,
.mini-task:last-child {
  border-bottom: 0;
}

.list-row strong,
.mini-task strong {
  display: block;
  font-size: 14px;
}

.daren-code-line {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.code-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 16px;
  line-height: 1;
}

.list-row p,
.mini-task span {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.row-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.status-group {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  gap: 6px;
}

.row-actions button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--success);
  background: rgba(25, 166, 97, 0.11);
  font-size: 12px;
}

.status-pill.muted {
  color: #7a8499;
  background: #eef2f8;
}

.status-pill.online {
  color: #0f8f4f;
  background: rgba(25, 166, 97, 0.13);
}

.status-pill.offline {
  color: #6b7280;
  background: #eef2f8;
}

.status-pill.pending {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
}

.empty-block {
  display: grid;
  place-items: center;
  min-height: 96px;
  color: var(--muted);
  border-radius: 12px;
  background: #f8faff;
  border: 1px dashed #dde5f2;
  font-size: 14px;
}

.module-list {
  margin: 12px 0;
  padding-left: 22px;
  color: #4a556f;
  line-height: 1.9;
}

.seg-row,
.tabs,
.profile-actions,
.drawer-actions,
.modal-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  min-width: 0;
}

.seg-row button.active,
.tabs button.active {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}

.tabs {
  margin: 12px 0;
}

.tabs button {
  position: relative;
  padding: 0 12px;
}

.tabs .tab-badge {
  position: absolute;
  top: -8px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #ef4444;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.28);
}

.table-card {
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

#taskTable table {
  border-collapse: separate;
  border-spacing: 0 8px;
  background: transparent;
}

th,
td {
  min-width: 82px;
  padding: 11px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}

th {
  color: #4a556f;
  background: #f8faff;
}

.reason-cell {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aftersale-row {
  cursor: pointer;
}

.aftersale-table-card table {
  table-layout: fixed;
}

.aftersale-table-card th,
.aftersale-table-card td {
  min-width: 0;
  padding: 8px 5px;
  font-size: 12px;
}

.aftersale-table-card th:nth-child(1),
.aftersale-table-card td:nth-child(1) {
  width: 76px;
}

.aftersale-table-card th:nth-child(2),
.aftersale-table-card td:nth-child(2) {
  width: 64px;
}

.aftersale-table-card th:nth-child(3),
.aftersale-table-card td:nth-child(3) {
  width: 42px;
}

.aftersale-table-card th:nth-child(4),
.aftersale-table-card td:nth-child(4) {
  width: 52px;
}

.aftersale-table-card th:nth-child(5),
.aftersale-table-card td:nth-child(5) {
  width: 82px;
}

.aftersale-table-card th:nth-child(6),
.aftersale-table-card td:nth-child(6) {
  width: 42px;
}

.aftersale-table-card .text-btn {
  font-size: 12px;
}

.aftersale-row:hover td {
  background: #f8faff;
}

#taskTable td {
  border-bottom: 0;
}

#taskTable tr[data-task] {
  cursor: pointer;
}

.task-row-normal td {
  background: #eefbf3;
}

.task-row-normal td:first-child {
  border-left: 4px solid #24b36b;
}

.task-row-quality td {
  background: #eef4ff;
}

.task-row-quality td:first-child {
  border-left: 4px solid #4f7cff;
}

.task-row-stopped td {
  color: #6b1f2a;
  background: #fff1f2;
}

.task-row-stopped td:first-child {
  border-left: 4px solid #e11d48;
}

.task-row-normal td:first-child,
.task-row-quality td:first-child,
.task-row-stopped td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.task-row-normal td:last-child,
.task-row-quality td:last-child,
.task-row-stopped td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.evaluation-table-card .text-btn + .text-btn {
  margin-left: 8px;
}

.evaluation-row {
  cursor: pointer;
}

.evaluation-row:hover td {
  background: #f8faff;
}

.evaluation-detail-images,
.evaluation-submit-preview {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.evaluation-detail-images {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.evaluation-image-box {
  display: grid;
  place-items: center;
  min-height: 110px;
  border-radius: 12px;
  background: #f8faff;
}

.evaluation-image-box img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.evaluation-image-box span {
  display: none;
  color: var(--muted);
  font-size: 13px;
}

.evaluation-image-box.is-error {
  border: 1px dashed #d8e1ef;
}

.evaluation-image-box.is-error span {
  display: block;
}

.evaluation-submit-preview strong,
.evaluation-submit-preview span {
  color: var(--muted);
  font-size: 13px;
}

.profile-card strong {
  display: block;
  margin: 14px 0;
  font-size: 25px;
}

.ghost-btn {
  padding: 0 16px;
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}

.danger-btn {
  padding: 0 16px;
  color: #fff;
  border-color: var(--danger);
  background: var(--danger);
}

.logout-btn {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  color: var(--danger);
  background: #fff;
  box-shadow: 0 8px 22px rgba(25, 42, 70, 0.05);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: min(430px, 100%);
  transform: translateX(-50%);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(25, 42, 70, 0.08);
}

.bottom-nav a {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #8a94a8;
  font-size: 11px;
}

.bottom-nav span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 9px;
  font-size: 12px;
}

.bottom-nav em {
  font-style: normal;
}

.bottom-nav a.active {
  color: var(--primary);
}

.bottom-nav a.active span {
  color: #fff;
  background: var(--primary);
}

.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(23, 32, 51, 0.38);
}

.drawer-panel,
.modal-panel {
  position: fixed;
  z-index: 41;
  left: 50%;
  width: min(430px, 100%);
  background: #fff;
  box-shadow: 0 -12px 38px rgba(23, 32, 51, 0.18);
}

.drawer-panel {
  bottom: 0;
  max-height: 84vh;
  transform: translateX(-50%);
  border-radius: 20px 20px 0 0;
  overflow: auto;
}

.modal-panel {
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(390px, calc(100% - 28px));
  border-radius: 18px;
}

.task-detail-modal {
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: min(430px, 100%);
  max-height: 100vh;
  border-radius: 0;
  overflow: hidden;
}

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.drawer-head h3 {
  margin: 0;
  font-size: 18px;
}

.drawer-head button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #6d778b;
  background: #f2f5fa;
  font-size: 22px;
  line-height: 1;
}

.drawer-body {
  padding: 15px;
}

.task-detail-modal .drawer-body {
  height: calc(100vh - 62px);
  padding: 12px;
  overflow: auto;
  background: #f6f8fc;
}

.task-detail-sheet {
  display: grid;
  gap: 12px;
}

.detail-assign-bar,
.detail-card,
.detail-info-card {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(25, 42, 70, 0.05);
}

.detail-assign-bar {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border-left: 4px solid var(--primary);
}

.detail-assign-bar.is-changeable {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.detail-assign-bar strong {
  font-size: 14px;
}

.detail-assign-bar span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.change-daren-btn {
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.task-daren-change-modal .drawer-body {
  background: #f6f8fc;
}

.change-daren-form {
  display: grid;
  gap: 12px;
}

.change-daren-current,
.change-daren-option {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(25, 42, 70, 0.05);
}

.change-daren-current {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.change-daren-current span,
.change-daren-option small {
  color: var(--muted);
  font-size: 12px;
}

.change-daren-current strong {
  color: #1f2a44;
  font-size: 15px;
}

.change-daren-current em,
.change-daren-option em {
  color: #52607a;
  font-style: normal;
  font-size: 12px;
}

.change-daren-list {
  display: grid;
  gap: 10px;
  max-height: 52vh;
  overflow: auto;
}

.change-daren-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  padding: 12px;
}

.change-daren-option input {
  margin-top: 4px;
}

.change-daren-option span {
  display: grid;
  gap: 3px;
}

.change-daren-option strong {
  color: #1f2a44;
  font-size: 14px;
}

.change-daren-form .primary-btn {
  width: 100%;
}

.detail-task-time {
  margin: 0;
  padding: 0 2px;
  color: #4a556f;
  font-size: 13px;
  line-height: 1.6;
}

.detail-info-card {
  overflow: hidden;
}

.detail-info-row,
.detail-field-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.detail-info-row:last-child,
.detail-field-row:last-child {
  border-bottom: 0;
}

.detail-info-row span,
.detail-field-row span {
  color: var(--muted);
}

.detail-info-row strong,
.detail-field-row strong {
  text-align: right;
  word-break: break-all;
}

.detail-card {
  padding: 14px;
}

.detail-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.detail-qr-section {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.detail-qr-section p {
  margin: 0;
}

.detail-cover,
.detail-video {
  width: 100%;
  max-height: 230px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef2f8;
}

.save-video-tip {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.video-save-panel {
  display: grid;
  gap: 10px;
}

.video-save-panel p {
  margin: 0;
  color: #526071;
  font-size: 13px;
  line-height: 1.7;
}

.video-save-panel button {
  width: 100%;
}

.task-qr-image {
  width: 180px;
  height: 180px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.task-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 13px;
  font-weight: 700;
}

.detail-qr-placeholder {
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed #b7c6df;
  border-radius: 16px;
  color: #5d6b83;
  background:
    linear-gradient(90deg, rgba(22, 119, 255, 0.08) 12px, transparent 1%) center / 24px 24px,
    linear-gradient(rgba(22, 119, 255, 0.08) 12px, transparent 1%) center / 24px 24px,
    #f8fbff;
}

.detail-qr-placeholder b {
  color: var(--primary-dark);
  font-size: 20px;
}

.detail-qr-placeholder span {
  padding: 0 12px;
  font-size: 12px;
  text-align: center;
  word-break: break-all;
}

.copy-box {
  min-height: 46px;
  padding: 12px;
  border-radius: 12px;
  color: #2e3a50;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f8fafd;
}

.muted-box {
  color: #556176;
  background: #f2f5fa;
}

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

.detail-block-head h3 {
  margin: 0;
}

.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #b9d6ff;
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 12px;
}

.detail-image-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.detail-image-grid img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  background: #eef2f8;
}

.do-task-image-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.do-task-image-card {
  display: grid;
  gap: 6px;
}

.do-task-image-card strong {
  color: #2e3a50;
  font-size: 13px;
}

.do-task-image-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  background: #eef2f8;
}

.evaluation-task-image-list {
  grid-template-columns: 1fr;
  gap: 16px;
}

.evaluation-task-image-list .do-task-image-card {
  gap: 10px;
}

.evaluation-task-image-list .do-task-image-card strong {
  font-size: 15px;
}

.evaluation-task-image-list .do-task-image-card img {
  aspect-ratio: auto;
  max-height: none;
  object-fit: contain;
}

.evaluation-task-image-list .save-image-tip {
  font-size: 13px;
}

.save-image-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 10px;
  padding: 0 2px;
  border: 1px solid #b9d6ff;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.task-copy-card {
  display: grid;
  gap: 10px;
}

.task-copy-textarea {
  width: 100%;
  min-height: 82px;
  padding: 12px;
  border: 1px solid #d8e0ee;
  border-radius: 12px;
  color: #2e3a50;
  background: #f8fafd;
  line-height: 1.7;
  resize: none;
  box-sizing: border-box;
}

.upload-box {
  display: grid;
  gap: 10px;
}

.upload-box .primary-btn:disabled {
  opacity: 0.62;
  box-shadow: none;
}

.upload-box p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.do-task-page {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 24px;
  background: #f6f8fc;
}

.do-task-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 54px;
  padding: 0 10px;
  background: rgba(246, 248, 252, 0.94);
  backdrop-filter: blur(12px);
}

.do-task-header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: #fff;
  font-size: 28px;
  line-height: 1;
}

.do-task-header strong {
  text-align: center;
  font-size: 18px;
}

.do-task-content {
  display: grid;
  gap: 12px;
  padding: 0 12px 24px;
}

.do-task-card {
  width: min(390px, calc(100% - 28px));
  margin: 20vh auto 0;
  padding: 28px 20px;
  border-radius: 20px;
  text-align: center;
  background: #fff;
  box-shadow: var(--shadow);
}

.do-task-card h1 {
  margin: 0 0 10px;
}

.do-task-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.verify-page {
  display: grid;
  align-content: start;
}

.verify-card {
  width: min(390px, calc(100% - 28px));
  margin: 12vh auto 0;
  padding: 28px 20px 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 204, 92, 0.22), transparent 34%),
    #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.verify-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #18233f, #3d5c9a);
  font-weight: 800;
  font-size: 24px;
  box-shadow: 0 16px 34px rgba(24, 35, 63, 0.24);
}

.verify-card h1 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 24px;
}

.verify-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.verify-form {
  display: grid;
  gap: 12px;
}

.verify-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dfe5ef;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 15px;
  outline: none;
}

.verify-form input:focus {
  border-color: #3d5c9a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(61, 92, 154, 0.12);
}

.verify-message {
  min-height: 20px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.verify-message.is-error {
  color: var(--danger);
}

.danger-logo {
  background: linear-gradient(145deg, var(--danger), #ff8a8f);
}

.task-step-list {
  margin: 0;
  padding-left: 20px;
  color: #4a556f;
  line-height: 1.8;
  font-size: 13px;
}

.do-task-form {
  display: grid;
  gap: 12px;
}

.do-task-form label {
  display: grid;
  gap: 7px;
}

.do-task-form span {
  color: #4a556f;
  font-size: 13px;
}

.do-task-form input[type="url"],
.do-task-form textarea,
.do-task-form input[type="file"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dfe5ef;
  border-radius: 10px;
  background: #fff;
}

.do-task-form textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.5;
}

.do-task-form p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.do-task-form button:disabled {
  opacity: 0.68;
}

.submitted-proof-box {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #dfe5ef;
  border-radius: 12px;
  background: #f8fafd;
}

.submitted-proof-box label {
  display: grid;
  gap: 7px;
}

.submitted-proof-box span {
  color: #4a556f;
  font-size: 13px;
}

.submitted-proof-box textarea {
  width: 100%;
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid #dfe5ef;
  border-radius: 10px;
  color: #2e3a50;
  background: #eef2f8;
  line-height: 1.5;
  resize: none;
  box-sizing: border-box;
  -webkit-text-fill-color: #2e3a50;
}

.submitted-proof-box img {
  width: 100%;
  max-height: 180px;
  border-radius: 12px;
  object-fit: contain;
  background: #eef2f8;
}

.submitted-proof-box strong {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 10px;
  color: var(--muted);
  background: #f8fafd;
}

.submitted-proof-box p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.owner-task-submit-form {
  gap: 16px;
}

.owner-task-submit-form input[type="url"],
.owner-task-submit-form textarea,
.owner-task-submit-form input[type="file"] {
  min-height: 52px;
  border-radius: 16px;
  font-size: 16px;
}

.owner-task-submit-form input[type="url"],
.owner-task-submit-form textarea {
  border: 2px solid var(--primary);
}

.owner-task-submit-form .second-image-hint-field input[type="file"] {
  color: #94a3b8;
  border-style: dashed;
  background: #f8fafc;
  cursor: not-allowed;
}

.owner-task-submit-form .primary-btn {
  min-height: 52px;
  border-radius: 14px;
  font-size: 17px;
}

.success-submit-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 12px;
  color: #067647;
  background: #e9f8f0;
  text-align: center;
}

.success-submit-box span {
  color: #3c8064;
  font-size: 12px;
}

.stopped-task-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #991b1b;
  background: #fff1f2;
  text-align: center;
}

.stopped-task-box span {
  color: #b45309;
  font-size: 12px;
}

.detail-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.detail-row {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row span {
  color: var(--muted);
}

.detail-row strong {
  word-break: break-all;
}

.detail-image-row {
  align-items: start;
}

.detail-image-row img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5f7fb;
}

.drawer-actions,
.modal-actions {
  margin-top: 15px;
}

.confirm-dialog-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.24), transparent 28%),
    rgba(23, 32, 51, 0.54);
  backdrop-filter: blur(5px);
}

.confirm-dialog-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 81;
  width: min(360px, calc(100% - 36px));
  padding: 24px 18px 18px;
  border-radius: 22px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 246, 224, 0.88), rgba(255, 255, 255, 0) 48%),
    #fff;
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.28);
  transform: translate(-50%, -50%);
}

.confirm-dialog-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 18px;
  color: #7a4a00;
  background: linear-gradient(145deg, #ffe08a, #ffb94f);
  font-weight: 900;
  font-size: 26px;
  box-shadow: 0 12px 26px rgba(255, 185, 79, 0.36);
}

.confirm-dialog-panel h3 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 19px;
}

.confirm-dialog-panel p {
  margin: 0;
  color: #5c6680;
  line-height: 1.7;
  font-size: 14px;
}

.confirm-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.confirm-dialog-actions button {
  min-height: 44px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 800;
}

.submit-loading-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.2), transparent 30%),
    rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
}

.submit-loading-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 91;
  width: min(330px, calc(100% - 42px));
  padding: 26px 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(236, 253, 245, 0.9), rgba(255, 255, 255, 0) 52%),
    #fff;
  box-shadow: 0 28px 78px rgba(15, 23, 42, 0.28);
  transform: translate(-50%, -50%);
}

.submit-loading-spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border: 5px solid rgba(16, 185, 129, 0.18);
  border-top-color: #10b981;
  border-radius: 50%;
  animation: submit-loading-spin 0.82s linear infinite;
}

.submit-loading-panel h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 19px;
  font-weight: 900;
}

.submit-loading-panel p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
  font-size: 14px;
}

@keyframes submit-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

#toastHost {
  position: fixed;
  left: 50%;
  bottom: 94px;
  z-index: 60;
  transform: translateX(-50%);
}

.toast {
  padding: 10px 15px;
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 32, 51, 0.88);
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.18);
}

.toast.error {
  background: rgba(229, 72, 77, 0.92);
}

@media (min-width: 760px) {
  body {
    display: grid;
    justify-items: center;
  }

  .mobile-app {
    min-height: calc(100vh - 24px);
    margin-top: 12px;
    border-radius: 28px 28px 0 0;
  }
}

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

  .filter-row.two {
    grid-template-columns: 1fr;
  }

  .filter-row.two.commission-filter-row {
    gap: 8px;
  }
}

@media (max-width: 680px) {
  .task-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .task-filter-row .compact-filter-field--search,
  .task-filter-row button {
    grid-column: 1 / -1;
  }

  .filter-row.two.commission-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .filter-row.two.commission-filter-row .compact-filter-field--search,
  .filter-row.two.commission-filter-row button {
    grid-column: 1 / -1;
  }

  .task-date-field input,
  .commission-date-field input {
    width: 94%;
    min-height: 44px;
    height: 44px;
    padding-right: 4px;
    padding-left: 4px;
    font-size: 12px;
  }
}
