/* ==========================================================================
   Phygital Brasil — Painel do Competidor e do Administrador
   ========================================================================== */

:root {
	--green: #009B4A;
	--green-600: #008A42;
	--green-700: #00753A;
	--green-deep: #004A1B;
	--green-50: #E8F6EE;
	--yellow: #FCE001;
	--yellow-50: #FFF9D6;
	--amber: #DF9911;
	--amber-50: #FCF1DD;
	--blue: #0A66B1;
	--blue-light: #3D93D6;
	--blue-50: #E5F0FA;
	--red: #D63B3B;
	--red-50: #FCEBEB;
	--ink: #0E1113;
	--ink-2: #161A1E;
	--ink-3: #22282D;
	--ink-4: #2E353B;
	--gray: #6E7377;
	--gray-2: #8A8F93;
	--line: #E3E6E2;
	--line-2: #EEF0ED;
	--off: #F5F6F4;
	--bg: #F2F3F0;
	--white: #FFFFFF;
	--text: #2B3135;
	--ribbon: linear-gradient(90deg, #009B4A 0%, #59B946 28%, #FCE001 50%, #DF9911 70%, #3D93D6 86%, #0A66B1 100%);
	--head: 'Saira', 'Arial Narrow', Arial, sans-serif;
	--body: 'Barlow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--r-sm: 8px;
	--r: 12px;
	--r-lg: 18px;
	--r-xl: 24px;
	--sh-1: 0 1px 2px rgba(14, 17, 19, .05), 0 1px 1px rgba(14, 17, 19, .03);
	--sh-2: 0 8px 24px -10px rgba(14, 17, 19, .18), 0 2px 6px -2px rgba(14, 17, 19, .06);
	--sh-3: 0 30px 60px -20px rgba(14, 17, 19, .35);
	--sidebar: 272px;
	--topbar: 72px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* The hidden attribute always wins over layout classes (.grid, .field) that set display. */
[hidden] { display: none !important; }
body.phy-body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--body);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-700); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 3px solid rgba(0, 155, 74, .45); outline-offset: 2px; }
.phy-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.phy-ico { width: 20px; height: 20px; flex: none; }
.is-hidden { display: none !important; }

