/**
 * Portal styles: login page + My Account dashboard.
 * Builds on the shared frontend base (registration-form.css).
 */

.w3ic-portal-wrap {
	max-width: 1160px;
	margin: 0 auto;
	padding: 32px 16px 64px;
	font-size: 15px;
	line-height: 1.55;
	color: #1c2333;
}

.w3ic-portal-card {
	background: #fff;
	border: 1px solid #e4e8f0;
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(20, 30, 60, 0.06);
	padding: 28px;
}

.w3ic-login-card {
	max-width: 460px;
	margin: 0 auto;
}

.w3ic-portal-title {
	margin: 0 0 4px;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.w3ic-portal-subtitle {
	margin: 0 0 20px;
	color: #5b6478;
}

.w3ic-notice-info {
	background: #eef4ff;
	border-color: #c3d4ff;
	color: #27418f;
}

.w3ic-pill {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #f1f3f9;
	color: #5b6478;
	text-transform: capitalize;
}

.w3ic-pill.is-active {
	background: #e5f7ec;
	color: #14713f;
}

.w3ic-pill--manager {
	background: #eef2ff;
	color: #4f46e5;
}

/* ================================================================
 * My Account dashboard (scoped to #w3ic-account)
 * SaaS-style two-column shell: identity sidebar + content cards.
 * ================================================================ */

#w3ic-account.w3ic-portal-wrap {
	--w3ic-acc: #4f46e5;
	--w3ic-acc-hover: #4338ca;
	--w3ic-acc-soft: #eef2ff;
	--w3ic-text: #111827;
	--w3ic-text-2: #64748b;
	--w3ic-border: #e2e8f0;
	--w3ic-surface: #ffffff;
	--w3ic-bg: #f8fafc;
	--w3ic-success: #059669;
	--w3ic-value-bg: #f1f5f9;

	box-sizing: border-box;
	width: calc(100% - 48px);
	max-width: 1320px;
	margin: 28px auto 56px;
	padding: 0;
	color: var(--w3ic-text);
}

body:has(#w3ic-account) {
	background: var(--w3ic-bg, #f8fafc);
}

/* Full-bleed: allow the dashboard to use the full container width.
 * The theme's theme.json contentSize (645px) would otherwise squeeze the
 * sidebar/content grid. Selector includes the unique #w3ic-account id
 * (inside body:has) so specificity beats the theme's constrained-layout
 * rule regardless of stylesheet print order. Home/login rules are
 * separately scoped and untouched. */
body:has(#w3ic-account) .wp-block-post-content.is-layout-constrained > #w3ic-account {
	width: calc(100% - 48px);
	max-width: 1320px;
	margin-left: auto !important;
	margin-right: auto !important;
}

body:has(#w3ic-account) main.has-global-padding,
body:has(#w3ic-account) main > .wp-block-group.has-global-padding,
body:has(#w3ic-account) .wp-block-post-content.has-global-padding {
	padding-left: 0;
	padding-right: 0;
}

/* One Logout on the account page: the sidebar owns the action; hide the
 * theme-nav / [w3ic_portal_nav] duplicate only. */
body:has(#w3ic-account) .w3ic-nav-item--logout {
	display: none !important;
}

/* Author display rules (e.g. .w3ic-profile-details, .w3ic-btn) otherwise
 * override the UA [hidden] { display: none } rule and "hidden" elements stay
 * visible — which is how the old profile form leaked onto the page. Scoped
 * to the account root only. */
#w3ic-account [hidden] {
	display: none !important;
}

/* ---------- Shell card ---------- */

#w3ic-account .w3ic-portal-card.w3ic-dashboard-shell {
	border-color: var(--w3ic-border);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

/* Dashboard (logged-in) fills the card edge-to-edge; logged-out branches
 * keep the normal padded card. */
#w3ic-account .w3ic-portal-card:has(.w3ic-dashboard) {
	padding: 0;
	overflow: hidden;
}

/* ---------- Dashboard grid ---------- */

.w3ic-dashboard {
	min-width: 0;
}

@media (min-width: 901px) {
	.w3ic-dashboard.has-tabs,
	.w3ic-dashboard {
		display: grid;
		grid-template-columns: 325px minmax(0, 1fr);
		align-items: stretch;
	}
}

@media (min-width: 901px) and (max-width: 1100px) {
	.w3ic-dashboard.has-tabs,
	.w3ic-dashboard {
		grid-template-columns: 280px minmax(0, 1fr);
	}
}

/* ---------- Sidebar ---------- */

.w3ic-dashboard__sidebar {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 24px;
	border-right: 1px solid var(--w3ic-border);
	background: #fff;
}

.w3ic-dashboard__identity {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--w3ic-border);
}

/* Avatar: initials placeholder always rendered underneath; the presigned
 * <img> stacks on top and removes itself on load error (onerror). */
.w3ic-account-avatar-wrap {
	position: relative;
	display: inline-flex;
	width: 64px;
	height: 64px;
	flex: 0 0 auto;
	border-radius: 50%;
}

.w3ic-account-avatar {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid transparent;
}

.w3ic-account-avatar-img {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--w3ic-border);
	background: #fff;
}

.w3ic-account-avatar--placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--w3ic-acc);
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.w3ic-dashboard__identity-text {
	min-width: 0;
}

.w3ic-dashboard__name {
	margin: 0;
	font-size: 19px;
	line-height: 1.25;
	color: var(--w3ic-text);
	overflow-wrap: anywhere;
}

.w3ic-dashboard__status {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 5px 0 0;
	flex-wrap: wrap;
	font-size: 13px;
	font-weight: 600;
}

.w3ic-dashboard__status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #94a3b8;
	flex: 0 0 auto;
}

