/* CoreNet CRM — customer portal styles */

.cncrm-portal {
	--cn-font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--cn-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--cn-ink: #101828;
	--cn-body: #344054;
	--cn-muted: #667085;
	--cn-faint: #98a2b3;
	--cn-line: #e4e7ec;
	--cn-line-strong: #d0d5dd;
	--cn-bg: #f7f9fc;
	--cn-accent: #1570ef;
	--cn-accent-dark: #175cd3;
	--cn-accent-soft: #eff4ff;
	--cn-side-bg: #0c1a2e;
	--cn-side-line: rgba(255, 255, 255, 0.08);
	--cn-side-ink: #a3b3c7;
	--cn-side-active: #16283f;
	--cn-ok-bg: #ecfdf3;
	--cn-ok-ink: #067647;
	--cn-ok-dot: #17b26a;
	--cn-warn-bg: #fffaeb;
	--cn-warn-ink: #b54708;
	--cn-warn-dot: #f79009;
	--cn-err-bg: #fef3f2;
	--cn-err-ink: #b42318;
	--cn-err-dot: #f04438;
	--cn-neutral-bg: #f2f4f7;
	--cn-neutral-ink: #475467;
	--cn-neutral-dot: #98a2b3;
	--cn-info-bg: #eff4ff;
	--cn-info-ink: #1d4ed8;
	--cn-info-dot: #1570ef;
	--cn-radius: 12px;
	--cn-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
	--cn-shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, 0.14), 0 2px 6px rgba(16, 24, 40, 0.06);

	color: var(--cn-ink);
	font-family: var(--cn-font);
	font-size: 15px;
	line-height: 1.55;
	/*
	 * Full-bleed breakout: escape the theme's (often narrow) content column and
	 * span the viewport, then re-center the content at a generous cap via the
	 * padding max() — calc(50vw - 800px) centres a 1600px-wide content area.
	 * Same technique WordPress core uses for .alignfull blocks.
	 */
	width: auto;
	max-width: none;
	margin: 0 calc(50% - 50vw);
	padding-left: max(clamp(16px, 4vw, 48px), calc(50vw - 800px));
	padding-right: max(clamp(16px, 4vw, 48px), calc(50vw - 800px));
	box-sizing: border-box;
}

.cncrm-portal *,
.cncrm-portal *::before,
.cncrm-portal *::after { box-sizing: border-box; }

.cncrm-portal [hidden] { display: none !important; }

.cncrm-portal h2, .cncrm-portal h3, .cncrm-portal h4 { margin: 0 0 0.5em; line-height: 1.25; font-family: inherit; color: inherit; }
.cncrm-portal h3 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.cncrm-muted { color: var(--cn-muted); }

