.wal-card { padding: 28px; }
.wal-title-bar { background: linear-gradient(135deg, var(--site-dark) 0%, var(--site-dark-2) 100%); border-radius: 10px 10px 0 0; padding: 18px 24px; margin: -28px -28px 24px; }
.wal-title-bar h1 { color: #fff; margin: 0; font-size: 1.4em; text-align: center; display: flex; align-items: center; justify-content: center; gap: 10px; }

.wal-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.wal-panel-title { font-size: .78em; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.wal-panel-title i { color: #16a34a; }

.wal-field { margin-bottom: 18px; }
.wal-field label { display: block; font-weight: 600; font-size: .9em; color: #23272f; margin-bottom: 6px; }
.wal-field label i { color: var(--site-light); margin-right: 6px; }
.wal-field select, .wal-field input[type="text"], .wal-field input[type="tel"], .wal-field textarea { width: 100%; box-sizing: border-box; border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; font-size: .95em; font-family: inherit; outline: none; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.wal-field select:focus, .wal-field input:focus, .wal-field textarea:focus { border-color: var(--site-light); box-shadow: 0 0 0 3px rgba(20, 184, 166, .15); }
.wal-field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.wal-field input.wal-bad { border-color: #dc2626; background: #fef2f2; }

.wal-phone-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; }
.wal-help { font-size: .8em; color: #6b7280; margin-top: 6px; line-height: 1.5; }
.wal-help-ok { color: #15803d; }
.wal-help-bad { color: #dc2626; font-weight: 600; }

.wal-msg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wal-msg-head label { margin-bottom: 0; }
.wal-count { font-size: .78em; color: #6b7280; white-space: nowrap; }
.wal-count-warn { color: #b45309; font-weight: 600; }
.wal-msg-head + textarea { margin-top: 6px; }

.wal-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.wal-chip { font: inherit; font-size: .8em; font-weight: 600; color: var(--site-dark); background: #f7f8fa; border: 1px solid #e5e7eb; border-radius: 20px; padding: 6px 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.wal-chip i { color: #16a34a; }
.wal-chip:hover { background: var(--site-dark); color: #fff; border-color: var(--site-dark); }
.wal-chip:hover i { color: #fff; }

.wal-output { background: #f7f8fa; border: 1px solid #eee; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.wal-output-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.wal-output-head label { font-weight: 600; font-size: .9em; color: #23272f; }
.wal-output-head label i { color: var(--site-light); margin-right: 6px; }
.wal-output-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wal-link-box { width: 100%; box-sizing: border-box; border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; font-family: "Courier New", monospace; font-size: .85em; background: #fff; color: #23272f; outline: none; }
.wal-link-box:focus { border-color: var(--site-light); }
textarea.wal-link-box { min-height: 96px; resize: vertical; line-height: 1.5; }
.wal-note { font-size: .78em; color: #6b7280; margin-top: 8px; line-height: 1.5; }

.wal-btn { font: inherit; font-size: .8em; font-weight: 600; color: var(--site-dark); background: #fff; border: 1px solid var(--site-light); border-radius: 20px; padding: 5px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; transition: background .15s ease; }
.wal-btn:hover { background: #f0fdfa; color: var(--site-dark); }
.wal-btn.wal-copied { background: var(--site-success-bg); border-color: #86efac; color: var(--site-success); }
.wal-btn-primary { background: #16a34a; border-color: #16a34a; color: #fff; }
.wal-btn-primary:hover { background: #15803d; color: #fff; }
.wal-btn:disabled, .wal-btn.wal-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

.wal-preview-wrap { display: flex; align-items: center; justify-content: center; padding: 18px; background: #fff; border: 1px dashed #d1d5db; border-radius: 8px; }
.wal-preview { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; background: #16a34a; color: #fff; border-radius: 8px; font-weight: 600; text-decoration: none; }
.wal-preview:hover { background: #15803d; color: #fff; }
.wal-preview.wal-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

.wal-qr-box { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wal-qr-frame { width: 240px; max-width: 100%; aspect-ratio: 1 / 1; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wal-qr-frame canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.wal-qr-placeholder { text-align: center; color: #9ca3af; padding: 20px; font-size: .85em; }
.wal-qr-placeholder i { font-size: 2.4em; display: block; margin-bottom: 8px; color: #d1d5db; }
.wal-hide { display: none !important; }

.wal-summary { margin-top: 6px; font-size: .82em; color: #6b7280; }
.wal-disclaimer { margin-top: 14px; font-size: .78em; color: #9ca3af; text-align: center; line-height: 1.5; }

@media (max-width: 800px) {
    .wal-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .wal-card { padding: 18px; }
    .wal-title-bar { margin: -18px -18px 18px; }
    .wal-phone-row { grid-template-columns: minmax(0, 1fr); }
    .wal-output-head { flex-direction: column; align-items: flex-start; }
}