.w3ic-dashboard__status-dot.is-active {
	background: var(--w3ic-success);
}

.w3ic-dashboard__status-text {
	color: var(--w3ic-text-2);
}

.w3ic-dashboard__status-text.is-active {
	color: var(--w3ic-success);
}

.w3ic-dashboard__role {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--w3ic-text-2);
}

/* ---------- Sidebar navigation ---------- */

.w3ic-dashboard__nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 18px;
	min-width: 0;
}

.w3ic-dashboard__tabs {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.w3ic-dashboard__nav-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	text-align: left;
	min-height: 44px;
	padding: 10px 12px;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: var(--w3ic-text);
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.w3ic-dashboard__nav-item:hover {
	background: var(--w3ic-bg);
	color: var(--w3ic-text);
	text-decoration: none;
}

.w3ic-dashboard__nav-item:focus-visible {
	outline: 2px solid var(--w3ic-acc);
	outline-offset: 2px;
}

.w3ic-dashboard__tab.is-active {
	background: var(--w3ic-acc-soft);
	color: var(--w3ic-acc);
}

.w3ic-dashboard__tab.is-active::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 60%;
	background: var(--w3ic-acc);
	border-radius: 0 3px 3px 0;
}

.w3ic-nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	color: var(--w3ic-text-2);
}

.w3ic-dashboard__tab.is-active .w3ic-nav-icon {
	color: var(--w3ic-acc);
}

.w3ic-nav-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.w3ic-nav-chevron {
	display: inline-flex;
	align-items: center;
	margin-left: auto;
	flex: 0 0 auto;
	color: #94a3b8;
}

.w3ic-dashboard__tab.is-active .w3ic-nav-chevron {
	color: var(--w3ic-acc);
}

.w3ic-dashboard__link {
	color: var(--w3ic-text);
}

.w3ic-dashboard__link:hover {
	color: var(--w3ic-acc);
}

.w3ic-dashboard__link:hover .w3ic-nav-icon {
	color: var(--w3ic-acc);
}

.w3ic-dashboard__sidebar-foot {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--w3ic-border);
}

.w3ic-dashboard__logout {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--w3ic-text-2);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.w3ic-dashboard__logout:hover {
	background: var(--w3ic-bg);
	color: #b02038;
	text-decoration: none;
}

.w3ic-dashboard__logout:focus-visible {
	outline: 2px solid var(--w3ic-acc);
	outline-offset: 2px;
}

/* ---------- Content column ---------- */

.w3ic-dashboard__content {
	min-width: 0;
	padding: 28px;
}

/* Without JS all panels stay visible (tab buttons do nothing). */
.w3ic-dashboard.has-tabs .w3ic-dashboard__panel {
	display: none;
}

.w3ic-dashboard.has-tabs .w3ic-dashboard__panel.is-active {
	display: block;
}

.w3ic-account-panel {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	box-shadow: none;
}

.w3ic-account-panel h2 {
	margin: 0;
}

.w3ic-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.w3ic-panel-head h2 {
	margin: 0;
}

.w3ic-panel-head--page {
	align-items: flex-start;
	margin-bottom: 20px;
}

.w3ic-panel-head__text {
	min-width: 0;
}

.w3ic-panel-head--page h2 {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--w3ic-text);
}

.w3ic-panel-sub {
	margin: 5px 0 0;
	font-size: 14.5px;
	color: var(--w3ic-text-2);
}

.w3ic-profile-details {
	display: block;
	margin: 0 0 18px;
}

/* Keep a consistent vertical rhythm while the Basic Information card swaps
 * between read-only and edit modes; Social Platforms / Content Preferences
 * stay visible below in both modes. */
#w3ic-account .w3ic-info-card + .w3ic-info-card {
	margin-top: 18px;
}

.w3ic-empty-note {
	margin: 0;
	color: var(--w3ic-text-2);
	font-size: 14px;
}

/* ---------- Info cards ---------- */

.w3ic-info-card {
	border: 1px solid var(--w3ic-border);
	border-radius: 14px;
	padding: 20px 22px;
	background: var(--w3ic-surface);
	min-width: 0;
}

.w3ic-info-card__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.w3ic-info-card__head h3 {
	margin: 0;
	font-size: 16.5px;
	font-weight: 700;
	color: var(--w3ic-text);
}

.w3ic-info-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--w3ic-acc-soft);
	color: var(--w3ic-acc);
}

/* ---------- Manager Network (invitation) card ---------- */

.w3ic-invite-card .w3ic-invite-text {
	margin: 0 0 14px;
	color: var(--w3ic-text-2);
	font-size: 14px;
	line-height: 1.55;
}

.w3ic-invite-link-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
	margin-bottom: 8px;
}

.w3ic-invite-link-row .w3ic-invite-url {
	flex: 1 1 auto;
	min-width: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 13px;
	background: var(--w3ic-bg, #f7f8fa);
	color: var(--w3ic-text-2);
	cursor: text;
}

.w3ic-invite-link-row .w3ic-invite-copy {
	flex: 0 0 auto;
	white-space: nowrap;
}

.w3ic-invite-count {
	margin: 0 0 14px;
	color: var(--w3ic-acc);
	font-size: 13px;
	font-weight: 600;
}

.w3ic-invite-cta {
	display: flex;
	align-items: center;
	gap: 10px;
}

@media (max-width: 560px) {
	.w3ic-invite-link-row {
		flex-direction: column;
	}
}

/* ---------- Basic information grid ---------- */

.w3ic-profile-info-grid {
	margin: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 24px;
}

.w3ic-info-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.w3ic-info-field dt {
	font-size: 13px;
	font-weight: 600;
	color: var(--w3ic-text-2);
}

.w3ic-info-field dd {
	margin: 0;
}

.w3ic-info-value {
	display: flex;
	align-items: center;
	min-height: 44px;
	box-sizing: border-box;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--w3ic-value-bg);
	color: var(--w3ic-text);
	font-size: 14.5px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

/* ---------- Content preferences ---------- */

.w3ic-prefs-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.w3ic-prefs-col {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.w3ic-prefs-col--divided {
	border-left: 1px solid var(--w3ic-border);
	padding-left: 24px;
}

.w3ic-prefs-block {
	min-width: 0;
}

.w3ic-prefs-label {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--w3ic-text-2);
}

.w3ic-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.w3ic-chip {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--w3ic-acc-soft);
	color: var(--w3ic-acc);
	font-size: 12.5px;
	font-weight: 600;
	text-transform: capitalize;
}