.cncrm-icon { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---- Notices ------------------------------------------------------- */

.cncrm-notice { padding: 11px 14px; border-radius: 10px; margin: 0 0 18px; font-size: 14px; font-weight: 500; border: 1px solid transparent; }
.cncrm-notice-ok { background: var(--cn-ok-bg); color: var(--cn-ok-ink); border-color: #abefc6; }
.cncrm-notice-err { background: var(--cn-err-bg); color: var(--cn-err-ink); border-color: #fecdca; }

/* ---- Buttons ------------------------------------------------------- */

.cncrm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--cn-line-strong); border-radius: 8px; background: #fff; color: var(--cn-body); text-decoration: none; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s; }
.cncrm-btn:hover { border-color: var(--cn-faint); color: var(--cn-ink); box-shadow: var(--cn-shadow); text-decoration: none; }
.cncrm-btn:focus-visible { outline: 2px solid var(--cn-accent); outline-offset: 2px; }
.cncrm-btn-primary { background: var(--cn-accent); border-color: var(--cn-accent); color: #fff; }
.cncrm-btn-primary:hover { background: var(--cn-accent-dark); border-color: var(--cn-accent-dark); color: #fff; }
.cncrm-btn-small { padding: 5px 11px; font-size: 13px; gap: 6px; }
.cncrm-btn-lg { padding: 12px 22px; font-size: 15px; }
.cncrm-btn-block { width: 100%; }
.cncrm-btn .cncrm-icon { width: 16px; height: 16px; }

/* ---- Badges -------------------------------------------------------- */

.cncrm-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.5; background: var(--cn-neutral-bg); color: var(--cn-neutral-ink); white-space: nowrap; }
.cncrm-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--cn-neutral-dot); display: inline-block; flex: 0 0 auto; }
.cncrm-badge-active, .cncrm-badge-done { background: var(--cn-ok-bg); color: var(--cn-ok-ink); }
.cncrm-badge-active i, .cncrm-badge-done i { background: var(--cn-ok-dot); }
.cncrm-badge-pending, .cncrm-badge-in_progress { background: var(--cn-warn-bg); color: var(--cn-warn-ink); }
.cncrm-badge-pending i, .cncrm-badge-in_progress i { background: var(--cn-warn-dot); }
.cncrm-badge-expired, .cncrm-badge-revoked { background: var(--cn-err-bg); color: var(--cn-err-ink); }
.cncrm-badge-expired i, .cncrm-badge-revoked i { background: var(--cn-err-dot); }
.cncrm-badge-canceled { background: var(--cn-neutral-bg); color: var(--cn-neutral-ink); }
.cncrm-badge-planned { background: var(--cn-info-bg); color: var(--cn-info-ink); }
.cncrm-badge-planned i { background: var(--cn-info-dot); }

/* ---- Brand --------------------------------------------------------- */

.cncrm-brand { display: flex; align-items: center; gap: 10px; }
.cncrm-brand-mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #1570ef, #0b4a83); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.cncrm-brand-mark svg { width: 20px; height: 20px; }
.cncrm-brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cncrm-brand-text strong { font-size: 15px; font-weight: 700; color: var(--cn-ink); letter-spacing: -0.01em; }
.cncrm-brand-text span { font-size: 10.5px; font-weight: 600; color: var(--cn-muted); text-transform: uppercase; letter-spacing: 0.07em; }

/* ---- Login --------------------------------------------------------- */

.cncrm-auth { display: flex; justify-content: center; padding: 56px 0 64px; }
.cncrm-auth-inner { width: 100%; max-width: 420px; }
.cncrm-auth-card { padding: 32px; border-radius: 16px; box-shadow: var(--cn-shadow-lg); margin: 0; }
.cncrm-auth-card .cncrm-brand { margin-bottom: 24px; }
.cncrm-auth-card h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 4px; }
.cncrm-auth-card > .cncrm-muted { margin: 0 0 22px; font-size: 14px; }
.cncrm-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cncrm-auth-link { font-size: 13.5px; font-weight: 500; color: var(--cn-accent); text-decoration: none; }
.cncrm-auth-link:hover { text-decoration: underline; color: var(--cn-accent-dark); }
.cncrm-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--cn-body); cursor: pointer; }

/* ---- App shell ----------------------------------------------------- */

.cncrm-app { display: flex; align-items: stretch; margin: 24px 0 48px; border: 1px solid var(--cn-line); border-radius: 16px; overflow: hidden; background: var(--cn-bg); box-shadow: var(--cn-shadow-lg); min-height: 680px; position: relative; }

