        :root {
            --color-primary: #4f8cff;
            --color-primary-dark: #3b6de0;
            --color-secondary: #ff8fb1;
            --color-accent: #ffd45b;
            --color-success: #66c98f;
            --color-warning: #ffb347;
            --color-danger: #ff6f7d;
            --color-page: #fff7ef;
            --color-surface: #ffffff;
            --color-surface-soft: #fff2fa;
            --color-border: #eadcf6;
            --color-text: #2f3550;
            --color-muted: #7a8099;
            --shadow-card: 0 14px 30px rgba(119, 96, 170, 0.14);
            --shadow-soft: 0 8px 18px rgba(79, 140, 255, 0.12);
            --radius-xl: 26px;
            --radius-lg: 20px;
            --radius-md: 16px;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(180deg, #fff5fb 0%, var(--color-page) 100%);
            color: var(--color-text);
        }
        .container {
            max-width: 480px;
            margin: 0 auto;
            min-height: 100vh;
            background: rgba(255,255,255,0.72);
            backdrop-filter: blur(10px);
            box-shadow: 0 0 0 1px rgba(234,220,246,0.8);
        }
        .header {
            background: linear-gradient(135deg, #62a7ff 0%, #7f7bff 55%, #ff9dc2 100%);
            color: white;
            padding: 22px 20px 24px;
            text-align: center;
            border-bottom-left-radius: 28px;
            border-bottom-right-radius: 28px;
            box-shadow: var(--shadow-card);
        }
        .header h1 { font-size: 22px; margin-bottom: 6px; font-weight: 800; }
        .header p { font-size: 12px; opacity: 0.92; }
        .screen {
            display: none;
            padding: 18px 18px 110px;
            min-height: calc(100vh - 88px);
        }
        .screen.active { display: block; }
        .btn {
            display: inline-block;
            padding: 13px 22px;
            border: none;
            border-radius: 999px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
            box-shadow: var(--shadow-soft);
        }
        .btn:active { transform: scale(0.97); }
        .btn-primary { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%); color: white; }
        .btn-secondary { background: #eef4ff; color: var(--color-primary-dark); }
        .btn-success { background: linear-gradient(135deg, var(--color-success) 0%, #8de3ad 100%); color: white; }
        .btn-warning { background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-warning) 100%); color: #7a4d00; }
        .btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
        .form-group { margin-bottom: 15px; }
        .form-group label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--color-muted); font-weight: 600; }
        .form-group input, .form-group textarea, select {
            width: 100%;
            padding: 13px 14px;
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            font-size: 15px;
            background: #fffdfa;
            color: var(--color-text);
        }
        .card {
            background: var(--color-surface);
            border-radius: var(--radius-lg);
            padding: 16px;
            margin-bottom: 15px;
            box-shadow: var(--shadow-card);
            border: 1px solid rgba(234,220,246,0.88);
        }
        .card-title { font-size: 17px; font-weight: 800; margin-bottom: 10px; color: var(--color-text); }
        .card-content { font-size: 14px; color: var(--color-muted); }
        .nav {
            position: fixed;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 20px);
            max-width: 460px;
            background: rgba(255,255,255,0.96);
            display: flex;
            border: 1px solid rgba(234,220,246,0.9);
            border-radius: 24px;
            z-index: 100;
            box-shadow: var(--shadow-card);
            padding: 6px;
        }
        .nav-item {
            flex: 1;
            padding: 10px 0;
            text-align: center;
            font-size: 12px;
            color: var(--color-muted);
            cursor: pointer;
            border-radius: 18px;
            font-weight: 600;
        }
        .nav-item.active { color: var(--color-primary-dark); background: #eef4ff; }
        .nav-item span { display: block; font-size: 22px; margin-bottom: 3px; }
        .hidden { display: none !important; }
        .login-screen {
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 100vh;
            background: linear-gradient(180deg, #ffeef7 0%, #fff7ef 100%);
            padding: 18px;
        }
        .login-box {
            background: rgba(255,255,255,0.96);
            padding: 30px 24px;
            border-radius: 28px;
            box-shadow: 0 22px 44px rgba(116, 94, 171, 0.16);
            border: 1px solid rgba(234,220,246,0.9);
        }
        .login-box h2 { text-align: center; margin-bottom: 20px; color: var(--color-text); font-size: 24px; font-weight: 800; }
        .loading { text-align: center; padding: 40px; color: var(--color-muted); font-weight: 600; }
        .loading::after { content: '...'; animation: dots 1.5s infinite; }
        @keyframes dots { 0%,20%{content:'.'} 40%{content:'..'} 60%,100%{content:'...'} }
        .image-result { text-align: center; margin: 20px 0; }
        .image-result img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 22px;
            box-shadow: 0 14px 28px rgba(116,94,171,0.14);
            border: 1px solid rgba(234,220,246,0.9);
        }
        .learn-image-frame {
            width: 100%;
            height: 220px;
            border-radius: 22px;
            overflow: hidden;
            background: #f6f1fd;
            border: 1px solid rgba(234,220,246,0.9);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .learn-image-placeholder {
            width: 100%;
            height: 220px;
            border-radius: 22px;
            border: 1px dashed rgba(217,202,239,0.9);
            background: #f6f1fd;
            color: var(--color-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 600;
        }
        .image-result .sentence { margin-top: 15px; font-size: 18px; color: var(--color-text); font-weight: 800; }
        .audio-btn {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            margin: 10px;
            box-shadow: var(--shadow-soft);
        }
        .audio-btn:active { transform: scale(0.95); }
        .record-btn {
            width: 88px;
            height: 88px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--color-danger) 0%, #ff8f96 100%);
            border: none;
            color: white;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 14px 24px rgba(255,111,125,0.24);
        }
        .record-btn.recording { animation: pulse 1s infinite; }
        @keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }
        .progress-bar {
            height: 10px;
            background: #f0ebfa;
            border-radius: 999px;
            overflow: hidden;
            margin: 10px 0;
        }
        .progress-bar .fill {
            height: 100%;
            background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-secondary) 100%);
            transition: width 0.3s;
            border-radius: 999px;
        }
        .badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; margin: 2px; font-weight: 700; }
        .badge-new { background: #eef4ff; color: var(--color-primary-dark); }
        .badge-review { background: #fff4d6; color: #a66b00; }
        .badge-mastered { background: #e8f8ee; color: #27895f; }
        .sticker { width: 60px; height: 60px; border-radius: 18px; margin: 5px; object-fit: cover; box-shadow: var(--shadow-soft); }
        .scene-prompt {
            background: linear-gradient(135deg, #6ea8ff 0%, #8c7dff 55%, #ff9dc2 100%);
            color: white;
            padding: 22px;
            border-radius: 24px;
            margin: 15px 0;
            text-align: center;
            font-size: 18px;
            font-weight: 700;
            box-shadow: var(--shadow-card);
        }
        .feedback { padding: 16px; border-radius: 18px; margin: 10px 0; text-align: center; border: 1px solid transparent; }
        .feedback.success { background: #effbf3; color: #2c8f56; border-color: #cfeeda; }
        .feedback.error { background: #fff0f2; color: #c85267; border-color: #ffd1d8; }
        .state-empty, .state-error {
            border-radius: 18px;
            padding: 16px 14px;
            text-align: center;
            font-size: 13px;
            border: 1px dashed rgba(234,220,246,0.88);
        }
        .state-empty { color: var(--color-muted); background: rgba(255,255,255,0.82); }
        .state-error { color: #c85267; background: #fff0f2; border-color: #ffd1d8; }
        .todo-item-card { margin-bottom: 12px; }
        .todo-item-thumb {
            width: 78px;
            height: 78px;
            flex: 0 0 78px;
            border-radius: 18px;
            object-fit: cover;
            border: 1px solid rgba(234,220,246,0.88);
            box-shadow: var(--shadow-soft);
        }
        .todo-item-thumb-empty {
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,0.9);
            color: var(--color-muted);
            font-size: 12px;
        }
        .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(60, 44, 95, 0.28); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 18px; }
        .modal-content { background: white; padding: 22px; border-radius: 24px; max-width: 350px; width: 100%; text-align: center; box-shadow: var(--shadow-card); }
        .modal-content img { width: 80px; height: 80px; margin: 10px 0; }
        .label-editor-modal-content { text-align: left; max-width: 420px; }
        .label-editor-field { margin-top: 12px; }
        .label-editor-label { font-size: 12px; color: var(--color-muted); margin-bottom: 6px; font-weight: 700; }
        .label-editor-inline { position: relative; }
        .label-editor-input {
            width: 100%;
            border: 1px solid rgba(214, 221, 236, 0.95);
            border-radius: 14px;
            padding: 12px 14px;
            font-size: 15px;
            line-height: 1.4;
            background: transparent;
            color: var(--color-text);
            position: relative;
            z-index: 2;
        }
        .label-editor-ghost {
            position: absolute;
            inset: 0;
            padding: 12px 14px;
            font-size: 15px;
            line-height: 1.4;
            white-space: nowrap;
            overflow: hidden;
            pointer-events: none;
            z-index: 1;
        }
        .label-editor-ghost-typed { color: transparent; }
        .label-editor-ghost-suffix {
            color: rgba(102, 126, 234, 0.92);
            background: rgba(111, 132, 214, 0.16);
            border-radius: 6px;
        }
        .label-editor-suggestion-list {
            display: grid;
            gap: 8px;
            margin-top: 12px;
            max-height: 220px;
            overflow: auto;
        }
        .label-editor-suggestion-item {
            border: 1px solid rgba(234,220,246,0.88);
            background: linear-gradient(180deg, #fffdfa 0%, var(--color-surface-soft) 100%);
            border-radius: 14px;
            padding: 10px 12px;
            text-align: left;
            display: flex;
            justify-content: space-between;
            gap: 12px;
            color: var(--color-text);
            font-size: 13px;
        }
        .child-info { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed #e7d8f4; }
        .child-avatar {
            width: 56px;
            height: 56px;
            border-radius: 18px;
            background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            font-weight: 800;
            box-shadow: var(--shadow-soft);
        }
        .stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 15px 0; }
        .stat-item { background: linear-gradient(180deg, #fffdfa 0%, var(--color-surface-soft) 100%); padding: 15px; border-radius: 16px; text-align: center; border: 1px solid rgba(234,220,246,0.8); }
        .stat-value { font-size: 24px; font-weight: 800; color: var(--color-primary-dark); }
        .stat-label { font-size: 12px; color: var(--color-muted); }
        .wrong-item { border-left: 4px solid var(--color-danger); padding-left: 12px; margin: 10px 0; background: #fff; border-radius: 0 18px 18px 0; }
        .puzzle-box {
            border: 1px solid rgba(234,220,246,0.88);
            border-radius: 18px;
            padding: 12px;
            min-height: 150px;
            background: #fffdfa;
        }
        .puzzle-blocks {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .puzzle-block {
            border: none;
            border-radius: 12px;
            padding: 10px 12px;
            background: #eef4ff;
            color: var(--color-primary-dark);
            font-weight: 700;
            cursor: pointer;
        }
        .puzzle-block.is-broken {
            animation: puzzleShatter 0.35s ease forwards;
            pointer-events: none;
        }
        .puzzle-box.is-shaking {
            animation: puzzleShake 0.32s ease;
        }
        @keyframes puzzleShake {
            0% { transform: translateX(0); }
            20% { transform: translateX(-8px); }
            40% { transform: translateX(8px); }
            60% { transform: translateX(-6px); }
            80% { transform: translateX(6px); }
            100% { transform: translateX(0); }
        }
        @keyframes puzzleShatter {
            0% { transform: scale(1) rotate(0deg); opacity: 1; }
            100% { transform: scale(0.6) rotate(-14deg); opacity: 0; }
        }
        .scan-upload-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 14px 18px;
            border-radius: 18px;
            background: linear-gradient(135deg, #eef4ff 0%, #fff0f6 100%);
            color: var(--color-primary-dark);
            font-weight: 700;
            border: 1px dashed rgba(111, 132, 214, 0.35);
            cursor: pointer;
            margin-bottom: 14px;
        }
        .scan-upload-btn input { display: none; }
        .scan-preview-frame {
            position: relative;
            width: 100%;
            height: 220px;
            border-radius: 22px;
            overflow: hidden;
            background: #f6f1fd;
            border: 1px solid rgba(234,220,246,0.9);
            margin-bottom: 14px;
            touch-action: none;
            overscroll-behavior: contain;
            -webkit-user-select: none;
            user-select: none;
            -webkit-touch-callout: none;
        }
        .scan-preview-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            pointer-events: none;
            user-select: none;
            -webkit-user-select: none;
            -webkit-user-drag: none;
        }
        .scan-region-layer {
            position: absolute;
            inset: 0;
            pointer-events: none;
            touch-action: none;
        }
        .scan-region-box {
            position: absolute;
            border: 2px solid rgba(79, 140, 255, 0.95);
            border-radius: 12px;
            background: rgba(79, 140, 255, 0.08);
            pointer-events: auto;
            min-width: 32px;
            min-height: 32px;
            padding: 0;
            overflow: hidden;
            touch-action: none;
            cursor: pointer;
            z-index: 1;
            -webkit-user-select: none;
            user-select: none;
            -webkit-touch-callout: none;
        }
        .scan-region-box-label {
            position: absolute;
            left: 0;
            top: 0;
            max-width: 100%;
            padding: 3px 7px;
            border-bottom-right-radius: 10px;
            background: rgba(79, 140, 255, 0.95);
            color: white;
            font-size: 11px;
            font-weight: 800;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            pointer-events: none;
        }
        .scan-region-box-face {
            border-color: rgba(255, 143, 177, 0.98);
            background: rgba(255, 143, 177, 0.08);
        }
        .scan-region-box-face .scan-region-box-label {
            background: rgba(255, 143, 177, 0.98);
        }
        .scan-region-box-selected {
            box-shadow: 0 0 0 3px rgba(255, 212, 91, 0.8);
            transform: scale(1.01);
            cursor: move;
            z-index: 40;
        }
        .scan-region-handle {
            position: absolute;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #fff;
            border: 2px solid rgba(255, 212, 91, 0.95);
            box-shadow: 0 4px 10px rgba(57, 44, 89, 0.18);
            pointer-events: auto;
            z-index: 4;
            touch-action: none;
        }
        .scan-region-handle-nw {
            left: -10px;
            top: -10px;
            cursor: nwse-resize;
        }
        .scan-region-handle-n {
            left: 50%;
            top: -10px;
            transform: translateX(-50%);
            cursor: ns-resize;
        }
        .scan-region-handle-ne {
            right: -10px;
            top: -10px;
            cursor: nesw-resize;
        }
        .scan-region-handle-e {
            right: -10px;
            top: 50%;
            transform: translateY(-50%);
            cursor: ew-resize;
        }
        .scan-region-handle-sw {
            left: -10px;
            bottom: -10px;
            cursor: nesw-resize;
        }
        .scan-region-handle-s {
            left: 50%;
            bottom: -10px;
            transform: translateX(-50%);
            cursor: ns-resize;
        }
        .scan-region-handle-se {
            right: -10px;
            bottom: -10px;
            cursor: nwse-resize;
        }
        .scan-region-handle-w {
            left: -10px;
            top: 50%;
            transform: translateY(-50%);
            cursor: ew-resize;
        }
        .scan-loading-mask {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            color: white;
            font-weight: 700;
            background: rgba(57, 44, 89, 0.38);
            backdrop-filter: blur(4px);
        }
        .scan-page-loading {
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            z-index: 1200;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding: 50px 24px 24px;
            background: rgba(57, 44, 89, 0.28);
            backdrop-filter: blur(10px);
        }
        .scan-page-loading-card {
            width: min(320px, 100%);
            min-height: 180px;
            padding: 24px 22px;
            border-radius: 24px;
            text-align: center;
            color: var(--color-text);
            background: rgba(255,255,255,0.96);
            box-shadow: var(--shadow-card);
            border: 1px solid rgba(234,220,246,0.9);
            margin-top: 0;
        }
        .scan-page-loading-title {
            margin-top: 14px;
            font-size: 18px;
            font-weight: 800;
        }
        .scan-page-loading-dots {
            display: inline-flex;
            gap: 6px;
            margin-top: 10px;
            align-items: center;
            justify-content: center;
        }
        .scan-page-loading-dots span {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--color-primary);
            animation: scanDotJump 0.9s ease-in-out infinite;
        }
        .scan-page-loading-dots span:nth-child(2) {
            animation-delay: 0.12s;
        }
        .scan-page-loading-dots span:nth-child(3) {
            animation-delay: 0.24s;
        }
        .scan-page-loading-sub {
            margin-top: 8px;
            font-size: 13px;
            color: var(--color-muted);
        }
        .scan-loading-spinner {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            border: 4px solid rgba(255,255,255,0.3);
            border-top-color: white;
            animation: scanSpin 0.8s linear infinite;
        }
        @keyframes scanSpin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        @keyframes scanDotJump {
            0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
            40% { transform: translateY(-8px); opacity: 1; }
        }
        .scan-placeholder {
            min-height: 140px;
            border-radius: 20px;
            border: 1px dashed rgba(217,202,239,0.9);
            background: #f6f1fd;
            color: var(--color-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 18px;
            margin-bottom: 14px;
            font-size: 14px;
            font-weight: 600;
        }
        .scan-toolbar {
            display: flex;
            gap: 10px;
        }
        .scan-result-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
        }
        .scan-result-header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }
        .scan-result-header .card-title {
            margin-bottom: 0;
        }
        .scan-result-header-btn {
            flex: 0 0 auto;
            white-space: nowrap;
            padding: 8px 12px;
        }
        .scan-result-tag {
            display: inline-block;
            padding: 6px 12px;
            border-radius: 999px;
            background: #eef4ff;
            color: var(--color-primary-dark);
            font-size: 12px;
            font-weight: 700;
            margin-bottom: 12px;
        }
        .scan-result-main {
            font-size: 24px;
            line-height: 1.4;
            font-weight: 800;
            color: var(--color-text);
        }
        .scan-result-sub {
            margin-top: 8px;
            font-size: 16px;
            color: var(--color-muted);
        }
        .scan-result-hint {
            margin-top: 10px;
            font-size: 13px;
            color: #9b6b00;
            background: #fff4d6;
            border: 1px solid rgba(255, 192, 92, 0.45);
            border-radius: 14px;
            padding: 10px 12px;
        }
        .scan-selected-region-panel {
            margin-top: 12px;
            padding: 12px;
            border-radius: 16px;
            background: linear-gradient(180deg, #fffdfa 0%, #fff7e6 100%);
            border: 1px solid rgba(255, 192, 92, 0.45);
        }
        .scan-selected-region-title {
            font-size: 12px;
            font-weight: 800;
            color: #9b6b00;
        }
        .scan-selected-region-value {
            margin-top: 4px;
            font-size: 15px;
            font-weight: 700;
            color: var(--color-text);
        }
        .scan-selected-region-help {
            margin-top: 6px;
            font-size: 12px;
            color: var(--color-muted);
            line-height: 1.5;
        }
        .scan-selected-region-actions {
            display: flex;
            gap: 8px;
            margin-top: 10px;
        }
        .scan-region-manage-list {
            margin-top: 12px;
            display: grid;
            gap: 10px;
        }
        .scan-region-manage-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px;
            border-radius: 16px;
            background: linear-gradient(180deg, #fffdfa 0%, #f7f1ff 100%);
            border: 1px solid rgba(234,220,246,0.88);
        }
        .scan-region-manage-item-selected {
            border-color: rgba(79, 140, 255, 0.8);
            box-shadow: 0 0 0 2px rgba(79, 140, 255, 0.12);
        }
        .scan-region-manage-main {
            flex: 1;
            min-width: 0;
        }
        .scan-region-manage-name {
            font-size: 14px;
            font-weight: 700;
            color: var(--color-text);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .scan-region-manage-meta {
            margin-top: 4px;
            font-size: 12px;
            color: var(--color-muted);
        }
        .scan-region-manage-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }
        .scan-result-tag-high {
            background: #e8f8ee;
            color: #27895f;
        }
        .scan-result-tag-medium {
            background: #fff4d6;
            color: #a66b00;
        }
        .scan-result-tag-low {
            background: #fff0f2;
            color: #c85267;
        }
        .scan-similar-list {
            display: grid;
            gap: 10px;
        }
        .scan-similar-item {
            padding: 12px 14px;
            border-radius: 16px;
            background: linear-gradient(180deg, #fffdfa 0%, var(--color-surface-soft) 100%);
            border: 1px solid rgba(234,220,246,0.8);
        }
        .scan-history-list {
            display: grid;
            gap: 10px;
        }
        .scan-history-item {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            min-width: 0;
            padding: 12px 14px;
            border-radius: 16px;
            background: linear-gradient(180deg, #fffdfa 0%, var(--color-surface-soft) 100%);
            border: 1px solid rgba(234,220,246,0.8);
            cursor: pointer;
            overflow: hidden;
        }
        .scan-history-content {
            flex: 1 1 auto;
            min-width: 0;
            max-width: 100%;
            overflow: hidden;
        }
        .scan-history-actions {
            flex: 0 0 108px;
            width: 108px;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 6px;
        }
        .scan-history-title {
            font-weight: 700;
            color: var(--color-text);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .scan-history-sub {
            margin-top: 4px;
            font-size: 13px;
            color: var(--color-muted);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .scan-history-btn {
            width: 100%;
            padding: 8px 4px;
            font-size: 11px;
            box-shadow: none;
            min-width: 0;
        }
        .scan-history-more-btn {
            width: 100%;
            margin-top: 12px;
        }
