/**
 * Aumframe — admin screen.
 *
 * Carries its own copy of the shared Aum ecosystem ".aml-app" design system
 * (brand #e8501a), the same one AumViso, AumNexCart and the AumCreate theme
 * use, so the suite reads as one product. Everything is scoped to .aml-app so
 * it can never leak into other admin screens.
 */

.aml-app {
	--aml-brand: #e8501a;
	--aml-brand-dark: #c23f12;
	--aml-ink: #1d2327;
	--aml-muted: #646970;
	--aml-faint: #8c8f94;
	--aml-line: #e4e4e7;
	--aml-surface: #ffffff;
	max-width: 1040px;
	margin-right: 20px;
}

.aml-app .dashicons { line-height: 1; }

/* Header */
.aml-header { display: flex; align-items: center; gap: 14px; margin: 18px 0 22px; }
.aml-logo {
	width: 46px; height: 46px; border-radius: 13px; background: var(--aml-brand);
	display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 auto;
}
.aml-logo .dashicons { font-size: 26px; width: 26px; height: 26px; }
.aml-title {
	display: flex; align-items: center; gap: 10px;
	font-size: 21px; font-weight: 600; line-height: 1.2; margin: 0; padding: 0; color: var(--aml-ink);
}
.aml-badge {
	font-size: 11px; font-weight: 600; letter-spacing: .02em;
	color: var(--aml-brand-dark); background: #fce6dc; padding: 2px 9px; border-radius: 20px;
}
.aml-subtitle { margin: 2px 0 0; color: var(--aml-muted); font-size: 13px; }

/* Cards */
.aml-app .aml-card {
	background: var(--aml-surface); border: 1px solid var(--aml-line); border-radius: 14px;
	padding: 20px 22px; margin: 0 0 16px; box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.aml-card-h {
	display: flex; align-items: center; gap: 9px;
	font-size: 15px; font-weight: 600; margin: 0 0 14px; padding: 0; color: var(--aml-ink);
}
.aml-card-h .dashicons { color: var(--aml-brand); font-size: 19px; width: 19px; height: 19px; }
.aml-card-desc { margin: -6px 0 16px; color: var(--aml-muted); font-size: 13px; }
.aml-card-desc code { font-size: 12px; }

/* Fields */
.aml-field { margin: 0 0 16px; }
.aml-field:last-child { margin-bottom: 0; }
.aml-label { display: block; font-size: 13px; font-weight: 600; color: var(--aml-ink); margin-bottom: 6px; }
.aml-app .aml-field input[type="text"],
.aml-app .aml-field select,
.aml-app .aml-field textarea { width: 100%; border-radius: 8px; }
.aml-app .aml-field select { height: 36px; }
.aml-app .aml-field textarea { font-family: Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55; }
.aml-field-hint { margin: 6px 0 0; font-size: 12px; color: var(--aml-faint); }
.aml-field-hint code {
	font-size: 11px; background: #f2f2f4; padding: 2px 6px;
	border-radius: 5px; color: var(--aml-muted);
}

/* Two fields side by side on wide screens */
.aml-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }

/* Buttons */
.aml-app .aml-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 5px;
	height: 36px; padding: 0 15px; border-radius: 8px; border: 1px solid #c3c4c7;
	background: #fff; color: var(--aml-ink); font-size: 13px; font-weight: 600;
	cursor: pointer; text-decoration: none; transition: border-color .12s, background .12s;
}
.aml-app .aml-btn:hover { border-color: var(--aml-brand); color: var(--aml-brand-dark); }
.aml-app .aml-btn .dashicons { font-size: 16px; width: 16px; height: 16px; margin: 0; }
.aml-app .aml-btn-primary { height: 40px; padding: 0 22px; border: 0; background: var(--aml-brand); color: #fff; }
.aml-app .aml-btn-primary:hover { background: var(--aml-brand-dark); color: #fff; }
.aml-actions-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 0; }

/* Live status text written by admin.js */
.aml-status { font-size: 13px; color: var(--aml-muted); }

/* Template table */
.aml-app .aml-table { border: 1px solid var(--aml-line); border-radius: 10px; overflow: hidden; }
.aml-app .aml-table th { color: var(--aml-faint); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.aml-app .aml-table td code { font-size: 11.5px; background: #f2f2f4; border-radius: 5px; padding: 2px 6px; }
.aml-app .aml-table a { color: var(--aml-brand-dark); }
.aml-empty { color: var(--aml-muted); }

/* ==========================================================================
   #TEMPLATE SCOPE
   --------------------------------------------------------------------------
   The rules column is JSON: exact, and unreadable to the person deciding
   whether editing a row is safe. These two say the same thing in a sentence,
   and mark the one row that wraps every page.
   ========================================================================== */

.af-tag-shell {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #fdf0ea;
    color: var(--aml-brand-dark);
    font-size: 11px;
    font-weight: 600;
    vertical-align: 2px;
}

.af-scope-line {
    margin-top: 2px;
    color: var(--aml-muted);
    font-size: 12px;
    line-height: 1.5;
}