/* ---------- Social platforms ---------- */

.w3ic-platform {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.w3ic-platform__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex: 0 0 auto;
	border-radius: 8px;
	background: var(--w3ic-acc-soft);
	color: var(--w3ic-acc);
}

.w3ic-platform__icon--letter {
	font-size: 13px;
	font-weight: 700;
}

.w3ic-platform__name {
	font-weight: 600;
	color: var(--w3ic-text);
}

.w3ic-platforms-table__url a {
	display: inline;
	color: var(--w3ic-acc);
	word-break: break-all;
}

.w3ic-platforms-table__url svg {
	margin-left: 4px;
	vertical-align: baseline;
	opacity: 0.7;
}

.w3ic-platforms-table__followers {
	font-weight: 600;
	color: var(--w3ic-text);
}

/* ---------- Profile edit form ---------- */

.w3ic-profile-form {
	display: block;
	margin: 0 0 18px;
}

.w3ic-profile-form .w3ic-info-card {
	margin: 0;
}

.w3ic-profile-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 6px 20px;
}

.w3ic-profile-form-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 18px;
}

#w3ic-account .w3ic-profile-form input:not([type="checkbox"]) {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid var(--w3ic-border);
	border-radius: 8px;
	background: #fff;
	color: var(--w3ic-text);
	font: inherit;
	font-size: 14.5px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#w3ic-account .w3ic-profile-form input:not([type="checkbox"]):focus {
	outline: none;
	border-color: var(--w3ic-acc);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
}

#w3ic-account .w3ic-profile-form input[readonly] {
	background: var(--w3ic-bg);
	color: var(--w3ic-text-2);
	cursor: default;
}

#w3ic-account .w3ic-profile-form .w3ic-platform-row select {
	min-height: 46px;
}

/* Base hides .w3ic-error by default (registration.js toggles it inline);
 * on the account page portal.js only fills textContent, so reveal any
 * non-empty message here — covers basic fields + platforms + categories. */
#w3ic-account .w3ic-error:not(:empty) {
	display: block;
}

/* ---------- Profile: platform rows (edit mode) ---------- */

.w3ic-platform-rows {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.w3ic-platform-row {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--w3ic-border);
	border-radius: 10px;
	background: var(--w3ic-bg);
}

.w3ic-platform-row__main {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
}

.w3ic-platform-row.is-invalid {
	border-color: #e0455c;
}

.w3ic-platform-remove {
	flex: 0 0 auto;
	white-space: nowrap;
}

.w3ic-platform-rows-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 14px;
}

/* ---------- Profile: category checkboxes (edit mode) ---------- */

#w3ic-category-checks {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

#w3ic-category-checks legend {
	display: block;
	width: 100%;
	padding: 0;
	margin-bottom: 12px;
}

.w3ic-category-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

#w3ic-account .w3ic-category-checks .w3ic-checkbox {
	min-height: 14px;
}

#w3ic-account .w3ic-category-checks input:focus-visible {
	outline: 2px solid var(--w3ic-acc);
	outline-offset: 2px;
}

.w3ic-field-hint {
	display: block;
	font-size: 12px;
	color: #7a8296;
	margin-top: 4px;
}

.w3ic-input.is-invalid,
input.is-invalid {
	border-color: #e0455c !important;
}

/* ---------- Submission view panel (My Submissions, read-only) ---------- */

.w3ic-sub-view {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

/* Back to My Submissions — top navigation for the detail view. */
#w3ic-account .w3ic-sub-view__back {
	align-self: flex-start;
	justify-content: flex-start;
	background: #fff;
	border: 1px solid var(--w3ic-border);
	border-radius: 999px;
	padding: 10px 18px 10px 15px;
	font-size: 14px;
	font-weight: 600;
	color: #1f2733;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

#w3ic-account .w3ic-sub-view__back::before {
	content: '';
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231f2733' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='m12 19-7-7 7-7'/%3E%3C/svg%3E") no-repeat center / contain;
}

#w3ic-account .w3ic-sub-view__back:hover {
	border-color: var(--w3ic-acc);
	color: var(--w3ic-acc);
}

.w3ic-sub-view__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.w3ic-sub-view__title {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: #101828;
}

.w3ic-sub-view__date {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 8px 0 0;
	font-size: 14px;
	color: #5b6478;
}

.w3ic-sub-view__date::before {
	content: '';
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	opacity: 0.8;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4'/%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") no-repeat center / contain;
}

.w3ic-sub-view__header .w3ic-sub-view__status {
	margin-top: 6px;
	padding: 7px 15px;
	font-size: 13px;
}

.w3ic-sub-view__header .w3ic-status.is-pending {
	background: #fff5e0;
	color: #8a5b00;
}

.w3ic-sub-view__card {
	background: #fff;
	border: 1px solid var(--w3ic-border);
	border-radius: 14px;
	padding: 18px 20px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	min-width: 0;
}

.w3ic-sub-view__card-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 700;
	color: #101828;
}

