body {
    font-family: 'Noto Sans SC', sans-serif;
    background: #f5f5f5;
}
.app-container {
    max-width: 450px;
    margin: 0 auto;
    min-height: 100vh;
    background: #f5f5f5;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    padding-bottom: 72px;
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}
.page-header {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #fff;
    padding: 16px 16px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.page-subtitle {
    font-size: 12px;
    opacity: 0.85;
}
.page-title {
    font-size: 22px;
    font-weight: 900;
    margin-top: 2px;
}
.page-body {
    padding: 0 12px 16px;
    margin-top: -8px;
}
.icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.icon-btn:active {
    background: rgba(255, 255, 255, 0.3);
}
.income-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.income-card-label {
    font-size: 13px;
    color: #6b7280;
}
.income-card-value {
    font-size: 32px;
    font-weight: 900;
    color: #4f46e5;
    margin-top: 4px;
    line-height: 1.1;
}
.income-card-row {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    font-size: 13px;
    color: #6b7280;
}
.income-card-row strong {
    color: #111;
    font-weight: 700;
}
.income-split {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    font-size: 12px;
    color: #9ca3af;
}
.income-split em {
    font-style: normal;
    font-weight: 700;
    color: #374151;
    margin-left: 4px;
}
.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}
.overview-item {
    background: #fff;
    border-radius: 10px;
    padding: 12px 6px;
    text-align: center;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.page-header--recycle {
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
}
.order-type-tag--recycle {
    background: #dcfce7;
    color: #15803d;
}
.overview-item-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.overview-item-link:active {
    background: #f3f4f6;
    transform: scale(0.98);
}
.overview-item.highlight {
    background: #eef2ff;
}
.overview-item.highlight .overview-value {
    color: #4f46e5;
}
.overview-value {
    font-size: 20px;
    font-weight: 900;
    color: #111;
    line-height: 1.1;
}
.overview-label {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 4px;
}
.overview-badge-wrap {
    position: relative;
    display: inline-block;
}
.overview-badge {
    position: absolute;
    top: -6px;
    right: -12px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.overview-badge.hidden {
    display: none;
}
.rider-sheet-insurance-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.section-block {
    margin-top: 16px;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.section-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}
.section-head .section-title {
    margin-bottom: 0;
}
.live-tag {
    font-size: 11px;
    color: #ef4444;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.live-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    padding: 0;
}
.quick-item:active {
    opacity: 0.7;
}
.quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.quick-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quick-badge.hidden {
    display: none;
}
.quick-label {
    font-size: 11px;
    color: #374151;
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
}
.order-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.order-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.order-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.order-type-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: #ede9fe;
    color: #6d28d9;
    flex-shrink: 0;
}
.order-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    flex: 1;
    min-width: 0;
}
.order-card-price {
    font-size: 15px;
    font-weight: 700;
    color: #4f46e5;
    flex-shrink: 0;
}
.order-card-content {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
    line-height: 1.4;
}
.order-card-meta {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
}
.order-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.btn-outline {
    flex: 1;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
}
.btn-primary {
    flex: 1;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #6366f1, #4f46e5);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}
.btn-outline:active,
.btn-primary:active {
    opacity: 0.85;
}
.order-empty {
    text-align: center;
    padding: 32px 16px;
    background: #fff;
    border-radius: 12px;
    font-size: 13px;
    color: #9ca3af;
}
.admin-profile-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.admin-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5, #818cf8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.admin-profile-name {
    font-size: 17px;
    font-weight: 700;
    color: #111;
}
.admin-profile-meta {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}
.admin-logout-btn {
    flex-shrink: 0;
    margin-left: auto;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #fff;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.admin-logout-btn:active {
    background: #f9fafb;
}
.menu-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.menu-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 14px;
    border: none;
    background: #fff;
    border-top: 1px solid #f5f5f5;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    color: inherit;
}
.menu-row:first-child {
    border-top: none;
}
.menu-row:active {
    background: #fafafa;
}
.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.menu-label {
    flex: 1;
    font-size: 15px;
    color: #111;
    font-weight: 500;
}
.menu-extra {
    font-size: 12px;
    color: #9ca3af;
    margin-right: 4px;
}
.menu-badge {
    font-size: 10px;
    background: #ef4444;
    color: #fff;
    padding: 1px 6px;
    border-radius: 10px;
    margin-right: 4px;
}
.menu-chevron {
    color: #d1d5db;
    flex-shrink: 0;
}
.reset-demo-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    background: transparent;
    font-size: 13px;
    color: #9ca3af;
    cursor: pointer;
}
.bottom-nav {
    max-width: 450px;
    margin: 0 auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    z-index: 100;
    display: flex;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border: none;
    background: none;
    color: #9ca3af;
    font-size: 10px;
    cursor: pointer;
    padding: 4px 0;
    min-width: 0;
}
.nav-item span {
    white-space: nowrap;
}
.nav-item.active {
    color: #4f46e5;
    font-weight: 700;
}
.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.admin-modal.hidden {
    display: none;
}
.admin-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.admin-modal-panel {
    position: relative;
    width: 100%;
    max-width: 450px;
    max-height: 80vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
}
.admin-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
}
.admin-modal-title {
    font-size: 17px;
    font-weight: 700;
}
.admin-modal-head .icon-btn {
    background: #f3f4f6;
    color: #374151;
}
.admin-modal-body {
    padding: 16px;
    overflow-y: auto;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}
