html {
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        header {
            background: linear-gradient(135deg, #2c3e50, #4a69bd);
            color: white;
            padding: 20px 0;
            border-radius: 10px;
            margin-bottom: 30px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }
        
        .header-content {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            padding: 0 20px;
        }
        
        h1 {
            font-size: 28px;
            font-weight: 700;
        }
        
        .controls {
            display: flex;
            gap: 15px;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        .sticky-panel {
            --sticky-panel-max-height: none;
            --sticky-panel-content-max-height: none;
            position: sticky;
            top: 10px;
            z-index: 900;
            margin-bottom: 18px;
            padding: 14px 16px;
            border-radius: 16px;
            background: linear-gradient(135deg, rgba(231, 239, 255, 0.95), rgba(243, 247, 255, 0.92));
            backdrop-filter: blur(14px);
            border: 1px solid rgba(116, 144, 196, 0.28);
            box-shadow: 0 10px 24px rgba(74, 105, 189, 0.14);
            overflow: hidden;
            transition: padding 0.25s ease, margin-bottom 0.25s ease, border-radius 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
        }

        .sticky-panel__mobile-toggle {
            display: none;
            width: 100%;
            border: none;
            background: rgba(255, 255, 255, 0.8);
            color: #2c3e50;
            border-radius: 999px;
            padding: 10px 14px;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            cursor: pointer;
        }

        .sticky-panel__mobile-copy {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 1px;
            text-align: left;
        }

        .sticky-panel__mobile-text {
            font-size: 13px;
            font-weight: 700;
        }

        .sticky-panel__mobile-hint {
            font-size: 11px;
            color: #6b7280;
        }

        .sticky-panel__content {
            transition: max-height 0.28s ease, opacity 0.2s ease, transform 0.25s ease;
        }

        .sticky-panel.is-compact {
            padding: 8px 10px;
            margin-bottom: 12px;
            border-radius: 999px;
            background: rgba(231, 239, 255, 0.96);
            box-shadow: 0 8px 20px rgba(74, 105, 189, 0.14);
        }

        .sticky-panel.is-compact .sticky-panel__content {
            max-height: 0;
            opacity: 0;
            transform: translateY(-6px);
            overflow: hidden;
            pointer-events: none;
        }

        .sticky-panel.is-compact .sticky-panel__mobile-copy {
            flex-direction: row;
            align-items: center;
            gap: 8px;
        }

        .sticky-panel.is-compact .sticky-panel__mobile-text {
            font-size: 12px;
        }

        .sticky-panel.is-compact .sticky-panel__mobile-hint {
            display: none;
        }

        .sticky-panel.is-mobile-expanded .sticky-panel__mobile-toggle,
        .sticky-panel.is-compact .sticky-panel__mobile-toggle {
            display: flex;
        }

        .sticky-panel.is-mobile-expanded .sticky-panel__mobile-toggle {
            margin-bottom: 10px;
        }

        .sticky-panel.is-compact .sticky-panel__mobile-toggle {
            margin-bottom: 0;
            padding: 0 4px;
            background: transparent;
        }

        .sticky-panel .controls {
            margin: 0 0 10px;
            gap: 12px;
        }

        .sticky-panel .stats {
            margin-bottom: 0;
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 10px;
            padding: 10px 12px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.78);
            border: 1px solid rgba(255, 255, 255, 0.7);
            box-shadow: none;
        }

        .sticky-panel .stat-item {
            padding: 8px 10px;
            border-radius: 12px;
            background: rgba(74, 105, 189, 0.08);
        }

        .sticky-panel .stat-number {
            font-size: 20px;
            line-height: 1.1;
        }

        .sticky-panel .stat-label {
            font-size: 12px;
        }
        
        .search-box {
            flex: 1;
            max-width: 400px;
            position: relative;
        }
        
        .search-box input {
            width: 100%;
            padding: 12px 20px;
            border: 1px solid #ddd;
            border-radius: 30px;
            font-size: 16px;
            transition: all 0.3s;
        }
        
        .search-box input:focus {
            outline: none;
            border-color: #4a69bd;
            box-shadow: 0 0 0 2px rgba(74, 105, 189, 0.2);
        }
        
        .search-box i {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #888;
        }
        
        .filter-box {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
        }
        
        select,
        input[type="date"],
        input[type="number"] {
            padding: 10px 15px;
            min-height: 46px;
            border: 1px solid #ddd;
            border-radius: 6px;
            background-color: white;
            font-size: 14px;
        }

        .developer-panel input[type="text"] {
            padding: 10px 15px;
            min-height: 46px;
            border: 1px solid #ddd;
            border-radius: 6px;
            background-color: white;
            font-size: 14px;
        }

        .developer-panel textarea {
            width: 100%;
            padding: 10px 15px;
            min-height: 108px;
            border: 1px solid #ddd;
            border-radius: 6px;
            background-color: white;
            font-size: 14px;
            line-height: 1.5;
            resize: vertical;
        }
        
        .refresh-btn {
            background-color: #4a69bd;
            color: white;
            border: none;
            padding: 10px 15px;
            min-height: 46px;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            font-size: 14px;
            font-weight: 600;
            line-height: 1.2;
            white-space: nowrap;
            transition: background-color 0.3s;
        }
        
        .refresh-btn:hover:not(:disabled) {
            background-color: #3c5aa8;
        }
        
        .refresh-btn:disabled {
            background-color: #8da6e0;
            cursor: not-allowed;
        }

        .toggle-btn {
            font-size: 13px;
            font-weight: 600;
        }

        .refresh-btn.toggle-btn:not(.is-active) {
            background-color: #8da6e0;
        }

        .refresh-btn.toggle-btn:hover:not(:disabled) {
            background-color: #6f8bd4;
        }

        .refresh-btn.toggle-btn.is-active {
            background-color: #2c3e50;
        }

        .refresh-btn.toggle-btn.is-active:hover:not(:disabled) {
            background-color: #223140;
        }

        .developer-panel {
            margin-bottom: 12px;
            padding: 12px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.62);
            border: 1px dashed rgba(116, 144, 196, 0.35);
        }

        .developer-panel[hidden] {
            display: none !important;
        }

        .developer-panel__row {
            display: flex;
            align-items: flex-end;
            gap: 10px;
            flex-wrap: wrap;
        }

        .developer-panel__field {
            display: flex;
            flex-direction: column;
            gap: 6px;
            min-width: 200px;
        }

        .developer-panel__label {
            font-size: 12px;
            color: #5b6b82;
            font-weight: 600;
        }

        .developer-panel__input-row {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
        }

        .developer-panel__input-row input[type="number"] {
            width: 110px;
        }

        .developer-panel__hint,
        .developer-panel__status {
            margin-top: 8px;
            font-size: 12px;
            color: #5b6b82;
        }

        .developer-panel__status.is-warning {
            color: #b45309;
        }

        .developer-panel__status.is-ok {
            color: #1f5f46;
        }

        .developer-panel__section {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(116, 144, 196, 0.2);
        }

        .developer-panel__section-title {
            margin-bottom: 8px;
            font-size: 13px;
            font-weight: 700;
            color: #2c3e50;
        }

        .developer-panel__section-toggle {
            justify-content: space-between;
        }

        .developer-panel__field--wide {
            grid-column: 1 / -1;
        }
        
        .refreshing {
            animation: rotate 1s linear infinite;
        }
        
        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        .stats {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
            background-color: white;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            flex-wrap: wrap;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-number {
            font-size: 24px;
            font-weight: bold;
            color: #4a69bd;
        }
        
        .stat-label {
            font-size: 14px;
            color: #777;
        }
        
        .content-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .content-item {
            background-color: white;
            border-radius: 10px;
            padding: 16px 18px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        
        .content-item:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }
        
        .content-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            align-items: center;
        }
        
        .content-id {
            font-size: 14px;
            color: #777;
            background-color: #f1f5f9;
            padding: 4px 8px;
            border-radius: 4px;
        }
        
        .content-time {
            font-size: 14px;
            color: #888;
        }
        
        .content-text {
            font-size: 16px;
            margin-bottom: 10px;
            line-height: 1.5;
            white-space: pre-line;
            word-break: break-word;
        }

        .content-title {
            font-size: 16px;
            line-height: 1.4;
            font-weight: 700;
            color: #203247;
            margin-bottom: 6px;
        }

        .content-media {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: 0 0 10px;
        }

        .content-image {
            max-width: 120px;
            max-height: 120px;
            width: auto;
            height: auto;
            border-radius: 6px;
            cursor: zoom-in;
            transition: box-shadow 0.2s ease;
            object-fit: contain;
            background-color: #f5f7fa;
        }

        .content-image.is-expanded {
            max-width: none;
            max-height: none;
            cursor: zoom-out;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
        }
        
        .highlight-text {
            color: red !important;
            font-weight: bold;
        }
        
        .content-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid #eee;
            padding-top: 10px;
        }
        
        .content-tags {
            display: flex;
            gap: 8px;
        }
        
        .tag {
            background-color: #eaf0ff;
            color: #4a69bd;
            padding: 4px 9px;
            border-radius: 20px;
            font-size: 11px;
        }
        
        .content-actions {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: #777;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 13px;
            transition: color 0.3s;
            padding: 5px 10px;
            border-radius: 4px;
            background-color: #f1f5f9;
        }
        
        .action-btn:hover {
            color: #4a69bd;
            background-color: #eaf0ff;
        }

        .copy-btn {
            min-width: 68px;
            justify-content: center;
        }

        .attr-btn {
            background-color: #f1f5f9;
        }

        .source-btn {
            cursor: default;
            color: #4a69bd;
            background-color: #eaf0ff;
            max-width: 220px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .source-btn:hover {
            color: #4a69bd;
            background-color: #eaf0ff;
        }
        
        .action-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background-color: #f9f9f9;
        }
        
        .action-btn.disabled:hover {
            color: #777;
            background-color: #f9f9f9;
        }

        .attr-modal {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }

        .attr-modal.is-open {
            display: flex;
        }

        .attr-modal__backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.45);
        }

        .attr-modal__content {
            position: relative;
            width: min(1000px, 92vw);
            max-height: 85vh;
            background: #ffffff;
            border-radius: 10px;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            z-index: 1;
        }

        .attr-modal__header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 18px;
            background: #f8fafc;
            border-bottom: 1px solid #e2e8f0;
        }

        .attr-modal__header h3 {
            font-size: 16px;
            font-weight: 600;
        }

        .attr-modal__close {
            border: none;
            background: none;
            font-size: 22px;
            cursor: pointer;
            color: #666;
        }

        .attr-modal__body {
            padding: 18px;
            overflow: auto;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .attr-section__title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .attr-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
        }

        .attr-table th,
        .attr-table td {
            text-align: left;
            border: 1px solid #e2e8f0;
            padding: 6px 8px;
            vertical-align: top;
        }

        .attr-table th {
            background: #f8fafc;
            font-weight: 600;
        }

        .attr-table pre {
            margin: 0;
            white-space: pre-wrap;
            word-break: break-word;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
            font-size: 11px;
        }

        .attr-raw {
            background: #0f172a;
            color: #e2e8f0;
            padding: 12px;
            border-radius: 8px;
            font-size: 12px;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .comments-summary {
            display: flex;
            flex-wrap: wrap;
            gap: 8px 14px;
            align-items: center;
            font-size: 13px;
            color: #64748b;
        }

        .comments-summary__item {
            display: inline-flex;
            align-items: baseline;
            gap: 6px;
        }

        .comments-summary__label {
            color: #64748b;
        }

        .comments-summary__value {
            font-size: 13px;
            font-weight: 600;
            color: #334155;
        }

        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .comment-card {
            display: flex;
            gap: 12px;
            padding: 12px;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            background: #ffffff;
        }

        .comment-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            object-fit: cover;
            background: #e2e8f0;
            flex-shrink: 0;
        }

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

        .comment-author {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
            margin-bottom: 4px;
        }

        .comment-author__name {
            font-size: 14px;
            font-weight: 700;
            color: #1e293b;
        }

        .comment-author__uid {
            font-size: 12px;
            color: #64748b;
        }

        .comment-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 8px;
            font-size: 12px;
            color: #64748b;
        }

        .comment-content {
            font-size: 14px;
            line-height: 1.7;
            color: #334155;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .comment-empty {
            padding: 18px;
            border-radius: 12px;
            background: #f8fafc;
            border: 1px dashed #cbd5e1;
            color: #64748b;
            font-size: 13px;
        }
        
        .loading {
            text-align: center;
            padding: 30px;
            font-size: 18px;
            color: #777;
        }

        .load-more {
            text-align: center;
            padding: 16px 0 24px;
            color: #6b7280;
            font-size: 12px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            align-items: center;
        }

        .load-more__status {
            min-height: 18px;
            font-size: 12px;
            line-height: 1.5;
        }

        .load-more__note {
            font-size: 12px;
            color: #8a94a6;
            line-height: 1.4;
        }
        
        .error {
            background-color: #ffebee;
            color: #d32f2f;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            display: none;
        }
        
        .global-loading {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: #4a69bd;
            z-index: 1000;
            display: none;
        }
        
        .global-loading::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 50%;
            background-color: #3c5aa8;
            animation: loading 1.5s ease-in-out infinite;
        }
        
        @keyframes loading {
            0% { left: -50%; }
            100% { left: 150%; }
        }
        
        .floating-actions {
            position: fixed;
            right: 24px;
            bottom: 24px;
            z-index: 1300;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .floating-btn {
            width: 54px;
            height: 54px;
            border: none;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            cursor: pointer;
            font-size: 18px;
            background: linear-gradient(135deg, #2c3e50, #4a69bd);
            box-shadow: 0 14px 28px rgba(44, 62, 80, 0.25);
            transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
        }

        .floating-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 18px 36px rgba(44, 62, 80, 0.3);
        }

        .floating-btn:focus-visible {
            outline: 3px solid rgba(74, 105, 189, 0.3);
            outline-offset: 2px;
        }

        .floating-btn.is-off {
            background: linear-gradient(135deg, #a65c2d, #d0843b);
        }
        
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                text-align: center;
                gap: 15px;
            }

            .sticky-panel {
                top: 8px;
                padding: 12px;
                max-height: var(--sticky-panel-max-height, calc(100dvh - 16px));
            }

            .controls {
                flex-direction: column;
            }

            .developer-panel__row {
                flex-direction: column;
                align-items: stretch;
            }

            .developer-panel__input-row {
                flex-direction: row;
                align-items: stretch;
                flex-wrap: nowrap;
            }

            .developer-panel__input-row input[type="number"] {
                flex: 0 0 110px;
                width: 110px;
                min-width: 0;
            }

            .developer-panel__input-row .refresh-btn {
                flex: 1 1 auto;
                min-width: 0;
            }

            .search-box {
                max-width: 100%;
            }

            .sticky-panel__content {
                min-height: 0;
                max-height: var(--sticky-panel-content-max-height, calc(100dvh - 120px));
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                overscroll-behavior: contain;
                touch-action: pan-y;
                padding-right: 2px;
            }

            .stats {
                flex-direction: column;
                gap: 15px;
            }

            .sticky-panel .stats {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
            }
            
            .content-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            
            .content-footer {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }
            
            .content-actions {
                align-self: stretch;
                justify-content: space-between;
            }

            .floating-actions {
                right: 14px;
                bottom: 14px;
            }

            .floating-btn {
                width: 48px;
                height: 48px;
                border-radius: 14px;
            }
        }