.w3ic-sub-view__card-title::before {
	content: '';
	width: 30px;
	height: 30px;
	flex: 0 0 auto;
	border-radius: 9px;
	background-color: #eef2ff;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px;
}

#w3ic-sub-view-notes-card .w3ic-sub-view__card-title::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3C/svg%3E");
}

#w3ic-sub-view-shot-card .w3ic-sub-view__card-title::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/%3E%3C/svg%3E");
}

#w3ic-sub-view-files-card .w3ic-sub-view__card-title::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E");
}

.w3ic-sub-view__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 40px;
	margin: 0;
}

.w3ic-sub-view__item {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	column-gap: 14px;
	align-items: center;
	min-width: 0;
}

.w3ic-sub-view__item::before {
	content: '';
	width: 34px;
	height: 34px;
	grid-column: 1;
	grid-row: 1 / 3;
	align-self: center;
	border-radius: 10px;
	background-color: #eef2ff;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 17px;
}

.w3ic-sub-view__item[data-view-field="url"]::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
}

.w3ic-sub-view__item[data-view-field="date"]::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4'/%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
}

.w3ic-sub-view__item[data-view-field="group"]::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.w3ic-sub-view__item[data-view-field="manager"]::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.w3ic-sub-view__item dt {
	grid-column: 2;
	grid-row: 1;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #7a8296;
	margin: 0 0 3px;
}

.w3ic-sub-view__item dd {
	grid-column: 2;
	grid-row: 2;
	margin: 0;
	font-size: 15px;
	color: #1f2733;
	word-break: break-word;
}

.w3ic-sub-view__item dd a {
	color: var(--w3ic-acc);
	font-weight: 600;
	word-break: break-all;
}

.w3ic-sub-view__item dd a::after {
	content: '';
	display: inline-block;
	width: 13px;
	height: 13px;
	margin-left: 6px;
	vertical-align: -2px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3C/svg%3E") no-repeat center / contain;
}

.w3ic-sub-view__notes {
	margin: 0;
	padding: 14px 16px;
	background: var(--w3ic-bg);
	border: 1px solid var(--w3ic-border);
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.6;
	color: #3d4457;
	white-space: pre-wrap;
	word-break: break-word;
}

.w3ic-sub-view__files {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.w3ic-sub-view__file {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding: 11px 14px;
	border: 1px solid var(--w3ic-border);
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
	min-width: 0;
}

.w3ic-sub-view__file-icon {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background-color: var(--w3ic-acc);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 15px;
}

.w3ic-sub-view__file-icon.is-video {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M7 4.5v15l13-7.5z'/%3E%3C/svg%3E");
}

.w3ic-sub-view__file-icon.is-image {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/%3E%3C/svg%3E");
}

.w3ic-sub-view__file-type {
	flex: 0 0 auto;
	min-width: 108px;
	font-weight: 600;
	color: #1f2733;
}

.w3ic-sub-view__file-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #5b6478;
}

.w3ic-sub-view__file-size {
	flex: 0 0 auto;
	margin-left: auto;
	color: #7a8296;
}

.w3ic-sub-view__file .w3ic-view-file-btn {
	flex: 0 0 auto;
	margin-left: 4px;
	min-height: 44px;
	padding: 8px 16px;
	border: 1px solid var(--w3ic-border);
	border-radius: 999px;
	background: #fff;
	color: var(--w3ic-acc);
	font-size: 13px;
	font-weight: 600;
}

.w3ic-sub-view__file .w3ic-view-file-btn::before {
	content: '';
	width: 13px;
	height: 13px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4.5v15l13-7.5z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.w3ic-sub-view__file .w3ic-view-file-btn:hover {
	border-color: var(--w3ic-acc);
	background: #eef2ff;
}

.w3ic-sub-view__files-empty {
	font-size: 13px;
	color: #7a8296;
}

.w3ic-shot {
	display: grid;
	gap: 8px;
	justify-items: start;
}

.w3ic-shot__img {
	max-width: 340px;
	max-height: 230px;
	object-fit: contain;
	border: 1px solid var(--w3ic-border);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
	cursor: zoom-in;
}

.w3ic-shot__empty {
	font-size: 13px;
	color: #7a8296;
}

.w3ic-shot .w3ic-file-status {
	font-size: 13px;
	color: #5b6478;
	min-height: 1em;
}

/* Submission detail: stack metadata + attachment rows cleanly on mobile. */
@media (max-width: 520px) {
	.w3ic-sub-view__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.w3ic-sub-view__title {
		font-size: 22px;
	}

	.w3ic-sub-view__card {
		padding: 16px;
	}

	.w3ic-shot__img {
		max-width: 100%;
	}

	.w3ic-sub-view__file {
		gap: 10px;
	}

	.w3ic-sub-view__file-size {
		order: 3;
	}

	.w3ic-sub-view__file .w3ic-view-file-btn {
		order: 4;
	}

	.w3ic-sub-view__file-name {
		order: 5;
		flex: 1 1 100%;
		white-space: normal;
		word-break: break-word;
		overflow: visible;
		text-overflow: clip;
	}
}

/* ---------- Tables ---------- */

.w3ic-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.w3ic-portal-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 16px;
	font-size: 14px;
	word-break: break-word;
}

.w3ic-portal-table caption {
	text-align: left;
	font-weight: 700;
	font-size: 15px;
	padding-bottom: 6px;
	color: #1c2333;
}

.w3ic-portal-table th,
.w3ic-portal-table td {
	padding: 11px 12px;
	border-bottom: 1px solid #f1f5f9;
	text-align: left;
	vertical-align: middle;
}

.w3ic-portal-table th {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--w3ic-text-2);
	background: var(--w3ic-bg);
}

.w3ic-portal-table a {
	color: var(--w3ic-acc);
	word-break: break-all;
}