.cncrm-sidebar { width: 256px; flex: 0 0 256px; background: var(--cn-side-bg); color: var(--cn-side-ink); display: flex; flex-direction: column; padding: 22px 14px 18px; }
.cncrm-sidebar .cncrm-brand { padding: 0 8px; }
.cncrm-sidebar .cncrm-brand-text strong { color: #fff; }
.cncrm-sidebar .cncrm-brand-text span { color: var(--cn-side-ink); }

.cncrm-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 28px; }
.cncrm-nav-btn { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--cn-side-ink); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.4; text-align: left; cursor: pointer; transition: background 0.15s, color 0.15s; }
.cncrm-nav-btn .cncrm-icon { opacity: 0.75; }
.cncrm-nav-btn:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.cncrm-nav-btn:focus-visible { outline: 2px solid var(--cn-accent); outline-offset: -2px; }
.cncrm-nav-btn.is-active { background: var(--cn-side-active); color: #fff; box-shadow: inset 3px 0 0 var(--cn-accent); }
.cncrm-nav-btn.is-active .cncrm-icon { opacity: 1; color: #6ca6f8; }

.cncrm-sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--cn-side-line); display: flex; flex-direction: column; gap: 8px; }
.cncrm-user { display: flex; align-items: center; gap: 10px; padding: 4px 8px 0; }
.cncrm-user img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.cncrm-user-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.cncrm-user-text strong { color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cncrm-user-text span { font-size: 12px; color: var(--cn-side-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cncrm-logout { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px; color: var(--cn-side-ink); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: background 0.15s, color 0.15s; }
.cncrm-logout:hover { background: rgba(255, 255, 255, 0.05); color: #fff; text-decoration: none; }
.cncrm-logout .cncrm-icon { width: 16px; height: 16px; }

.cncrm-mobilebar { display: none; }
.cncrm-scrim { display: none; }

.cncrm-main { flex: 1; min-width: 0; padding: clamp(20px, 3.2vw, 36px); background: var(--cn-bg); }

/* ---- Panels -------------------------------------------------------- */

.cncrm-panel { display: none; }
.cncrm-panel.is-active { display: block; animation: cncrm-fade 0.18s ease; }
@keyframes cncrm-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.cncrm-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 20px; }
.cncrm-panel-head h2 { margin: 0 0 2px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.cncrm-panel-head p { margin: 0; font-size: 14px; }
.cncrm-panel-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Stats --------------------------------------------------------- */

.cncrm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0 0 18px; }
.cncrm-stat { background: #fff; border: 1px solid var(--cn-line); border-radius: var(--cn-radius); padding: 16px 18px; box-shadow: var(--cn-shadow); }
.cncrm-stat-label { display: block; font-size: 12.5px; font-weight: 500; color: var(--cn-muted); margin-bottom: 6px; }
.cncrm-stat-num { display: block; font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.cncrm-stat-num small { font-size: 15px; font-weight: 600; color: var(--cn-faint); }
.cncrm-progress { display: block; height: 6px; border-radius: 999px; background: var(--cn-neutral-bg); margin-top: 12px; overflow: hidden; }
.cncrm-progress i { display: block; height: 100%; border-radius: 999px; background: var(--cn-accent); }

/* ---- Cards --------------------------------------------------------- */

.cncrm-card { background: #fff; border: 1px solid var(--cn-line); border-radius: var(--cn-radius); padding: 22px; margin: 0 0 16px; box-shadow: var(--cn-shadow); }

/* ---- Toolbar (search + filters) ------------------------------------ */

.cncrm-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.cncrm-search-wrap { position: relative; flex: 1 1 220px; min-width: 200px; max-width: 340px; }
.cncrm-search-wrap .cncrm-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--cn-faint); pointer-events: none; }
.cncrm-portal input.cncrm-search { padding-left: 34px; }
.cncrm-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.cncrm-chip { appearance: none; border: 1px solid var(--cn-line-strong); background: #fff; border-radius: 999px; padding: 5px 12px; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--cn-muted); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.cncrm-chip span { color: var(--cn-faint); margin-left: 3px; font-weight: 600; }
.cncrm-chip:hover { border-color: var(--cn-faint); color: var(--cn-ink); }
.cncrm-chip:focus-visible { outline: 2px solid var(--cn-accent); outline-offset: 2px; }
.cncrm-chip.is-active { background: var(--cn-ink); border-color: var(--cn-ink); color: #fff; }
.cncrm-chip.is-active span { color: rgba(255, 255, 255, 0.65); }

/* ---- Licence table -------------------------------------------------- */

.cncrm-table-wrap { overflow-x: auto; }
.cncrm-table { width: 100%; border-collapse: collapse; font-size: 14px; background: transparent; }
.cncrm-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cn-muted); font-weight: 600; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--cn-line); white-space: nowrap; }
.cncrm-table td { padding: 13px 12px; border-bottom: 1px solid var(--cn-line); text-align: left; vertical-align: middle; white-space: nowrap; }
.cncrm-table tbody tr:last-child td { border-bottom: 0; }
.cncrm-table tbody tr:hover td { background: #fafbfd; }

.cncrm-lic { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; min-width: 0; }
.cncrm-lic strong { font-weight: 600; }
.cncrm-lic code { font-family: var(--cn-mono); font-size: 11.5px; color: var(--cn-faint); background: none; padding: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cncrm-hwid-wrap { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.cncrm-hwid { font-family: var(--cn-mono); font-size: 12px; color: var(--cn-body); background: var(--cn-neutral-bg); border-radius: 6px; padding: 3px 8px; display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.cncrm-copy { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--cn-line-strong); background: #fff; border-radius: 6px; cursor: pointer; color: var(--cn-muted); flex: 0 0 auto; transition: border-color 0.15s, color 0.15s; }
.cncrm-copy .cncrm-icon { width: 13px; height: 13px; }
.cncrm-copy .cncrm-icon + .cncrm-icon { display: none; }
.cncrm-copy:hover { color: var(--cn-accent); border-color: var(--cn-accent); }
.cncrm-copy.cncrm-copied { color: var(--cn-ok-ink); border-color: var(--cn-ok-ink); }
.cncrm-copy.cncrm-copied .cncrm-icon:first-child { display: none; }
.cncrm-copy.cncrm-copied .cncrm-icon + .cncrm-icon { display: block; }

.cncrm-validity { display: flex; flex-direction: column; gap: 1px; line-height: 1.35; }
.cncrm-expiring { font-size: 12px; color: var(--cn-warn-ink); font-weight: 600; }

.cncrm-td-action { text-align: right; }
.cncrm-await { display: inline-flex; align-items: center; gap: 10px; }
.cncrm-await .cncrm-muted { font-size: 13px; }
.cncrm-cancel-form { display: inline-block; margin: 0; }

.cncrm-no-results { padding: 26px 0 8px; text-align: center; color: var(--cn-muted); font-size: 14px; }

/* ---- Empty state ----------------------------------------------------- */

.cncrm-empty { text-align: center; padding: 56px 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cncrm-empty-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--cn-accent-soft); color: var(--cn-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.cncrm-empty-icon .cncrm-icon { width: 22px; height: 22px; }
.cncrm-empty h3 { margin: 0; font-size: 17px; }
.cncrm-empty p { margin: 0 0 14px; max-width: 400px; }

/* ---- Forms ----------------------------------------------------------- */

.cncrm-form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.cncrm-field { display: flex; flex-direction: column; gap: 6px; transition: opacity 0.15s; }
.cncrm-field label { font-size: 13px; font-weight: 600; color: var(--cn-body); line-height: 1.4; }
.cncrm-field.is-disabled { opacity: 0.5; }
.cncrm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cncrm-hint { margin: -8px 0 0; font-size: 12.5px; color: var(--cn-muted); }
.cncrm-form .cncrm-btn { align-self: flex-start; }
.cncrm-form .cncrm-btn-block { align-self: stretch; }

.cncrm-portal input[type="text"],
.cncrm-portal input[type="password"],
.cncrm-portal input[type="email"],
.cncrm-portal input[type="date"],
.cncrm-portal select,
.cncrm-portal textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--cn-line-strong); border-radius: 8px; font-family: inherit; font-size: 14px; line-height: 1.4; color: var(--cn-ink); background: #fff; }
.cncrm-portal input:focus,
.cncrm-portal select:focus,
.cncrm-portal textarea:focus { outline: none; border-color: var(--cn-accent); box-shadow: 0 0 0 3px rgba(21, 112, 239, 0.15); }
.cncrm-portal input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--cn-accent); margin: 0; }
.cncrm-portal input[type="file"] { font-size: 13.5px; color: var(--cn-body); width: 100%; }
.cncrm-portal input.cncrm-mono { font-family: var(--cn-mono); font-size: 13px; }
.cncrm-portal input:disabled { background: var(--cn-neutral-bg); color: var(--cn-faint); cursor: not-allowed; }

.cncrm-quota-pill { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--cn-accent-soft); color: var(--cn-accent-dark); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ---- Request layout -------------------------------------------------- */

.cncrm-request-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cncrm-request-grid .cncrm-card { margin: 0; }

.cncrm-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: cncrm-step; }
.cncrm-steps li { position: relative; padding-left: 42px; counter-increment: cncrm-step; }
.cncrm-steps li::before { content: counter(cncrm-step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--cn-accent-soft); color: var(--cn-accent-dark); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.cncrm-steps li strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.cncrm-steps li span { display: block; font-size: 13.5px; color: var(--cn-muted); line-height: 1.5; }

/* ---- Download -------------------------------------------------------- */

.cncrm-download-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px; }
.cncrm-eyebrow { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--cn-accent); margin-bottom: 6px; }
.cncrm-version { margin: 0 0 6px; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.cncrm-download-info p.cncrm-muted { margin: 0; font-size: 13.5px; }
.cncrm-download-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
.cncrm-download-grid .cncrm-card { margin: 0; }

/* ---- Releases & roadmap ---------------------------------------------- */

.cncrm-releases-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cncrm-releases-grid .cncrm-card { margin: 0; }

.cncrm-history { display: flex; flex-direction: column; }
.cncrm-release { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--cn-line); margin-left: 6px; }
.cncrm-release:last-child { padding-bottom: 4px; }
.cncrm-release::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--cn-accent); }
.cncrm-release h4 { margin: 0; font-size: 14.5px; font-weight: 700; }
.cncrm-release-date { margin: 0; font-size: 12.5px; color: var(--cn-muted); }
.cncrm-release ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--cn-body); display: flex; flex-direction: column; gap: 4px; }

