/* Layer Hub — front door (login + launcher). On-brand, light by default,
   dark via prefers-color-scheme. Scoped to the bare template body. */
.layer-hub-bare{
	--bg:#eef1f5; --panel:#ffffff; --panel-2:#f4f7fa; --line:#e0e6ee; --line-strong:#cdd6e2;
	--ink:#18212e; --ink-2:#54606f; --ink-3:#8290a0;
	--brand:#1d314f; --brand-ink:#ffffff; --accent:#3d6199; --accent-ink:#ffffff;
	--shadow:0 1px 2px rgba(20,30,45,.06),0 8px 24px rgba(20,30,45,.08);
	margin:0; background:var(--bg); color:var(--ink);
	font-family:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
	font-size:15px; line-height:1.45; -webkit-font-smoothing:antialiased;
	min-height:100vh; min-height:100dvh;
}
@media (prefers-color-scheme:dark){ .layer-hub-bare{
	--bg:#0f141b; --panel:#171e28; --panel-2:#1c242f; --line:#28313d; --line-strong:#3a4553;
	--ink:#e7ecf3; --ink-2:#a7b2c1; --ink-3:#6e7c8d;
	--brand:#1d314f; --brand-ink:#ffffff; --accent:#5a83c0; --accent-ink:#0d1420;
	--shadow:0 1px 2px rgba(0,0,0,.3),0 10px 30px rgba(0,0,0,.4);
}}
.layer-hub-bare *{ box-sizing:border-box; }
.layer-hub-bare a{ color:var(--accent); }

/* ------- shared wrap ------- */
.layer-hub-bare .lh-wrap{ max-width:840px; margin:0 auto; padding:calc(env(safe-area-inset-top) + 22px) 16px calc(env(safe-area-inset-bottom) + 28px); }

/* ------- login ------- */
.layer-hub-bare .lh-login{ max-width:420px; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:100dvh; }
.layer-hub-bare .lh-card{ width:100%; background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:30px 26px 26px; box-shadow:var(--shadow); text-align:center; }
.layer-hub-bare .lh-logo{ width:56px; height:56px; border-radius:15px; background:var(--brand); color:var(--brand-ink); display:grid; place-items:center; font-weight:800; font-size:28px; margin:0 auto 14px; }
.layer-hub-bare .lh-logo.sm{ width:40px; height:40px; border-radius:11px; font-size:20px; margin:0; }
.layer-hub-bare .lh-title{ font-size:20px; font-weight:700; margin:0 0 3px; }
.layer-hub-bare .lh-sub{ color:var(--ink-2); font-size:13.5px; margin:0 0 20px; }
.layer-hub-bare .lh-msg{ font-size:16px; margin:6px 0 18px; }

/* WordPress login form markup */
.layer-hub-bare #loginform{ text-align:left; }
.layer-hub-bare #loginform p{ margin:0 0 13px; }
.layer-hub-bare #loginform label{ display:block; font-size:11.5px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-3); margin-bottom:6px; }
.layer-hub-bare #loginform input[type=text],
.layer-hub-bare #loginform input[type=password]{
	width:100%; background:var(--panel-2); border:1px solid var(--line-strong); border-radius:11px;
	padding:13px 13px; color:var(--ink); font-size:16px; font-family:inherit;
}
.layer-hub-bare #loginform input:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(61,97,153,.2); }
.layer-hub-bare .login-remember{ display:flex; align-items:center; }
.layer-hub-bare .login-remember label{ display:flex; align-items:center; gap:8px; text-transform:none; letter-spacing:0; font-weight:500; font-size:13.5px; color:var(--ink-2); margin:0; }
.layer-hub-bare .login-remember input{ width:18px; height:18px; accent-color:var(--accent); }
.layer-hub-bare .login-submit{ margin-top:4px !important; }
.layer-hub-bare #wp-submit{
	width:100%; border:0; border-radius:12px; padding:15px 0; font-weight:700; font-size:16px;
	background:var(--accent); color:var(--accent-ink); cursor:pointer; font-family:inherit;
}
.layer-hub-bare #wp-submit:hover{ filter:brightness(1.05); }
.layer-hub-bare .lh-forgot{ display:inline-block; margin-top:16px; font-size:13px; text-decoration:none; }
.layer-hub-bare .lh-foot{ text-align:center; color:var(--ink-3); font-size:12px; margin:18px 0 0; }

