/* Email Signature Generator - tool-specific styles. Accent blue #2563eb. */
:root { --es-accent: #2563eb; --es-accent-dark: #1d4ed8; }

.page-hero h1 .es-hero-mark {
    width: 1em; height: 1em; vertical-align: -0.12em; margin-right: 0.4rem; color: var(--es-accent);
}

/* ---- Top row (Load sample) ---- */
.es-top-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px 14px;
    flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #eef0f4;
}
.es-top-hint { font-size: 0.85rem; color: #64748b; }
.es-top-actions { display: inline-flex; gap: 8px; }
.es-top-btn { font-size: 0.82rem; padding: 5px 12px; }

/* ---- Style row ---- */
.es-style-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 18px; }
.es-style-label { font-weight: 600; font-size: 0.88rem; color: #334155; }
.es-style-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.es-style-pill {
    font: inherit; font-size: 0.85rem; font-weight: 600; padding: 6px 14px;
    border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #475569; cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.es-style-pill:hover { border-color: var(--es-accent); color: var(--es-accent-dark); }
.es-style-pill.is-active { background: var(--es-accent); border-color: var(--es-accent); color: #fff; }
.es-color { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: #334155; margin-left: auto; }
.es-color input[type="color"] { width: 40px; height: 30px; padding: 2px; border: 1px solid #d7dbe0; border-radius: 8px; background: #fff; cursor: pointer; }

/* ---- Fields ---- */
.es-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.es-field { display: flex; flex-direction: column; }
.es-label { font-weight: 600; font-size: 0.85rem; color: #334155; margin-bottom: 5px; }
/* flex:0 0 auto guards the shared .text-input flex-basis-as-height trap. */
.es-input { width: 100%; box-sizing: border-box; flex: 0 0 auto; font-size: 0.97rem; }

.es-photo-row { margin-top: 16px; border-top: 1px solid #eef0f4; padding-top: 14px; }
.es-photo-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.es-photo-controls input[type="file"] { font-size: 0.9rem; }
.es-photo-shape { display: inline-flex; gap: 12px; font-size: 0.9rem; color: #334155; }
.es-photo-shape label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.es-photo-hint { margin: 8px 0 0; font-size: 0.8rem; color: #94a3b8; }

/* ---- Preview ---- */
.es-preview-card {
    margin-top: 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
    padding: 18px 20px; box-shadow: 0 1px 3px rgba(15,23,42,0.05);
}
.es-preview-head { margin-bottom: 10px; }
.es-preview-label { font-weight: 700; font-size: 0.9rem; color: var(--es-accent-dark); }
.es-preview {
    border: 1px dashed #d7dbe0; border-radius: 8px; padding: 18px; background: #fbfcfe;
    overflow-x: auto; min-height: 60px;
}
.es-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.es-copy-btn { background: var(--es-accent); border-color: var(--es-accent); }
.es-copy-btn:hover { background: var(--es-accent-dark); border-color: var(--es-accent-dark); color: #fff; }

@media (max-width: 560px) {
    .es-grid { grid-template-columns: 1fr; }
    .es-color { margin-left: 0; }
    .es-actions .primary-btn, .es-actions .ghost-btn { width: 100%; }
}
