/**
 * IBU Dashboard — content styles.
 *
 * Everything is scoped under .ibu-dash so the theme's header, navigation and
 * footer are never touched. No resets, no global selectors.
 *
 * Palette: #E8781E accent (#F69121 hover), #141414 ink, #F6F4F0 / #E9E5DF warm
 * neutrals, #8A8A8A / #4A4A4A greys. Type: Plus Jakarta Sans throughout.
 */

.ibu-dash {
	--ibu-accent: #e8781e;
	--ibu-accent-hover: #f69121;
	--ibu-ink: #141414;
	--ibu-paper: #ffffff;
	--ibu-warm: #f6f4f0;
	--ibu-warm-2: #e9e5df;
	--ibu-line: #e3ded6;
	--ibu-muted: #8a8a8a;
	--ibu-body: #4a4a4a;
	--ibu-radius: 14px;

	font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--ibu-ink);
	-webkit-font-smoothing: antialiased;
}

.ibu-dash *,
.ibu-dash *::before,
.ibu-dash *::after { box-sizing: border-box; }

.ibu-dash p { margin: 0; }

/* ------------------------------------------------------------- primitives */

.ibu-eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ibu-muted);
}

.ibu-eyebrow--accent { color: var(--ibu-accent-hover); }

.ibu-h2 {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.ibu-muted { font-size: 13px; color: var(--ibu-muted); }

.ibu-card {
	background: var(--ibu-paper);
	border: 1px solid var(--ibu-line);
	border-radius: var(--ibu-radius);
}

.ibu-ph {
	background: repeating-linear-gradient(135deg, #e9e5df 0 10px, #e3ded6 10px 20px);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--ibu-muted);
}

.ibu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.ibu-btn--accent { background: var(--ibu-accent); color: #fff; }
.ibu-btn--accent:hover { background: var(--ibu-accent-hover); color: #fff; }

.ibu-btn--dark { background: var(--ibu-ink); color: #fff; }
.ibu-btn--dark:hover { background: #2c2c2c; color: #fff; }

.ibu-btn--ghost { background: transparent; border-color: #dcd6cc; color: var(--ibu-body); }
.ibu-btn--ghost:hover { border-color: var(--ibu-ink); color: var(--ibu-ink); }

.ibu-badge {
	position: absolute;
	top: 11px;
	left: 11px;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #fff;
}

.ibu-badge--dark { background: var(--ibu-ink); }
.ibu-badge--done { background: #1a7f4b; }

.ibu-status {
	padding: 5px 13px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.ibu-status--valid { color: #1a7f4b; background: #f1f7f3; border: 1px solid #cbe4d6; }
.ibu-status--expired { color: #8a6d1f; background: #fdf6e6; border: 1px solid #ecdcb4; }
.ibu-status--revoked,
.ibu-status--invalid { color: #b32d2e; background: #fdeceb; border: 1px solid #f3c3aa; }

/* --------------------------------------------------------------- welcome */

.ibu-welcome {
	position: relative;
	overflow: hidden;
	border-radius: var(--ibu-radius);
	background: var(--ibu-warm-2);
	padding: 34px 34px 30px;
	margin-bottom: 30px;
}

.ibu-welcome__court { position: absolute; inset: 0; opacity: .07; pointer-events: none; }
.ibu-welcome__court svg { width: 100%; height: 100%; }

.ibu-welcome__inner { position: relative; display: flex; align-items: center; gap: 22px; }

.ibu-welcome__avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	flex-shrink: 0;
	object-fit: cover;
}

.ibu-welcome__text { display: flex; flex-direction: column; gap: 5px; }

.ibu-welcome__name {
	margin: 0;
	font-size: 34px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.ibu-welcome__meta { font-size: 14px; color: var(--ibu-body); }

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

.ibu-layout { display: flex; gap: 34px; align-items: flex-start; }
.ibu-layout__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 34px; }
.ibu-layout__side { flex: 0 0 316px; display: flex; flex-direction: column; gap: 20px; }

.ibu-dash--page .ibu-dash { margin: 0; }

.ibu-section__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }

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

.ibu-stack { display: flex; flex-direction: column; gap: 16px; }

/* -------------------------------------------------------------- continue */

.ibu-continue {
	position: relative;
	display: flex;
	align-items: center;
	gap: 26px;
	overflow: hidden;
	border-radius: 16px;
	background: var(--ibu-ink);
	padding: 26px;
}

.ibu-continue__court { position: absolute; inset: 0; opacity: .09; pointer-events: none; }
.ibu-continue__court svg { width: 100%; height: 100%; }

.ibu-continue__cover {
	position: relative;
	width: 210px;
	height: 124px;
	border-radius: 10px;
	flex-shrink: 0;
	background-size: cover;
	background-position: center;
}

.ibu-continue__body { position: relative; display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; min-width: 0; }

.ibu-continue__title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: #fff;
}

.ibu-continue__meta { font-size: 14px; color: #c9c4bc; }
.ibu-continue__action { position: relative; flex-shrink: 0; }

/* -------------------------------------------------------------- progress */

.ibu-progress { display: flex; align-items: baseline; gap: 12px; }

.ibu-progress__bar {
	flex: 1 1 auto;
	height: 6px;
	background: #efebe4;
	border-radius: 999px;
	overflow: hidden;
}

.ibu-progress__bar > span { display: block; height: 100%; background: var(--ibu-accent); }

.ibu-progress--dark { margin-top: 6px; }
.ibu-progress--dark .ibu-progress__bar { background: #2c2c2c; }

.ibu-progress__pct { font-size: 13px; font-weight: 600; color: #fff; }
.ibu-progress__pct--accent { color: var(--ibu-accent); }

/* ---------------------------------------------------------------- course */

.ibu-course { overflow: hidden; display: flex; flex-direction: column; }

.ibu-course__cover {
	position: relative;
	height: 132px;
	background-size: cover;
	background-position: center;
}

.ibu-course__body { padding: 18px; display: flex; flex-direction: column; gap: 11px; flex: 1 1 auto; }

.ibu-course__title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }

.ibu-course__actions { display: flex; gap: 8px; padding-top: 10px; margin-top: auto; flex-wrap: wrap; }
.ibu-course__actions .ibu-btn { padding: 10px 20px; font-size: 13px; }

.ibu-certnum {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 9px 11px;
	border-radius: 8px;
	background: #f1f7f3;
	border: 1px solid #cbe4d6;
}

.ibu-certnum code { font-size: 12px; background: none; padding: 0; color: var(--ibu-ink); }

/* ----------------------------------------------------------- certificate */

.ibu-cert { display: flex; align-items: center; gap: 24px; padding: 22px; }

.ibu-cert__thumb { width: 152px; height: 108px; border-radius: 8px; flex-shrink: 0; }
.ibu-cert__body { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; }
.ibu-cert__course { font-size: 17px; font-weight: 600; }
.ibu-cert__uid { font-size: 13px; color: var(--ibu-body); background: none; padding: 0; }
.ibu-cert__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.ibu-cert__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ibu-cert__actions .ibu-btn { padding: 10px 18px; font-size: 13px; }

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

.ibu-table { overflow: hidden; }

.ibu-table__head,
.ibu-table__row { display: flex; align-items: center; gap: 18px; padding: 16px 22px; }

.ibu-table__head {
	border-bottom: 1px solid #f0ede7;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ibu-muted);
}

.ibu-table__row { font-size: 14px; border-bottom: 1px solid #f7f5f1; }
.ibu-table__row:last-child { border-bottom: 0; }

.ibu-table .c1 { width: 110px; }
.ibu-table .c2 { flex: 1 1 auto; min-width: 0; font-weight: 500; }
.ibu-table .c3 { width: 120px; }
.ibu-table .c4 { width: 90px; font-weight: 600; }
.ibu-table .c5 { width: 70px; text-align: right; }
.ibu-table .c5 a { color: var(--ibu-accent); font-weight: 500; text-decoration: none; }

/* -------------------------------------------------------- sidebar pieces */

.ibu-notice { padding: 20px; background: #fdf6f1; border-color: #f3c3aa; display: flex; flex-direction: column; gap: 10px; }
.ibu-notice__head { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #a1400f; }
.ibu-notice p { font-size: 13px; line-height: 1.55; color: var(--ibu-body); }

.ibu-assistant { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.ibu-assistant__head { display: flex; align-items: center; gap: 11px; }
.ibu-assistant__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ibu-assistant__names { display: flex; flex-direction: column; }
.ibu-assistant__names strong { font-size: 15px; font-weight: 600; }
.ibu-assistant__names em { font-size: 12px; font-style: normal; color: var(--ibu-muted); }
.ibu-assistant p { font-size: 13px; line-height: 1.55; color: var(--ibu-body); }
.ibu-assistant .ibu-btn { width: 100%; }

.ibu-account { padding: 20px; display: flex; flex-direction: column; gap: 13px; }
.ibu-account nav { display: flex; flex-direction: column; gap: 11px; }
.ibu-account nav a { font-size: 14px; color: var(--ibu-body); text-decoration: none; }
.ibu-account nav a:hover { color: var(--ibu-accent); }
.ibu-account__out { color: var(--ibu-muted) !important; }

.ibu-empty { padding: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ibu-empty p { font-size: 15px; color: var(--ibu-body); }

/* ---------------------------------------------------------------- mobile */

@media (max-width: 1024px) {
	.ibu-layout { flex-direction: column; }
	.ibu-layout__side { flex: 1 1 auto; width: 100%; }
}

@media (max-width: 782px) {
	.ibu-welcome { padding: 24px 20px; }
	.ibu-welcome__name { font-size: 26px; }
	.ibu-welcome__avatar { width: 56px; height: 56px; }

	.ibu-continue { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
	.ibu-continue__cover { width: 100%; height: 150px; }
	.ibu-continue__action .ibu-btn { width: 100%; }
	.ibu-continue__title { font-size: 20px; }

	.ibu-grid--2 { grid-template-columns: minmax(0, 1fr); }

	.ibu-cert { flex-direction: column; align-items: stretch; }
	.ibu-cert__thumb { width: 100%; height: 150px; }
	.ibu-cert__side { align-items: stretch; }
	.ibu-cert__actions { justify-content: stretch; }
	.ibu-cert__actions .ibu-btn { flex: 1 1 auto; }

	.ibu-table__head { display: none; }
	.ibu-table__row { flex-wrap: wrap; gap: 6px 14px; }
	.ibu-table .c1, .ibu-table .c3, .ibu-table .c4, .ibu-table .c5 { width: auto; }
	.ibu-table .c2 { flex: 1 0 100%; }
	.ibu-table .c5 { text-align: left; }

	.ibu-h2 { font-size: 22px; }
}

/* ==========================================================================
   Theme hardening
   --------------------------------------------------------------------------
   Salient styles headings, paragraphs, links and buttons globally, and some of
   those rules win over ours by specificity or load order. These reset only what
   is INSIDE .ibu-dash — nothing outside the dashboard is affected.

   The overlapping "Continue lesson" button was the clearest symptom: the theme
   positions button-like links, which pulled it out of the flex row and over the
   lesson title. Re-asserting static positioning and the flex roles fixes it.
   ========================================================================== */

.ibu-dash h2,
.ibu-dash h3 {
	margin: 0 !important;
	padding: 0 !important;
	font-family: inherit !important;
	letter-spacing: -0.02em;
	text-transform: none !important;
}

.ibu-dash p,
.ibu-dash nav,
.ibu-dash span,
.ibu-dash code {
	margin: 0 !important;
	font-family: inherit !important;
}

.ibu-dash code { background: none !important; padding: 0 !important; border: 0 !important; }

.ibu-dash a,
.ibu-dash button {
	position: static;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

.ibu-dash .ibu-btn,
.ibu-dash a.ibu-btn,
.ibu-dash button.ibu-btn {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	float: none !important;
	transform: none !important;
	margin: 0 !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	height: auto !important;
	line-height: 1 !important;
	font-family: inherit !important;
	text-decoration: none !important;
}

.ibu-dash .ibu-assistant .ibu-btn,
.ibu-dash .ibu-notice .ibu-btn { width: 100% !important; }

/* The continue block: re-assert the row so nothing can overlap the title. */
.ibu-dash .ibu-continue {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
}

.ibu-dash .ibu-continue__cover,
.ibu-dash .ibu-continue__body,
.ibu-dash .ibu-continue__action {
	position: relative !important;
	float: none !important;
	transform: none !important;
}

.ibu-dash .ibu-continue__body { flex: 1 1 auto !important; min-width: 0 !important; }
.ibu-dash .ibu-continue__action { flex: 0 0 auto !important; }
.ibu-dash .ibu-continue__title { color: #fff !important; }

/* Section headings sit level with their count. */
.ibu-dash .ibu-section__head { align-items: baseline !important; flex-wrap: wrap; }

/* Page builders often add their own spacing to whatever they wrap. */
.ibu-dash--page { margin: 0 !important; }
.ibu-dash--page > .ibu-dash { margin: 0 !important; }

@media (max-width: 782px) {
	.ibu-dash .ibu-continue {
		flex-direction: column !important;
		align-items: stretch !important;
	}

	.ibu-dash .ibu-continue__action .ibu-btn { width: 100% !important; }
}

/* ==========================================================================
   Grid density
   --------------------------------------------------------------------------
   `auto` is the default: it fits as many cards as the width allows, so the
   sidebar layout gives three across on a desktop and drops to two, then one,
   as the space narrows — without a breakpoint per count.

   Fixed counts are available via [ibu_my_courses columns="3"] (or 2 / 4). Note
   that with the 316px sidebar in place, four columns only breathes above about
   1600px; below that `auto` gives a better result.
   ========================================================================== */

.ibu-dash .ibu-grid--auto { grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.ibu-dash .ibu-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ibu-dash .ibu-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ibu-dash .ibu-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Cards get shorter covers and tighter type as the columns multiply. */
.ibu-dash .ibu-grid--auto .ibu-course__cover,
.ibu-dash .ibu-grid--3 .ibu-course__cover,
.ibu-dash .ibu-grid--4 .ibu-course__cover { height: 118px; }

.ibu-dash .ibu-grid--auto .ibu-course__title,
.ibu-dash .ibu-grid--3 .ibu-course__title,
.ibu-dash .ibu-grid--4 .ibu-course__title { font-size: 16px; }

.ibu-dash .ibu-grid--auto .ibu-course__actions .ibu-btn,
.ibu-dash .ibu-grid--3 .ibu-course__actions .ibu-btn,
.ibu-dash .ibu-grid--4 .ibu-course__actions .ibu-btn { padding: 9px 16px; font-size: 13px; }

@media (max-width: 1200px) {
	.ibu-dash .ibu-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
	.ibu-dash .ibu-grid--3,
	.ibu-dash .ibu-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.ibu-dash .ibu-grid--auto,
	.ibu-dash .ibu-grid--2,
	.ibu-dash .ibu-grid--3,
	.ibu-dash .ibu-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Background artwork
   --------------------------------------------------------------------------
   The court and ball are drawn to scale, not stretched: the SVG keeps its
   aspect ratio and the frame crops what does not fit, so circles stay round.
   ========================================================================== */

.ibu-welcome__court,
.ibu-continue__court { overflow: hidden; }

.ibu-welcome__court svg,
.ibu-continue__court svg {
	display: block;
	width: 100%;
	height: 100%;
	min-width: 640px;   /* keeps the motif legible on narrow columns */
	margin-left: auto;  /* anchored right, where it was composed */
}


/* Four across is tight next to the sidebar, so trim the card furniture. */
.ibu-dash .ibu-grid--4 .ibu-course__cover { height: 104px; }
.ibu-dash .ibu-grid--4 .ibu-course__body { padding: 15px; gap: 9px; }
.ibu-dash .ibu-grid--4 .ibu-course__title { font-size: 15px; }
.ibu-dash .ibu-grid--4 .ibu-course__actions { gap: 6px; }
.ibu-dash .ibu-grid--4 .ibu-course__actions .ibu-btn { padding: 9px 14px; font-size: 12px; }
.ibu-dash .ibu-grid--4 .ibu-badge { font-size: 9px; padding: 4px 9px; }

/* ==========================================================================
   Certificate-name card — the slot the warning leaves behind once filled in
   ========================================================================== */

.ibu-certname { padding: 20px; display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.ibu-certname__name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.ibu-certname p { font-size: 13px; line-height: 1.55; color: var(--ibu-body); }
.ibu-certname .ibu-btn { width: 100% !important; margin-top: 3px !important; }

/* ==========================================================================
   Account pages — profile, email & password, purchases
   ========================================================================== */

.ibu-account-page { max-width: 720px; }
.ibu-account-page__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.ibu-back { font-size: 13px; color: var(--ibu-muted) !important; text-decoration: none !important; width: fit-content; }
.ibu-back:hover { color: var(--ibu-accent) !important; }

.ibu-formnotice {
	padding: 13px 16px;
	border-radius: 10px;
	font-size: 14px;
	margin-bottom: 18px;
	border: 1px solid transparent;
}

.ibu-formnotice--ok { background: #f1f7f3; border-color: #cbe4d6; color: #1a7f4b; }
.ibu-formnotice--error { background: #fdeceb; border-color: #f3c3aa; color: #a1400f; }

.ibu-form { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.ibu-form__row { display: flex; flex-direction: column; gap: 7px; }
.ibu-form__split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.ibu-form label {
	font-size: 13px;
	font-weight: 600;
	color: var(--ibu-ink);
	font-family: inherit !important;
}

.ibu-form input[type="text"],
.ibu-form input[type="email"],
.ibu-form input[type="password"] {
	width: 100%;
	padding: 12px 15px !important;
	font-family: inherit !important;
	font-size: 15px !important;
	color: var(--ibu-ink) !important;
	background: var(--ibu-warm) !important;
	border: 1px solid #dcd6cc !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	outline: none !important;
	margin: 0 !important;
	transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.ibu-form input:focus {
	background: #fff !important;
	border-color: var(--ibu-accent) !important;
	box-shadow: 0 0 0 3px rgba(232, 120, 30, .16) !important;
}

.ibu-form__hint { font-size: 12.5px !important; line-height: 1.5; color: var(--ibu-muted) !important; }

.ibu-form__row--gate {
	padding-top: 18px;
	border-top: 1px solid #f0ede7;
}

.ibu-form__actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }

/* --------------------------------------------------------------- orders */

.ibu-order { padding: 0; overflow: hidden; }

.ibu-order__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	border-bottom: 1px solid #f0ede7;
	background: #fbfaf8;
	flex-wrap: wrap;
}

.ibu-order__id { display: flex; flex-direction: column; gap: 3px; }
.ibu-order__id strong { font-size: 16px; }
.ibu-order__meta { display: flex; align-items: center; gap: 12px; }

.ibu-order__items { padding: 8px 22px; }

.ibu-order__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	font-size: 14px;
	border-bottom: 1px solid #f7f5f1;
}

.ibu-order__item:last-child { border-bottom: 0; }

.ibu-order__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 22px;
	border-top: 1px solid #f0ede7;
	font-size: 15px;
	flex-wrap: wrap;
}

/* WooCommerce status colours, mapped to ours. */
.ibu-status--completed { color: #1a7f4b; background: #f1f7f3; border: 1px solid #cbe4d6; }
.ibu-status--processing,
.ibu-status--on-hold { color: #8a6d1f; background: #fdf6e6; border: 1px solid #ecdcb4; }
.ibu-status--cancelled,
.ibu-status--failed,
.ibu-status--refunded { color: #b32d2e; background: #fdeceb; border: 1px solid #f3c3aa; }
.ibu-status--pending { color: var(--ibu-body); background: var(--ibu-warm); border: 1px solid var(--ibu-line); }

@media (max-width: 640px) {
	.ibu-form { padding: 20px; }
	.ibu-form__split { grid-template-columns: minmax(0, 1fr); }
	.ibu-order__head,
	.ibu-order__foot { align-items: flex-start; flex-direction: column; }
}

/* ==========================================================================
   Account page — one page, tabs down the side
   ========================================================================== */

.ibu-acct__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }

.ibu-acct__layout { display: flex; gap: 34px; align-items: flex-start; }

.ibu-acct__tabs {
	flex: 0 0 264px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: #fff;
	border: 1px solid var(--ibu-line);
	border-radius: var(--ibu-radius);
	padding: 10px;
	position: sticky;
	top: 24px;
}

.ibu-acct__who {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 14px 14px 16px;
	margin-bottom: 8px;
	border-bottom: 1px solid #f0ede7;
}

.ibu-acct__avatar { width: 46px; height: 46px; border-radius: 50%; margin-bottom: 6px; }
.ibu-acct__name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.ibu-acct__email { font-size: 12.5px; color: var(--ibu-muted); word-break: break-all; }

.ibu-acct__tab {
	display: block;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--ibu-body) !important;
	text-decoration: none !important;
	transition: background .16s ease, color .16s ease;
}

.ibu-acct__tab:hover { background: var(--ibu-warm); color: var(--ibu-ink) !important; }

.ibu-acct__tab.is-active {
	background: var(--ibu-ink);
	color: #fff !important;
	font-weight: 600;
}

.ibu-acct__tab--out { margin-top: 8px; border-top: 1px solid #f0ede7; border-radius: 0 0 10px 10px; color: var(--ibu-muted) !important; }
.ibu-acct__tab--out:hover { color: #b32d2e !important; background: #fdeceb; }

.ibu-acct__panel { flex: 1 1 auto; min-width: 0; }

.ibu-acct__panelhead {
	font-size: 20px !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em;
	margin: 0 0 16px !important;
}

.ibu-acct .ibu-form,
.ibu-acct .ibu-order { max-width: none; }

@media (max-width: 900px) {
	.ibu-acct__layout { flex-direction: column; }
	.ibu-acct__tabs { flex: 1 1 auto; width: 100%; position: static; flex-direction: row; flex-wrap: wrap; }
	.ibu-acct__who { width: 100%; border-bottom: 0; margin-bottom: 0; padding-bottom: 8px; }
	.ibu-acct__tab { flex: 1 1 auto; text-align: center; }
	.ibu-acct__tab--out { margin-top: 0; border-top: 0; border-radius: 10px; }
}