.admin-modal-body p {
    margin-bottom: 8px;
}
.admin-modal-actions {
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
    display: flex;
    gap: 10px;
    border-top: 1px solid #f5f5f5;
}
.sub-admin-field {
    display: block;
    margin-bottom: 14px;
}
.sub-admin-field > span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #374151;
    font-weight: 600;
}
.sub-admin-input {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #111827;
    font-size: 14px;
}
.sub-admin-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}
.sub-admin-form-hint {
    margin: 4px 0 0;
    font-size: 12px;
    color: #9ca3af;
}
.sub-admin-list {
    display: grid;
    gap: 10px;
}
.sub-admin-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .04);
}
.sub-admin-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 16px;
    font-weight: 700;
}
.sub-admin-info {
    min-width: 0;
    flex: 1;
}
.sub-admin-name {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}
.sub-admin-phone {
    margin-top: 3px;
    color: #9ca3af;
    font-size: 12px;
}
.sub-admin-status {
    flex-shrink: 0;
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #059669;
    font-size: 11px;
}
.sub-admin-actions {
    width: 100%;
    display: flex;
    gap: 8px;
    padding-left: 52px;
}
.sub-admin-action {
    flex: 1;
    min-height: 32px;
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.sub-admin-action--permission {
    color: #4f46e5;
    border-color: #c7d2fe;
    background: #eef2ff;
}
.sub-admin-action--delete {
    color: #e11d48;
    border-color: #fecdd3;
    background: #fff1f2;
}
.sub-admin-action:active {
    opacity: .75;
}
.sub-admin-permission-body {
    max-height: 52vh;
}
.sub-admin-permission-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 2px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
}
.sub-admin-permission-row input {
    width: 17px;
    height: 17px;
    accent-color: #4f46e5;
}
.sub-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}
.sub-back {
    position: absolute;
    left: 12px;
    z-index: 2;
    padding: 4px;
    border: none;
    background: none;
    cursor: pointer;
    color: #111;
}
.sub-back svg,
.sub-action svg {
    pointer-events: none;
}
.sub-title {
    font-size: 17px;
    font-weight: 700;
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}
.sub-body {
    padding: 12px;
    padding-bottom: 24px;
}
.rent-category-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.rent-category-tab {
    flex: 1;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    position: relative;
}
.rent-category-tab.active {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.rent-category-tab-badge {
    display: inline-block;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    margin-left: 6px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}
.rent-category-tab.active .rent-category-tab-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #ef4444;
}
.tab-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tab-bar::-webkit-scrollbar {
    display: none;
}
.tab-chip {
    position: relative;
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
}
.tab-chip.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
    font-weight: 600;
}
.list-card--link {
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.15s;
}
.list-card--link:active {
    transform: scale(0.99);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.list-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.rider-status,
.merchant-status {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.status-online,
.status-open {
    background: #f0fdf4;
    color: #16a34a;
}
.status-offline,
.status-closed {
    background: #f3f4f6;
    color: #6b7280;
}
.rider-insurance-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rider-insure-btn {
    flex-shrink: 0;
    border: none;
    border-radius: 8px;
    padding: 4px 12px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.rider-insure-btn:active {
    opacity: 0.92;
}
.rider-insurance-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1.3;
}
.rider-insurance-tag.is-none {
    background: #f3f4f6;
    color: #6b7280;
}
.rider-insurance-tag.is-premium-paid {
    background: #fff7e6;
    color: #b45309;
}
.rider-insurance-tag.is-insured {
    background: #f0fdf4;
    color: #15803d;
}
.takeout-status-pending { background: #fff7e6; color: #d46b08; }
.takeout-status-pickup { background: #e6f4ff; color: #1677ff; }
.takeout-status-delivering { background: #f9f0ff; color: #722ed1; }
.takeout-status-done { background: #f6ffed; color: #52c41a; }
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
}
.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}
.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 4px 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid #f5f5f5;
}
.form-row:first-child { border-top: none; }
.form-label {
    font-size: 14px;
    color: #374151;
    flex-shrink: 0;
}
.form-input {
    width: 120px;
    text-align: right;
    border: none;
    outline: none;
    font-size: 14px;
    color: #111;
    font-weight: 600;
    background: transparent;
}
.form-hint {
    font-size: 12px;
    color: #9ca3af;
    padding: 0 0 12px;
}
.form-section-title {
    padding: 4px 2px 8px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}
.toggle-switch {
    position: relative;
    width: 44px;
    height: 26px;
    flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider { background: #4f46e5; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }
.withdraw-status-pending { background: #fff7e6; color: #d46b08; }
.withdraw-status-approved { background: #f6ffed; color: #52c41a; }
.withdraw-status-rejected { background: #fff1f0; color: #cf1322; }
.user-status-active { background: #f0fdf4; color: #16a34a; }
.user-status-disabled { background: #f3f4f6; color: #6b7280; }
.save-bar {
    position: sticky;
    bottom: 0;
    padding: 12px 0;
    background: linear-gradient(180deg, transparent, #f5f5f5 30%);
}
.menu-badge.hidden { display: none; }
a.btn-primary,
a.btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}
.detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}
.detail-row:last-child {
    border-bottom: none;
}
.detail-row--action {
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    align-items: center;
}
.detail-row--action:active {
    background: #fafafa;
}
.detail-value--link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #4f46e5;
    font-weight: 600;
}
.detail-value--link svg {
    width: 16px;
    height: 16px;
}
.detail-row-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
}
.withdraw-review-empty {
    padding: 24px 12px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}
.withdraw-review-summary {
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 10px;
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
}
.withdraw-review-summary p + p {
    margin-top: 6px;
}
.withdraw-review-amount {
    margin-top: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #4f46e5;
}
.withdraw-channel-detail p + p {
    margin-top: 6px;
}
.withdraw-channel-field {
    margin-top: 10px;
}
.withdraw-channel-qrcode {
    display: block;
    max-width: 100%;
    max-height: 200px;
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    object-fit: contain;
}
.voucher-upload-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 160px;
    padding: 0;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    overflow: hidden;
}
.voucher-upload-trigger:hover {
    border-color: #818cf8;
    background: #f5f3ff;
}
.voucher-preview-img {
    width: 100%;
    max-height: 192px;
    object-fit: contain;
    background: #f9fafb;
}
.voucher-preview-img.hidden {
    display: none;
}
.voucher-upload-placeholder {
    color: #9ca3af;
    font-size: 14px;
    padding: 24px 16px;
    text-align: center;
}
.voucher-upload-placeholder.hidden {
    display: none;
}
.withdraw-review-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}
.balance-summary-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.balance-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 10px;
}
.balance-summary-label {
    font-size: 13px;
    color: #6b7280;
}
.balance-summary-value {
    font-size: 18px;
    font-weight: 800;
    color: #111;
}
.balance-summary-value.is-total {
    color: #4f46e5;
}
.balance-summary-hint {
    margin-top: 10px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
}
.deduct-field {
    margin-top: 4px;
}
.deduct-field + .deduct-field {
    margin-top: 12px;
}
.deduct-field-label {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
    font-weight: 600;
}
.deduct-field-label span {
    color: #ef4444;
}
.deduct-field-input,
.deduct-field-textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #111;
    background: #fff;
}
.deduct-field-textarea {
    min-height: 88px;
    resize: vertical;
}
.deduct-available {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}
.detail-label {
    color: #6b7280;
    flex-shrink: 0;
}
.detail-value {
    color: #111;
    font-weight: 500;
    text-align: right;
}
.detail-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    margin-bottom: 12px;
}
.detail-hero-type {
    font-size: 12px;
    opacity: 0.9;
}
.detail-hero-title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 4px;
}
.detail-hero--rider {
    background: linear-gradient(135deg, #047857 0%, #10b981 55%, #34d399 100%);
}
.detail-hero--takeout {
    background: linear-gradient(135deg, #6d5d4f 0%, #8a7a6b 55%, #a6988c 100%);
}
.detail-status-strip--takeout-pending {
    background: #fff7e6;
    color: #d46b08;
    border: 1px solid #ffd591;
}
.detail-status-strip--takeout-pickup {
    background: #e6f4ff;
    color: #1677ff;
    border: 1px solid #91caff;
}
.detail-status-strip--takeout-delivering {
    background: #f9f0ff;
    color: #722ed1;
    border: 1px solid #d3adf7;
}
.detail-status-strip--takeout-done {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}
.detail-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.detail-hero-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.detail-task-strip {
    display: block;
    margin: 0 0 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}
.detail-task-strip--busy {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.detail-task-strip--idle {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.detail-task-strip--offline {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}
.detail-insurance-card {
    margin: 0 0 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
}
.detail-insurance-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.detail-insurance-status {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}
.detail-insurance-status.is-none {
    color: #6b7280;
}
.detail-insurance-status.is-premium-paid {
    color: #b45309;
}
.detail-insurance-status.is-insured {
    color: #15803d;
}
.detail-insurance-price {
    font-size: 13px;
    color: #6b7280;
    flex-shrink: 0;
}
.detail-insurance-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.detail-insurance-btn {
    flex: 1.45 1 0;
    min-width: 0;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: #52c41a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0 10px;
}
.detail-insurance-btn--batch {
    flex: 0.85 0 0;
    background: #1677ff;
}
.detail-insurance-btn:active:not(:disabled) {
    opacity: 0.92;
}
.detail-insurance-btn:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}
.detail-identity-card {
    margin: 0 0 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
}
.detail-identity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.detail-identity-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}
.detail-identity-status {
    font-size: 13px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}
.detail-identity-status.is-none {
    background: #f3f4f6;
    color: #6b7280;
}
.detail-identity-status.is-pending {
    background: #fff7e6;
    color: #d46b08;
}
.detail-identity-status.is-approved {
    background: #f6ffed;
    color: #389e0d;
}
.detail-identity-status.is-rejected {
    background: #fff1f0;
    color: #cf1322;
}
.detail-identity-meta {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 10px;
}
.detail-identity-reject {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff1f0;
    color: #cf1322;
    font-size: 13px;
    line-height: 1.5;
}
.detail-identity-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.detail-identity-photo {
    aspect-ratio: 1.2;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}
.detail-identity-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.detail-identity-photo span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 12px;
    color: #9ca3af;
}
.detail-identity-reject-field {
    margin-bottom: 12px;
}
.detail-identity-reject-field textarea {
    width: 100%;
    min-height: 72px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}
.detail-identity-actions {
    display: flex;
    gap: 10px;
}
.detail-identity-btn {
    flex: 1;
    height: 40px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.detail-identity-btn--approve {
    border: none;
    background: #52c41a;
    color: #fff;
}
.detail-identity-btn--reject {
    border: 1px solid #ff4d4f;
    background: #fff;
    color: #ff4d4f;
}
.detail-identity-btn:active:not(:disabled) {
    opacity: 0.85;
}
.detail-identity-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.detail-row .detail-identity-status {
    font-size: 13px;
    padding: 2px 8px;
}
.batch-insurance-days-row {
    margin-top: 4px;
}
.batch-insurance-days-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #111;
    background: #fff;
}
.batch-insurance-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
}
.copy-field {
    margin-bottom: 14px;
}
.copy-field-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}
.copy-field-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #eef0f3;
}
.copy-field-value {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    word-break: break-all;
}
.copy-field-btn {
    flex-shrink: 0;
    border: none;
    background: #fff;
    color: #52c41a;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #d9f7be;
    cursor: pointer;
}
.copy-field-btn:active {
    opacity: 0.85;
}
.insurance-skip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 12px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
}
.insurance-skip-input {
    width: 16px;
    height: 16px;
}
.policy-upload-wrap.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}
.insurance-policy-hint {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #ef4444;
}
.insurance-policy-hint.hidden {
    display: none;
}
.policy-upload-grid {
    margin-top: 6px;
}
.policy-upload-grid .consign-upload-add,
.policy-upload-grid .consign-upload-thumb {
    min-height: 96px;
}
.detail-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.detail-stat-item {
    background: #fff;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.detail-stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}
.detail-stat-label {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
    font-weight: 600;
}
.detail-stat-item--btn {
    border: none;
    cursor: pointer;
    font: inherit;
    width: 100%;
    transition: transform 0.1s, box-shadow 0.15s;
}
.detail-stat-item--btn:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.detail-stat-item--btn .detail-stat-value {
    color: #4f46e5;
}
.detail-deposit-status {
    display: block;
    margin: 0 0 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}
.detail-deposit-status--pending {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}
.detail-card--images {
    margin-top: 12px;
}
.detail-images-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}
.detail-images-empty {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    padding: 16px 0;
}
.detail-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.detail-image-item {
    display: block;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}