.w3ic-table-empty {
	color: #7a8296;
	text-align: center;
	padding: 18px 10px !important;
}

@media (max-width: 900px) {
	/* Let wide tables scroll inside their wrapper instead of the page. */
	.w3ic-table-scroll .w3ic-portal-table {
		min-width: 560px;
	}
}

.w3ic-status {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #f1f3f9;
	color: #5b6478;
}

.w3ic-status.is-approved,
.w3ic-status.is-published {
	background: #e5f7ec;
	color: #14713f;
}

.w3ic-status.is-rejected {
	background: #ffe9ec;
	color: #b02038;
}

.w3ic-status.is-under_review {
	background: #fff5e0;
	color: #8a5b00;
}

/* ---------- My Submissions: status tabs + sort + card grid ---------- */

.w3ic-subs-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin: 4px 0 18px;
}

.w3ic-subs-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.w3ic-subs-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #eef1f6;
	color: #475569;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.w3ic-subs-tab:hover {
	background: #e2e8f0;
	color: #334155;
}

.w3ic-subs-tab.is-active {
	background: var(--w3ic-acc);
	border-color: var(--w3ic-acc);
	color: #fff;
	box-shadow: 0 1px 2px rgba(79, 70, 229, 0.35);
}

.w3ic-subs-tab__count {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	opacity: 0.85;
}

.w3ic-subs-sort {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.w3ic-subs-sort select {
	min-height: 38px;
	padding: 0 34px 0 14px;
	border: 1px solid var(--w3ic-border);
	border-radius: 10px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	color: var(--w3ic-text);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.w3ic-subs-sort select:focus-visible {
	outline: 2px solid var(--w3ic-acc);
	outline-offset: 2px;
}

.w3ic-subs-tab:focus-visible,
.w3ic-sub-card__nav:focus-visible,
.w3ic-sub-card__dot:focus-visible,
.w3ic-sub-card__video:focus-visible,
.w3ic-subs-state .w3ic-btn:focus-visible {
	outline: 2px solid var(--w3ic-acc);
	outline-offset: 2px;
}

.w3ic-subs-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.w3ic-subs-grid:not(.is-cards) {
	display: block;
}

/* Card chrome. */
.w3ic-sub-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--w3ic-surface, #fff);
	border: 1px solid var(--w3ic-border);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 4px 12px rgba(16, 24, 40, 0.04);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.w3ic-sub-card:hover {
	box-shadow: 0 4px 10px rgba(16, 24, 40, 0.07), 0 10px 24px rgba(16, 24, 40, 0.07);
}

/* Media slider. */
.w3ic-sub-card__media {
	position: relative;
	background: #eef1f6;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.w3ic-sub-card__media--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
}

.w3ic-sub-card__media--empty svg {
	width: 44px;
	height: 44px;
	opacity: 0.7;
}

.w3ic-sub-card__stage {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.w3ic-sub-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 1;
	transition: opacity 0.2s ease;
}

.w3ic-sub-card__img.is-loading {
	opacity: 0;
}

.w3ic-sub-card__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.55);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease;
}

.w3ic-sub-card__nav:hover {
	background: rgba(15, 23, 42, 0.8);
}

.w3ic-sub-card__nav--prev {
	left: 8px;
}

.w3ic-sub-card__nav--next {
	right: 8px;
}

.w3ic-sub-card__counter {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.65);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}

.w3ic-sub-card__dots {
	position: absolute;
	bottom: 8px;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	pointer-events: none;
}

.w3ic-sub-card__dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.65);
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
	cursor: pointer;
	pointer-events: auto;
	transition: background 0.15s ease, transform 0.15s ease;
}

.w3ic-sub-card__dot.is-active {
	background: var(--w3ic-acc);
	transform: scale(1.25);
}

/* Video slide: honest placeholder + play control (no fabricated poster). */
.w3ic-sub-card__video {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 100%;
	padding: 16px;
	border: none;
	background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
	color: #e2e8f0;
	cursor: pointer;
}

.w3ic-sub-card__play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #0f172a;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	transition: transform 0.15s ease, background 0.15s ease;
}

.w3ic-sub-card__play svg {
	width: 22px;
	height: 22px;
	margin-left: 2px;
}

.w3ic-sub-card__video:hover .w3ic-sub-card__play {
	transform: scale(1.06);
	background: #fff;
}

.w3ic-sub-card__video-label {
	font-size: 12px;
	font-weight: 600;
	color: #cbd5e1;
}

.w3ic-sub-card__video-el {
	width: 100%;
	height: 100%;
	background: #0f172a;
	object-fit: contain;
}

/* Media fallback (unsupported/expired): filename + authorized View. */
.w3ic-sub-card__fallback {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 100%;
	padding: 16px;
	text-align: center;
	background: #f1f5f9;
	color: #475569;
}

.w3ic-sub-card__fallback-icon {
	color: #94a3b8;
}

.w3ic-sub-card__fallback-icon svg {
	width: 34px;
	height: 34px;
}

.w3ic-sub-card__fallback-name {
	max-width: 100%;
	font-size: 12.5px;
	font-weight: 600;
	word-break: break-all;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.w3ic-sub-card__fallback .w3ic-btn {
	min-height: 34px;
	padding: 0 16px;
	font-size: 13px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--w3ic-border);
	color: var(--w3ic-acc);
}

/* Card body. */
.w3ic-sub-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 16px 16px;
	min-width: 0;
}

