.protobuf-page-wrapper{max-width:1200px;margin:0 auto;padding:0 24px 40px;background:#faf8f5;min-height:100vh}.protobuf-tool{max-width:1200px;width:100%;padding:0;background:#faf8f5}body:has(.protobuf-tool){background:#faf8f5!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.protobuf-tool .tool-header{text-align:center;margin-bottom:16px;padding:16px 20px;background:linear-gradient(135deg,#292524,#44403c);border-radius:12px;color:#faf8f5;box-shadow:0 2px 12px #29252426;position:relative;overflow:hidden}.protobuf-tool .tool-title{font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1.4rem;font-weight:800;margin:0 0 4px;display:flex;align-items:center;justify-content:center;gap:10px}.protobuf-tool .tool-title i{font-size:1.2rem;color:#fef3c7}.protobuf-tool .tool-subtitle{font-size:.85rem;margin:0;opacity:.75;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400;color:#d6d3d1}.protobuf-tool .tool-intro{text-align:center;color:#57534e;font-size:.95rem;line-height:1.7;margin:0 auto 24px;padding:0 16px}.protobuf-tool .tool-intro strong{color:#44403c}.protobuf-tool .tool-intro code{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;background:#292524;color:#fef3c7;padding:2px 6px;border-radius:4px;font-size:.85rem}@media (min-width: 1024px){.protobuf-tool .tool-intro{font-size:1rem}}.protobuf-tabs{display:flex;gap:0;border:2px solid #e7e0d5;border-radius:8px;overflow:hidden;margin-bottom:20px}.protobuf-tab-btn{flex:1;padding:10px 16px;background:#fffdf9;border:none;border-right:1px solid #e7e0d5;cursor:pointer;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:.9rem;font-weight:600;color:#78716c;transition:all .15s ease;display:flex;align-items:center;justify-content:center;gap:8px}.protobuf-tab-btn:last-child{border-right:none}.protobuf-tab-btn:hover:not(.active){background:#f5f0e8}.protobuf-tab-btn.active{background:#292524;color:#faf8f5}.protobuf-tab-btn i{font-size:.9rem}.protobuf-tab-panel.hidden{display:none}.decoder-main{margin-bottom:32px}.input-section{background:#fffdf9;border:2px solid #e7e0d5;border-radius:12px;padding:24px;margin-bottom:20px}.input-mode-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:16px}.input-mode-label{font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;color:#374151;font-size:.9rem}.input-mode-buttons{display:inline-flex;border:2px solid #e7e0d5;border-radius:8px;overflow:hidden;background:#fffdf9}.mode-btn{padding:8px 14px;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:.85rem;font-weight:600;background:#fffdf9;border:none;border-right:1px solid #e7e0d5;color:#78716c;cursor:pointer;transition:all .15s ease;display:inline-flex;align-items:center;gap:6px}.mode-btn:last-child{border-right:none}.mode-btn:hover:not(.active){background:#f5f0e8}.mode-btn.active{background:#292524;color:#faf8f5}.mode-btn i{font-size:.85rem}.text-input-wrapper.hidden{display:none}.protobuf-textarea{width:100%;min-height:140px;resize:vertical;padding:14px 16px;font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:.9rem;line-height:1.55;border:2px solid #e7e0d5;border-radius:8px;background:#fff;color:#292524;transition:border-color .2s ease,box-shadow .2s ease;box-sizing:border-box;word-break:break-all}.protobuf-textarea:focus{outline:none;border-color:#a8a29e;box-shadow:0 0 0 3px #a8a29e26}.protobuf-textarea::placeholder{color:#a8a29e}.input-help{display:flex;align-items:center;gap:8px;margin:8px 2px 0;font-size:.8rem;color:#78716c}.input-help i{color:#a8a29e}.input-help code{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;background:#f5f0e8;color:#44403c;padding:1px 5px;border-radius:3px;font-size:.78rem}.file-input-wrapper.hidden{display:none}.file-drop-zone{display:block;border:2px dashed #d6cfc4;border-radius:10px;background:#fffdf9;padding:28px 20px;cursor:pointer;transition:all .15s ease}.file-drop-zone:hover,.file-drop-zone.dragover{border-color:#78716c;background:#f5f0e8}.file-drop-inner{display:flex;flex-direction:column;align-items:center;gap:6px;color:#57534e;text-align:center}.file-drop-inner i{font-size:1.8rem;color:#a8a29e;margin-bottom:4px}.file-drop-primary{font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:.95rem;font-weight:600;color:#44403c}.file-drop-primary code{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;background:#292524;color:#fef3c7;padding:1px 6px;border-radius:3px;font-size:.85rem}.file-drop-secondary{font-size:.8rem;color:#78716c}.file-meta{display:flex;align-items:center;gap:10px;margin-top:12px;padding:10px 14px;background:#f5f0e8;border:1px solid #e7e0d5;border-radius:8px;font-size:.85rem;color:#44403c}.file-meta.hidden{display:none}.file-meta i{color:#78716c}.file-meta-sep{color:#a8a29e}.file-clear-btn{margin-left:auto;background:transparent;border:none;color:#78716c;cursor:pointer;padding:4px 6px;border-radius:4px;transition:all .15s ease}.file-clear-btn:hover{background:#e7e0d5;color:#44403c}.action-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:16px}.action-spacer{flex:1}.btn-secondary{padding:8px 14px;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:.85rem;font-weight:600;background:#f5f0e8;color:#44403c;border:2px solid #e7e0d5;border-radius:8px;cursor:pointer;transition:all .2s ease;display:inline-flex;align-items:center;gap:8px}.btn-secondary:hover:not(:disabled){background:#e7e0d5;border-color:#d6cfc4}.btn-secondary:disabled{opacity:.5;cursor:not-allowed}.btn-secondary.copied{background:#166534;border-color:#166534;color:#fef3c7}.error-message,.warning-message{display:flex;align-items:flex-start;gap:10px;padding:12px 16px;border-radius:8px;font-size:.9rem;margin-top:16px;line-height:1.5}.error-message{background:#fef2f2;border:2px solid #fecaca;color:#b91c1c}.warning-message{background:#fffbeb;border:2px solid #fde68a;color:#92400e}.error-message.hidden,.warning-message.hidden{display:none}.error-message i,.warning-message i{font-size:1.05rem;flex-shrink:0;margin-top:1px}.result-section{background:#fffdf9;border:2px solid #e7e0d5;border-radius:12px;padding:20px}.result-section.hidden{display:none}.result-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.result-header h3{font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1rem;font-weight:700;color:#374151;margin:0;display:flex;align-items:center;gap:8px}.result-header h3 i{color:#78716c}.result-view-tabs{display:inline-flex;border:2px solid #e7e0d5;border-radius:8px;overflow:hidden;background:#fffdf9}.view-tab{padding:6px 12px;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:.8rem;font-weight:600;background:#fffdf9;border:none;border-right:1px solid #e7e0d5;color:#78716c;cursor:pointer;transition:all .15s ease;display:inline-flex;align-items:center;gap:6px}.view-tab:last-child{border-right:none}.view-tab:hover:not(.active){background:#f5f0e8}.view-tab.active{background:#292524;color:#faf8f5}.result-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.meta-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;background:#f5f0e8;border:1px solid #e7e0d5;border-radius:999px;font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:.78rem;color:#44403c}.meta-pill i{color:#a8a29e;font-size:.78rem}.result-view.hidden{display:none}.protobuf-output{margin:0;padding:16px;background:#292524;color:#f5f0e8;border-radius:8px;font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:.85rem;line-height:1.6;overflow:auto;max-height:540px;white-space:pre;word-wrap:normal}.protobuf-output code{display:block;background:transparent;color:inherit;padding:0;font-family:inherit;font-size:inherit}.tok-key{color:#fbbf24}.tok-string{color:#86efac}.tok-number{color:#93c5fd}.tok-bool{color:#f0abfc}.tok-null{color:#f87171}.tok-punc{color:#d6d3d1}.tok-bytes{color:#fcd34d}.tok-bigint{color:#93c5fd;font-style:italic}.tok-comment{color:#78716c;font-style:italic}.protobuf-tree{padding:8px 4px;background:#fffdf9;border:1px solid #e7e0d5;border-radius:8px;font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:.85rem;line-height:1.55;max-height:540px;overflow:auto}.tree-node{padding:2px 0}.tree-row{display:flex;align-items:baseline;gap:6px;padding:2px 8px;border-radius:4px}.tree-row:hover{background:#f5f0e8}.tree-toggle{display:inline-block;width:14px;text-align:center;color:#78716c;cursor:pointer;user-select:none;font-size:.75rem}.tree-toggle.leaf{visibility:hidden}.tree-key{color:#b45309;font-weight:600}.tree-colon{color:#a8a29e}.tree-value{color:#292524;word-break:break-all}.tree-value.string{color:#15803d}.tree-value.bytes{color:#b45309}.tree-value.number{color:#1d4ed8}.tree-value.bigint{color:#1d4ed8;font-style:italic}.tree-value.bool{color:#6d28d9}.tree-value.null{color:#b91c1c}.tree-value.tag{color:#7c2d12;font-weight:600}.tree-type{margin-left:auto;font-size:.72rem;color:#78716c;background:#f5f0e8;padding:1px 6px;border-radius:999px;white-space:nowrap}.tree-children{border-left:1px dashed #e7e0d5;margin-left:12px;padding-left:6px}.tree-children.collapsed{display:none}.examples-section{margin-bottom:32px}.examples-section h3{font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1rem;font-weight:700;color:#374151;margin:0 0 8px;display:flex;align-items:center;gap:8px}.examples-section h3 i{color:#f59e0b}.section-desc{color:#78716c;font-size:.9rem;margin:0 0 16px}.examples-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}@media (min-width: 768px){.examples-grid{grid-template-columns:repeat(3,1fr)}}@media (min-width: 1100px){.examples-grid{grid-template-columns:repeat(4,1fr)}}.example-btn{padding:14px;background:#fffdf9;border:2px solid #e7e0d5;border-radius:10px;text-align:left;cursor:pointer;transition:all .2s ease;display:flex;flex-direction:column;gap:6px}.example-btn:hover{border-color:#78716c;transform:translateY(-2px);box-shadow:0 4px 12px #78716c26}.example-platform{font-size:.75rem;font-weight:600;color:#57534e;display:flex;align-items:center;gap:6px}.example-platform i{font-size:.9rem;color:#78716c}.example-desc{font-size:.8rem;color:#57534e}.example-btn code{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:.7rem;background:#292524;color:#fef3c7;padding:4px 8px;border-radius:4px;word-break:break-all}.reference-section{margin-bottom:32px}.reference-section h3{font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1rem;font-weight:700;color:#374151;margin:0 0 16px;display:flex;align-items:center;gap:8px}.reference-section h3 i{color:#78716c}.major-types-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:24px}@media (min-width: 600px){.major-types-grid{grid-template-columns:repeat(4,1fr)}}@media (min-width: 1024px){.major-types-grid{grid-template-columns:repeat(8,1fr)}}.major-type-card{background:#fffdf9;border:2px solid #e7e0d5;border-radius:10px;padding:12px 10px;text-align:center;display:flex;flex-direction:column;gap:4px}.major-type-num{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:1.3rem;font-weight:700;color:#b45309}.major-type-name{font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:.78rem;font-weight:700;color:#292524;text-transform:uppercase;letter-spacing:.3px}.major-type-desc{font-size:.72rem;color:#78716c}.tags-reference{background:#fffdf9;border:2px solid #e7e0d5;border-radius:12px;padding:20px}.tags-reference h4{font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:.9rem;font-weight:700;color:#374151;margin:0 0 14px}.tags-table{width:100%;border-collapse:collapse;font-size:.88rem}.tags-table th,.tags-table td{padding:10px 8px;text-align:left;border-bottom:1px solid #e7e0d5}.tags-table th{font-weight:600;color:#57534e;font-size:.78rem;text-transform:uppercase;letter-spacing:.4px}.tags-table td{color:#374151}.tags-table td code{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:.82rem;background:#292524;color:#fef3c7;padding:2px 7px;border-radius:4px}.tags-table tr:last-child td{border-bottom:none}.syntax-guide-section{margin-bottom:32px}.syntax-guide-section>h3{font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1rem;font-weight:700;color:#374151;margin:0 0 16px;display:flex;align-items:center;gap:8px}.syntax-guide-section>h3 i.fa-graduation-cap{color:#7c3aed}.syntax-guide-content{background:#fffdf9;border:2px solid #e7e0d5;border-radius:12px;overflow:hidden}.guide-article{padding:24px 28px;border-bottom:1px solid #e7e0d5}.guide-article:last-child{border-bottom:none}.guide-article h2{font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1.15rem;font-weight:700;color:#292524;margin:0 0 12px}.guide-article p{font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:.9rem;color:#57534e;margin:0 0 12px;line-height:1.7}.guide-article p:last-child{margin-bottom:0}.guide-article ul{list-style:none;padding:0;margin:0}.guide-article ul li{font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:.9rem;color:#57534e;line-height:1.7;padding:8px 0 8px 20px;position:relative;border-bottom:1px solid #f5f0e8}.guide-article ul li:last-child{border-bottom:none}.guide-article ul li:before{content:"\2022";color:#f59e0b;font-weight:700;position:absolute;left:0}.guide-article code{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;background:#292524;padding:2px 6px;border-radius:4px;font-size:.85rem;color:#fef3c7}.faq-section{margin-bottom:32px;padding:30px;background:#f5f0e8;border-radius:16px;border:2px solid #e7e0d5}.faq-section h2{font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1.25rem;font-weight:700;color:#374151;margin:0 0 24px;display:flex;align-items:center;gap:10px}.faq-section h2 i{color:#78716c}.faq-item{background:#fffdf9;border:2px solid #e7e0d5;border-radius:12px;padding:20px;margin-bottom:12px}.faq-item:last-child{margin-bottom:0}.faq-item h3{font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1rem;font-weight:700;color:#292524;margin:0 0 10px}.faq-item p{font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:.9rem;color:#78716c;margin:0;line-height:1.6}.faq-item code{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;background:#292524;padding:2px 6px;border-radius:4px;font-size:.85rem;color:#fef3c7}@media (max-width: 768px){.protobuf-page-wrapper{padding:15px 12px 30px}.protobuf-tool .tool-header{padding:14px 16px;border-radius:10px}.protobuf-tool .tool-title{font-size:1.2rem;flex-direction:column;gap:6px}.input-section{padding:18px 14px}.input-mode-buttons{flex-wrap:wrap}.mode-btn{flex:1 1 calc(50% - 2px);justify-content:center}.action-row{gap:6px}.action-row .btn-secondary{flex:1 1 calc(50% - 4px);justify-content:center}.action-spacer{display:none}.result-header{flex-direction:column;align-items:stretch}.result-view-tabs{width:100%}.view-tab{flex:1;justify-content:center}.protobuf-output,.protobuf-tree{font-size:.78rem}.examples-grid{grid-template-columns:1fr}.major-types-grid{grid-template-columns:repeat(2,1fr)}.tags-table{font-size:.8rem}.tags-table th,.tags-table td{padding:8px 6px}.guide-article{padding:18px 16px}.faq-section{padding:20px 16px}}@media (max-width: 480px){.protobuf-textarea{min-height:110px;font-size:.82rem}}.tree-list{list-style:none;margin:0;padding:0}.tree-toggle-spacer{display:inline-block;width:18px;flex-shrink:0}.tree-field{font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;color:#292524;margin-right:8px;white-space:nowrap}.tree-meta{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:.7rem;color:#a8a29e;margin-left:auto;white-space:nowrap}.tree-interpretations{display:flex;flex-wrap:wrap;gap:6px;padding:4px 8px 10px 28px}.interp-pill{font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:.72rem;color:#44403c;background:#f5f0e8;border:1px solid #e7e0d5;border-radius:999px;padding:3px 10px;line-height:1.4;max-width:100%;overflow:hidden;text-overflow:ellipsis}.interp-pill strong{color:#78716c;font-weight:700;margin-right:4px;text-transform:uppercase;font-size:.65rem;letter-spacing:.3px}.tree-empty{padding:24px;text-align:center;color:#a8a29e;font-style:italic}.cross-tool-banner{display:flex;align-items:center;gap:10px;padding:12px 18px;margin-bottom:24px;background:#f5f0e8;border:2px solid #e7e0d5;border-radius:10px;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:.9rem;color:#44403c;line-height:1.5}.cross-tool-banner i{color:#78716c;font-size:1.1rem;flex-shrink:0}.cross-tool-banner a{color:#44403c;font-weight:600;text-decoration:underline;text-decoration-color:#d6cfc4;text-underline-offset:2px}.cross-tool-banner a:hover{color:#292524;text-decoration-color:#292524}.cross-tool-banner code{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;background:#292524;color:#fef3c7;padding:1px 5px;border-radius:3px;font-size:.85rem}.protobuf-tool .tree-toggle{border:none;background:transparent;padding:0;margin:0;line-height:1}.protobuf-tool .tree-value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:.85rem;color:#292524}
