:root { color-scheme: light; font-family: Arial, sans-serif; background: #f3f5f7; color: #18212f; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; }
.code-app { width: min(100%, 480px); padding: 24px; }
.code-panel { background: #fff; border: 1px solid #d6dce3; border-radius: 8px; padding: 28px; box-shadow: 0 8px 24px rgb(24 33 47 / 8%); }
.code-header h1 { margin: 0; font-size: 24px; }.code-header p,.muted { color: #667085; font-size: 14px; }
label { display: block; margin: 22px 0 8px; font-weight: 600; }.input-row,.actions,.number-row { display: flex; gap: 8px; }

select { display: block; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid #b9c3cf; border-radius: 5px; padding: 11px 36px 11px 12px; font-size: 14px; background: #fff; }
#template-selection { min-width: 0; overflow: hidden; }
input { min-width: 0; flex: 1; border: 1px solid #b9c3cf; border-radius: 5px; padding: 11px 12px; font-size: 16px; }
button { border: 0; border-radius: 5px; padding: 10px 14px; font-size: 14px; cursor: pointer; background: #0969da; color: #fff; }
button:hover { background: #0556b3; } button.quiet,#copy-phone { background: #e9edf2; color: #263343; }
.number-row { align-items: center; justify-content: space-between; padding-top: 22px; }.number-row span { font-size: 24px; font-weight: 700; word-break: break-all; }
.state { margin: 20px 0 4px; font-weight: 600; }
.status-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 4px; padding: 12px; border: 1px solid #e4e7ec; border-radius: 6px; background: #f8fafc; }
.status-summary > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.summary-label { color: #667085; font-size: 12px; }
.status-summary strong { font-size: 14px; overflow-wrap: anywhere; }.actions { flex-wrap: wrap; margin-top: 20px; }.error { margin: 18px 0 0; color: #b42318; }.result { margin-top: 24px; padding: 16px; border-left: 4px solid #0a8f53; background: #ecfdf3; }.result h2 { margin: 0 0 8px; font-size: 16px; }.result strong { font-size: 28px; letter-spacing: 2px; }.result p { white-space: pre-wrap; word-break: break-word; }
@media (max-width: 480px) { .code-app { padding: 12px; }.code-panel { padding: 20px; }.input-row { flex-direction: column; }.input-row button { width: 100%; } }