.detail-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.detail-deposit-status--paid {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.detail-footer {
    position: sticky;
    bottom: 0;
    padding: 12px 0 8px;
    background: linear-gradient(180deg, transparent, #f5f5f5 24%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.detail-footer--row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
}
.detail-footer .btn-primary,
.detail-footer .btn-outline,
.detail-footer .btn-danger {
    flex: none;
    width: 100%;
    min-height: 40px;
    padding: 0 8px;
    font-size: 13px;
}
.detail-footer--row .btn-primary,
.detail-footer--row .btn-outline,
.detail-footer--row .btn-ghost,
.detail-footer--row .btn-danger {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    font-size: 12px;
    white-space: nowrap;
}
.detail-footer--row .btn-outline {
    min-height: 40px;
    padding: 0 8px;
}
.btn-danger {
    height: 36px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    cursor: pointer;
}
.btn-danger:active {
    opacity: 0.85;
}
.btn-danger:disabled,
.btn-outline:disabled,
.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.report-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.report-metric {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.report-metric-value {
    font-size: 22px;
    font-weight: 900;
    color: #4f46e5;
    line-height: 1.1;
}
.report-metric-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}
.report-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.report-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}
.report-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 120px;
    padding-top: 8px;
}
.report-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    justify-content: flex-end;
}
.report-bar {
    width: 100%;
    max-width: 28px;
    background: linear-gradient(180deg, #818cf8, #4f46e5);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
}
.report-bar-label {
    font-size: 10px;
    color: #9ca3af;
}
.report-split {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.report-split-item {
    flex: 1;
    background: #f9fafb;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}
.report-split-value {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}
.report-split-label {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}
.report-rank-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #f5f5f5;
}
.report-rank-row:first-of-type {
    border-top: none;
    padding-top: 0;
}
.report-rank-no {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.report-rank-no.top {
    background: #4f46e5;
    color: #fff;
}
.report-rank-info {
    flex: 1;
    min-width: 0;
}
.report-rank-name {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.report-rank-meta {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}
.report-rank-income {
    font-size: 13px;
    font-weight: 700;
    color: #4f46e5;
    flex-shrink: 0;
}

.sub-header-actions {
    position: absolute;
    right: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2px;
}
.sub-action {
    position: absolute;
    right: 12px;
    z-index: 2;
    padding: 6px;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
}
.sub-header-actions .sub-action {
    position: relative;
    right: auto;
}
.sub-action-text {
    position: relative;
    z-index: 2;
    padding: 6px 4px;
    border: none;
    background: transparent;
    color: #4f46e5;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.sub-action-text:active {
    opacity: 0.75;
}
.withdraw-channel-anchor {
    position: relative;
}
.insurance-settings-anchor {
    position: relative;
}
.insurance-settings-popover {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 240px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 12px 14px;
    z-index: 60;
}
.insurance-settings-popover.hidden {
    display: none;
}
.insurance-settings-popover-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}
.insurance-settings-popover-hint {
    margin-top: 4px;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.4;
}
.insurance-price-row {
    margin-top: 12px;
}
.insurance-price-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}
.insurance-price-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    color: #111;
    background: #fff;
}
.insurance-price-save {
    width: 100%;
    margin-top: 12px;
    height: 36px;
    border-radius: 8px;
    font-size: 14px;
}
.withdraw-channel-popover {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 240px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 12px 14px;
    z-index: 60;
}
.withdraw-channel-popover.hidden {
    display: none;
}
.withdraw-channel-popover-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}
.withdraw-channel-popover-hint {
    margin-top: 4px;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.4;
}
.withdraw-channel-rows {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.withdraw-channel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    background: #f9fafb;
    border-radius: 8px;
}
.withdraw-channel-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}
.sub-action-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    pointer-events: none;
}
.sub-action-badge.hidden {
    display: none;
}
.rent-list { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.rent-card .consign-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}
.rent-card .consign-actions .btn-ghost,
.rent-card .consign-actions .btn-primary {
    flex: none;
    height: auto;
}
.rent-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    flex-shrink: 0;
}
.rent-tag--on { background: #f0fdf4; color: #16a34a; }
.rent-tag--off { background: #f3f4f6; color: #6b7280; }
.rent-tag--pending { background: #fff7ed; color: #ea580c; }
.rent-meta { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.rent-btn-reject { color: #dc2626; }
.rent-btn-delete { color: #dc2626; }
.rent-detail-page {
    padding-bottom: 88px;
}
.rent-detail-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    margin-bottom: 14px;
}
.rent-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rent-detail-cover--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #d1d5db;
}
.rent-detail-cover__ph {
    color: #9ca3af;
    font-size: 14px;
}
.rent-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.rent-detail-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    margin: 0 0 6px;
}
.rent-detail-price {
    font-size: 22px;
    font-weight: 800;
    color: #4f46e5;
    margin: 0;
}
.rent-detail-price span {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}
.rent-detail-section {
    margin-bottom: 16px;
}
.rent-detail-section__title {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 8px;
}
.rent-detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.rent-detail-gallery__item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    display: block;
}
.rent-detail-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rent-detail-empty {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
    padding: 8px 0;
}
.detail-row--stack {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}
.detail-value--left {
    text-align: left;
}
.detail-value--full {
    width: 100%;
}
.rent-detail-location {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #4f46e5;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.rent-detail-location:active {
    background: #f3f4f6;
}
.rent-detail-phone {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}
.rent-detail-intro__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    white-space: pre-wrap;
    word-break: break-word;
}
.rent-detail-info {
    margin-bottom: 0;
}
.rent-detail-intro {
    margin-bottom: 0;
}
.tab-chip-badge {
    display: inline-block;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    margin-left: 4px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}
.tab-chip.active .tab-chip-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #4f46e5;
}
.consign-list { margin-top: 8px; }
.consign-card { padding: 12px; }
.consign-card-main {
    display: flex;
    gap: 12px;
}
.consign-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: #f3f4f6 center/cover no-repeat;
    flex-shrink: 0;
}
.consign-info { flex: 1; min-width: 0; }
.consign-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.consign-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}
.consign-status {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    flex-shrink: 0;
}
.consign-status--on { background: #f0fdf4; color: #16a34a; }
.consign-status--off { background: #f3f4f6; color: #6b7280; }
.consign-price {
    font-size: 14px;
    font-weight: 700;
    color: #ea580c;
    margin-top: 4px;
}
.consign-desc {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    line-height: 1.4;
}
.consign-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
}
.btn-ghost {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-ghost:active { background: #f9fafb; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-text-danger {
    border: none;
    background: transparent;
    color: #dc2626;
    font-size: 14px;
    padding: 10px;
    cursor: pointer;
}
.form-input--wide { width: 160px; }
.form-row--col {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}
.form-row--col .form-label { align-self: flex-start; }
.form-row--full .form-input-full {
    width: 100%;
    text-align: left;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    font-weight: 500;
    box-sizing: border-box;
}
.form-address-input {
    width: 100%;
    text-align: left;
    line-height: 1.5;
    word-break: break-all;
    box-sizing: border-box;
}
.form-spec-block {
    padding: 14px 0;
    border-top: 1px solid #f5f5f5;
}
.form-spec-block__label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #374151;
}
.form-spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.form-spec-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.form-spec-item--full {
    grid-column: 1 / -1;
}
.form-elevator-options {
    display: flex;
    gap: 10px;
}
.form-elevator-option {
    flex: 1;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.form-elevator-option.active {
    background: #eef2ff;
    border-color: #4f46e5;
    color: #4f46e5;
}
.form-spec-item__label {
    font-size: 12px;
    color: #6b7280;
}
.form-spec-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 6px;
    font-size: 13px;
    color: #111;
    font-weight: 500;
    box-sizing: border-box;
    text-align: left;
    outline: none;
    background: #fff;
}
.form-spec-input:focus {
    border-color: #4f46e5;
}
.rent-cover-box {
    margin-bottom: 16px;
}
.rent-cover-preview {
    position: relative;
    width: 100%;
    max-width: 240px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background: #f3f4f6 center/cover no-repeat;
    margin-bottom: 10px;
    overflow: hidden;
}
.rent-cover-preview--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #d1d5db;
    background: #f9fafb;
}
.rent-cover-placeholder {
    font-size: 13px;
    color: #9ca3af;
}
.rent-cover-change {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 13px;
    color: #4f46e5;
    font-weight: 600;
    cursor: pointer;
}
.rent-cover-remove {
    position: absolute;
    top: 6px;
    right: 6px;
}
.rent-detail-grid {
    margin-bottom: 16px;
}
.form-contact-block {
    padding: 14px 0;
    border-top: 1px solid #f5f5f5;
}
.form-contact-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.form-contact-head .form-spec-block__label {
    margin-bottom: 0;
}
.form-contact-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.form-contact-toggle__label {
    font-size: 13px;
    color: #374151;
    font-weight: 600;
    white-space: nowrap;
}
.form-contact-hint {
    margin: 0 0 10px;
    padding: 0;
}
.form-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8px;
}
.rent-location-pick {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}
.rent-location-pick:active {
    background: #f9fafb;
}
.rent-location-text {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #111;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-all;
}
.rent-location-text--empty {
    color: #9ca3af;
    font-weight: 400;
}
.rent-location-icon {
    color: #4f46e5;
    flex-shrink: 0;
}
.rent-map-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.rent-map-modal.hidden {
    display: none;
}
.rent-map-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.rent-map-modal__panel {
    position: relative;
    width: 100%;
    max-width: 450px;
    max-height: 88vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 0 14px 16px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
    z-index: 1;
}
.rent-map-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 8px;
}
.rent-map-modal__title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}
.rent-map-modal__close {
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 8px;
}
.rent-map-hint {
    margin: 0 0 8px;
    padding: 0;
}
.rent-location-map {
    width: 100%;
    height: 52vh;
    min-height: 240px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 0;
}
.rent-map-coords {
    margin: 8px 0 12px;
    font-size: 12px;
    color: #6b7280;
}
.rent-map-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.form-spec-input--locked {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}
.consign-textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}
.consign-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 4px;
}
.consign-upload-add,
.consign-upload-thumb {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
}
.consign-upload-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    color: #6b7280;
    cursor: pointer;
}
.consign-upload-thumb { border-style: solid; border-color: #e5e7eb; }
.consign-upload-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.consign-upload-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.consign-cover-tag {
    position: absolute;
    left: 4px;
    bottom: 4px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(79,70,229,0.9);
    color: #fff;
    font-weight: 600;
}

.warehouse-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.warehouse-stat {
    background: #fff;
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.warehouse-stat-num {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #0d9488;
    line-height: 1.2;
}
.warehouse-stat-label {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}
.warehouse-status {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    flex-shrink: 0;
}
.warehouse-status--stock { background: #ecfdf5; color: #059669; }
.warehouse-status--listed { background: #eff6ff; color: #2563eb; }
.warehouse-status--out { background: #f3f4f6; color: #6b7280; }
.warehouse-source-card {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.warehouse-source-title {
    font-size: 13px;
    font-weight: 700;
    color: #115e59;
}
.warehouse-source-meta {
    font-size: 12px;
    color: #0f766e;
    margin-top: 4px;
}
.warehouse-source-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #0d9488;
    text-decoration: none;
}
.warehouse-source-link:active { opacity: 0.7; }

/* 公益活动 — 备忘录式编辑 */
.welfare-memo-body {
    background: #fff;
}
.welfare-memo-app {
    background: #fff;
    box-shadow: none;
}
.welfare-memo-body-inner {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 48px - 72px);
}
.welfare-memo-title {
    width: 100%;
    padding: 14px 16px 10px;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    outline: none;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    background: #fff;
    font-family: inherit;
    box-sizing: border-box;
}
.welfare-memo-title::placeholder {
    color: #9ca3af;
    font-weight: 500;
}
.welfare-memo-input {
    flex: 1;
    width: 100%;
    min-height: 46vh;
    padding: 12px 16px 8px;
    border: none;
    outline: none;
    resize: none;
    font-size: 16px;
    line-height: 1.65;
    color: #111;
    background: #fff;
    font-family: inherit;
    box-sizing: border-box;
}
.welfare-memo-input::placeholder {
    color: #9ca3af;
}
.welfare-memo-images-wrap {
    padding: 8px 12px 16px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}
.welfare-memo-grid {
    margin: 0;
}
.welfare-memo-grid .consign-upload-add {
    width: 72px;
    height: 72px;
}
.welfare-memo-grid .consign-upload-thumb {
    width: 72px;
    height: 72px;
}
.welfare-memo-delete {
    display: block;
    width: 100%;
    margin: 0;
    padding: 16px;
    border: none;
    background: transparent;
    color: #dc2626;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
}
.welfare-memo-delete:active {
    opacity: 0.7;
}
.welfare-memo-save-top {
    font-size: 15px;
    font-weight: 700;
    width: auto;
    padding: 6px 4px;
}
.welfare-memo-extra {
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}
.welfare-memo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: #374151;
    text-align: left;
    box-sizing: border-box;
}
.welfare-memo-row--pick {
    cursor: pointer;
}
.welfare-memo-row--pick:active {
    background: #f9fafb;
}
.welfare-memo-row__label {
    flex-shrink: 0;
    color: #6b7280;
    min-width: 7.5em;
}
.welfare-memo-row__value {
    flex: 1;
    min-width: 0;
    text-align: right;
    color: #111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.welfare-memo-row__value--placeholder {
    color: #9ca3af;
}
.welfare-memo-row__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #4f46e5;
}
.welfare-memo-row__input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #111;
    text-align: right;
    font-family: inherit;
}
.welfare-memo-row__input::placeholder {
    color: #9ca3af;
}

.lf-detail-app .save-bar {
    display: flex;
    gap: 12px;
}
.lf-detail-app .save-bar .flex-1 {
    flex: 1;
}
.lf-detail-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.lf-detail-cover {
    width: 100%;
    height: 220px;
    background: #f3f4f6 center/cover no-repeat;
}
.lf-detail-main {
    padding: 16px;
}
.lf-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.lf-detail-title {
    font-size: 18px;
    font-weight: 900;
    color: #111;
    flex: 1;
    line-height: 1.4;
}
.lf-detail-meta {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 6px;
}
.lf-detail-meta strong {
    color: #374151;
    font-weight: 700;
}
.lf-detail-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.lf-detail-section-title {
    font-size: 14px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
}
.lf-detail-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    white-space: pre-wrap;
}
.lf-detail-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}
.lf-detail-image {
    aspect-ratio: 1;
    border-radius: 8px;
    background: #f3f4f6 center/cover no-repeat;
}

