* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
    background: #eef1f6;
    min-height: 100vh;
    padding: 14px;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    align-items: stretch;
}

.form-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    position: static;
    order: 1;
}

.upload-panel {
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    background: transparent;
    text-align: center;
}

.upload-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #dcecff 100%);
    color: #174f9f;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(23, 79, 159, 0.18);
}

.upload-actions-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.manual-entry-btn {
    background: linear-gradient(180deg, #ffffff 0%, #f4eadf 100%);
    color: #7a4d1e;
}

.pitlog-link-btn {
    background: linear-gradient(180deg, #ffffff 0%, #eef6f0 100%);
    color: #284634;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 8px;
    padding: 8px 14px;
    border: 1px solid #d7deea;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #526174;
    font-size: 12px;
    font-weight: 900;
}

.file-pick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 9px 14px;
    border: 1px solid #d7deea;
    border-radius: 999px;
    background: #ffffff;
    color: #2f3440;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(47, 52, 64, 0.08);
}

.camera-icon {
    line-height: 1;
}

#cameraUpload {
    display: none;
}

.crop-panel {
    margin-top: 14px;
}

.crop-stage {
    position: relative;
    width: min(320px, 88vw);
    height: min(356px, 98vw);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 18px;
    background: #dbe4ef;
    touch-action: none;
}

.crop-stage img {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: none;
    transform: translate(-50%, -50%);
    user-select: none;
    -webkit-user-select: none;
}

.crop-frame {
    position: absolute;
    inset: 8%;
    border: 2px solid rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    box-shadow: 0 0 0 999px rgba(9, 18, 31, 0.32);
    pointer-events: none;
}

.crop-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.crop-btn {
    border: 0;
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 13px;
    font-weight: 800;
}

.crop-btn.primary {
    background: #1c6fd1;
    color: #fff;
}

.crop-btn.ghost {
    background: #fff;
    color: #2f3440;
}

.ocr-status {
    margin-top: 10px;
    color: #697386;
    font-size: 12px;
    text-align: center;
}

.ocr-progress {
    width: min(260px, 82vw);
    height: 8px;
    margin: 9px auto 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(178, 193, 215, 0.42);
}

.ocr-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f7ddf 0%, #55c3ff 100%);
    transition: width 180ms ease;
}

.upload-preview {
    width: min(320px, 88vw);
    margin: 10px auto 0;
    padding: 9px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 8px 24px rgba(33, 55, 84, 0.08);
    text-align: left;
}

.upload-preview-title {
    margin-bottom: 7px;
    color: #526174;
    font-size: 12px;
    font-weight: 800;
}

.upload-preview img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 10px;
    background: #dbe4ef;
}

.ocr-text {
    width: 100%;
    min-height: 86px;
    resize: vertical;
    margin-top: 8px;
    padding: 9px 10px;
    border: 1px solid #d7deea;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    background: #ffffff;
}

.ocr-text {
    display: none;
}

.ocr-text.visible {
    display: block;
}

.ocr-debug-btn {
    display: none;
    align-items: center;
    justify-content: center;
    margin-top: 9px;
    padding: 7px 11px;
    border: 1px solid #c7d6e8;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: #526174;
    font-size: 12px;
    font-weight: 800;
}

.preview-section {
    --label-gap: 10px;
    --label-columns: 2;
    --label-width: min(170px, calc((100vw - 38px) / var(--label-columns)));
    display: block;
    width: 100%;
    order: 2;
}

.labels-title {
    margin: 0;
    color: #2f3440;
    font-size: 15px;
    font-weight: 800;
}

.labels-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 4px 2px 10px;
    flex-wrap: wrap;
}

.labels-title {
    margin-right: auto;
}

.sort-select {
    margin-left: auto;
}

.view-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-toggle {
    border: 1px solid #d7deea;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #697386;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 800;
}

.view-toggle.active {
    background: #172235;
    border-color: #172235;
    color: #fff;
}