.w3ic-sub-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.w3ic-sub-card__id {
	font-size: 15px;
	font-weight: 700;
	color: var(--w3ic-text, #111827);
}

/* Status badges: Pending amber, Under Review blue, Approved green, Rejected red. */
.w3ic-sub-card__status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.w3ic-sub-card__status svg {
	flex: 0 0 auto;
}

.w3ic-sub-card__status.is-pending {
	background: #fef3c7;
	color: #92400e;
}

.w3ic-sub-card__status.is-under_review {
	background: #dbeafe;
	color: #1e40af;
}

.w3ic-sub-card__status.is-approved,
.w3ic-sub-card__status.is-published {
	background: #dcfce7;
	color: #166534;
}

.w3ic-sub-card__status.is-rejected {
	background: #fee2e2;
	color: #991b1b;
}

.w3ic-sub-card__row {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.w3ic-sub-card__icon {
	display: inline-flex;
	flex: 0 0 auto;
	color: var(--w3ic-acc);
}

.w3ic-sub-card__icon svg {
	width: 16px;
	height: 16px;
}

.w3ic-sub-card__url {
	min-width: 0;
	flex: 1;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--w3ic-acc);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.w3ic-sub-card__url:hover {
	text-decoration: underline;
}

.w3ic-sub-card__date {
	font-size: 13.5px;
	color: var(--w3ic-text-2, #64748b);
	font-weight: 500;
}

.w3ic-sub-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 2px;
}

.w3ic-sub-card__foot .w3ic-btn {
	min-height: 40px;
	padding: 0 18px;
	font-size: 13.5px;
	border-radius: 10px;
	gap: 7px;
}

.w3ic-sub-card__foot .w3ic-btn svg {
	width: 15px;
	height: 15px;
}

/* Loading / empty / error states. */
.w3ic-subs-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 44px 20px;
	text-align: center;
	border: 1px dashed var(--w3ic-border);
	border-radius: 14px;
	background: var(--w3ic-bg, #f8fafc);
	grid-column: 1 / -1;
}

.w3ic-subs-state__icon {
	color: #94a3b8;
}

.w3ic-subs-state__icon svg {
	width: 40px;
	height: 40px;
	opacity: 0.75;
}

.w3ic-subs-state__title {
	margin: 0;
	font-size: 15.5px;
	font-weight: 700;
	color: var(--w3ic-text, #111827);
}

.w3ic-subs-state__text {
	margin: 0;
	font-size: 13.5px;
	color: var(--w3ic-text-2, #64748b);
}

.w3ic-subs-state .w3ic-btn {
	margin-top: 6px;
}

.w3ic-subs-state--error .w3ic-subs-state__title {
	color: #b02038;
}

/* Responsive columns: 3 desktop / 2 tablet / 1 mobile — no h-overflow. */
@media (max-width: 1199px) {
	.w3ic-subs-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.w3ic-subs-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.w3ic-subs-toolbar {
		align-items: stretch;
	}

	.w3ic-subs-tabs {
		width: 100%;
	}

	.w3ic-subs-sort,
	.w3ic-subs-sort select {
		width: 100%;
	}

	.w3ic-sub-card__foot {
		flex-direction: column;
		align-items: stretch;
	}

	.w3ic-sub-card__foot .w3ic-btn {
		width: 100%;
	}
}

/* ---------- My Account: scoped controls (44px, theme-proof primary) ---------- */

#w3ic-account .w3ic-btn {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

#w3ic-account .w3ic-btn-secondary {
	background: #fff;
	border: 1px solid var(--w3ic-border);
	color: #334151;
}

#w3ic-account .w3ic-btn-secondary:hover {
	background: var(--w3ic-bg);
}

/* Guarantee the primary buttons (Edit Profile, Save Changes) stay visible
 * even if theme CSS (printed later) strips button backgrounds. The
 * !important mirrors the theme's own button rules; scoped to #w3ic-account. */
#w3ic-account button.w3ic-btn-primary {
	min-height: 44px;
	padding: 10px 22px;
	border-radius: 10px;
	background: var(--w3ic-acc) !important;
	border-color: var(--w3ic-acc) !important;
	color: #fff !important;
	box-shadow: 0 1px 2px rgba(79, 70, 229, 0.25);
}

#w3ic-account button.w3ic-btn-primary:hover {
	background: var(--w3ic-acc-hover) !important;
	border-color: var(--w3ic-acc-hover) !important;
}

#w3ic-account button.w3ic-btn-edit-profile {
	min-height: 50px;
	padding: 0 22px;
	font-size: 15px;
	font-weight: 600;
}

#w3ic-account .w3ic-btn:focus-visible,
#w3ic-account .w3ic-input:focus-visible,
#w3ic-account .w3ic-textarea:focus-visible {
	outline: 2px solid var(--w3ic-acc);
	outline-offset: 2px;
}

/* ---------- Mobile (account) ---------- */

@media (max-width: 900px) {
	#w3ic-account.w3ic-portal-wrap {
		width: calc(100% - 32px);
		margin: 16px auto 40px;
	}

	body:has(#w3ic-account) .wp-block-post-content.is-layout-constrained > #w3ic-account {
		width: calc(100% - 32px);
	}

	.w3ic-dashboard__sidebar {
		border-right: none;
		border-bottom: 1px solid var(--w3ic-border);
		padding: 20px 16px 12px;
	}

	.w3ic-dashboard__nav {
		flex-direction: row;
		align-items: center;
		gap: 6px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		margin-top: 14px;
		padding-bottom: 4px;
	}

	.w3ic-dashboard__tabs {
		flex-direction: row;
		gap: 6px;
		flex: 0 0 auto;
	}

	.w3ic-dashboard__nav-item {
		width: auto;
		flex: 0 0 auto;
		white-space: nowrap;
	}

	.w3ic-nav-chevron {
		display: none;
	}

	.w3ic-dashboard__sidebar-foot {
		margin-top: 8px;
		padding-top: 0;
		border-top: none;
	}

	.w3ic-dashboard__content {
		padding: 20px 16px;
	}

	.w3ic-panel-head--page {
		flex-direction: column;
		align-items: stretch;
	}

	.w3ic-profile-info-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.w3ic-prefs-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.w3ic-prefs-col--divided {
		border-left: none;
		padding-left: 0;
		border-top: 1px solid var(--w3ic-border);
		padding-top: 16px;
	}

	.w3ic-info-card {
		padding: 16px;
	}

	.w3ic-profile-form-grid {
		grid-template-columns: 1fr;
	}

	.w3ic-platform-row {
		flex-direction: column;
		align-items: stretch;
	}

	.w3ic-platform-row__main {
		grid-template-columns: 1fr;
	}

	.w3ic-platform-remove {
		align-self: flex-start;
	}
}