/* ---------- Splash ---------- */
.phy-splash {
	position: fixed; inset: 0; z-index: 999;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px;
	background: radial-gradient(1200px 600px at 50% 120%, rgba(0, 155, 74, .28), transparent 60%), radial-gradient(900px 500px at 100% -10%, rgba(10, 102, 177, .25), transparent 60%), var(--ink);
	transition: opacity .6s var(--ease), visibility .6s;
}
.phy-splash.is-done { opacity: 0; visibility: hidden; }
.phy-splash__glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 155, 74, .35), transparent 70%); filter: blur(10px); animation: phyPulse 2.4s ease-in-out infinite; }
.phy-splash__logo { position: relative; width: min(300px, 70vw); height: auto; animation: phyRise .9s var(--ease) both; }
.phy-splash__word { position: relative; font-family: var(--head); font-size: 42px; font-weight: 800; color: #fff; letter-spacing: .02em; }
.phy-splash__word span { color: var(--green); }
.phy-splash__bar { position: relative; width: 180px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.phy-splash__bar span { position: absolute; inset: 0; background: var(--ribbon); transform-origin: left; animation: phyLoad 1.4s var(--ease) forwards; }
@keyframes phyLoad { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes phyPulse { 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes phyRise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes phyFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes phySpin { to { transform: rotate(360deg); } }
@keyframes phyShimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }

/* ---------- Buttons ---------- */
.btn {
	--b-bg: var(--ink); --b-fg: #fff; --b-bd: transparent;
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: 46px; padding: 0 20px;
	border-radius: 999px; border: 1.5px solid var(--b-bd);
	background: var(--b-bg); color: var(--b-fg);
	font-family: var(--body); font-weight: 700; font-size: 14.5px; letter-spacing: .01em; line-height: 1;
	white-space: nowrap; text-decoration: none;
	transition: transform .18s var(--ease), background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn:hover { color: var(--b-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .phy-ico { width: 18px; height: 18px; }
.btn--primary { --b-bg: var(--green); box-shadow: 0 8px 18px -8px rgba(0, 155, 74, .65); }
.btn--primary:hover { --b-bg: var(--green-600); }
.btn--dark { --b-bg: var(--ink); }
.btn--dark:hover { --b-bg: var(--ink-3); }
.btn--outline { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line); }
.btn--outline:hover { --b-bd: var(--ink); --b-fg: var(--ink); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: transparent; }
.btn--ghost:hover { --b-bg: var(--line-2); }
.btn--light { --b-bg: #fff; --b-fg: var(--ink); --b-bd: var(--line); }
.btn--light:hover { --b-bd: var(--ink); }
.btn--white { --b-bg: #fff; --b-fg: var(--ink); }
.btn--outline-light { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { --b-bd: #fff; }
.btn--danger { --b-bg: var(--red); }
.btn--danger:hover { --b-bg: #bf2f2f; }
.btn--danger-outline { --b-bg: transparent; --b-fg: var(--red); --b-bd: rgba(214, 59, 59, .35); }
.btn--danger-outline:hover { --b-bg: var(--red-50); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; gap: 7px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 15.5px; }
.btn--block { width: 100%; }
.btn--icon { width: 40px; min-height: 40px; padding: 0; }
.btn--icon.btn--sm { width: 34px; min-height: 34px; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: phySpin .7s linear infinite; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green-600); background: none; border: 0; padding: 0; }
.link:hover { color: var(--green-700); }
.link .phy-ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link:hover .phy-ico { transform: translateX(3px); }
.link--muted { color: var(--gray); font-weight: 600; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field__label { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .01em; display: flex; align-items: center; gap: 6px; }
.field__label small { font-weight: 500; color: var(--gray); }
.field__req { color: var(--green); }
.field__hint { font-size: 12.5px; color: var(--gray); line-height: 1.45; }
.field__error { font-size: 12.5px; color: var(--red); font-weight: 600; display: none; }
.field.has-error .field__error { display: block; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red); box-shadow: 0 0 0 3px rgba(214, 59, 59, .12); }
.input, .select, .textarea {
	width: 100%; min-height: 48px; padding: 0 14px;
	background: #fff; color: var(--ink);
	border: 1.5px solid #D9DDD8; border-radius: var(--r);
	font-family: var(--body); font-size: 15px;
	transition: border-color .15s, box-shadow .15s;
	appearance: none; -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #A3A8AB; }
.input:hover, .select:hover, .textarea:hover { border-color: #C3C8C3; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 155, 74, .14); }
.input[readonly], .input:disabled { background: var(--off); color: var(--gray); }
.textarea { padding: 12px 14px; min-height: 112px; resize: vertical; line-height: 1.55; }
.select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230E1113' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 46px; }
.input-wrap__btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--gray); border-radius: 8px; display: grid; place-items: center; }
.input-wrap__btn:hover { background: var(--line-2); color: var(--ink); }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray); font-weight: 600; }
.input-prefix .input { padding-left: 40px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); cursor: pointer; line-height: 1.45; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { flex: none; width: 21px; height: 21px; margin-top: 1px; border-radius: 6px; border: 1.5px solid #C9CEC8; background: #fff; display: grid; place-items: center; transition: all .15s; }
.check__box svg { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.6); transition: all .15s; }
.check input:checked + .check__box { background: var(--green); border-color: var(--green); }
.check input:checked + .check__box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px rgba(0, 155, 74, .2); }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); }
.switch input { position: absolute; opacity: 0; }
.switch__track { width: 44px; height: 26px; border-radius: 99px; background: #CDD1CC; position: relative; transition: background .2s; flex: none; }
.switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked + .switch__track { background: var(--green); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.form-actions--start { justify-content: flex-start; }
.form-actions--between { justify-content: space-between; }
.code-input { display: flex; gap: 10px; justify-content: center; }
.code-input input { width: 52px; height: 60px; text-align: center; font-family: var(--head); font-weight: 700; font-size: 26px; border: 1.5px solid #D9DDD8; border-radius: 12px; background: #fff; color: var(--ink); }
.code-input input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 155, 74, .14); }
.radio-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.radio-card { position: relative; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.radio-card:hover { border-color: #C9CEC8; transform: translateY(-2px); }
.radio-card input { position: absolute; opacity: 0; }
.radio-card.is-selected, .radio-card:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 155, 74, .12); }
.radio-card__title { font-weight: 700; color: var(--ink); }
.radio-card__text { font-size: 13px; color: var(--gray); }

/* ---------- Cards & surfaces ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card--pad { padding: 26px; }
.card--hover { transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #D6DAD5; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line-2); }
.card__title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.card__title .phy-ico { color: var(--green); }
.card__body { padding: 24px; }
.card__foot { padding: 16px 24px; border-top: 1px solid var(--line-2); display: flex; gap: 12px; justify-content: flex-end; }
.section { margin-top: 34px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section__title { font-size: 21px; font-weight: 700; }
.section__sub { color: var(--gray); font-size: 14px; margin-top: 4px; }
.divider { height: 1px; background: var(--line-2); margin: 24px 0; border: 0; }
.muted { color: var(--gray); }
.small { font-size: 13px; }
.strong { font-weight: 700; color: var(--ink); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--ribbon); border-radius: 2px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack--sm { gap: 8px; }
.stack--lg { gap: 24px; }
.row { display: flex; align-items: center; gap: 12px; }
.row--wrap { flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--top { align-items: flex-start; }
.push { margin-left: auto; }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; background: var(--line-2); color: var(--ink-3); }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge--plain::before { display: none; }
.badge--green { background: var(--green-50); color: #007A3A; }
.badge--yellow { background: var(--yellow-50); color: #8A6A00; }
.badge--amber { background: var(--amber-50); color: #9A6406; }
.badge--blue { background: var(--blue-50); color: var(--blue); }
.badge--red { background: var(--red-50); color: var(--red); }
.badge--dark { background: var(--ink); color: #fff; }
.badge--gray { background: var(--line-2); color: var(--gray); }
.badge--live::before { animation: phyPulse 1.6s ease-in-out infinite; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--mod, var(--green)); }
.pill-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--green); color: #fff; font-size: 11.5px; font-weight: 800; }
.pill-count--muted { background: var(--line); color: var(--ink-3); }

/* ---------- App layout ---------- */
.app { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
	position: sticky; top: 0; height: 100vh; overflow: hidden auto;
	background: radial-gradient(420px 320px at 0% 105%, rgba(0, 155, 74, .22), transparent 70%), var(--ink);
	color: #C9CDD0; display: flex; flex-direction: column;
	border-right: 1px solid rgba(255, 255, 255, .04);
	scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent;
}
.sidebar::before { content: ''; position: sticky; top: 0; height: 4px; background: var(--ribbon); flex: none; z-index: 2; }
.sidebar__brand { display: flex; align-items: center; padding: 22px 24px 18px; }
.sidebar__brand img { width: 172px; height: auto; }
.sidebar__brand .word { font-family: var(--head); font-weight: 800; color: #fff; font-size: 20px; }
.sidebar__mode { margin: 0 18px 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); font-size: 12px; color: #9AA0A4; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar__mode b { color: #fff; font-weight: 700; display: block; font-size: 13px; }
.sidebar__nav { padding: 6px 14px 18px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar__group { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #6C7377; padding: 18px 12px 8px; }
.nav-item {
	position: relative; display: flex; align-items: center; gap: 13px;
	min-height: 46px; padding: 0 14px; border-radius: 12px;
	color: #C3C8CB; font-weight: 600; font-size: 14.5px; text-decoration: none;
	transition: background .15s, color .15s;
	border: 0; background: none; width: 100%; text-align: left;
}
.nav-item .phy-ico { width: 20px; height: 20px; opacity: .85; }
.nav-item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav-item.is-active { background: rgba(0, 155, 74, .16); color: #fff; }
.nav-item.is-active::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--green); }
.nav-item.is-active .phy-ico { color: #3ED07F; opacity: 1; }
.nav-item .pill-count { margin-left: auto; }
.nav-item__caret { margin-left: auto; width: 16px !important; height: 16px !important; transition: transform .2s; }
.nav-item.is-open .nav-item__caret { transform: rotate(90deg); }
.nav-sub { display: none; flex-direction: column; gap: 1px; padding: 2px 0 6px 33px; }
.nav-sub.is-open { display: flex; }
.nav-sub a, .nav-sub button { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; border-radius: 10px; color: #A4AAAE; font-size: 13.5px; font-weight: 600; text-decoration: none; background: none; border: 0; text-align: left; width: 100%; }
.nav-sub a:hover, .nav-sub button:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.nav-sub a.is-active { color: #3ED07F; }
.nav-sub .nav-sub__new { color: #3ED07F; }
.nav-sub span.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; flex: none; }
.sidebar__foot { padding: 14px; border-top: 1px solid rgba(255, 255, 255, .06); }
.user-chip { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; }
.user-chip__info { min-width: 0; flex: 1; }
.user-chip__name { color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip__role { font-size: 12px; color: #8C9296; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--green), var(--green-deep)); color: #fff; font-family: var(--head); font-weight: 700; font-size: 15px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 64px; height: 64px; font-size: 22px; }
.avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; height: var(--topbar); display: flex; align-items: center; gap: 16px; padding: 0 34px; background: rgba(242, 243, 240, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(14, 17, 19, .05); }
.topbar__menu { display: none; }
.topbar__crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--gray); font-weight: 600; min-width: 0; }
.topbar__crumbs a { color: var(--gray); }
.topbar__crumbs a:hover { color: var(--ink); }
.topbar__crumbs .phy-ico { width: 14px; height: 14px; opacity: .6; }
.topbar__crumbs b { color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar__logo { display: none; }
.content { padding: 30px 34px 60px; max-width: 1280px; width: 100%; animation: phyFade .35s var(--ease) both; }
.content--narrow { max-width: 880px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head__title { font-size: 32px; font-weight: 700; margin-top: 8px; }
.page-head__sub { color: var(--gray); margin-top: 6px; font-size: 15px; max-width: 620px; }
.page-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back { display: flex; width: fit-content; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--gray); margin-bottom: 12px; background: none; border: 0; padding: 0; }
.back:hover { color: var(--ink); }
.back .phy-ico { width: 16px; height: 16px; }
.menu-pop { position: relative; }
.menu-pop__panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); padding: 8px; display: none; z-index: 60; }
.menu-pop.is-open .menu-pop__panel { display: block; animation: phyFade .18s var(--ease); }
.menu-pop__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.menu-pop__head b { display: block; color: var(--ink); }
.menu-pop__head span { font-size: 12.5px; color: var(--gray); }
.menu-pop__item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 14px; background: none; border: 0; text-align: left; text-decoration: none; }
.menu-pop__item:hover { background: var(--off); color: var(--ink); }
.menu-pop__item .phy-ico { width: 18px; height: 18px; color: var(--gray); }
.menu-pop__item--danger { color: var(--red); }
.menu-pop__item--danger .phy-ico { color: var(--red); }
.bottom-nav { display: none; }
.backdrop { position: fixed; inset: 0; background: rgba(14, 17, 19, .55); z-index: 80; opacity: 0; visibility: hidden; transition: opacity .25s; }
.backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; }
.auth__art {
	position: relative; overflow: hidden; color: #fff;
	background: radial-gradient(700px 500px at 10% 110%, rgba(0, 155, 74, .45), transparent 65%), radial-gradient(600px 420px at 110% -10%, rgba(10, 102, 177, .45), transparent 60%), var(--ink);
	display: flex; flex-direction: column; padding: 44px 52px;
}
.auth__art::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--ribbon); }
.auth__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); }
.auth__logo { position: relative; z-index: 2; width: 200px; height: auto; }
.auth__copy { position: relative; z-index: 2; margin-top: auto; max-width: 440px; }
.auth__copy h2 { color: #fff; font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; line-height: 1.04; letter-spacing: -0.025em; }
.auth__copy h2 em { font-style: normal; background: linear-gradient(90deg, #3ED07F, var(--yellow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth__copy p { color: #AEB4B8; margin-top: 16px; font-size: 16px; line-height: 1.6; }
.auth__mascot { position: absolute; right: -40px; bottom: 0; height: 88%; width: auto; max-width: 62%; object-fit: contain; object-position: bottom; z-index: 1; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); animation: phyRise 1s var(--ease) both; }
.auth__word { position: absolute; left: -10px; top: 46%; font-family: var(--head); font-weight: 800; font-size: 170px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07); letter-spacing: -0.03em; white-space: nowrap; z-index: 0; user-select: none; }
.auth__feats { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.auth__feats span { font-size: 12.5px; font-weight: 700; color: #E3E6E8; padding: 8px 12px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .09); backdrop-filter: blur(6px); }
.auth__panel { display: flex; align-items: center; justify-content: center; padding: 48px 28px; background: #fff; }
.auth__box { width: 100%; max-width: 420px; animation: phyFade .4s var(--ease) both; }
.auth__box h1 { font-size: 32px; font-weight: 700; }
.auth__box .lead { color: var(--gray); margin-top: 10px; font-size: 15.5px; line-height: 1.55; }
.auth__form { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth__alt { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-2); text-align: center; color: var(--gray); font-size: 14.5px; }
.auth__alt button, .auth__alt a { background: none; border: 0; padding: 0; color: var(--green-600); font-weight: 700; }
.auth__mobile-head { display: none; }
.auth__legal { margin-top: 18px; font-size: 12px; color: var(--gray-2); text-align: center; }
.pass-meter { height: 5px; border-radius: 5px; background: var(--line-2); overflow: hidden; margin-top: 2px; }
.pass-meter span { display: block; height: 100%; width: 0; background: var(--red); border-radius: 5px; transition: width .25s, background .25s; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--off); border: 1px solid var(--line); font-size: 14px; color: var(--text); line-height: 1.5; }
.notice .phy-ico { color: var(--gray); margin-top: 1px; }
.notice b { color: var(--ink); }
.notice--green { background: var(--green-50); border-color: rgba(0, 155, 74, .25); }
.notice--green .phy-ico { color: var(--green); }
.notice--yellow { background: var(--yellow-50); border-color: rgba(223, 153, 17, .3); }
.notice--yellow .phy-ico { color: var(--amber); }
.notice--red { background: var(--red-50); border-color: rgba(214, 59, 59, .25); }
.notice--red .phy-ico { color: var(--red); }
.notice--blue { background: var(--blue-50); border-color: rgba(10, 102, 177, .2); }
.notice--blue .phy-ico { color: var(--blue); }
.notice--dark { background: var(--ink); color: #D7DBDE; border-color: var(--ink); }
.notice--dark b { color: #fff; }
.notice__actions { margin-left: auto; display: flex; gap: 8px; flex: none; }

/* ---------- Home ---------- */
.hello { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 32px 34px; color: #fff; background: radial-gradient(520px 300px at 85% 120%, rgba(0, 155, 74, .55), transparent 65%), radial-gradient(420px 260px at 105% -20%, rgba(10, 102, 177, .5), transparent 60%), var(--ink); min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
.hello::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ribbon); }
.hello__text { position: relative; z-index: 2; max-width: 60%; }
.hello h2 { color: #fff; font-size: 30px; font-weight: 700; }
.hello p { color: #B4BABE; margin-top: 8px; font-size: 15.5px; }
.hello__actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hello__mascot { position: absolute; right: 18px; bottom: 0; height: 112%; width: auto; object-fit: contain; object-position: bottom; z-index: 1; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5)); }
.carousel { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--ink); box-shadow: var(--sh-2); }
.carousel__track { display: flex; transition: transform .6s var(--ease); }
.carousel__slide { flex: 0 0 100%; position: relative; aspect-ratio: 8 / 3; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__slide a { position: absolute; inset: 0; }
.carousel__caption { position: absolute; left: 28px; bottom: 26px; right: 28px; color: #fff; z-index: 2; max-width: 560px; }
.carousel__caption h3 { color: #fff; font-size: 26px; }
.carousel__caption p { color: #D5D9DC; margin-top: 6px; }
.carousel__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 17, 19, .82), transparent 60%); }
.carousel__dots { position: absolute; right: 22px; bottom: 20px; display: flex; gap: 7px; z-index: 3; }
.carousel__dots button { width: 30px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .35); transition: background .2s, width .2s; }
.carousel__dots button.is-active { background: #fff; width: 46px; }
.carousel__arrows { position: absolute; top: 50%; left: 14px; right: 14px; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; z-index: 3; }
.carousel__arrows button { pointer-events: auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(14, 17, 19, .5); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s, background .2s; }
.carousel:hover .carousel__arrows button { opacity: 1; }
.carousel__arrows button:hover { background: rgba(14, 17, 19, .8); }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.quick__item { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.quick__item:hover { transform: translateY(-3px); box-shadow: var(--sh-2); color: var(--ink); border-color: #D2D6D1; }
.quick__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--green-50); color: var(--green); }
.quick__icon--amber { background: var(--amber-50); color: var(--amber); }
.quick__icon--blue { background: var(--blue-50); color: var(--blue); }
.quick__icon--dark { background: var(--ink); color: #fff; }
.quick__icon .phy-ico { width: 23px; height: 23px; }
.quick__title { font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.quick__text { font-size: 13px; color: var(--gray); margin-top: -8px; }
.quick__arrow { position: absolute; right: 18px; top: 22px; color: #B7BCB7; transition: transform .2s, color .2s; }
.quick__item:hover .quick__arrow { transform: translateX(3px); color: var(--green); }
.quick__item--primary { background: var(--green); border-color: var(--green); color: #fff; }
.quick__item--primary:hover { color: #fff; border-color: var(--green-600); }
.quick__item--primary .quick__icon { background: rgba(255, 255, 255, .16); color: #fff; }
.quick__item--primary .quick__text { color: rgba(255, 255, 255, .8); }
.quick__item--primary .quick__arrow { color: rgba(255, 255, 255, .7); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { position: relative; padding: 20px 20px 18px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.stat__label { font-size: 13px; color: var(--gray); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat__label .phy-ico { width: 17px; height: 17px; color: var(--green); }
.stat__value { font-family: var(--head); font-weight: 700; font-size: 34px; color: var(--ink); line-height: 1.1; margin-top: 10px; letter-spacing: -0.02em; }
.stat__meta { font-size: 12.5px; color: var(--gray); margin-top: 4px; }
.stat--accent { background: var(--ink); border-color: var(--ink); }
.stat--accent .stat__label { color: #9AA0A4; }
.stat--accent .stat__value { color: #fff; }
.stat--accent::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ribbon); }
.stat__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--green)); }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; }
.cols--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols--side { grid-template-columns: minmax(0, 1fr) 360px; }

/* ---------- Championship card (panel) ---------- */
.champ { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.champ:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.champ__media { position: relative; aspect-ratio: 16 / 7; background: var(--ink); overflow: hidden; }
.champ__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.champ:hover .champ__media img { transform: scale(1.04); }
.champ__ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(300px 160px at 20% 120%, var(--mod, var(--green)), transparent 70%), radial-gradient(260px 160px at 110% -20%, rgba(10, 102, 177, .6), transparent 65%), var(--ink); }
.champ__ph span { font-family: var(--head); font-weight: 800; font-size: 34px; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .45); text-transform: uppercase; letter-spacing: -0.01em; }
.champ__tags { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; }
.champ__tags .badge { background: rgba(14, 17, 19, .75); color: #fff; backdrop-filter: blur(6px); }
.champ__tags .badge--green { background: var(--green); color: #fff; }
.champ__body { padding: 18px 20px 6px; display: flex; gap: 14px; }
.champ__date { flex: none; width: 54px; height: 58px; border-radius: 12px; background: var(--off); display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line-2); }
.champ__date b { font-family: var(--head); font-size: 22px; line-height: 1; color: var(--ink); }
.champ__date span { font-size: 11px; font-weight: 800; color: var(--green); letter-spacing: .08em; margin-top: 3px; }
.champ__title { font-size: 17px; font-weight: 700; line-height: 1.25; }
.champ__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13px; color: var(--gray); }
.champ__meta span { display: inline-flex; align-items: center; gap: 5px; }
.champ__meta .phy-ico { width: 15px; height: 15px; }
.champ__foot { margin-top: auto; padding: 14px 20px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.countdown-mini { font-size: 12.5px; color: var(--gray); line-height: 1.3; }
.countdown-mini b { display: block; font-family: var(--head); font-size: 15px; color: var(--ink); letter-spacing: .01em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Teams ---------- */
.mod-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.mod-tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: var(--ink-3); transition: all .15s; }
.mod-tab i { width: 9px; height: 9px; border-radius: 50%; background: var(--mod, var(--green)); }
.mod-tab:hover { border-color: #C9CEC8; }
.mod-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.mod-tab .pill-count { background: rgba(14, 17, 19, .08); color: inherit; }
.mod-tab.is-active .pill-count { background: rgba(255, 255, 255, .16); }
.team-card { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .2s var(--ease), box-shadow .2s; cursor: pointer; text-align: left; color: inherit; }
.team-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.team-card__head { display: flex; gap: 14px; align-items: center; }
.team-logo { width: 62px; height: 62px; border-radius: 16px; background: var(--off); border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; flex: none; font-family: var(--head); font-weight: 800; font-size: 22px; color: var(--ink-3); }
.team-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.team-logo--lg { width: 96px; height: 96px; border-radius: 22px; font-size: 34px; }
.team-logo--sm { width: 40px; height: 40px; border-radius: 11px; font-size: 15px; }
.team-card__name { font-size: 18px; font-weight: 700; line-height: 1.2; }
.team-card__sub { font-size: 13px; color: var(--gray); margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.team-card__faces { display: flex; align-items: center; }
.face { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: var(--line-2); margin-left: -8px; overflow: hidden; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--gray); }
.face:first-child { margin-left: 0; }
.face img { width: 100%; height: 100%; object-fit: cover; }
.progress { height: 7px; border-radius: 7px; background: var(--line-2); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 7px; background: var(--green); transition: width .4s var(--ease); }
.progress--amber span { background: var(--amber); }
.team-card__status { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.mod-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.mod-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px; padding: 22px; border-radius: var(--r-xl); border: 0; text-align: left; color: #fff; background: radial-gradient(260px 200px at 30% 120%, var(--mod), transparent 70%), var(--ink); transition: transform .25s var(--ease), box-shadow .25s; isolation: isolate; }
.mod-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.mod-card img { position: absolute; right: -14px; top: 8px; height: 76%; width: auto; object-fit: contain; z-index: -1; transition: transform .35s var(--ease); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
.mod-card:hover img { transform: scale(1.06) translateY(-4px); }
.mod-card__icon { position: absolute; left: 20px; top: 20px; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; backdrop-filter: blur(4px); }
.mod-card__title { font-family: var(--head); font-weight: 700; font-size: 22px; color: #fff; letter-spacing: -0.01em; }
.mod-card__text { font-size: 13px; color: rgba(255, 255, 255, .72); margin-top: 4px; }
.mod-card__line { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--mod); }
.steps { display: flex; gap: 8px; margin-bottom: 26px; counter-reset: step; flex-wrap: wrap; }
.step { flex: 1; min-width: 130px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--gray); font-weight: 700; font-size: 13.5px; }
.step__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--ink-3); font-family: var(--head); font-size: 14px; flex: none; }
.step.is-active { border-color: var(--ink); color: var(--ink); box-shadow: var(--sh-1); }
.step.is-active .step__n { background: var(--ink); color: #fff; }
.step.is-done { color: var(--green-700); }
.step.is-done .step__n { background: var(--green); color: #fff; }
.member { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 22px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.member + .member { margin-top: 14px; }
.member__tag { position: absolute; top: -11px; left: 18px; height: 22px; padding: 0 10px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; }
.member__tag--reserve { background: var(--amber); }
.member__tag--staff { background: var(--blue); }
.member__remove { position: absolute; top: 12px; right: 12px; }
.member__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.member.is-incomplete { border-color: rgba(223, 153, 17, .45); }
.photo-pick { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.photo-pick__btn { position: relative; width: 104px; height: 104px; border-radius: 50%; border: 2px dashed #C9CEC8; background: var(--off); display: grid; place-items: center; overflow: hidden; color: var(--gray); transition: border-color .15s, background .15s; padding: 0; }
.photo-pick__btn:hover { border-color: var(--green); background: var(--green-50); color: var(--green); }
.photo-pick__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-pick__btn .phy-ico { width: 28px; height: 28px; }
.photo-pick__btn.is-square { border-radius: 22px; }
.photo-pick__btn.is-square img { object-fit: contain; padding: 8px; background: #fff; }
.photo-pick__btn.has-image { border-style: solid; border-color: var(--line); }
.photo-pick__label { font-size: 12px; font-weight: 700; color: var(--gray); text-align: center; }
.photo-pick__btn.is-loading::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23009B4A' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E") center no-repeat; }
.add-member { width: 100%; min-height: 64px; margin-top: 14px; border-radius: var(--r-lg); border: 2px dashed #CDD2CC; background: transparent; color: var(--ink-3); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all .15s; }
.add-member:hover { border-color: var(--green); color: var(--green); background: var(--green-50); }
.counter-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: var(--r); background: var(--off); border: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.counter-bar b { font-family: var(--head); font-size: 18px; color: var(--ink); }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.person { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.person__photo { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--off); flex: none; display: grid; place-items: center; font-weight: 800; color: var(--gray); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__name { font-weight: 700; color: var(--ink); font-size: 14.5px; line-height: 1.2; }
.person__meta { font-size: 12.5px; color: var(--gray); margin-top: 2px; }
.person__num { margin-left: auto; font-family: var(--head); font-weight: 800; font-size: 20px; color: var(--line); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.kv__item { padding: 14px 16px; border-radius: var(--r); background: var(--off); }
.kv__label { font-size: 12px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: .08em; }
.kv__value { font-weight: 700; color: var(--ink); margin-top: 4px; word-break: break-word; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); padding: 14px 18px; background: var(--off); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); vertical-align: middle; color: var(--text); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr.is-click { cursor: pointer; }
.table tbody tr.is-click:hover { background: #FAFBF9; }
.table .num { text-align: center; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.cell-team { display: flex; align-items: center; gap: 12px; }
.cell-team b { color: var(--ink); display: block; }
.cell-team small { color: var(--gray); }
.rank-table td.pos { width: 64px; }
.pos { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-family: var(--head); font-weight: 800; font-size: 16px; background: var(--off); color: var(--ink); }
.is-top1 .pos { background: var(--yellow); color: var(--ink); }
.is-top2 .pos { background: #D9DEE2; color: var(--ink); }
.is-top3 .pos { background: var(--amber); color: #fff; }
.pts { font-family: var(--head); font-weight: 800; font-size: 17px; color: var(--ink); }

/* ---------- Tabs (segmented) ---------- */
.seg { display: inline-flex; padding: 4px; border-radius: 99px; background: #E7E9E5; gap: 2px; flex-wrap: wrap; }
.seg button { height: 36px; padding: 0 16px; border-radius: 99px; border: 0; background: none; font-weight: 700; font-size: 13.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; }
.seg button.is-active { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.seg .pill-count { height: 20px; min-width: 20px; font-size: 11px; }

/* ---------- Empty, skeleton, misc ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 46px 24px; border-radius: var(--r-xl); background: #fff; border: 1px dashed #D3D7D2; }
.empty__art { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(14, 17, 19, .18)); }
.empty__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--green-50); color: var(--green); }
.empty__icon .phy-ico { width: 30px; height: 30px; }
.empty h3 { font-size: 21px; }
.empty p { color: var(--gray); max-width: 440px; }
.skeleton { border-radius: 12px; background: linear-gradient(90deg, #ECEEEA 0px, #F6F7F5 160px, #ECEEEA 320px); background-size: 800px 100%; animation: phyShimmer 1.3s linear infinite; }
.loading-page { display: grid; gap: 16px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--green); animation: phySpin .7s linear infinite; }
.center { display: grid; place-items: center; min-height: 240px; }
.timeline { position: relative; display: flex; flex-direction: column; gap: 16px; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline__item { position: relative; font-size: 13.5px; }
.timeline__item::before { content: ''; position: absolute; left: -22px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--green); }
.timeline__item small { display: block; color: var(--gray); margin-top: 2px; }
.reg-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: box-shadow .2s; }
.reg-row + .reg-row { margin-top: 10px; }
.reg-row:hover { box-shadow: var(--sh-2); }
.reg-row__main { min-width: 0; flex: 1; }
.reg-row__title { font-weight: 700; color: var(--ink); font-size: 15.5px; }
.reg-row__meta { font-size: 13px; color: var(--gray); margin-top: 3px; display: flex; gap: 12px; flex-wrap: wrap; }
.reg-row__side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.status-track { display: flex; gap: 0; margin: 18px 0 6px; }
.status-track__step { flex: 1; position: relative; padding-top: 22px; font-size: 12.5px; font-weight: 700; color: var(--gray-2); text-align: center; }
.status-track__step::before { content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 3px; background: var(--line); }
.status-track__step::after { content: ''; position: absolute; top: 0; left: 50%; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.status-track__step.is-done { color: var(--green-700); }
.status-track__step.is-done::before, .status-track__step.is-done::after { background: var(--green); border-color: var(--green); }
.status-track__step.is-current { color: var(--ink); }
.status-track__step.is-current::after { border-color: var(--green); box-shadow: 0 0 0 5px rgba(0, 155, 74, .15); }
.status-track__step.is-wait::after { border-color: var(--blue); }
.terms-box { max-height: 280px; overflow: auto; padding: 18px 20px; border-radius: var(--r); background: var(--off); border: 1px solid var(--line); font-size: 14px; line-height: 1.65; white-space: pre-line; color: var(--text); }
.pick-team { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: all .15s; text-align: left; width: 100%; }
.pick-team:hover { border-color: #C3C8C3; }
.pick-team.is-selected { border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 155, 74, .12); }
.pick-team.is-disabled { opacity: .72; cursor: default; }
.pick-team__issues { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: #9A6406; }
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 78%; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; white-space: pre-line; }
.msg__head { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--gray); margin-bottom: 6px; font-weight: 600; white-space: normal; }
.msg__head b { color: var(--ink); }
.msg--me { align-self: flex-end; background: var(--ink); color: #E9ECEE; border-color: var(--ink); border-bottom-right-radius: 4px; }
.msg--me .msg__head { color: #9AA0A4; }
.msg--me .msg__head b { color: #fff; }
.msg--other { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg--staff { background: var(--green-50); border-color: rgba(0, 155, 74, .2); }
.msg--system { align-self: center; max-width: 100%; background: transparent; border: 0; padding: 2px 10px; font-size: 12.5px; color: var(--gray); text-align: center; }
.msg__file { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(14, 17, 19, .06); color: inherit; font-weight: 700; font-size: 13px; }
.msg--me .msg__file { background: rgba(255, 255, 255, .1); color: #fff; }
.reply-box { position: sticky; bottom: 0; margin-top: 18px; padding: 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); }
.upload-box { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--r-lg); border: 2px dashed #CDD2CC; background: #FAFBF9; transition: all .15s; }
.upload-box:hover { border-color: var(--green); background: var(--green-50); }
.upload-box__thumb { width: 120px; aspect-ratio: 8 / 3; border-radius: 10px; background: var(--line-2); overflow: hidden; flex: none; display: grid; place-items: center; color: var(--gray); }
.upload-box__thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-box__info { flex: 1; min-width: 0; font-size: 13.5px; color: var(--gray); }
.upload-box__info b { color: var(--ink); display: block; font-size: 14.5px; }
.banner-row { display: grid; grid-template-columns: 34px 220px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.banner-row + .banner-row { margin-top: 10px; }
.banner-row__img { aspect-ratio: 8 / 3; border-radius: 10px; overflow: hidden; background: var(--line-2); }
.banner-row__img img { width: 100%; height: 100%; object-fit: cover; }
.banner-row__order { display: flex; flex-direction: column; gap: 4px; }
.banner-row__order button { width: 32px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink-3); }
.banner-row__order button:hover { border-color: var(--ink); }
.banner-row__order button[disabled] { opacity: .35; }
.banner-row__order .phy-ico { width: 16px; height: 16px; }
.editor { border: 1.5px solid #D9DDD8; border-radius: var(--r); background: #fff; overflow: hidden; }
.editor:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 155, 74, .14); }
.editor__bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line-2); background: var(--off); }
.editor__bar button { height: 34px; min-width: 34px; padding: 0 9px; border-radius: 8px; border: 0; background: none; color: var(--ink-3); font-weight: 700; display: grid; place-items: center; }
.editor__bar button:hover { background: #fff; color: var(--ink); }
.editor__bar .sep { width: 1px; background: var(--line); margin: 6px 4px; }
.editor__area { min-height: 260px; padding: 16px 18px; outline: none; font-size: 15.5px; line-height: 1.7; color: var(--text); }
.editor__area:empty::before { content: attr(data-placeholder); color: #A3A8AB; }
.editor__area h2 { font-size: 22px; margin: 18px 0 8px; }
.editor__area h3 { font-size: 18px; margin: 16px 0 6px; }
.editor__area p { margin: 0 0 12px; }
.editor__area blockquote { margin: 12px 0; padding: 8px 16px; border-left: 4px solid var(--green); background: var(--off); border-radius: 0 10px 10px 0; }
.gallery-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.gallery-pick__item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--line-2); }
.gallery-pick__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-pick__item button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(14, 17, 19, .7); color: #fff; display: grid; place-items: center; }
.gallery-pick__add { aspect-ratio: 1; border-radius: 12px; border: 2px dashed #CDD2CC; background: none; color: var(--gray); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 12.5px; }
.gallery-pick__add:hover { border-color: var(--green); color: var(--green); }
.email-preview { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #F5F6F4; }
.email-preview__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--gray); }
.email-preview__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.email-preview iframe { width: 100%; height: 620px; border: 0; display: block; background: #F5F6F4; }
.mgmt-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--ink); color: #fff; min-height: 220px; display: flex; align-items: flex-end; }
.mgmt-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.mgmt-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 17, 19, .92), rgba(14, 17, 19, .2) 70%); }
.mgmt-hero__body { position: relative; z-index: 2; padding: 28px 30px; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mgmt-hero h2 { color: #fff; font-size: 30px; }
.mgmt-hero__meta { display: flex; gap: 16px; flex-wrap: wrap; color: #C8CDD0; font-size: 14px; margin-top: 10px; }
.mgmt-hero__meta span { display: inline-flex; gap: 6px; align-items: center; }
.mgmt-hero__count { text-align: right; }
.mgmt-hero__count b { display: block; font-family: var(--head); font-size: 54px; line-height: 1; font-weight: 800; }
.mgmt-hero__count span { font-size: 13px; color: #AEB4B8; font-weight: 600; }
.list-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 16px; }
.list-tab { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-lg); background: #fff; border: 1.5px solid var(--line); text-align: left; min-width: 180px; transition: all .15s; }
.list-tab b { display: block; font-family: var(--head); font-size: 24px; color: var(--ink); line-height: 1; }
.list-tab span { font-size: 12.5px; color: var(--gray); font-weight: 700; }
.list-tab.is-active { border-color: var(--ink); box-shadow: var(--sh-2); }
.list-tab__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.apura-row { display: grid; grid-template-columns: 54px 40px minmax(0, 1fr) 90px 90px 90px; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.apura-row + .apura-row { margin-top: 8px; }
.apura-row.is-dragging { opacity: .5; }
.apura-row.is-over { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 155, 74, .14); }
.apura-row .input { min-height: 40px; text-align: center; padding: 0 8px; }
.drag-handle { cursor: grab; color: var(--gray-2); display: grid; place-items: center; }
.apura-head { display: grid; grid-template-columns: 54px 40px minmax(0, 1fr) 90px 90px 90px; gap: 12px; padding: 0 14px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.prize-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.review-banner { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 8 / 3; background: var(--ink); }
.review-banner img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Toast & modal ---------- */
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: min(400px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: #E8EBED; box-shadow: var(--sh-3); font-size: 14px; font-weight: 600; animation: phyFade .25s var(--ease); line-height: 1.4; }
.toast .phy-ico { color: #3ED07F; flex: none; }
.toast--error .phy-ico { color: #FF7A7A; }
.toast--warn .phy-ico { color: var(--yellow); }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: all .25s; }
.modal-layer { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(14, 17, 19, .6); backdrop-filter: blur(4px); animation: phyFade .2s ease; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; border-radius: var(--r-xl); background: #fff; box-shadow: var(--sh-3); animation: phyRise .28s var(--ease); }
.modal--wide { max-width: 860px; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 26px 6px; }
.modal__title { font-size: 22px; font-weight: 700; }
.modal__body { padding: 12px 26px 6px; color: var(--text); font-size: 15px; line-height: 1.6; }
.modal__foot { display: flex; gap: 10px; justify-content: flex-end; padding: 20px 26px 24px; flex-wrap: wrap; }
.modal__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--green-50); color: var(--green); margin-bottom: 14px; }
.modal__icon--danger { background: var(--red-50); color: var(--red); }
.modal__icon--warn { background: var(--amber-50); color: var(--amber); }
.modal__icon .phy-ico { width: 26px; height: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.quick, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cols, .cols--side { grid-template-columns: minmax(0, 1fr); }
	.member__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
	.app { grid-template-columns: minmax(0, 1fr); }
	.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); z-index: 90; transform: translateX(-102%); transition: transform .3s var(--ease); }
	.sidebar.is-open { transform: none; box-shadow: var(--sh-3); }
	.topbar { padding: 0 18px; height: 64px; }
	.topbar__menu { display: grid; }
	.topbar__crumbs { display: none; }
	.topbar__logo { display: flex; align-items: center; }
	.topbar__logo img { height: 30px; width: auto; }
	.content { padding: 22px 18px 110px; }
	.auth { grid-template-columns: minmax(0, 1fr); }
	.auth__art { display: none; }
	.auth__panel { padding: 0 0 40px; align-items: flex-start; }
	.auth__mobile-head { display: block; position: relative; overflow: hidden; background: radial-gradient(400px 260px at 0% 120%, rgba(0, 155, 74, .5), transparent 70%), var(--ink); padding: 26px 22px 30px; margin-bottom: 26px; }
	.auth__mobile-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ribbon); }
	.auth__mobile-head img.logo { width: 170px; position: relative; z-index: 2; }
	.auth__mobile-head img.mascot { position: absolute; right: -6px; bottom: -6px; height: 128px; width: auto; z-index: 1; }
	.auth__box { padding: 0 22px; }
	.hello__text { max-width: 100%; }
	.hello__mascot { opacity: .25; height: 100%; right: -30px; }
	.bottom-nav { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50; padding: 6px; border-radius: 22px; background: rgba(14, 17, 19, .94); backdrop-filter: blur(12px); box-shadow: var(--sh-3); padding-bottom: max(6px, env(safe-area-inset-bottom)); }
	.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border-radius: 16px; color: #9AA0A4; font-size: 10.5px; font-weight: 700; text-decoration: none; }
	.bottom-nav a .phy-ico { width: 21px; height: 21px; }
	.bottom-nav a.is-active { color: #fff; background: rgba(0, 155, 74, .22); }
	.bottom-nav a.is-active .phy-ico { color: #3ED07F; }
	.toasts { bottom: 96px; }
}
@media (max-width: 720px) {
	body.phy-body { font-size: 14.5px; }
	.page-head__title { font-size: 26px; }
	.grid--2, .grid--3, .grid--4, .cards--3 { grid-template-columns: minmax(0, 1fr); }
	.span-2 { grid-column: auto; }
	.quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.quick__item { padding: 16px; }
	.quick__text { display: none; }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.stat__value { font-size: 28px; }
	.carousel__slide { aspect-ratio: 4 / 3; }
	.member { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; }
	.member__fields { grid-template-columns: minmax(0, 1fr); }
	.hello { padding: 24px 22px; }
	.hello h2 { font-size: 24px; }
	.reg-row { flex-direction: column; align-items: flex-start; }
	.reg-row__side { justify-content: flex-start; }
	.banner-row { grid-template-columns: 1fr; }
	.banner-row__order { flex-direction: row; }
	.apura-row, .apura-head { grid-template-columns: 40px minmax(0, 1fr) 64px 64px; }
	.apura-row .team-logo--sm, .apura-head .h-logo, .apura-row .drag-handle, .apura-head .h-drag { display: none; }
	.msg { max-width: 92%; }
	.modal__head, .modal__body, .modal__foot { padding-left: 20px; padding-right: 20px; }
	.form-actions .btn { flex: 1; }
	.list-tab { min-width: 0; flex: 1; }
	.mgmt-hero__count b { font-size: 40px; }
	.table th, .table td { padding: 12px 12px; }
	.hide-sm { display: none !important; }
	.code-input input { width: 44px; height: 54px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Auth art: mascot in the upper area so the headline never sits on top of it. */
.auth__mascot { top: 8%; bottom: auto; right: 2%; height: 58%; max-width: 58%; object-position: top; }
.auth__art::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 48%; background: linear-gradient(0deg, rgba(14, 17, 19, .92) 30%, rgba(14, 17, 19, 0)); z-index: 1; pointer-events: none; }
.auth__word { top: 40%; }
/* Fluid layout: the panel uses the whole screen and adapts to any monitor size. */
.content { max-width: none; padding: clamp(22px, 2vw, 36px) clamp(18px, 2.4vw, 56px) 60px; }
.content--narrow { max-width: none; }
.topbar { padding-left: clamp(18px, 2.4vw, 56px); padding-right: clamp(18px, 2.4vw, 56px); }
.cols--side { grid-template-columns: minmax(0, 1fr) clamp(320px, 24vw, 460px); }
.cards--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
@media (min-width: 1600px) {
	.stats { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
	.member__fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.grid--2.grid--fluid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}
@media (min-width: 2200px) {
	.member__fields { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.kv { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 1023px) {
	.content { padding: 22px 18px 110px; }
	.topbar { padding: 0 18px; }
}
/* Language switcher (topbar and sign-in screens). */
.lang-pop__btn { gap: 6px; font-weight: 700; letter-spacing: .04em; }
.lang-pop__btn .phy-ico { width: 18px; height: 18px; }
.lang-pop__panel { min-width: 200px; }
.lang-pop__panel .menu-pop__item.is-current { background: var(--green-50); color: var(--green-600); }
.lang-pop__code { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--line-2); font-size: 11.5px; letter-spacing: .06em; }
.auth__panel { position: relative; }
.auth__lang { position: absolute; top: 18px; right: 18px; z-index: 5; }
@media (max-width: 1023px) {
	.auth__lang { top: 14px; right: 14px; }
	.auth__lang .lang-pop__btn { background: rgba(255, 255, 255, .12); color: #fff; border-color: transparent; }
}

/* Championship form: translations (EN / ES / RU). */
.tr-lang { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.tr-lang > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; }
.tr-lang > summary::-webkit-details-marker { display: none; }
.tr-lang > summary::after { content: ''; width: 9px; height: 9px; margin-left: auto; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s; }
.tr-lang[open] > summary::after { transform: rotate(-135deg); }
.tr-lang > summary .badge { order: 2; }
.tr-lang__code { display: inline-grid; place-items: center; min-width: 34px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; }
.tr-lang__body { padding: 4px 16px 18px; border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 560px) { .tr-lang > summary .badge { order: 3; width: 100%; justify-content: center; } }

/* Sidebar sub-menu: more room between items; long names use two lines at most. */
.nav-sub { gap: 3px; padding: 4px 0 10px 33px; }
.nav-sub a, .nav-sub button { align-items: flex-start; min-height: 0; padding: 8px 12px; line-height: 1.35; }
.nav-sub span.dot { margin-top: .5em; }
.nav-sub__label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Language menu codes centred in equal boxes. */
.lang-pop__code { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 32px; min-width: 32px; padding: 0 0 0 .06em; line-height: 1; flex: none; }

/* "Voltar para o site": access screens, sidebar and top bar. */
.auth__back { position: absolute; top: 18px; left: 18px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 700; text-decoration: none; transition: border-color .2s, color .2s; }
.auth__back:hover { border-color: var(--green); color: var(--green-600); }
.auth__back .phy-ico { width: 18px; height: 18px; }
.sidebar__back { display: flex; align-items: center; gap: 10px; margin: -4px 18px 14px; padding: 9px 14px; border-radius: 12px; color: #A4AAAE; font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid rgba(255, 255, 255, .08); transition: color .2s, background .2s, border-color .2s; }
.sidebar__back:hover { color: #fff; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .16); }
.sidebar__back .phy-ico { width: 17px; height: 17px; }
.topbar__site { display: none; }
@media (max-width: 1023px) {
	.topbar__site { display: inline-grid; }
	.auth__back { top: 14px; left: 14px; height: 38px; background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; }
	.auth__back:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
	.auth__mobile-head { padding-top: 70px; }
}
@media (max-width: 380px) { .auth__back span { display: none; } .auth__back { padding: 0 11px; } }

/* Championship form: fill a range of prize places. */
.prize-range { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--r); background: var(--off); border: 1px dashed var(--line); }
.prize-range__title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.prize-range__title .phy-ico { width: 16px; height: 16px; color: var(--green); }
.prize-range__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
@media (max-width: 760px) { .prize-range__row { grid-template-columns: 1fr 1fr; } .prize-range__row .btn { grid-column: 1 / -1; } }

/* Ranking editor. */
.rank-mods { margin: 4px 0 18px; overflow-x: auto; }
.rank-admin tr.is-hidden td { opacity: .55; }
.rank-admin tr.is-hidden td:last-child { opacity: 1; }
.rank-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.rank-tags .badge { height: 22px; padding: 0 9px; font-size: 11px; }
.rank-edit__grid { gap: 12px; }
.rank-edit__who { display: flex; align-items: center; gap: 16px; }
@media (max-width: 1023px) { .rank-edit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 480px) { .rank-edit__who { flex-direction: column; align-items: stretch; } }

/* E-mail templates (Disparo de e-mail → Modelos de e-mail). */
.tpl-group__title { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.tpl-list { overflow: hidden; }
.tpl-item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--line-2); color: inherit; text-decoration: none; transition: background .15s; }
.tpl-item:first-child { border-top: 0; }
.tpl-item:hover { background: var(--off); color: inherit; }
.tpl-item__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green-50); color: var(--green); }
.tpl-item__icon .phy-ico { width: 20px; height: 20px; }
.tpl-item.is-off .tpl-item__icon { background: var(--line-2); color: var(--gray); }
.tpl-item__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tpl-item__title { font-size: 15px; color: var(--ink); }
.tpl-item__desc { font-size: 13px; line-height: 1.45; color: var(--gray); }
.tpl-item__badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 46%; }
.tpl-item__chev { flex: none; width: 18px; height: 18px; color: var(--gray-2); }
.tpl-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.tpl-side__head { margin-bottom: 10px; }
.tpl-preview iframe { height: 640px; }
.tpl-preview__label { flex: none; margin-left: 8px; font-weight: 700; color: var(--ink); }
.tpl-preview__subject { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-3); }
.tpl-langs { align-self: flex-start; }
.tpl-langs__name { font-weight: 600; color: var(--gray); }
.tpl-langs button.is-active .tpl-langs__name { color: var(--ink-3); }
.tpl-langs__dot { width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.tpl-langs button.is-custom .tpl-langs__dot { background: var(--green); }
.tpl-langs button.is-dirty .tpl-langs__dot { background: var(--amber); }
.tpl-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tpl-tokens { padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--off); }
.tpl-tokens__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; color: var(--gray); }
.tpl-tokens__head b { font-size: 13.5px; color: var(--ink); }
.tpl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tpl-chip { height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font: 600 12.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--green-700); cursor: pointer; transition: border-color .15s, background .15s; }
.tpl-chip:hover { border-color: var(--green); background: var(--green-50); }
.tpl-chip--block { color: var(--blue); }
.tpl-chip--block:hover { border-color: var(--blue); background: var(--blue-50); }
.tpl-legend { margin-top: 10px; font-size: 13px; }
.tpl-legend summary { cursor: pointer; font-weight: 700; color: var(--green-600); }
.tpl-legend__list { display: grid; gap: 6px; margin: 10px 0 0; }
.tpl-legend__list div { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); gap: 10px; }
.tpl-legend__list dt code { font-size: 12px; color: var(--ink); }
.tpl-legend__list dd { margin: 0; color: var(--gray); }
.tpl-label-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.tpl-copy { font-size: 13px; }
.tpl-copy .phy-ico { width: 15px; height: 15px; }
.tpl-editor .editor__area { min-height: 220px; }
.tpl-editor .editor__area:empty::before { white-space: pre-line; }
.tpl-note { font-size: 13px; }
.tpl-actions { margin-top: 6px; }
.tpl-active { display: flex; flex-direction: column; gap: 8px; }
.tpl-active.is-off { border-color: rgba(214, 59, 59, .35); background: var(--red-50); }
@media (min-width: 1280px) {
	.tpl-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
	.tpl-side { position: sticky; top: calc(var(--topbar) + 16px); }
	.tpl-preview iframe { height: calc(100vh - var(--topbar) - 150px); min-height: 520px; }
}
@media (max-width: 720px) {
	.tpl-item { flex-wrap: wrap; padding: 14px 16px; }
	.tpl-item__badges { width: 100%; max-width: none; justify-content: flex-start; padding-left: 54px; }
	.tpl-item__chev { display: none; }
	.tpl-langs__name { display: none; }
	.tpl-legend__list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.tpl-preview iframe { height: 560px; }
}
/* Access screens on phones: the mascot stays below the "Voltar para o site" and language buttons. */
@media (max-width: 1023px) {
	.auth__mobile-head img.mascot { height: 92px; right: -4px; bottom: -4px; }
	.auth__back, .auth__lang .lang-pop__btn { background: rgba(14, 17, 19, .55); border-color: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}

/* Ranking editor: room for the team name. */
.rank-admin td:nth-child(2) { min-width: 220px; }

/* Account: profile photo next to the name. */
.account-head { align-items: center; gap: 18px; }
.account-photo { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.account-photo .photo-pick__btn { width: 84px; height: 84px; }
.account-photo__remove { font-size: 12.5px; color: var(--gray); background: none; border: 0; padding: 0; cursor: pointer; }
.account-photo__remove:hover { color: var(--red); }
.account-lang { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.account-lang a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s; }
.account-lang a:hover { border-color: var(--green); }
.account-lang a.is-current { border-color: var(--green); background: var(--green-50); color: var(--green-600); }
/* Competitor home: the whole mascot fits in the banner (the head was cut at the top). */
.hello__mascot { height: calc(100% - 14px); bottom: 4px; }
@media (max-width: 1023px) { .hello__mascot { height: calc(100% - 14px); } }