.pull-refresh-hint {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    padding: 8px 0 4px;
    transition: color 0.15s;
}
.pull-refresh-hint:not(.hidden) {
    color: #4f46e5;
}

.lf-edit-app .lf-edit-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.lf-edit-kind {
    display: flex;
    gap: 10px;
}
.lf-kind-btn {
    flex: 1;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
}
.lf-kind-btn.active {
    border-color: #4f46e5;
    background: #eef2ff;
    color: #4f46e5;
}
.lf-edit-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lf-edit-label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}
.lf-edit-input,
.lf-edit-textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}
.lf-edit-textarea {
    resize: vertical;
    min-height: 100px;
}
.lf-edit-tip {
    margin: -4px 0 10px;
    font-size: 12px;
    color: #9ca3af;
}
.lf-edit-image-grid {
    max-width: 360px;
}
.lf-edit-image-grid .consign-upload-thumb img {
    cursor: pointer;
}

/* 跑腿设置 */
.errand-vehicle-accordion {
    overflow: hidden;
    padding: 0;
}
.errand-empty {
    padding: 16px;
    margin: 0;
}
.errand-vehicle-item + .errand-vehicle-item {
    border-top: 1px solid #eef0f3;
}
.errand-vehicle-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 8px 0 0;
    background: #fff;
}
.errand-vehicle-summary__toggle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 0 8px 0 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}
.errand-vehicle-summary__toggle:active {
    background: #f9fafb;
}
.errand-vehicle-summary__name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}
.errand-vehicle-summary__arrow {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    color: #9ca3af;
    transition: transform .2s ease, color .2s ease;
}
.errand-vehicle-item.is-expanded .errand-vehicle-summary__arrow {
    transform: rotate(90deg);
    color: #b45309;
}
.errand-vehicle-item.is-expanded .errand-vehicle-summary__toggle {
    background: #fffbeb;
}
.errand-vehicle-summary__delete {
    flex-shrink: 0;
    margin-right: 8px;
    padding: 6px 10px;
}
.errand-vehicle-detail {
    display: none;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}
