.cn-header { margin-bottom: 24px; }
.cn-title { font-size: 28px; font-weight: 700; color: #111827; margin: 0 0 8px; }
.cn-desc { font-size: 15px; color: #6b7280; margin: 0; }

.cn-converter { margin-bottom: 20px; padding: 24px; }
.cn-input-wrap { position: relative; margin-bottom: 16px; }
.cn-input { width: 100%; padding: 16px 48px 16px 16px; border: 2px solid #e5e7eb; border-radius: 12px; font-size: 24px; font-family: 'SF Mono', Monaco, monospace; }
.cn-input:focus { outline: none; border-color: #3b82f6; }
.cn-input::placeholder { color: #9ca3af; font-size: 16px; }
.cn-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: none; border-radius: 50%; background: #e5e7eb; color: #6b7280; font-size: 18px; cursor: pointer; display: none; }
.cn-input:not(:placeholder-shown) + .cn-clear { display: block; }

.cn-options { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.cn-checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #374151; cursor: pointer; }
.cn-checkbox input { margin: 0; }

.cn-result-box { background: #f9fafb; border: 2px dashed #d1d5db; border-radius: 12px; padding: 20px; text-align: center; position: relative; }
.cn-result-label { font-size: 12px; color: #6b7280; margin-bottom: 12px; }
.cn-result-text { font-size: 24px; font-weight: 700; color: #111827; line-height: 1.6; min-height: 60px; display: flex; align-items: center; justify-content: center; word-break: break-all; }
.cn-copy-btn { position: absolute; right: 12px; top: 12px; display: flex; align-items: center; gap: 4px; padding: 6px 12px; border: 1px solid #e5e7eb; border-radius: 6px; background: white; font-size: 13px; color: #374151; cursor: pointer; }
.cn-copy-btn:hover { background: #f3f4f6; }
.cn-copy-btn svg { width: 14px; height: 14px; }
.cn-copy-btn.copied { background: #ecfdf5; border-color: #10b981; color: #10b981; }

.cn-presets { margin-bottom: 20px; padding: 20px; }
.cn-presets h3 { font-size: 16px; font-weight: 600; margin: 0 0 16px; }
.cn-preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.cn-preset { padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.cn-preset:hover { background: #eff6ff; border-color: #3b82f6; color: #3b82f6; }

.cn-guide { padding: 20px; }
.cn-guide h3 { font-size: 16px; font-weight: 600; margin: 0 0 16px; }
.cn-guide-content { font-size: 14px; line-height: 1.8; color: #374151; }
.cn-guide-content h4 { font-size: 14px; font-weight: 600; margin: 16px 0 8px; }
.cn-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.cn-table td { padding: 8px 12px; border: 1px solid #e5e7eb; text-align: center; }
.cn-table tr:nth-child(odd) { background: #f9fafb; }
.cn-examples { list-style: none; padding: 0; margin: 12px 0; }
.cn-examples li { padding: 8px 0; border-bottom: 1px solid #f3f4f6; }
.cn-examples li:last-child { border-bottom: none; }
.cn-examples code { background: #f3f4f6; padding: 2px 8px; border-radius: 4px; font-family: monospace; }

@media (max-width: 640px) {
    .cn-title { font-size: 22px; }
    .cn-input { font-size: 18px; }
    .cn-result-text { font-size: 18px; }
}

@media (prefers-color-scheme: dark) {
    .cn-input { background: #1f2937; border-color: #374151; color: #f9fafb; }
    .cn-result-box { background: #1f2937; border-color: #374151; }
    .cn-preset { background: #374151; border-color: #4b5563; color: #d1d5db; }
    .cn-table td { border-color: #374151; }
    .cn-table tr:nth-child(odd) { background: #374151; }
}