/* generic button (signed-in fallback) */
.layer-hub-bare .lh-btn{ display:inline-block; border-radius:12px; padding:14px 22px; font-weight:700; text-decoration:none; }
.layer-hub-bare .lh-btn.primary{ background:var(--accent); color:var(--accent-ink); }

/* ------- launcher ------- */
.layer-hub-bare .lh-hdr{ margin-bottom:18px; }
.layer-hub-bare .lh-brandrow{ display:flex; align-items:center; gap:13px; }
.layer-hub-bare .lh-brandtxt{ flex:1; min-width:0; }
.layer-hub-bare .lh-hi{ font-size:19px; font-weight:700; }
.layer-hub-bare .lh-brandrow .lh-sub{ margin:0; font-size:13px; }
.layer-hub-bare .lh-logout{ display:inline-flex; align-items:center; gap:7px; text-decoration:none; color:var(--ink-2); background:var(--panel); border:1px solid var(--line); border-radius:11px; padding:9px 13px; font-size:13.5px; font-weight:600; }
.layer-hub-bare .lh-logout:hover{ background:var(--panel-2); }
.layer-hub-bare .lh-logout .dashicons{ font-size:18px; width:18px; height:18px; }

.layer-hub-bare .lh-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:13px; }
.layer-hub-bare .lh-tile{
	display:flex; flex-direction:column; gap:2px; background:var(--panel); border:1px solid var(--line);
	border-radius:16px; padding:18px 18px 16px; text-decoration:none; color:var(--ink); box-shadow:var(--shadow);
	transition:transform .12s ease, border-color .12s ease;
}
.layer-hub-bare .lh-tile:hover{ transform:translateY(-2px); border-color:var(--accent); }
.layer-hub-bare .lh-tile:active{ transform:translateY(0); }
.layer-hub-bare .lh-ic{ font-size:30px; width:30px; height:30px; color:var(--accent); margin-bottom:10px; }
.layer-hub-bare .lh-tl{ font-weight:700; font-size:16px; }
.layer-hub-bare .lh-td{ font-size:13px; color:var(--ink-2); }

.layer-hub-bare .lh-h{ font-size:12px; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--ink-3); margin:26px 2px 12px; }
.layer-hub-bare .lh-adminrow{ display:flex; flex-wrap:wrap; gap:9px; }
.layer-hub-bare .lh-alink{ display:inline-flex; align-items:center; gap:8px; background:var(--panel); border:1px solid var(--line); border-radius:11px; padding:9px 13px; text-decoration:none; color:var(--ink-2); font-size:13.5px; font-weight:600; }
.layer-hub-bare .lh-alink:hover{ background:var(--panel-2); color:var(--ink); }
.layer-hub-bare .lh-alink .dashicons{ font-size:18px; width:18px; height:18px; color:var(--accent); }

.layer-hub-bare .lh-note{ background:var(--panel); border:1px dashed var(--line-strong); border-radius:14px; padding:18px; color:var(--ink-2); font-size:14px; }
.layer-hub-bare .lh-note code{ background:var(--panel-2); border:1px solid var(--line); border-radius:6px; padding:1px 6px; font-family:"IBM Plex Mono",ui-monospace,monospace; font-size:12.5px; }

@media (max-width:480px){
	.layer-hub-bare .lh-logouttxt{ display:none; }
	.layer-hub-bare .lh-grid{ grid-template-columns:1fr 1fr; gap:11px; }
	.layer-hub-bare .lh-tile{ padding:15px 14px 14px; }
	.layer-hub-bare .lh-td{ display:none; }
}
