bartar's picture
Upload 26 files
d66ab65 verified
:root {
--primary-color: #0f4f9b; /* Blue accent */
--primary-hover: #0c3e7a; /* Darker blue accent */
--bg-color: #121212; /* Dark background */
--card-bg: #1e1e1e; /* Dark card background */
--card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.7),
0 2px 4px -1px rgba(0, 0, 0, 0.6);
--transition: all 0.3s ease;
--text-color: #E0E0E0; /* Main text color */
--secondary-text: #A0A0A0;/* Secondary text color */
--input-bg: #2a2a2a; /* Input/textarea background */
--input-border: #444444; /* Input/textarea border */
--input-focus: #0f4f9b; /* Focus border color */
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
scrollbar-width: thin;
scrollbar-color: #0f4f9b #121212
}
/* Width and height of the scrollbar */
::-webkit-scrollbar {
width: 12px;
height: 12px;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
/* Loading spinner styles */
.loading-spinner {
display: inline-block;
width: 20px;
height: 20px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: #fff;
animation: spin 1s linear infinite;
margin-left: 8px;
vertical-align: middle;
}
.loading-spinner.large {
width: 40px;
height: 40px;
border-width: 3px;
}
.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(18, 18, 18, 0.8);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.loading-overlay.active {
opacity: 1;
visibility: visible;
}
.loading-content {
background-color: var(--card-bg);
padding: 2rem;
border-radius: 1rem;
box-shadow: var(--card-shadow);
text-align: center;
min-width: 200px;
}
.loading-text {
color: var(--text-color);
font-size: 1.1rem;
margin-top: 1rem;
}
/* Keyboard shortcut indicator */
.keyboard-shortcut-hint {
position: absolute;
top: 10px;
right: 10px;
background: rgba(15, 79, 155, 0.1);
color: var(--primary-color);
font-size: 0.8rem;
padding: 0.25rem 0.5rem;
border-radius: 0.375rem;
border: 1px solid rgba(15, 79, 155, 0.2);
pointer-events: none;
opacity: 0.7;
font-family: monospace;
}
.input-section {
position: relative;
}
/* Card header styles */
.card-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1.25rem;
}
.card-header .card-title {
margin-bottom: 0;
}
/* Token search styles */
.search-toggle-btn {
background: var(--primary-color);
color: white;
border: none;
border-radius: 50%;
width: 36px;
height: 36px;
min-width: 36px;
min-height: 36px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: var(--transition);
box-shadow: 0 2px 4px rgba(15, 79, 155, 0.3);
padding: 0;
flex-shrink: 0;
}
.search-toggle-btn:hover {
background-color: var(--primary-hover);
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(15, 79, 155, 0.4);
}
.search-toggle-btn.active {
background-color: var(--primary-hover);
box-shadow: 0 2px 8px rgba(15, 79, 155, 0.5);
}
.search-toggle-btn svg {
width: 18px;
height: 18px;
fill: currentColor;
flex-shrink: 0;
}
.token-search-container {
display: none;
flex-direction: column;
gap: 1rem;
margin-bottom: 1.5rem;
padding: 1.25rem;
background-color: rgba(15, 79, 155, 0.1);
border-radius: 0.75rem;
border: 1px solid rgba(15, 79, 155, 0.2);
opacity: 0;
transform: translateY(-10px);
transition: opacity 0.3s ease, transform 0.3s ease;
width: 100%;
}
.token-search-container.show {
display: flex;
opacity: 1;
transform: translateY(0);
}
.token-search-row {
display: flex;
align-items: center;
gap: 1rem;
width: 100%;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.token-search-input {
flex: 1;
padding: 0.875rem 1rem;
border: 2px solid var(--input-border);
border-radius: 0.5rem;
background-color: var(--input-bg);
color: var(--text-color);
font-size: 1rem;
transition: var(--transition);
min-width: 0;
}
.token-search-input:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(15, 79, 155, 0.1);
}
.token-search-controls {
display: flex;
align-items: center;
gap: 0.75rem;
flex-shrink: 0;
}
.token-search-btn {
padding: 0.5rem 1rem;
background: var(--primary-color);
color: white;
border: none;
border-radius: 0.5rem;
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: var(--transition);
box-shadow: 0 1px 3px rgba(15, 79, 155, 0.3);
min-width: 44px;
}
.token-search-btn:hover {
background: var(--primary-hover);
transform: translateY(-1px);
box-shadow: 0 2px 6px rgba(15, 79, 155, 0.4);
}
.token-search-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
.token-search-count {
color: var(--text-color);
font-size: 0.875rem;
font-weight: 500;
white-space: nowrap;
background-color: rgba(255, 255, 255, 0.1);
padding: 0.5rem 0.75rem;
border-radius: 0.375rem;
min-width: 60px;
text-align: center;
}
/* Highlighted token styles */
.token.highlighted {
background-color: #fbbf24 !important;
color: #1f2937 !important;
box-shadow: 0 0 0 2px #f59e0b;
z-index: 1;
position: relative;
}
.token.highlighted.current {
background-color: #f59e0b !important;
color: white !important;
box-shadow: 0 0 0 3px #f59e0b;
}
/* Token frequency chart styles */
.frequency-chart-container {
margin-top: 1.5rem;
padding: 1rem;
background-color: rgba(15, 79, 155, 0.05);
border-radius: 0.5rem;
border: 1px solid rgba(15, 79, 155, 0.1);
}
.frequency-chart-title {
font-size: 1rem;
font-weight: 600;
color: var(--text-color);
margin-bottom: 1rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.frequency-chart {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.frequency-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem;
background-color: var(--input-bg);
border-radius: 0.375rem;
transition: var(--transition);
}
.frequency-item:hover {
background-color: rgba(255, 255, 255, 0.05);
}
.frequency-token {
font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', 'Droid Sans Mono', 'Source Code Pro', monospace;
font-size: 0.8rem;
background-color: rgba(15, 79, 155, 0.2);
color: var(--primary-color);
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
min-width: 60px;
text-align: center;
cursor: pointer;
transition: var(--transition);
}
.frequency-token:hover {
background-color: var(--primary-color);
color: white;
}
.frequency-bar-container {
flex: 1;
display: flex;
align-items: center;
gap: 0.5rem;
}
.frequency-bar {
flex: 1;
height: 20px;
background-color: rgba(255, 255, 255, 0.1);
border-radius: 10px;
overflow: hidden;
position: relative;
}
.frequency-bar-fill {
height: 100%;
background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%);
border-radius: 10px;
transition: width 0.5s ease;
position: relative;
}
.frequency-count {
color: var(--secondary-text);
font-size: 0.8rem;
font-weight: 500;
min-width: 40px;
text-align: right;
}
.chart-toggle-btn {
background: none;
border: 1px solid var(--primary-color);
color: var(--primary-color);
padding: 0.375rem 0.75rem;
border-radius: 0.375rem;
font-size: 0.8rem;
cursor: pointer;
transition: var(--transition);
box-shadow: none;
}
.chart-toggle-btn:hover {
background-color: var(--primary-color);
color: white;
transform: none;
box-shadow: none;
}
.chart-toggle-btn.active {
background-color: var(--primary-color);
color: white;
}
/* Track (background) */
::-webkit-scrollbar-track {
background: #121212;
border-radius: 10px;
}
/* Handle (draggable part) */
::-webkit-scrollbar-thumb {
background: #0f4f9b;
border-radius: 10px;
border: 2px solid #121212;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #0c3e7a;
}
body {
background-color: var(--bg-color);
padding: 2rem;
min-height: 100vh;
background-image:
radial-gradient(circle at 20% 20%, rgba(15, 79, 155, 0.1) 0%, transparent 50%),
radial-gradient(circle at 80% 80%, rgba(15, 79, 155, 0.1) 0%, transparent 50%);
color: var(--text-color);
}
.container {
max-width: 1200px;
margin: 0 auto;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
position: relative;
}
.title-section {
flex-grow: 1;
}
.title {
font-size: 2.5rem;
font-weight: 800;
color: var(--primary-color);
margin-bottom: 0.5rem;
}
.subtitle {
color: var(--secondary-text);
font-size: 1.1rem;
}
.model-selector {
position: relative;
min-width: 200px;
}
.model-selector-header {
display: flex;
gap: 0.5rem;
margin-bottom: 0.5rem;
}
.model-type-toggle {
display: flex;
background-color: var(--card-bg);
border-radius: 0.5rem;
padding: 0.25rem;
overflow: hidden;
}
.toggle-option {
padding: 0.5rem 0.75rem;
font-size: 0.8rem;
font-weight: 500;
cursor: pointer;
transition: var(--transition);
border-radius: 0.375rem;
color: var(--secondary-text);
}
.toggle-option.active {
background-color: var(--primary-color);
color: white;
}
select {
width: 100%;
padding: 0.75rem 1rem;
border: 2px solid var(--input-border);
border-radius: 0.5rem;
font-size: 1rem;
color: var(--text-color);
background-color: var(--input-bg);
cursor: pointer;
transition: var(--transition);
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f4f9b'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 1rem center;
background-size: 1.5rem;
}
select:hover, .custom-model-input:hover {
border-color: var(--primary-color);
}
select:focus, .custom-model-input:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(15, 79, 155, 0.1);
}
.custom-model-input {
width: 100%;
padding: 0.75rem 1rem;
border: 2px solid var(--input-border);
border-radius: 0.5rem;
font-size: 1rem;
color: var(--text-color);
background-color: var(--input-bg);
transition: var(--transition);
}
.input-section {
margin-bottom: 2rem;
}
textarea {
width: 100%;
height: 150px;
padding: 1.25rem;
border: 2px solid var(--input-border);
border-radius: 0.75rem;
resize: vertical;
font-size: 1rem;
margin-bottom: 1rem;
transition: var(--transition);
background-color: var(--input-bg);
color: var(--text-color);
}
textarea:focus {
outline: none;
border-color: var(--input-focus);
box-shadow: 0 0 0 3px rgba(15, 79, 155, 0.1);
}
.button-container {
display: flex;
justify-content: center;
width: 100%;
gap: 1rem;
}
button {
padding: 0.875rem 2.5rem;
background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
color: #fff;
border: none;
border-radius: 0.75rem;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
box-shadow: 0 4px 6px -1px rgba(15, 79, 155, 0.2);
}
button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 8px -1px rgba(15, 79, 155, 0.3);
}
button:active {
transform: translateY(0);
}
button:disabled {
opacity: 0.7;
cursor: not-allowed;
}
.card {
background-color: var(--card-bg);
border-radius: 1rem;
box-shadow: var(--card-shadow);
padding: 1.5rem;
margin-bottom: 2rem;
transition: var(--transition);
}
.card:hover {
transform: translateY(-2px);
box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.1);
}
.card-title {
font-size: 1.25rem;
font-weight: 700;
color: var(--text-color);
margin-bottom: 1.25rem;
display: flex;
align-items: center;
gap: 0.5rem;
cursor: pointer;
}
.card-title::before {
content: '';
display: block;
width: 4px;
height: 1.25rem;
background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
border-radius: 2px;
}
.token-container {
display: flex;
flex-wrap: wrap;
gap: 0.375rem;
margin-bottom: 1rem;
padding: 1rem;
background-color: #2a2a2a;
border-radius: 0.5rem;
max-height: 200px;
overflow-y: auto;
transition: max-height 0.3s ease;
}
.token-container.expanded {
max-height: none;
}
.token {
padding: 0.375rem 0.75rem;
border-radius: 0.375rem;
background-color: var(--input-bg);
font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', 'Droid Sans Mono', 'Source Code Pro', monospace;
font-size: 0.875rem;
color: var(--text-color);
cursor: default;
transition: var(--transition);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.token:hover {
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}
.stat-card {
background-color: var(--card-bg);
padding: 1.5rem;
border-radius: 1rem;
box-shadow: var(--card-shadow);
transition: var(--transition);
}
.stat-card:hover {
transform: translateY(-2px);
box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.1);
}
.stat-title {
color: var(--secondary-text);
font-size: 0.875rem;
font-weight: 500;
margin-bottom: 0.5rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.stat-value {
color: var(--text-color);
font-size: 2rem;
font-weight: 700;
line-height: 1.2;
margin-bottom: 0.25rem;
}
.stat-description {
color: var(--secondary-text);
font-size: 0.875rem;
}
.expand-button {
background: none;
border: none;
color: var(--primary-color);
font-size: 0.875rem;
padding: 0.5rem;
cursor: pointer;
display: block;
margin: 0 auto;
box-shadow: none;
}
.expand-button:hover {
text-decoration: underline;
transform: none;
box-shadow: none;
}
.error-message {
color: #EF4444;
background-color: #3a1f1f;
border: 1px solid #562626;
padding: 1rem;
border-radius: 0.5rem;
margin-bottom: 1rem;
display: none;
}
.display-limit-notice {
background-color: #4b2b07;
border: 1px solid #7c4a02;
color: #FFD591;
padding: 0.75rem;
border-radius: 0.5rem;
margin-top: 1rem;
font-size: 0.875rem;
display: none;
}
/* File drop zone styles */
.file-drop-zone {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(15, 79, 155, 0.15);
z-index: 1000;
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}
.file-drop-zone.active {
opacity: 1;
pointer-events: all;
}
.drop-indicator {
background-color: var(--card-bg);
border: 2px dashed var(--primary-color);
border-radius: 1rem;
padding: 2rem;
text-align: center;
width: 60%;
max-width: 400px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
.drop-indicator p {
margin-bottom: 0.5rem;
color: var(--text-color);
font-size: 1.2rem;
}
.file-icon {
font-size: 3rem;
margin-bottom: 1rem;
color: var(--primary-color);
}
.file-upload-icon {
position: fixed;
bottom: 20px;
left: 20px;
width: 45px;
height: 45px;
background-color: var(--card-bg);
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
z-index: 100;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.file-upload-icon:hover {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.file-upload-icon span {
font-size: 1.5rem;
color: var(--primary-color);
}
.file-info {
position: fixed;
bottom: 20px;
left: 75px;
background-color: var(--card-bg);
color: var(--primary-color);
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: 1rem;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
max-width: 270px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
z-index: 100;
display: none;
}
.file-detach {
margin-left: 8px;
display: inline-block;
width: 18px;
height: 18px;
background-color: rgba(255, 255, 255, 0.1);
color: var(--text-color);
border-radius: 50%;
text-align: center;
line-height: 16px;
font-size: 12px;
cursor: pointer;
transition: all 0.2s ease;
}
.file-detach:hover {
background-color: rgba(255, 0, 0, 0.2);
color: #ff6b6b;
transform: scale(1.1);
}
.preview-notice {
background-color: #273c56;
border: 1px solid #365a82;
color: #89b4e8;
padding: 0.75rem;
border-radius: 0.5rem;
margin-top: 1rem;
font-size: 0.875rem;
display: none;
}
.custom-model-wrapper {
position: relative;
}
.model-badge {
position: absolute;
top: -10px;
right: -5px;
background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
color: white;
font-size: 0.7rem;
font-weight: 700;
padding: 0.25rem 0.5rem;
border-radius: 999px;
transform: scale(0);
transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
z-index: 10;
}
.model-badge.show {
transform: scale(1);
}
.custom-model-help {
display: inline-block;
width: 16px;
height: 16px;
line-height: 16px;
font-size: 11px;
font-weight: bold;
text-align: center;
background-color: var(--secondary-text);
color: var(--card-bg);
border-radius: 50%;
margin-left: 5px;
cursor: help;
vertical-align: middle;
}
.tooltip {
position: absolute;
top: 100%;
left: 0;
width: 280px;
background-color: #333;
color: #fff;
padding: 0.75rem;
border-radius: 0.5rem;
font-size: 0.8rem;
margin-top: 0.5rem;
z-index: 100;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
opacity: 0;
visibility: hidden;
transition: opacity 0.2s, visibility 0.2s;
}
.custom-model-help:hover + .tooltip {
opacity: 1;
visibility: visible;
}
/* Tokenizer info icon and tooltip styles */
.tokenizer-info-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
color: white;
border-radius: 50%;
position: absolute;
left: -32px; /* Position to the left of the selector */
top: 50%;
transform: translateY(-50%);
cursor: pointer;
font-size: 12px;
font-weight: bold;
transition: all 0.2s ease;
z-index: 10;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.tokenizer-info-icon:hover {
transform: translateY(-50%) scale(1.1);
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
/* Watermark styles */
.watermark {
position: fixed;
bottom: 20px;
right: 20px;
color: var(--primary-color);
font-size: 1.4rem;
font-weight: 700;
opacity: 0.25; /* Semi-transparent */
z-index: 100;
transition: opacity 0.3s ease;
text-decoration: none;
pointer-events: auto; /* Ensure it remains clickable */
}
.watermark:hover {
opacity: 0.6; /* Increase opacity on hover */
}
.tokenizer-info-tooltip {
position: absolute;
top: calc(100% + 8px);
left: -30px; /* Adjust position to align with the icon */
width: 300px;
background-color: var(--card-bg);
color: var(--text-color);
border: 1px solid var(--primary-color);
border-radius: 0.75rem;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
padding: 1rem;
z-index: 1000; /* Increase z-index to ensure visibility */
opacity: 0;
visibility: hidden;
transition: opacity 0.3s, visibility 0.3s;
pointer-events: none; /* Initially disable pointer events */
}
.tokenizer-info-icon:not(.tooltip-disabled):hover + .tokenizer-info-tooltip {
opacity: 1;
visibility: visible;
pointer-events: auto;
}
.tokenizer-info-tooltip:hover {
opacity: 1;
visibility: visible;
pointer-events: auto;
}
.tokenizer-info-header {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 0.5rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
color: var(--primary-color);
}
.tokenizer-info-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.75rem;
margin: 0.75rem 0;
}
.tokenizer-info-item {
display: flex;
flex-direction: column;
}
.tokenizer-info-label {
font-size: 0.75rem;
color: var(--secondary-text);
margin-bottom: 0.25rem;
}
.tokenizer-info-value {
font-size: 0.95rem;
font-weight: 500;
}
.special-tokens-container {
margin-top: 0.75rem;
background-color: rgba(15, 79, 155, 0.1);
border-radius: 0.5rem;
padding: 0.5rem;
max-height: 100px;
overflow-y: auto;
}
.special-token-item {
display: flex;
justify-content: space-between;
margin-bottom: 0.25rem;
font-size: 0.8rem;
}
.token-name {
color: var(--secondary-text);
}
.token-value {
background-color: rgba(255, 255, 255, 0.1);
padding: 1px 4px;
border-radius: 2px;
font-family: monospace;
}
.tokenizer-info-loading {
display: flex;
justify-content: center;
align-items: center;
height: 100px;
}
.tokenizer-info-spinner {
width: 30px;
height: 30px;
border: 3px solid var(--primary-color);
border-radius: 50%;
border-top-color: transparent;
animation: spin 1s linear infinite;
}
.tokenizer-info-error {
color: #f87171;
font-size: 0.9rem;
text-align: center;
padding: 1rem;
}
/* Mobile responsiveness improvements */
@media (max-width: 768px) {
body {
padding: 1rem;
}
.container {
max-width: 100%;
}
.header {
flex-direction: column;
align-items: stretch;
gap: 1rem;
}
.title {
font-size: 2rem;
}
.subtitle {
font-size: 1rem;
}
.model-selector {
width: 100%;
}
.model-type-toggle {
justify-content: center;
}
.toggle-option {
flex: 1;
text-align: center;
}
textarea {
height: 120px;
font-size: 16px; /* Prevents zoom on iOS */
}
.keyboard-shortcut-hint {
top: 5px;
right: 5px;
font-size: 0.7rem;
padding: 0.2rem 0.4rem;
}
.search-toggle-btn {
width: 32px;
height: 32px;
min-width: 32px;
min-height: 32px;
}
.search-toggle-btn svg {
width: 16px;
height: 16px;
}
.stats-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
.stat-card {
padding: 1rem;
}
.stat-value {
font-size: 1.5rem;
}
.token-container {
max-height: 150px;
font-size: 0.8rem;
}
.token {
padding: 0.25rem 0.5rem;
font-size: 0.75rem;
}
.token-search-container {
padding: 1rem;
}
.token-search-row {
flex-direction: column;
gap: 1rem;
}
.token-search-controls {
justify-content: space-between;
flex-wrap: wrap;
gap: 0.5rem;
}
.token-search-btn {
flex: 1;
min-width: 60px;
}
.token-search-count {
order: -1;
width: 100%;
text-align: center;
margin-bottom: 0.5rem;
}
.token-search-input {
font-size: 16px; /* Prevents zoom on iOS */
}
.frequency-chart-container {
margin-top: 1rem;
padding: 0.75rem;
}
.frequency-chart-title {
flex-direction: column;
gap: 0.75rem;
align-items: stretch;
text-align: center;
}
.frequency-item {
flex-direction: column;
gap: 0.5rem;
align-items: stretch;
}
.frequency-token {
align-self: flex-start;
min-width: auto;
}
.frequency-bar-container {
width: 100%;
}
.tokenizer-info-tooltip {
width: 280px;
left: -50px;
}
.tokenizer-info-grid {
grid-template-columns: 1fr;
}
.file-info {
max-width: 200px;
font-size: 0.8rem;
}
.loading-content {
padding: 1.5rem;
min-width: 150px;
}
.loading-text {
font-size: 1rem;
}
.button-container {
flex-direction: column;
align-items: stretch;
}
button {
padding: 1rem 2rem;
font-size: 1rem;
}
}
@media (max-width: 480px) {
body {
padding: 0.5rem;
}
.title {
font-size: 1.75rem;
}
.card {
padding: 1rem;
}
.stat-card {
padding: 0.75rem;
}
.token-container {
padding: 0.75rem;
gap: 0.25rem;
}
.token {
padding: 0.2rem 0.4rem;
font-size: 0.7rem;
}
.tokenizer-info-tooltip {
width: 260px;
left: -60px;
}
.frequency-chart-container {
padding: 0.5rem;
}
.frequency-item {
padding: 0.375rem;
}
.frequency-token {
font-size: 0.7rem;
padding: 0.2rem 0.4rem;
}
}