.errand-vehicle-item.is-expanded .errand-vehicle-detail {
    display: block;
}
.errand-vehicle-detail__inner {
    padding: 12px 16px 16px;
}
.errand-vehicle-detail__inner .form-row:first-child {
    border-top: none;
}
.errand-vehicle-save-bar {
    margin-top: 16px;
    padding-top: 4px;
}
.errand-vehicle-save {
    width: 100%;
    height: 44px;
    border-radius: 10px;
}
.dim-inputs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}
.dim-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dim-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}
.dim-optional {
    margin-left: 4px;
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
}
.dim-input {
    width: 100%;
    min-width: 0;
}
.dispatch-segment {
    display: flex;
    width: 100%;
    padding: 4px;
    border-radius: 12px;
    background: #f3f4f6;
    gap: 4px;
}
.dispatch-segment__btn {
    flex: 1;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 8px;
    border-radius: 9px;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
}
.dispatch-segment__btn.active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}
.dispatch-segment__btn[data-value="rider"].active {
    color: #15803d;
}
.dispatch-segment__btn[data-value="admin"].active {
    color: #b45309;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}
.pricing-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pricing-field--full {
    grid-column: 1 / -1;
}
.pricing-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}
.pricing-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pricing-input {
    flex: 1;
    min-width: 0;
}
.pricing-unit {
    flex-shrink: 0;
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
}
.errand-price-hint {
    margin: 4px 0 0;
    color: #4b5563;
}
.extra-step-segment .dispatch-segment__btn {
    font-size: 12px;
    padding: 9px 6px;
}
.extra-pricing-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.extra-step-custom-wrap.hidden {
    display: none;
}
.extra-price-wrap {
    margin-top: 2px;
}
.pricing-prefix {
    flex-shrink: 0;
    font-size: 13px;
    color: #4b5563;
    white-space: nowrap;
}
.pricing-prefix strong {
    color: #b45309;
    font-weight: 700;
}
.errand-delete-confirm-btn {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}
.errand-weight-tiers .errand-weight-tier {
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
}
.errand-weight-tiers .errand-weight-tier:first-child {
    border-top: none;
    padding-top: 0;
}
.errand-tier-delete {
    margin-top: 8px;
    color: #dc2626;
    font-size: 13px;
}
.errand-settings-top-links {
    margin-bottom: 20px;
}
.errand-type-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 16px;
}
.errand-type-tab {
    border: none;
    background: transparent;
    padding: 10px 4px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1.35;
    text-align: center;
}
.errand-type-tab.active {
    background: #fff;
    color: #111827;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.errand-settings-panel.hidden {
    display: none;
}
.form-subsection-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 10px;
}
.errand-service-summary {
    padding: 14px 16px;
}
.errand-summary-line {
    margin: 10px 0 0;
    font-size: 13px;
    color: #b45309;
    line-height: 1.5;
}