.cncrm-roadmap { list-style: none; margin: 0; padding: 0; }
.cncrm-roadmap-item { padding: 14px 0; border-bottom: 1px solid var(--cn-line); }
.cncrm-roadmap-item:first-child { padding-top: 2px; }
.cncrm-roadmap-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.cncrm-roadmap-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cncrm-roadmap-head strong { font-size: 14.5px; font-weight: 600; }
.cncrm-roadmap-target { font-size: 12.5px; color: var(--cn-faint); }
.cncrm-roadmap-item p { margin: 6px 0 0; font-size: 13.5px; color: var(--cn-muted); line-height: 1.5; }

/* ---- Account --------------------------------------------------------- */

.cncrm-account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.cncrm-account-grid .cncrm-card { margin: 0; }
.cncrm-avatar-row { display: flex; gap: 18px; align-items: flex-start; }
.cncrm-avatar-row img { border-radius: 50%; border: 1px solid var(--cn-line); width: 80px; height: 80px; object-fit: cover; flex: 0 0 auto; }
.cncrm-avatar-forms { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cncrm-username-row { margin: 0 0 16px; font-size: 14px; color: var(--cn-muted); }
.cncrm-username-row strong { color: var(--cn-ink); }

/* ---- Responsive: tablet — drawer navigation -------------------------- */

@media (max-width: 960px) {
	.cncrm-app { display: block; min-height: 0; }

	.cncrm-mobilebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--cn-side-bg); padding: 12px 16px; }
	.cncrm-mobilebar .cncrm-brand-text strong { color: #fff; }
	.cncrm-mobilebar .cncrm-brand-text span { color: var(--cn-side-ink); }
	.cncrm-menu-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--cn-side-line); background: transparent; color: #fff; border-radius: 8px; cursor: pointer; }

	.cncrm-scrim { display: block; position: fixed; inset: 0; background: rgba(12, 22, 38, 0.55); z-index: 100000; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
	.cncrm-app.is-menu-open .cncrm-scrim { opacity: 1; pointer-events: auto; }

	.cncrm-sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 100001; width: 280px; transform: translateX(-105%); transition: transform 0.22s ease; }
	.cncrm-app.is-menu-open .cncrm-sidebar { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, 0.4); }

	.cncrm-main { padding: 20px 16px 28px; }
	.cncrm-request-grid, .cncrm-download-grid, .cncrm-releases-grid { grid-template-columns: 1fr; }
}