@media (max-width: 640px) {
	#w3ic-account.w3ic-portal-wrap {
		width: calc(100% - 24px);
	}

	body:has(#w3ic-account) .wp-block-post-content.is-layout-constrained > #w3ic-account {
		width: calc(100% - 24px);
	}
}

/* ---------- Misc (shared portal bits) ---------- */

.w3ic-login-remember .w3ic-checkbox {
	margin-top: 4px;
}

.w3ic-login-foot {
	margin: 16px 0 0;
	text-align: center;
	font-size: 14px;
}

.w3ic-login-foot a {
	color: var(--w3ic-primary);
	font-weight: 600;
	text-decoration: none;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.w3ic-login-foot a:hover {
	text-decoration: underline;
}

.w3ic-login-links {
	display: flex;
	justify-content: flex-end;
	margin-top: 6px;
}

.w3ic-login-forgot {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--w3ic-primary);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.w3ic-login-forgot:hover {
	text-decoration: underline;
}

.w3ic-login-form .w3ic-field,
.w3ic-forgot-form .w3ic-field {
	margin-bottom: 12px;
}

.w3ic-portal-nav {
	display: flex;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ================================================================
 * Login page — professional auth layout (page-scoped: .w3ic-login-page)
 *
 * Root cause of the previously "unstyled" login page: the shared
 * design tokens (--w3ic-primary, --w3ic-border-input, --w3ic-surface,
 * --w3ic-text, …) are declared on .w3ic-form-wrap / .w3ic-submission
 * only, so on .w3ic-portal-wrap every var() below failed to resolve
 * and those declarations were dropped at parse time — input borders
 * and backgrounds vanished and .w3ic-btn-primary lost its background
 * (white text on a white card = invisible button).
 *
 * Everything below is scoped to the login page root. The theme's
 * global styles print AFTER this file, so the width neutralization
 * uses a higher-specificity compound selector (0-2-0) instead of
 * relying on source order. The only !important mirrors the theme's
 * own !important auto margins on constrained children.
 * ================================================================ */

.w3ic-portal-wrap.w3ic-login-page {
	/* Design tokens (mirror .w3ic-form-wrap) — resolve all var() below. */
	--w3ic-primary: #2563eb;
	--w3ic-primary-hover: #1d4ed8;
	--w3ic-primary-soft: #eff6ff;
	--w3ic-primary-ring: rgba(37, 99, 235, 0.12);
	--w3ic-bg: #f8fafc;
	--w3ic-surface: #ffffff;
	--w3ic-border: #e5e7eb;
	--w3ic-border-input: #d1d5db;
	--w3ic-text: #111827;
	--w3ic-text-muted: #64748b;
	--w3ic-danger: #dc2626;
	--w3ic-danger-soft: #fef2f2;
	--w3ic-danger-border: #fecaca;
	--w3ic-success: #16a34a;
	--w3ic-success-soft: #f0fdf4;
	--w3ic-success-border: #bbf7d0;
	--w3ic-radius: 16px;
	--w3ic-radius-input: 8px;
	--w3ic-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);

	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0 !important; /* theme: margin auto !important on constrained children */
	padding: 40px 16px 72px;
	background: #f8fafc;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #111827;
	font-size: 15px;
	line-height: 1.5;
}

/* Full-bleed: zero the theme's constrained-layout insets (login page only). */
body:has(.w3ic-login-page) main.has-global-padding,
body:has(.w3ic-login-page) main > .wp-block-group.has-global-padding,
body:has(.w3ic-login-page) .wp-block-post-content.has-global-padding {
	padding-left: 0;
	padding-right: 0;
}

body:has(.w3ic-login-page) main {
	margin-top: 0 !important;
}

body:has(.w3ic-login-page) main > .wp-block-group {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* ---------- Card ---------- */

.w3ic-login-page .w3ic-login-card {
	box-sizing: border-box;
	width: 100%;
	max-width: 480px;
	margin: 40px auto;
	padding: 36px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* ---------- Heading ---------- */

.w3ic-login-page .w3ic-portal-title {
	margin: 0 0 6px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: #111827;
}

.w3ic-login-page .w3ic-portal-subtitle {
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.5;
	color: #475569;
}

.w3ic-login-page .w3ic-notice {
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
}

/* ---------- Fields ---------- */

.w3ic-login-page .w3ic-field {
	margin-bottom: 16px;
}

.w3ic-login-page .w3ic-field label {
	display: block;
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #111827;
}

.w3ic-login-page .w3ic-field input[type="email"],
.w3ic-login-page .w3ic-field input[type="password"] {
	display: block;
	width: 100%;
	height: 48px;
	min-height: 48px;
	box-sizing: border-box;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #ffffff;
	color: #111827;
	font-size: 15px;
	font-family: inherit;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.w3ic-login-page .w3ic-field input[type="email"]:focus,
.w3ic-login-page .w3ic-field input[type="password"]:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
	background: #ffffff;
}

.w3ic-login-page .w3ic-password-wrap input[type="password"] {
	padding-right: 48px;
}

.w3ic-login-page .w3ic-password-toggle {
	top: 50%;
	right: 2px;
	transform: translateY(-50%);
	color: #64748b;
}

[type="password"] + .w3ic-password-toggle::after {
	content: "";
    position: absolute;
    height: 23px;
    width: 2px;
    background: #64748b;
    transform: rotate(45deg);
}

/* ---------- Remember me ---------- */

.w3ic-login-page .w3ic-login-remember {
	margin-top: 14px;
	margin-bottom: 0;
}

.w3ic-login-page .w3ic-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	min-height: 44px;
	font-size: 14px;
	font-weight: 500;
	color: #374151;
}

.w3ic-login-page .w3ic-checkbox:hover {
	border-color: transparent;
	background: transparent;
}

.w3ic-login-page .w3ic-checkbox:has(input:checked) {
	border-color: transparent;
	background: transparent;
	color: #374151;
}

.w3ic-login-page .w3ic-checkbox input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #2563eb;
}

/* ---------- Submit ---------- */

.w3ic-login-page .w3ic-login__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin-top: 0;
	padding: 12px 18px;
	border: none;
	border-radius: 8px;
	background: #2563eb;
	color: #ffffff;
	box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.w3ic-login-page .w3ic-login__submit:hover:not(:disabled) {
	background: #1d4ed8;
}

.w3ic-login-page .w3ic-login__submit:active:not(:disabled) {
	transform: translateY(1px);
}

.w3ic-login-page .w3ic-login__submit:focus-visible {
	outline: 2px solid #1d4ed8;
	outline-offset: 2px;
}

.w3ic-login-page .w3ic-login__submit:disabled {
	background: #94a3b8;
	color: #ffffff;
	box-shadow: none;
	cursor: not-allowed;
}

/* ---------- Forgot password (after the field, right-aligned) ---------- */

.w3ic-login-page .w3ic-login-links {
	display: flex;
	justify-content: flex-end;
	margin-top: 4px;
}

.w3ic-login-page .w3ic-login-forgot {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 13.5px;
	font-weight: 600;
	color: #2563eb;
	text-decoration: none;
}

.w3ic-login-page .w3ic-login-forgot:hover {
	text-decoration: underline;
}

.w3ic-login-page .w3ic-login-forgot:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---------- Foot links ---------- */

.w3ic-login-page .w3ic-login-foot {
	margin: 18px 0 0;
	text-align: center;
	font-size: 14px;
	color: #475569;
}

.w3ic-login-page .w3ic-login-foot a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
	color: #2563eb;
	text-decoration: none;
}