.ad-preview-section {
    margin-bottom: 20px;
    padding: 14px;
    background: #f9fafb;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

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

.ad-preview-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.ad-preview-hint {
    font-size: 11px;
    color: #9ca3af;
}

.ad-preview-wrap {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: #a688ff;
    aspect-ratio: 750 / 520;
    box-shadow: none;
}

.ad-preview-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s ease;
}

.ad-preview-slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ad-preview-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.ad-preview-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.ad-preview-dot.active {
    width: 18px;
    background: #fff;
}

.ad-preview-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.6);
}

.ad-preview-empty.hidden {
    display: none;
}

.ad-banner-form {
    margin-bottom: 20px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.ad-banner-form.hidden {
    display: none;
}

.ad-form-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}

.ad-form-grid {
    margin-bottom: 12px;
}

.ad-form-field {
    display: block;
    margin-bottom: 12px;
}

.ad-form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
}

.ad-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.ad-form-sublabel {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 8px;
    line-height: 1.4;
}

.ad-form-help {
    font-size: 11px;
    color: #9ca3af;
    margin: 6px 0 0;
    line-height: 1.45;
}

.ad-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.ad-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.ad-image-editor-wrap {
    margin-bottom: 16px;
}

.ad-upload-row {
    display: flex;
    justify-content: flex-start;
}