.sort-select {
    max-width: 150px;
    padding: 8px 10px;
    border: 1px solid #d7deea;
    border-radius: 999px;
    background: #fff;
    color: #2f3440;
    font-size: 12px;
    font-weight: 700;
}

.label-filter-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.label-filter-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #d7deea;
    border-radius: 999px;
    background: #fff;
    color: #697386;
    font-size: 14px;
    font-weight: 800;
    line-height: 28px;
    padding: 0;
}

.label-filter-btn.active {
    border-color: #172235;
    background: #172235;
    color: #fff;
}

.pickup-search-input {
    width: 64px;
    height: 30px;
    border: 1px solid #d7deea;
    border-radius: 999px;
    background: #fff;
    color: #2f3440;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    padding: 0 8px;
}

.clear-labels-btn {
    border: 1px solid #d7deea;
    border-radius: 999px;
    background: #fff;
    color: #697386;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 800;
}

.clear-labels-btn.danger {
    border-color: #f0b3b3;
    background: #fff4f4;
    color: #c43232;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 350px;
    margin: 0 auto 12px;
}

.stat-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 10px 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 6px 20px rgba(33, 55, 84, 0.08);
    text-align: center;
}

.stat-value {
    display: inline;
    color: #172235;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.stat-label {
    display: inline;
    margin-top: 0;
    color: #697386;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.labels-waterfall {
    display: grid;
    grid-template-columns: repeat(var(--label-columns), var(--label-width));
    justify-content: center;
    align-items: start;
    gap: 12px var(--label-gap);
    width: 100%;
}

.labels-waterfall[hidden] {
    display: none;
}

