* { box-sizing: border-box; }
body {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    background: #f5f5f5;
    color: #555;
}
.site-header {
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
}
.site-header .logo-line {
    display: block;
    width: 80%;
    max-height: 96px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}
h1 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: #444;
}
.intro {
    font-size: 0.78rem;
    line-height: 1.55;
    margin: 0 0 1rem;
    color: #555;
}
.intro strong {
    font-size: 0.92rem;
}
.input-section {
    margin-bottom: 1rem;
}
.input-section .stats {
    text-align: right;
}
.input-wrap {
    position: relative;
    border: 2px dashed #aaa;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s, background 0.2s;
}
.input-wrap.dragover {
    border-color: #4a9;
    background: #f0fff4;
}
#input {
    display: block;
    width: 100%;
    min-height: 220px;
    padding: 1rem;
    font: 10px/1.5 monospace;
    border: none;
    border-radius: 6px;
    resize: vertical;
}
#input:focus {
    outline: none;
}
.input-hint {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    font-size: 11px;
    font-weight: 400;
    color: #888;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.input-hint i {
    opacity: 0.9;
}
.actions {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}
button {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#process {
    background: #8b2525;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
#process:hover:not(:disabled) {
    background: #9a2a2a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}
#process:disabled {
    background: #b0b0b0;
    color: #888;
    cursor: not-allowed;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-shadow: none;
}
#download {
    background: #8b2525;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
#download:hover:not(:disabled) {
    background: #9a2a2a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}
#download:disabled {
    background: #b0b0b0;
    color: #888;
    cursor: not-allowed;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-shadow: none;
}
.output-section #download {
    margin-top: 0.5rem;
}
.output-section label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #444;
}
.output-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.output-header label[for="output"] {
    margin-right: 0.25rem;
}
.output-header .format-label {
    margin-left: auto;
    font-weight: 400;
    font-size: 0.85rem;
    color: #666;
}
#format {
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}
#output {
    display: block;
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    font: 10px/1.5 monospace;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    resize: vertical;
}
.stats {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: #666;
}
.output-section .stats {
    text-align: right;
}