.w3ic-login-page .w3ic-login-foot a:hover {
	text-decoration: underline;
}

.w3ic-login-page .w3ic-login-foot a:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
	border-radius: 4px;
}

.w3ic-login-page .w3ic-login-foot--secondary {
	margin-top: 2px;
}

.w3ic-login-page .w3ic-login-foot--secondary a {
	font-weight: 500;
	color: #64748b;
}

.w3ic-login-page .w3ic-login-foot--secondary a:hover {
	color: #2563eb;
}

.w3ic-footer-botton-link{
	display: flex;
	justify-content: space-between;
}


/* ---------- Mobile (≤520px): 16px page gutters via wrap padding ---------- */

@media (max-width: 520px) {
	.w3ic-portal-wrap.w3ic-login-page {
		padding: 24px 16px 56px;
	}

	.w3ic-login-page .w3ic-login-card {
		margin: 24px auto;
		padding: 24px;
		border-radius: 14px;
	}

	.w3ic-login-page .w3ic-portal-title {
		font-size: 26px;
	}

	.w3ic-login-page .w3ic-portal-subtitle {
		margin-bottom: 20px;
	}
}

/* ---------- OTP login: smart destination field + send/verify steps ---------- */

.w3ic-login-page [hidden] {
	display: none !important;
}

.w3ic-otp-field-error {
	margin: 6px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: #b91c1c;
}

.w3ic-otp-destination {
	margin: 0 0 4px;
	font-size: 14px;
	color: #475569;
}

.w3ic-otp-destination strong {
	color: #0f172a;
	word-break: break-all;
}

.w3ic-otp-back {
	appearance: none;
	background: none;
	border: none;
	min-height: 44px;
	padding: 0;
	margin-bottom: 6px;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: #2563eb;
	cursor: pointer;
}

.w3ic-otp-back:hover {
	text-decoration: underline;
}

.w3ic-otp-back:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
	border-radius: 4px;
}

.w3ic-login-altlink {
	appearance: none;
	background: none;
	border: none;
	min-height: 44px;
	padding: 0;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: #2563eb;
	cursor: pointer;
}

.w3ic-login-altlink:hover {
	text-decoration: underline;
}

.w3ic-login-altlink:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
	border-radius: 4px;
}

.w3ic-otp-step {
	margin-top: 4px;
}

.w3ic-otp-code {
	letter-spacing: 0.35em;
	font-size: 20px;
	font-weight: 700;
}

.w3ic-otp-actions {
	display: flex;
	justify-content: center;
	margin-top: 2px;
}

.w3ic-otp-resend {
	appearance: none;
	background: none;
	border: none;
	min-height: 44px;
	padding: 0 8px;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: #2563eb;
	cursor: pointer;
}

.w3ic-otp-resend:hover:not(:disabled) {
	text-decoration: underline;
}

.w3ic-otp-resend:disabled {
	color: #94a3b8;
	cursor: default;
}

.w3ic-otp-resend:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
	border-radius: 4px;
}

.w3ic-otp-status {
	margin: 12px 0 0;
	font-size: 13.5px;
	font-weight: 600;
	color: #166534;
}

.w3ic-otp-status.is-error {
	color: #b91c1c;
}