.ad-upload-row.hidden {
    display: none;
}

.ad-upload-row .consign-upload-add {
    width: 125px;
    height: 125px;
}

.ad-crop-editor.hidden {
    display: none;
}

.ad-crop-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    line-height: 1.5;
    pointer-events: none;
    z-index: 1;
}

.ad-crop-placeholder.hidden {
    display: none;
}

.ad-crop-hint {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 10px;
    line-height: 1.45;
}

.ad-crop-frame {
    position: relative;
    width: 100%;
    min-height: 180px;
    aspect-ratio: 750 / 520;
    background: #a688ff;
    overflow: hidden;
    border: 2px solid #7e57c2;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.ad-crop-frame.is-dragging {
    cursor: grabbing;
}

.ad-crop-image {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: none;
    pointer-events: none;
    will-change: transform;
    z-index: 2;
    opacity: 0;
}

.ad-crop-image.is-ready {
    opacity: 1;
}

.ad-crop-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.ad-crop-controls-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
}

.ad-crop-zoom-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-size: 20px;
    line-height: 1;
    color: #374151;
    cursor: pointer;
    flex-shrink: 0;
}

.ad-crop-zoom-range {
    flex: 1;
    min-width: 100px;
    accent-color: #7e57c2;
}

.ad-crop-repick {
    margin-left: auto;
}