.load-more-labels {
    display: block;
    width: min(260px, 70vw);
    margin: 18px auto 0;
    padding: 12px 16px;
    border: 1px solid rgba(123, 149, 184, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(69, 90, 120, 0.12);
}

.load-more-labels[hidden] {
    display: none;
}

.load-more-labels:disabled {
    opacity: 0.65;
}

.calendar-panel {
    width: 100%;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 26px rgba(33, 55, 84, 0.08);
}

.calendar-panel[hidden] {
    display: none;
}

.calendar-header {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.calendar-title {
    text-align: center;
    color: #172235;
    font-size: 17px;
    font-weight: 900;
}

.calendar-nav {
    width: 40px;
    height: 34px;
    border: 1px solid #d7deea;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-weekdays {
    margin-bottom: 6px;
    color: #697386;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.calendar-day {
    aspect-ratio: 1 / 1;
    min-height: 0;
    border: 1px solid rgba(123, 149, 184, 0.22);
    border-radius: 4px;
    background: rgba(246, 249, 253, 0.78);
    color: #172235;
    font-size: 14px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

.calendar-day.is-empty {
    background: transparent;
    border-color: transparent;
}

.calendar-day.has-coffee {
    background: #aeddf0;
    border-color: rgba(23, 34, 53, 0.1);
    color: #000;
    font-size: 17px;
    font-weight: 900;
}

.calendar-day.is-today {
    outline: 2px solid rgba(23, 34, 53, 0.16);
    outline-offset: 1px;
}

.label-card-shell {
    position: relative;
    display: block;
    width: var(--label-width);
    max-width: 100%;
    margin: 0;
    cursor: pointer;
}

.labels-waterfall.batch-mode .label-card-shell {
    cursor: pointer;
}

.labels-waterfall.batch-mode .label-card-shell::before {
    content: "";
    position: absolute;
    right: 7px;
    top: 7px;
    z-index: 4;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(23, 34, 53, 0.52);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 4px 12px rgba(23, 34, 53, 0.18);
}

.labels-waterfall.batch-mode .label-card-shell.selected::before {
    border-color: #1c6fd1;
    background: #1c6fd1;
}

.labels-waterfall.batch-mode .label-card-shell.selected::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 11px;
    z-index: 5;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.labels-waterfall.batch-mode .label-card-shell.selected .label-card {
    outline: 3px solid rgba(28, 111, 209, 0.72);
    outline-offset: 2px;
}

.label-card-shell .white-tag {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 45 / 50;
    transform: none;
    transform-origin: initial;
}

.label-card-shell .label-card {
    width: var(--label-width);
    height: calc(var(--label-width) * 50 / 45);
    max-width: 100%;
    transform: none;
}

.label-mark-stack {
    position: absolute;
    z-index: 8;
    top: 3px;
    right: 3px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.label-mark {
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    color: rgba(23, 34, 53, 0.34);
    font-size: 15px;
    line-height: 22px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.42);
}

.label-mark-like,
.label-mark-dislike {
    font-size: 14px;
    filter: grayscale(1) contrast(1.8);
    opacity: 0.42;
}

.label-mark.active {
    color: #f5a400;
    text-shadow: 0 0 4px rgba(245, 164, 0, 0.42);
}

.label-mark-like.active {
    filter: none;
    opacity: 1;
}

.label-mark-dislike.active {
    filter: none;
    opacity: 1;
}

.label-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(13, 20, 32, 0.72);
    backdrop-filter: blur(8px);
}

.label-zoom-modal[hidden] {
    display: none;
}

.label-zoom-stage {
    --label-width: min(170px, calc((100vw - 38px) / 2));
    --label-scale: 1.28;
    display: flex;
    justify-content: center;
    width: 100%;
    max-height: 88vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.label-zoom-stage .label-card-shell {
    width: calc(var(--label-width) * var(--label-scale));
    height: calc(var(--label-width) * 50 / 45 * var(--label-scale));
    cursor: default;
}

.label-zoom-stage .label-card {
    width: var(--label-width);
    height: calc(var(--label-width) * 50 / 45);
    transform: scale(var(--label-scale));
    transform-origin: top left;
}

.label-zoom-close {
    position: fixed;
    right: 16px;
    top: 16px;
    z-index: 51;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #172235;
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
}

.manual-editor-modal {
    align-items: flex-start;
    padding-top: 48px;
}

.manual-editor-wrap {
    width: min(100%, 390px);
    max-height: calc(100vh - 78px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 12px 16px;
    border-radius: 22px;
    background: rgba(238, 241, 246, 0.98);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.manual-editor-title {
    color: #172235;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.manual-editor-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.manual-editor-nav[hidden] {
    display: none;
}

.manual-nav-btn {
    min-width: 68px;
    min-height: 32px;
    border: 1px solid #cbd6e6;
    border-radius: 999px;
    background: #fff;
    color: #263247;
    font-size: 13px;
    font-weight: 900;
}

.manual-nav-btn:disabled {
    opacity: 0.38;
}

.manual-editor-hint {
    display: none;
    margin: 6px 0 12px;
    color: #697386;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.manual-editor-stage {
    --label-width: min(170px, calc((100vw - 38px) / 2));
    --label-scale: 1.18;
    max-height: none;
    overflow: visible;
}

.manual-editor-stage .label-card-shell {
    cursor: default;
}

.manual-editor-stage [contenteditable="true"] {
    min-width: 8px;
    outline: 1px dashed rgba(28, 111, 209, 0.34);
    outline-offset: 1px;
    border-radius: 2px;
    -webkit-user-select: text;
    user-select: text;
}

.manual-editor-stage [contenteditable="true"]:focus {
    outline: 2px solid rgba(28, 111, 209, 0.82);
    background: rgba(255, 255, 255, 0.24);
}

.manual-editor-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.manual-extra-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 8px;
}

.manual-extra-field {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 6px;
    color: #526174;
    font-size: 11px;
    font-weight: 900;
}

.manual-extra-field input {
    width: 100%;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid #d7deea;
    border-radius: 9px;
    background: #fff;
    color: #172235;
    font-size: 13px;
    font-weight: 800;
}

.manual-extra-row {
    display: grid;
    gap: 6px;
}

.manual-extra-row.two-cols {
    grid-template-columns: minmax(0, 1fr) minmax(104px, 0.48fr);
}

.manual-extra-row.two-cols .manual-extra-field {
    grid-template-columns: 42px 1fr;
}

.manual-extra-row.two-cols .store-number-field {
    grid-template-columns: 48px 1fr;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(13, 20, 32, 0.46);
    backdrop-filter: blur(8px);
}

.auth-modal[hidden] {
    display: none;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    max-height: min(78vh, 560px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 28px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -18px 50px rgba(17, 34, 53, 0.22);
}

.auth-card::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: #d7deea;
    transform: translateX(-50%);
}

.auth-close {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #eef1f6;
    color: #172235;
    font-size: 22px;
    font-weight: 800;
}

.auth-title {
    padding-right: 46px;
    color: #172235;
    font-size: 20px;
    font-weight: 900;
}

.auth-help {
    padding-right: 46px;
    color: #6a7586;
    font-size: 12px;
    line-height: 1.55;
    font-weight: 800;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 18px 0 16px;
    padding: 4px;
    border-radius: 999px;
    background: #eef1f6;
}

.auth-tab {
    border: 0;
    border-radius: 999px;
    min-height: 42px;
    padding: 10px 12px;
    background: transparent;
    color: #697386;
    font-size: 13px;
    font-weight: 900;
}

.auth-tab.active {
    background: #ffffff;
    color: #172235;
    box-shadow: 0 6px 16px rgba(33, 55, 84, 0.08);
}

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

.auth-field {
    display: grid;
    gap: 5px;
    color: #526174;
    font-size: 12px;
    font-weight: 800;
}

.auth-field input {
    width: 100%;
    border: 1px solid #d7deea;
    min-height: 46px;
    border-radius: 15px;
    padding: 11px 12px;
    background: #fff;
    color: #172235;
    font-size: 15px;
    font-weight: 700;
}

.auth-message {
    min-height: 17px;
    color: #c43232;
    font-size: 12px;
    font-weight: 800;
}

.auth-submit,
.auth-logout {
    width: 100%;
    border: 0;
    border-radius: 999px;
    min-height: 46px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 900;
}

.auth-submit {
    background: #1c6fd1;
    color: #fff;
}

.auth-logout {
    margin-top: 10px;
    background: #fff4f4;
    color: #c43232;
}

.empty-labels {
    display: block;
    column-span: all;
    padding: 18px 14px;
    border: 1px dashed #c6d4e6;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
    color: #697386;
    font-size: 13px;
    text-align: center;
}

.white-tag {
    width: 45mm;
    height: 50mm;
    background: #b3dbef;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    position: absolute;
    left: 50%;
    top: 10px;
    padding: 0;
    transform: translateX(-50%) scale(2.08);
    transform-origin: top center;
    z-index: 2;
    overflow: hidden;
}

.white-tag.original-image-only > * {
    display: none;
}

.white-tag.overlay-alignment .absolute {
    opacity: 1;
}

/* 绝对定位通用类 */
.absolute {
    position: absolute;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.greeting {
    font-size: 8.6px;
    color: #000;
    font-weight: 800;
    white-space: nowrap;
}

.luckin-logo {
    width: 30px;
    height: 26px;
    display: none;
}

.blank-slot {
    background: transparent;
    border: 0;
}

.label-logo-img {
    display: none;
}

.qr-img {
    display: none;
}

.qrcode-placeholder {
    display: none;
    width: 0;
    height: 0;
}

.order-line {
    display: flex;
    align-items: flex-start;
    width: 88px;
    height: 25px;
    overflow: visible;
}

.order-number {
    font-size: 27px;
    font-weight: 900;
    color: #000;
    letter-spacing: 0;
    line-height: 0.92;
}

.order-meta {
    display: flex;
    flex-direction: column;
    gap: 1.4px;
    margin-left: 3px;
    padding-top: 6.2px;
}

.delivery {
    font-size: 6.7px;
    color: #000;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.cup-num {
    font-size: 6.2px;
    color: #000;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.drink-name {
    font-size: 10.8px;
    font-weight: 900;
    color: #000;
    width: 132px;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.drink-spec {
    font-size: 9.8px;
    color: #000;
    font-weight: 900;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ice-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 14px;
    height: 14px;
    padding: 0 2px;
    border-radius: 1px;
    background: #173f92;
    color: #fff;
    font-weight: 900;
    line-height: 1;
}

.drink-flavor {
    font-size: 8px;
    color: #000;
    white-space: nowrap;
    overflow: visible;
    width: 148px;
}

.divider {
    height: 1px;
    background: repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 3px);
}

.info-title {
    font-size: 6.5px;
    color: #000;
    font-weight: 800;
    white-space: nowrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 6.6px;
    color: #000;
    line-height: 1.18;
    white-space: nowrap;
    text-align: center;
    overflow: visible;
}

.info-item span {
    display: block;
    width: 100%;
    text-align: center;
}

.nutrition-separator {
    width: 1px;
    height: 13px;
    background: #000;
}

.has-four-identities .info-item {
    font-size: 5.7px;
}

.has-four-identities .info-item-1 {
    left: 9.8px !important;
    width: 33px !important;
}

.has-four-identities .nutrition-separator-1 {
    left: 45.6px !important;
}

.has-four-identities .info-item-2 {
    left: 49.8px !important;
    width: 33px !important;
}

.has-four-identities .nutrition-separator-2 {
    left: 86.2px !important;
}

.has-four-identities .info-item-3 {
    left: 90.2px !important;
    width: 33px !important;
}

.has-four-identities .nutrition-separator-3 {
    left: 126.6px !important;
    top: 131.2px !important;
    width: 1px !important;
    height: 13px !important;
}

.has-four-identities .info-item-4 {
    left: 130.2px !important;
    top: 131.739179px !important;
    width: 33px !important;
    height: 14px !important;
}

.info-note {
    font-size: 5.8px;
    color: #000;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    letter-spacing: 0;
}

.footer-line {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    width: 157px;
    overflow: visible;
}

.truth-note {
    padding: 18px 0 24px;
    text-align: center;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(73, 86, 105, 0.62);
}

.site-footer {
    padding: 0 0 26px;
    text-align: center;
    font-size: 11px;
    line-height: 1.45;
    color: rgba(73, 86, 105, 0.62);
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.make-time {
    display: inline-block;
    font-size: 6.9px;
    color: #000;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    width: 70px;
    overflow: visible;
}

.tip {
    display: inline-block;
    font-size: 6.9px;
    color: #000;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    overflow: visible;
    width: 82px;
}

.qrcode-placeholder {
    display: none;
    width: 0;
    height: 0;
}

.qr-number {
    display: none;
    font-size: 7px;
    color: #343944;
    font-weight: 500;
    white-space: nowrap;
}

.icons {
    display: none;
    font-size: 7px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    body {
        padding: 14px;
    }
}

@media (min-width: 560px) {
    .container {
        max-width: 640px;
    }

    .preview-section {
        --label-columns: 3;
        --label-width: min(170px, calc((100vw - 52px) / var(--label-columns)));
    }

    .stats-bar {
        max-width: 530px;
    }
}

@media (min-width: 820px) {
    .container {
        max-width: 820px;
    }

    .preview-section {
        --label-columns: 4;
        --label-width: min(170px, calc((100vw - 68px) / var(--label-columns)));
    }

    .stats-bar {
        max-width: 710px;
    }
}

@media (max-width: 380px) {
    .preview-section {
        --label-gap: 8px;
    }

    .label-card-shell {
        text-align: left;
    }
}
