.base64-page { color: #213047; }
.base64-page * { box-sizing: border-box; }
.base64-heading { margin-bottom: 28px; }
.base64-eyebrow { margin: 0 0 8px; color: #08776d; font-size: .82rem; font-weight: 800; }
.base64-heading h1 { margin: 0 0 12px; color: #13253b; font-size: 2rem; line-height: 1.35; letter-spacing: 0; word-break: keep-all; }
.base64-heading h1 span { display: block; font-size: 1.22rem; font-weight: 600; }
.base64-heading > p:last-child { max-width: 780px; color: #53667d; font-size: .94rem; line-height: 1.75; }
.base64-tool { border: 1px solid #d5e0e8; border-radius: 8px; padding: 22px; background: #fff; }
.base64-tool-header { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.base64-tool-header h2 { margin: 0 0 5px; font-size: 1.25rem; }
.base64-tool-header p { margin: 0; color: #63758a; font-size: .87rem; }
.base64-tabs, .base64-mode { display: flex; gap: 6px; flex-wrap: wrap; }
.base64-page button { cursor: pointer; border-radius: 6px !important; font-size: .86rem; letter-spacing: 0; }
.base64-tabs button, .base64-mode button { background: #f3f7fa !important; border: 1px solid #cad8e3 !important; color: #20374e !important; padding: 9px 13px !important; min-height: 40px; }
.base64-tabs button[aria-selected="true"], .base64-mode button[aria-pressed="true"] { background: #e9f5f2 !important; border-color: #138779 !important; color: #07594f !important; font-weight: 800; }
.base64-mode { margin-bottom: 16px; }
.base64-options { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 0 0 16px; }
.base64-options label { display: grid; gap: 5px; min-width: 145px; color: #20374e; font-size: .84rem; font-weight: 700; }
.base64-options select, .base64-options input:not([type="checkbox"]) { width: 100%; height: 40px; padding: 5px 10px; border: 1px solid #cbd9e3; border-radius: 5px; background: #fff; color: #18304a; font-size: .86rem; }
.base64-options label.base64-check { display: flex; min-height: 40px; align-items: center; gap: 7px; min-width: auto; }
.base64-check input { width: 16px; height: 16px; margin: 0; }
.base64-workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.base64-field { min-width: 0; }
.base64-field label, #filePanel > label { display: block; margin: 0 0 7px; font-size: .88rem; font-weight: 800; }
.base64-page textarea { display: block; width: 100%; min-height: 220px; padding: 12px; resize: vertical; border: 1px solid #cad8e3; border-radius: 6px; background: #fff; color: #172e45; font: .86rem/1.55 Consolas, "Courier New", monospace; overflow-wrap: anywhere; }
.base64-page textarea[readonly] { background: #f7fafb; }
.base64-count, .base64-hint { margin: 7px 0 0; color: #587086; font-size: .81rem; line-height: 1.5; overflow-wrap: anywhere; }
.base64-hint:empty { display: none; }
.base64-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.base64-actions button, .base64-binary button, .base64-json button { min-height: 40px; padding: 8px 12px !important; border: 1px solid #cbd9e3 !important; background: #fff !important; color: #19364d !important; }
.base64-actions .base64-primary { background: #0b766b !important; border-color: #0b766b !important; color: #fff !important; }
.base64-status { min-height: 20px; margin: 12px 0 0; color: #175e57; font-size: .85rem; line-height: 1.5; }
.base64-status[data-error="true"] { color: #b4232f; }
.base64-json, .base64-binary { margin-top: 15px; padding: 14px; border: 1px solid #d9e5e9; border-radius: 6px; background: #f7fbfa; }
.base64-json { display: flex; align-items: center; gap: 10px; font-size: .84rem; }
.base64-binary p:first-child { margin: 0 0 10px; font-weight: 700; }
.base64-binary img, #base64FilePreview { display: block; max-width: min(100%, 360px); max-height: 250px; object-fit: contain; margin: 12px 0; border: 1px solid #d9e5e9; border-radius: 5px; background: #fff; }
.base64-page [hidden] { display: none !important; }
.base64-drop { padding: 19px; margin-bottom: 14px; border: 1px dashed #9ab9ba; border-radius: 6px; background: #f6fbfa; }
.base64-drop[data-over="true"] { border-color: #0b766b; background: #e5f6f0; }
.base64-drop label { display: block; margin-bottom: 8px; font-weight: 800; cursor: pointer; }
.base64-drop p { margin: 8px 0 0; color: #5c7284; font-size: .81rem; }
.base64-drop input { max-width: 100%; }
#base64FileResult { min-height: 150px; }
.base64-privacy { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid #e1e9ee; color: #496477; font-size: .82rem; }
.base64-guide, .base64-faq { margin-top: 36px; padding-top: 25px; border-top: 1px solid #dce5ec; }
.base64-guide h2, .base64-faq h2 { font-size: 1.28rem; }
.base64-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.base64-guide-grid section { padding: 17px 0; border-bottom: 1px solid #e4ebf0; }
.base64-guide-grid h3 { margin: 0 0 5px; font-size: 1rem; }
.base64-guide-grid p, .base64-faq p { margin: 0; color: #536a80; font-size: .86rem; line-height: 1.7; }
.base64-faq details { padding: 13px 0; border-bottom: 1px solid #e2e9ee; }
.base64-faq summary { cursor: pointer; font-weight: 700; }
.base64-faq p { padding-top: 9px; }
@media (max-width: 760px) { .base64-workspace, .base64-guide-grid { grid-template-columns: 1fr; } .base64-tool-header { display: block; } .base64-tabs { margin-top: 12px; } }
@media (max-width: 480px) { .base64-tool { padding: 15px; } .base64-heading h1 { font-size: 1.55rem; } .base64-heading h1 span { font-size: 1rem; } .base64-actions button { flex: 1 1 calc(50% - 8px); white-space: normal; line-height: 1.25; } .base64-options label { flex: 1 1 130px; } }
