/* Eatransform Copy Guard — Admin Styles */

#etcg-wrap {
    max-width: 780px;
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1a1a1a;
}

/* ── ヘッダー ── */
#etcg-header {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 16px;
    margin-bottom: 32px;
}

#etcg-header .etcg-logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1a1a1a;
}

#etcg-header .etcg-version {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* ── ノーティス ── */
.etcg-notice {
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 13px;
    border-left: 3px solid #1a1a1a;
    background: #f7f7f7;
}

.etcg-notice.success { border-color: #2e7d32; background: #f1f8f1; color: #2e7d32; }
.etcg-notice.error   { border-color: #c62828; background: #fdf1f1; color: #c62828; }

/* ── セクション ── */
.etcg-section {
    margin-bottom: 36px;
}

.etcg-section-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

/* ── フィールド行 ── */
.etcg-field {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: start;
    gap: 12px 24px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.etcg-field:last-child {
    border-bottom: none;
}

.etcg-label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    padding-top: 8px;
}

.etcg-desc {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
    line-height: 1.5;
}

/* ── インプット ── */
.etcg-input {
    width: 100%;
    max-width: 420px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    background: #fff;
    color: #1a1a1a;
    box-sizing: border-box;
    transition: border-color .15s;
}

.etcg-input:focus {
    border-color: #1a1a1a;
    outline: none;
    box-shadow: none;
}

.etcg-input.short {
    max-width: 100px;
}

.etcg-textarea {
    width: 100%;
    max-width: 520px;
    padding: 10px;
    font-size: 12px;
    font-family: monospace;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    background: #fff;
    color: #1a1a1a;
    box-sizing: border-box;
    resize: vertical;
    line-height: 1.6;
    transition: border-color .15s;
}

.etcg-textarea:focus {
    border-color: #1a1a1a;
    outline: none;
}

/* ── トグル ── */
.etcg-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding-top: 6px;
}

.etcg-toggle input[type="checkbox"] {
    width: 36px;
    height: 20px;
    appearance: none;
    background: #d0d0d0;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
    margin: 0;
}

.etcg-toggle input[type="checkbox"]:checked {
    background: #1a1a1a;
}

.etcg-toggle input[type="checkbox"]::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: left .2s;
}

.etcg-toggle input[type="checkbox"]:checked::after {
    left: 19px;
}

.etcg-toggle-label {
    font-size: 13px;
    color: #1a1a1a;
}

/* ── プレースホルダーバッジ ── */
.etcg-placeholders {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.etcg-badge {
    font-size: 11px;
    font-family: monospace;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 2px 7px;
    color: #444;
}

/* ── 送信ボタン ── */
#etcg-submit-wrap {
    padding-top: 24px;
    border-top: 2px solid #1a1a1a;
    margin-top: 12px;
}

.etcg-btn {
    height: 38px;
    padding: 0 28px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background .15s;
}

.etcg-btn:hover {
    background: #333;
}
