/* CostEm — gate styling (foundation).
   Minimal and theme-agnostic. The render layer will own the full workbench
   look; this only needs to make the lock screen and placeholder legible. */

.costem-gate {
	max-width: 560px;
	margin: 2rem auto;
	padding: 1.5rem 1.75rem;
	border: 1px solid #d9d9e0;
	border-radius: 10px;
	background: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1c1c28;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.costem-gate h2 {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
}

.costem-gate p {
	margin: 0.5rem 0;
	line-height: 1.5;
}

/* --- lock screen --- */
.costem-lock-form {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
}

.costem-lock-form input[name="pin"] {
	flex: 1 1 auto;
	font-size: 1.25rem;
	letter-spacing: 0.3em;
	text-align: center;
	padding: 0.55rem 0.75rem;
	border: 1px solid #c4c4d0;
	border-radius: 8px;
}

.costem-lock-form button,
.costem-lock-btn {
	padding: 0.55rem 1.1rem;
	font-size: 1rem;
	border: 0;
	border-radius: 8px;
	background: #2d4cff;
	color: #fff;
	cursor: pointer;
}

.costem-lock-form button:disabled,
.costem-lock-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.costem-lock-error {
	color: #b3261e;
	font-weight: 600;
}

/* --- placeholder workbench --- */
.costem-placeholder-tag {
	color: #555;
	font-size: 0.9rem;
}

.costem-kv {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
}

.costem-kv th,
.costem-kv td {
	text-align: left;
	padding: 0.4rem 0.6rem;
	border-bottom: 1px solid #ececf2;
	font-size: 0.95rem;
}

.costem-kv th {
	width: 45%;
	color: #555;
	font-weight: 600;
}

.costem-lock-btn {
	margin-top: 0.5rem;
}

/* --- admin diagnostics --- */
.costem-admin-warn,
.costem-admin-note {
	font-size: 0.88rem;
	padding: 0.75rem 0.9rem;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.costem-admin-warn {
	background: #fff4e5;
	border: 1px solid #f0c89a;
	color: #7a4b00;
}

.costem-admin-warn ul {
	margin: 0.4rem 0 0;
	padding-left: 1.1rem;
}

.costem-admin-warn code {
	background: rgba(0, 0, 0, 0.06);
	padding: 0.05rem 0.3rem;
	border-radius: 4px;
	font-size: 0.85em;
}

.costem-admin-note {
	background: #e9f7ef;
	border: 1px solid #aed8bf;
	color: #1d6b3f;
}

/* --- notices --- */
.costem-notice-detail {
	color: #555;
	font-size: 0.9rem;
}