/* ---- Responsive: phone — table becomes cards -------------------------- */

@media (max-width: 760px) {
	.cncrm-panel-head { flex-direction: column; }

	.cncrm-table thead { display: none; }
	.cncrm-table, .cncrm-table tbody, .cncrm-table tr, .cncrm-table td { display: block; white-space: normal; }
	.cncrm-table tr { border: 1px solid var(--cn-line); border-radius: 10px; padding: 6px 14px; margin-bottom: 10px; background: #fff; }
	.cncrm-table td { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--cn-bg); padding: 9px 0; }
	.cncrm-table td:last-child { border-bottom: 0; }
	.cncrm-table td::before { content: attr(data-th); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cn-muted); flex: 0 0 auto; }
	.cncrm-table tbody tr:hover td { background: transparent; }
	.cncrm-table tbody tr:last-child td { border-bottom: 1px solid var(--cn-bg); }
	.cncrm-table tbody tr:last-child td:last-child { border-bottom: 0; }
	.cncrm-lic { align-items: flex-end; text-align: right; }
	.cncrm-validity { align-items: flex-end; text-align: right; }
	.cncrm-hwid { max-width: 170px; }

	.cncrm-field-row { grid-template-columns: 1fr; }
	.cncrm-download-hero { justify-content: center; text-align: center; }
	.cncrm-avatar-row { flex-direction: column; }
}


/* ---- Full-page mode (Settings → Full-page portal) ------------------ */
/* The plugin's blank canvas template adds .cncrm-fullpage to <body>:    */
/* the app shell fills the whole viewport edge-to-edge.                  */

body.cncrm-fullpage { margin: 0; padding: 0; background: #f7f9fc; }
body.cncrm-fullpage .cncrm-portal { margin: 0; padding: 0; width: 100%; max-width: none; }
body.cncrm-fullpage .cncrm-app { margin: 0; min-height: 100vh; min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
body.cncrm-fullpage .cncrm-auth { min-height: 100vh; min-height: 100dvh; align-items: center; margin: 0; padding: 24px; }
/* Keep clear of the WordPress admin bar when an admin previews. */
body.cncrm-fullpage.admin-bar .cncrm-app { min-height: calc(100vh - 32px); }

/* ---- Inherited site logo in the brand mark ------------------------- */
.cncrm-brand-mark--logo { background: #fff; padding: 4px; }
.cncrm-brand-mark--logo img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 6px; }
