/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #02050d;
  --panel: #060b17;
  --panel-2: #091120;
  --line: rgba(255,255,255,.09);
  --muted: #8290a8;
  --text: #f6f8fc;
  --cyan: #42e8ff;
  --cyan-2: #08a7cf;
  --violet: #9b7bff;
  --green: #45e08a;
  --yellow: #ffd84a;
  --red: #ff5f6d;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { background-image: radial-gradient(circle at 75% -10%, rgba(66,232,255,.08), transparent 30%), radial-gradient(circle at 20% 110%, rgba(155,123,255,.07), transparent 30%); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.035); color: white; border-radius: 14px; padding: 13px 14px; outline: none; transition: .2s ease; }
input:focus, textarea:focus, select:focus { border-color: rgba(66,232,255,.55); box-shadow: 0 0 0 3px rgba(66,232,255,.08); }
select option { background: #08101d; color: white; }
textarea { min-height: 110px; resize: vertical; }
label { display: grid; grid-gap: 8px; gap: 8px; color: #aab4c7; font-size: 13px; font-weight: 700; }
button { cursor: pointer; border: 0; }
::selection { background: rgba(66,232,255,.28); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 245px 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 245px; display: flex; flex-direction: column; background: rgba(2,5,13,.92); border-right: 1px solid var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); z-index: 20; }
.brand { height: 86px; display: flex; align-items: center; gap: 13px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; color: #031017; background: linear-gradient(135deg, var(--cyan), #a4f6ff); box-shadow: 0 0 30px rgba(66,232,255,.16); }
.brand-mark.large { width: 58px; height: 58px; border-radius: 18px; }
.brand strong { font-size: 22px; letter-spacing: -.7px; }
.brand strong span, .auth-brand h1 span { color: var(--cyan); }
.brand small { display: block; margin-top: 2px; color: #66748b; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.nav-list { padding: 20px 14px; display: grid; grid-gap: 7px; gap: 7px; }
.nav-item { min-height: 45px; border-radius: 13px; display: flex; align-items: center; gap: 12px; padding: 0 14px; color: #95a2b8; font-weight: 700; font-size: 14px; transition: .18s ease; }
.nav-item:hover { background: rgba(255,255,255,.045); color: white; transform: translateX(2px); }
.nav-item svg { color: #6b7d98; }
.nav-item:hover svg { color: var(--cyan); }
.nav-count { margin-left: auto; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; border-radius: 20px; background: var(--cyan); color: #021018; font-size: 11px; }
.sidebar-profile { margin-top: auto; min-height: 78px; padding: 15px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.sidebar-user { min-width: 0; display: grid; flex: 1 1; }
.sidebar-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.sidebar-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #718097; font-size: 11px; }
.logout-button { width: 34px; height: 34px; background: transparent; border-radius: 10px; color: #77869c; }
.logout-button:hover { background: rgba(255,95,109,.1); color: var(--red); }
.avatar { border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.12); background: #0b1527; }
.avatar-fallback { display: grid; place-items: center; background: linear-gradient(145deg, #15223a, #09101d); color: var(--cyan); font-size: 12px; font-weight: 900; }
.main-panel { grid-column: 2; min-width: 0; }
.topbar { height: 86px; position: -webkit-sticky; position: sticky; top: 0; z-index: 15; border-bottom: 1px solid var(--line); background: rgba(2,5,13,.78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; }
.topbar > div:first-child { display: grid; grid-gap: 2px; gap: 2px; }
.topbar > div:first-child strong { font-size: 15px; }
.eyebrow { color: var(--cyan); font-weight: 900; font-size: 10px; letter-spacing: .19em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { position: relative; min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.icon-button:hover { background: rgba(255,255,255,.055); }
.icon-button > span { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; border-radius: 20px; padding: 0 5px; display: grid; place-items: center; background: var(--cyan); color: #021018; font-size: 9px; font-weight: 900; }
.profile-chip { height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 11px 0 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); font-size: 12px; font-weight: 800; }
.page-wrap { max-width: 1480px; margin: 0 auto; padding: 30px; }
.panel { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(9,17,32,.94), rgba(5,10,21,.94)); border-radius: 24px; box-shadow: 0 22px 70px rgba(0,0,0,.18); }
.page-heading { margin: 6px 0 25px; display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; }
.page-heading h1 { margin: 5px 0 5px; font-size: 42px; letter-spacing: -1.8px; }
.page-heading p { margin: 0; color: var(--muted); }
.primary-button, .secondary-button { min-height: 43px; border-radius: 13px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; font-size: 13px; }
.primary-button { background: linear-gradient(135deg, var(--cyan), #8ef1ff); color: #031018; box-shadow: 0 10px 30px rgba(66,232,255,.12); }
.primary-button:hover { filter: brightness(1.08); }
.secondary-button { border: 1px solid var(--line); background: rgba(255,255,255,.035); color: #dce3ef; }
.secondary-button:hover { background: rgba(255,255,255,.065); }
.secondary-button.disabled { opacity: .45; pointer-events: none; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.55; }

.hero-panel { min-height: 330px; padding: 45px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; overflow: hidden; position: relative; }
.hero-panel:before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 50%, rgba(66,232,255,.09), transparent 24%), linear-gradient(100deg, transparent, rgba(155,123,255,.035)); pointer-events: none; }
.hero-panel > div:first-child { position: relative; z-index: 2; max-width: 820px; }
.hero-panel h1 { margin: 10px 0 14px; font-size: clamp(38px, 4vw, 64px); line-height: .98; letter-spacing: -3px; }
.hero-panel p { max-width: 680px; margin: 0; color: #a7b2c4; line-height: 1.65; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-orbit { height: 235px; width: 235px; justify-self: center; position: relative; display: grid; place-items: center; }
.hero-orbit:before, .hero-orbit:after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(66,232,255,.16); }
.hero-orbit:before { inset: 15px; }
.hero-orbit:after { inset: 47px; border-color: rgba(155,123,255,.17); }
.hero-orbit strong { width: 86px; height: 86px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(135deg, var(--cyan), #93eeff); color: #031018; font-size: 28px; transform: rotate(-4deg); box-shadow: 0 0 70px rgba(66,232,255,.19); }
.orb { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.orb-one { top: 28px; right: 53px; }.orb-two { bottom: 38px; left: 40px; background: var(--violet); box-shadow: 0 0 18px var(--violet); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-gap: 14px; gap: 14px; margin: 16px 0; }
.stat-card { min-height: 150px; padding: 20px; display: grid; grid-template-columns: 1fr auto; align-items: start; transition: .2s ease; }
.stat-card:hover { transform: translateY(-2px); border-color: rgba(66,232,255,.22); }
.stat-card svg { color: var(--cyan); }
.stat-card span { grid-row: 2; color: #8a98ad; font-size: 12px; font-weight: 800; }
.stat-card strong { grid-column: 1 / -1; font-size: 36px; line-height: 1; margin-top: 8px; }
.stat-card small { grid-column: 1 / -1; color: #66758b; margin-top: 3px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); grid-gap: 16px; gap: 16px; }
.dashboard-lower > .panel { min-height: 320px; padding: 23px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-heading h2 { margin: 4px 0 0; font-size: 23px; letter-spacing: -.7px; }
.panel-heading > a { color: var(--cyan); font-size: 12px; font-weight: 800; }
.team-list, .recent-list, .roster-list { display: grid; grid-gap: 9px; gap: 9px; }
.team-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; grid-gap: 12px; gap: 12px; padding: 11px; border-radius: 15px; border: 1px solid transparent; }
.team-row:hover { background: rgba(255,255,255,.03); border-color: var(--line); }
.team-row > div:nth-child(2), .recent-row > div:last-child, .roster-row > div:nth-child(2) { min-width: 0; display: grid; grid-gap: 2px; gap: 2px; }
.team-row strong, .recent-row strong, .roster-row strong { font-size: 13px; }
.team-row span, .recent-row span, .roster-row span { font-size: 11px; color: #75839a; text-transform: capitalize; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.team-badge { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(66,232,255,.09); border: 1px solid rgba(66,232,255,.15); color: var(--cyan); font-size: 10px; font-weight: 1000; }
.team-badge.big { width: 58px; height: 58px; font-size: 12px; border-radius: 16px; }
.team-badge.xl { width: 95px; height: 95px; font-size: 18px; border-radius: 25px; }
.recent-row { display: grid; grid-template-columns: auto 1fr; grid-gap: 10px; gap: 10px; align-items: center; padding: 11px; border-radius: 14px; background: rgba(255,255,255,.022); }
.empty-state { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #75839a; gap: 5px; padding: 30px; }
.empty-state strong { color: #d9e0ec; }
.empty-state a { margin-top: 8px; color: var(--cyan); font-weight: 800; font-size: 12px; }

.form-panel { padding: 24px; display: grid; grid-gap: 16px; gap: 16px; align-content: start; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 14px; gap: 14px; }
.form-error { padding: 11px 13px; border: 1px solid rgba(255,95,109,.2); background: rgba(255,95,109,.08); color: #ff9ca5; border-radius: 12px; font-size: 12px; }
.form-message { padding: 11px 13px; border: 1px solid rgba(66,232,255,.18); background: rgba(66,232,255,.07); color: #9ef3ff; border-radius: 12px; font-size: 12px; }
.team-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); grid-gap: 14px; gap: 14px; margin-bottom: 16px; }
.team-card { min-height: 225px; padding: 22px; display: flex; flex-direction: column; transition: .2s ease; }
.team-card:hover { transform: translateY(-3px); border-color: rgba(66,232,255,.22); }
.team-card-top, .team-card-footer { display: flex; align-items: center; justify-content: space-between; }
.team-card h2 { margin: 20px 0 5px; font-size: 24px; }
.team-card p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 13px; }
.team-card-footer { margin-top: auto; padding-top: 20px; color: #77869c; font-size: 12px; }
.role-pill { padding: 6px 9px; border-radius: 20px; background: rgba(155,123,255,.09); border: 1px solid rgba(155,123,255,.18); color: #bca9ff; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.team-hero { padding: 30px; display: grid; grid-template-columns: auto 1fr 250px; grid-gap: 24px; gap: 24px; align-items: center; }
.team-hero h1 { margin: 5px 0 8px; font-size: 42px; letter-spacing: -1.8px; }
.team-hero p { margin: 0; color: var(--muted); max-width: 700px; line-height: 1.55; }
.team-meta { margin-top: 14px; display: flex; gap: 14px; color: #8d9ab0; font-size: 11px; font-weight: 800; }
.team-meta span { display: inline-flex; align-items: center; gap: 6px; }
.invite-card { border-radius: 18px; padding: 18px; background: rgba(255,255,255,.025); border: 1px solid var(--line); display: grid; grid-gap: 5px; gap: 5px; }
.invite-card > span { color: #738198; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.invite-card strong { color: var(--cyan); letter-spacing: .18em; font-size: 20px; }
.invite-card small { color: #738198; line-height: 1.4; }
.copy-hint { display: flex; gap: 6px; align-items: center; margin-top: 7px; color: #69788f; font-size: 10px; }
.team-content { margin-top: 16px; }
.team-content > .panel { padding: 24px; min-height: 330px; }
.roster-row { min-height: 63px; border-radius: 14px; display: grid; grid-template-columns: auto 1fr auto; grid-gap: 12px; gap: 12px; align-items: center; padding: 8px 10px; background: rgba(255,255,255,.022); }
.team-coming { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.team-coming svg { color: var(--violet); margin-bottom: 16px; }
.team-coming h2 { margin: 5px 0 8px; font-size: 30px; }
.team-coming p { color: var(--muted); line-height: 1.65; max-width: 520px; }

.messages-layout { height: calc(100vh - 146px); min-height: 620px; display: grid; grid-template-columns: 300px 1fr; overflow: hidden; }
.people-list { border-right: 1px solid var(--line); overflow: auto; }
.people-title { padding: 23px 20px 15px; }
.people-title h2 { margin: 4px 0 0; }
.person-row { width: calc(100% - 16px); margin: 3px 8px; min-height: 61px; border-radius: 14px; background: transparent; display: grid; grid-template-columns: auto 1fr auto; grid-gap: 10px; gap: 10px; align-items: center; padding: 8px 10px; text-align: left; }
.person-row:hover, .person-row.active { background: rgba(255,255,255,.045); }
.person-row.active { box-shadow: inset 2px 0 0 var(--cyan); }
.person-row > span { display: grid; min-width: 0; }
.person-row strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.person-row small { color: #6f7e95; overflow: hidden; text-overflow: ellipsis; }
.person-row > b { min-width: 21px; height: 21px; padding: 0 6px; border-radius: 20px; display: grid; place-items: center; background: var(--cyan); color: #021018; font-size: 10px; }
.chat-pane { min-width: 0; display: grid; grid-template-rows: 67px 1fr 70px; }
.chat-header { border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 18px; }
.chat-header > div { display: grid; }
.chat-header strong { font-size: 13px; }.chat-header span { color: #718097; font-size: 11px; }
.chat-scroll { padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.message-bubble { max-width: min(650px, 78%); border-radius: 16px; padding: 10px 12px 8px; }
.message-bubble.theirs { align-self: flex-start; background: rgba(255,255,255,.055); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.message-bubble.mine { align-self: flex-end; background: rgba(66,232,255,.11); border: 1px solid rgba(66,232,255,.15); border-bottom-right-radius: 5px; }
.message-bubble p { margin: 0; white-space: pre-wrap; line-height: 1.48; font-size: 13px; }
.message-bubble time { display: block; margin-top: 5px; color: #6b7990; font-size: 9px; text-align: right; }
.composer { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 48px; grid-gap: 9px; gap: 9px; padding: 11px 14px; align-items: center; }
.composer input { height: 46px; }.composer .primary-button { height: 46px; min-height: 46px; padding: 0; }
.chat-empty { margin: auto; display: flex; flex-direction: column; text-align: center; color: #6f7e94; gap: 5px; }.chat-empty strong { color: #dce3ef; }.chat-empty.large { grid-row: 1/-1; }

.notification-list { overflow: hidden; }
.notification-row { min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; grid-gap: 13px; gap: 13px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.notification-row:last-child { border-bottom: 0; }.notification-row:hover { background: rgba(255,255,255,.025); }
.notification-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--cyan); background: rgba(66,232,255,.07); }
.notification-row > div:nth-child(2) { min-width: 0; }.notification-row strong { font-size: 13px; }.notification-row p { margin: 4px 0; color: #8a98ad; font-size: 12px; }.notification-row time { color: #596981; font-size: 10px; }
.unread-dot { width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 12px var(--cyan); }

.schedule-toolbar { min-height: 105px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.schedule-toolbar h2 { margin: 3px 0 4px; font-size: 24px; }.schedule-toolbar p { margin: 0; color: var(--muted); font-size: 12px; }
.schedule-controls { display: flex; gap: 8px; align-items: center; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; padding: 13px 6px; color: #8090a8; font-size: 11px; font-weight: 700; }
.legend span { display: flex; align-items: center; gap: 6px; }.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }.dot.green { background: var(--green); }.dot.yellow { background: var(--yellow); }.dot.red { background: var(--red); }.dot.purple { background: var(--violet); }
.schedule-frame { overflow-x: auto; border-radius: 20px; }
.schedule-grid { display: grid; width: max-content; min-width: 100%; }
.schedule-corner, .day-head, .hour-label, .slot { border-right: 1px solid rgba(255,255,255,.055); border-bottom: 1px solid rgba(255,255,255,.055); }
.schedule-corner { height: 62px; display: grid; place-items: center; position: -webkit-sticky; position: sticky; left: 0; z-index: 4; background: #07101e; color: #73839a; }
.timezone-button { grid-template-columns: auto; grid-template-rows: auto auto; gap: 2px; width: 84px; border-radius: 0; border: 0; border-right: 1px solid rgba(255,255,255,.055); border-bottom: 1px solid rgba(255,255,255,.055); }
.timezone-button:hover { color: var(--cyan); background: #0a1628; }.timezone-button span { font-size: 8px; font-weight: 900; letter-spacing: .06em; }
.day-head { height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(7,16,30,.95); position: relative; }.day-head strong { font-size: 11px; }.day-head span { margin-top: 2px; color: #718097; font-size: 10px; }.day-head b { position: absolute; bottom: 3px; color: var(--cyan); font-size: 7px; text-transform: uppercase; letter-spacing: .12em; }
.day-head.today { background: linear-gradient(180deg, rgba(66,232,255,.16), rgba(7,16,30,.97)); color: #fff; box-shadow: inset 0 0 0 1px rgba(66,232,255,.38), 0 0 28px rgba(66,232,255,.11); z-index: 2; }.day-head.today span { color: #aeefff; }
.hour-label { position: -webkit-sticky; position: sticky; left: 0; z-index: 3; height: 47px; display: grid; place-items: center; background: #07101e; color: #8391a6; font-size: 10px; font-weight: 800; }
.slot { height: 47px; background: rgba(255,255,255,.012); position: relative; -webkit-user-select: none; -moz-user-select: none; user-select: none; touch-action: none; }.slot:hover { box-shadow: inset 0 0 0 2px rgba(66,232,255,.35); z-index: 2; }.slot.today-column.empty { background: rgba(66,232,255,.028); }.slot.today-column { box-shadow: inset 1px 0 rgba(66,232,255,.11), inset -1px 0 rgba(66,232,255,.11); }.slot.green { background: rgba(69,224,138,.45); }.slot.yellow { background: rgba(255,216,74,.46); }.slot.red { background: rgba(255,95,109,.48); }.slot.selected { z-index: 3; box-shadow: inset 0 0 0 2px var(--cyan), inset 0 0 18px rgba(66,232,255,.24), 0 0 12px rgba(66,232,255,.12); }.slot.has-note span { position: absolute; top: 2px; right: 5px; font-size: 16px; color: white; }.schedule-grid.is-selecting { cursor: crosshair; }
.selection-bar { margin: 0 0 12px; min-height: 66px; padding: 10px 12px 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-color: rgba(66,232,255,.24); background: linear-gradient(145deg, rgba(9,24,39,.97), rgba(5,12,24,.97)); }.selection-bar > div:first-child { display: grid; grid-gap: 2px; gap: 2px; }.selection-bar strong { font-size: 12px; }.selection-bar span { color: var(--muted); font-size: 10px; }.selection-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }.selection-actions .status-pick { min-height: 38px; padding: 0 13px; }.selection-actions .secondary-button, .selection-actions .icon-button { min-height: 38px; height: 38px; }
.timezone-modal select { margin-top: 1px; }.timezone-preview { margin-top: 12px; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; display: grid; grid-template-columns: auto 1fr auto; grid-gap: 9px; gap: 9px; align-items: center; color: #95a4ba; font-size: 12px; }.timezone-preview svg { color: var(--cyan); }.timezone-preview strong { color: #dffbff; font-size: 11px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.64); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); display: grid; place-items: center; padding: 18px; }
.modal { width: min(520px, 100%); position: relative; border-radius: 22px; border: 1px solid var(--line); background: #080f1c; padding: 25px; box-shadow: 0 30px 100px rgba(0,0,0,.5); }.modal h2 { margin: 6px 35px 18px 0; font-size: 20px; }.modal-close { position: absolute; right: 14px; top: 14px; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.04); }.status-buttons { display: grid; grid-template-columns: repeat(3,1fr); grid-gap: 8px; gap: 8px; margin-bottom: 15px; }.status-pick { min-height: 43px; border-radius: 12px; font-weight: 900; font-size: 11px; color: #05080e; }.status-pick.green { background: var(--green); }.status-pick.yellow { background: var(--yellow); }.status-pick.red { background: var(--red); }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

.profile-grid { display: grid; grid-template-columns: 310px 1fr; grid-gap: 16px; gap: 16px; }
.profile-card { padding: 27px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.profile-card h2 { margin: 15px 0 2px; }.profile-card > p { margin: 0; color: #718097; }.profile-card small { color: #5f6e84; margin-top: 8px; }
.avatar-upload { width: 100%; display: grid; grid-gap: 8px; gap: 8px; margin-top: 24px; }.avatar-file-input { display: none; }.avatar-file-picker { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; grid-gap: 8px; gap: 8px; }.avatar-file-picker .secondary-button { min-height: 40px; white-space: nowrap; }.avatar-file-picker span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #7e8da5; font-size: 10px; text-align: left; }.avatar-upload button:disabled { opacity: .45; cursor: not-allowed; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr minmax(420px, .7fr); position: relative; overflow: hidden; }
.auth-glow { position: absolute; width: 650px; height: 650px; border-radius: 50%; background: rgba(66,232,255,.06); filter: blur(20px); left: 18%; top: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.auth-brand { min-height: 100vh; padding: 8vw; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; position: relative; z-index: 2; }
.auth-brand h1 { margin: 12px 0 12px; font-size: clamp(70px, 9vw, 135px); letter-spacing: -7px; line-height: .85; }
.auth-brand > p { max-width: 650px; color: #99a6ba; font-size: 18px; line-height: 1.65; }
.auth-features { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }.auth-features span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; color: #74839a; font-size: 10px; font-weight: 900; }
.auth-card { width: min(520px, calc(100% - 40px)); align-self: center; justify-self: center; position: relative; z-index: 3; border: 1px solid var(--line); background: rgba(7,13,25,.88); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 28px; padding: 34px; box-shadow: 0 40px 120px rgba(0,0,0,.35); }
.auth-card h2 { margin: 5px 0 5px; font-size: 34px; }.auth-card > p { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.auth-form { display: grid; grid-gap: 14px; gap: 14px; }.auth-submit { width: 100%; margin-top: 3px; }.auth-switch, .auth-home-link { text-align: center; color: #74839a; font-size: 11px; }.auth-switch a, .auth-home-link { color: var(--cyan); font-weight: 800; }.auth-home-link { display: block; margin-top: 15px; }
.simple-page { min-height: 100vh; display: grid; place-items: center; align-content: center; grid-gap: 12px; gap: 12px; text-align: center; }.simple-page h1 { margin: 0; font-size: 90px; color: var(--cyan); }.simple-page p { color: var(--muted); }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 78px 1fr; }.sidebar { width: 78px; }.brand { padding: 0 17px; }.brand > div:last-child, .nav-item span, .sidebar-user { display: none; }.nav-item { justify-content: center; padding: 0; }.nav-count { position: absolute; transform: translate(13px,-12px); }.sidebar-profile { display: none; }.logout-button { display: none; }.hero-panel { grid-template-columns: 1fr; }.hero-orbit { display: none; }.stats-grid { grid-template-columns: repeat(2,1fr); }.team-card-grid { grid-template-columns: repeat(2,1fr); }.team-hero { grid-template-columns: auto 1fr; }.invite-card { grid-column: 1 / -1; }.auth-page { grid-template-columns: 1fr 500px; }.auth-brand { padding: 5vw; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }.sidebar { inset: auto 0 0 0; width: 100%; height: 68px; flex-direction: row; border-right: 0; border-top: 1px solid var(--line); }.brand, .sidebar-profile { display: none; }.nav-list { padding: 8px; width: 100%; display: grid; grid-template-columns: repeat(6,1fr); grid-gap: 3px; gap: 3px; }.nav-item { min-height: 51px; }.nav-item svg { width: 18px; }.main-panel { padding-bottom: 74px; }.topbar { height: 70px; padding: 0 16px; }.topbar > div:first-child { display: none; }.topbar-actions { margin-left: auto; }.profile-chip span { display: none; }.page-wrap { padding: 18px 13px; }.page-heading h1 { font-size: 34px; }.hero-panel { padding: 28px 23px; min-height: 300px; }.hero-panel h1 { letter-spacing: -2px; }.stats-grid, .two-col, .team-card-grid, .profile-grid { grid-template-columns: 1fr; }.team-hero { grid-template-columns: 1fr; }.team-badge.xl { width: 70px; height: 70px; }.messages-layout { height: auto; min-height: calc(100vh - 175px); grid-template-columns: 1fr; }.people-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 250px; }.chat-pane { min-height: 520px; }.form-grid-2 { grid-template-columns: 1fr; }.auth-page { display: block; padding: 24px 0; }.auth-brand { min-height: auto; padding: 38px 24px 20px; }.auth-brand h1 { font-size: 72px; letter-spacing: -4px; }.auth-brand > p, .auth-features { display: none; }.auth-card { margin: 0 auto; }.schedule-toolbar { align-items: flex-start; flex-direction: column; }.selection-bar { align-items: flex-start; flex-direction: column; }.selection-actions { justify-content: flex-start; }.status-buttons { grid-template-columns: 1fr; }
}


/* v0.1.4 team management */
.team-logo-hero { width: 95px; height: 95px; border-radius: 25px; object-fit: cover; border: 1px solid rgba(255,255,255,.12); background: #0b1527; }
.team-logo-card { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; border: 1px solid rgba(255,255,255,.12); background: #0b1527; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.mini-button { min-height: 30px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.04); display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #c7d1e1; font-size: 10px; font-weight: 850; }
.mini-button:hover { background: rgba(255,255,255,.08); }
.mini-button:disabled { opacity: .4; cursor: not-allowed; }
.danger-soft { color: #ff9ca5; border-color: rgba(255,95,109,.16); }
.tiny-message { margin-top: 4px; color: #8d9ab0; font-size: 10px; }
.roster-row-manage { grid-template-columns: auto minmax(120px,1fr) minmax(190px,auto); }
.member-role-controls { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.member-role-controls select { width: 118px; min-height: 32px; padding: 6px 9px; border-radius: 9px; font-size: 10px; text-transform: capitalize; }
.owner-transfer { color: #ffd978; border-color: rgba(255,216,74,.18); }
.owner-role { display: inline-flex; align-items: center; gap: 5px; color: #ffd978; background: rgba(255,216,74,.07); border-color: rgba(255,216,74,.16); }
.team-settings-panel { margin-top: 16px; padding: 24px; }
.team-settings-panel h2 { margin: 4px 0 0; }
.team-settings-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,.65fr); grid-gap: 20px; gap: 20px; margin-top: 18px; }
.team-settings-form { display: grid; grid-gap: 13px; gap: 13px; }
.team-logo-settings { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); padding: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.setting-label { color: #aab4c7; font-size: 13px; font-weight: 800; }
.team-logo-preview, .team-logo-placeholder { width: 112px; height: 112px; border-radius: 24px; border: 1px solid rgba(255,255,255,.12); background: #0b1527; }
.team-logo-preview { object-fit: cover; }
.team-logo-placeholder { display: grid; place-items: center; color: var(--cyan); font-weight: 950; }
.team-logo-upload { width: 100%; display: grid; grid-gap: 8px; gap: 8px; }
.team-logo-upload > span { color: #7e8da5; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-logo-settings small { color: #5f6e84; }
.sidebar-profile > .avatar { flex: 0 0 auto; }

@media (max-width: 900px) {
  .team-settings-grid { grid-template-columns: 1fr; }
  .roster-row-manage { grid-template-columns: auto 1fr; }
  .member-role-controls { grid-column: 1 / -1; justify-content: flex-start; padding-left: 56px; }
}


/* v0.1.6 profile/team view + edit pages */
.sidebar-profile-link { color: inherit; text-decoration: none; transition: background .16s ease; }
.sidebar-profile-link:hover { background: rgba(255,255,255,.035); }
.profile-menu { position: relative; }
.profile-chip { cursor: pointer; }
.profile-chip.open { border-color: rgba(66,232,255,.26); background: rgba(66,232,255,.055); }
.profile-dropdown { position: absolute; z-index: 80; right: 0; top: calc(100% + 9px); width: 220px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: #08111f; box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.profile-dropdown-head { padding: 8px; display: flex; align-items: center; gap: 10px; }
.profile-dropdown-head > div { min-width: 0; display: grid; }
.profile-dropdown-head strong, .profile-dropdown-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-dropdown-head strong { font-size: 12px; }.profile-dropdown-head span { color: #718097; font-size: 10px; }
.profile-dropdown-separator { height: 1px; margin: 5px 3px; background: var(--line); }
.profile-dropdown > a, .profile-dropdown > button { width: 100%; min-height: 38px; padding: 0 10px; border-radius: 10px; display: flex; align-items: center; gap: 9px; color: #b8c3d5; font-size: 11px; font-weight: 780; text-align: left; }
.profile-dropdown > a:hover, .profile-dropdown > button:hover { color: #fff; background: rgba(255,255,255,.055); }
.profile-dropdown > button:last-child { color: #ff9ca5; }
.profile-page-heading, .edit-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.edit-icon-button { flex: 0 0 auto; color: var(--cyan); }
.compact-button { width: auto; min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.profile-view-grid { display: grid; grid-template-columns: 310px minmax(0,1fr); grid-gap: 16px; gap: 16px; }
.profile-view-card { min-height: 390px; padding: 34px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; }
.profile-view-card h2 { margin: 18px 0 3px; font-size: 27px; }.profile-view-card > p { margin: 0; color: #8190a7; }
.profile-member-since { margin-top: 18px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: #738198; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.profile-view-content { padding: 28px; display: grid; align-content: start; grid-gap: 26px; gap: 26px; }
.profile-view-section + .profile-view-section { padding-top: 24px; border-top: 1px solid var(--line); }
.profile-view-section h2 { margin: 5px 0 11px; font-size: 21px; }.profile-view-section > p { margin: 0; max-width: 760px; line-height: 1.7; color: #a8b5c9; white-space: pre-wrap; }
.profile-link-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-gap: 9px; gap: 9px; }
.profile-social-link { min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; grid-gap: 10px; gap: 10px; color: #b8c5d8; background: rgba(255,255,255,.018); font-size: 11px; font-weight: 800; }
.profile-social-link:hover { color: #fff; border-color: rgba(66,232,255,.22); background: rgba(66,232,255,.04); }.profile-social-link > svg:first-child { color: var(--cyan); }.profile-social-link > svg:last-child { color: #627086; }
.team-title-row { display: flex; align-items: center; gap: 10px; }.team-title-row h1 { margin-right: 4px; }
.team-hero-view .edit-icon-button { margin-top: 4px; }
.team-edit-layout { display: grid; grid-gap: 16px; gap: 16px; }
.team-edit-layout .team-settings-panel { margin-top: 0; }
.team-access-panel, .team-roster-management { padding: 24px; }
.team-access-panel > .muted, .team-roster-management > .muted { margin: 5px 0 16px; }
.team-access-panel .invite-card { width: min(520px, 100%); }
.roster-row > .role-pill { justify-self: end; text-transform: capitalize; }

@media (max-width: 760px) {
  .profile-page-heading, .edit-page-heading { align-items: flex-start; flex-direction: column; }
  .profile-view-grid { grid-template-columns: 1fr; }
  .profile-link-grid { grid-template-columns: 1fr; }
  .profile-dropdown { position: fixed; right: 12px; top: 64px; }
}

/* v0.1.7 team schedule + ownership model */
.dot.orange { background: #ff9d4d; }
.dot.white { background: #e7edf7; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.slot.orange { background: rgba(255,157,77,.52); }
.slot.purple { background: linear-gradient(145deg, rgba(155,123,255,.72), rgba(119,82,232,.62)); box-shadow: inset 0 0 0 1px rgba(201,187,255,.22); }
.slot.purple:hover { box-shadow: inset 0 0 0 2px rgba(216,207,255,.62), 0 0 16px rgba(155,123,255,.17); }
.team-slot { overflow: hidden; }
.event-label, .orange-player { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 3px 5px; color: white; font-size: 8px; font-weight: 900; line-height: 1.05; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.orange-player { color: #1c0c02; }
.team-timezone-corner { grid-template-rows: auto auto; gap: 2px; font-size: 8px; font-weight: 900; }
.team-schedule-toolbar { margin-top: 4px; }
.team-legend { align-items: center; }
.legend-white { opacity: .8; }
.gameday-button { min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; background: linear-gradient(135deg, #8d69ff, #b19aff); color: #080513; font-size: 11px; font-weight: 950; box-shadow: 0 8px 24px rgba(155,123,255,.16); }
.gameday-button:hover { filter: brightness(1.08); }
.danger-button { min-height: 40px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #ff9ca5; background: rgba(255,95,109,.075); border: 1px solid rgba(255,95,109,.18); font-size: 11px; font-weight: 850; }
.danger-button:hover { background: rgba(255,95,109,.13); }
.event-detail-note { margin: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; color: #aab7ca; background: rgba(255,255,255,.018); line-height: 1.6; white-space: pre-wrap; }
.member-role-badges { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.team-schedule-card strong { color: #dfe7f3; }

/* Keep the Log out item dark instead of using the browser's light button face. */
.profile-dropdown > button { background: transparent; }
.profile-dropdown > button:last-child { color: #ff8d98; background: rgba(255,95,109,.035); }
.profile-dropdown > button:last-child:hover { color: #ffb1b8; background: rgba(255,95,109,.105); }

/* v0.1.8 inline roster roles + team schedule preview/time-zone view */
.member-role-inline { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-width: 0; }
.inline-role-select { width: 112px; min-height: 32px; padding: 5px 28px 5px 10px; border-radius: 10px; border: 1px solid rgba(155,123,255,.2); background: rgba(155,123,255,.07); color: #c9baff; font-size: 10px; font-weight: 850; text-transform: capitalize; }
.inline-role-select:hover, .inline-role-select:focus { border-color: rgba(155,123,255,.42); background: rgba(155,123,255,.11); }
.inline-role-select:disabled { opacity: .55; cursor: wait; }
.functional-role { text-transform: capitalize; }

.team-schedule-preview-panel { padding: 18px !important; min-width: 0; align-self: stretch; }
.team-preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.team-preview-heading h2 { margin: 4px 0 3px; font-size: 24px; }
.team-preview-heading p { margin: 0; color: #718097; font-size: 10px; }
.team-preview-heading .compact-button { flex: 0 0 auto; min-height: 34px; padding: 0 10px; font-size: 10px; }
.team-preview-frame { overflow-x: auto; border: 1px solid rgba(255,255,255,.065); border-radius: 14px; background: #07101e; }
.team-preview-grid { display: grid; width: max-content; min-width: 100%; }
.team-preview-corner, .team-preview-day, .team-preview-hour, .team-preview-slot { border-right: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); }
.team-preview-corner { height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #708097; font-size: 7px; font-weight: 900; }
.team-preview-day { height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,.012); }
.team-preview-day strong { font-size: 8px; }.team-preview-day span { color: #718097; font-size: 7px; margin-top: 2px; }
.team-preview-hour { height: 28px; display: grid; place-items: center; color: #73839a; font-size: 8px; font-weight: 850; }
.team-preview-slot { height: 28px; position: relative; display: grid; place-items: center; overflow: hidden; background: rgba(255,255,255,.009); }
.team-preview-slot.green { background: rgba(69,224,138,.43); }.team-preview-slot.yellow { background: rgba(255,216,74,.45); }.team-preview-slot.orange { background: rgba(255,157,77,.51); }.team-preview-slot.red { background: rgba(255,95,109,.48); }.team-preview-slot.purple { background: linear-gradient(145deg, rgba(155,123,255,.72), rgba(119,82,232,.62)); }
.team-preview-slot span { max-width: 100%; padding: 1px 3px; color: #fff; font-size: 6px; font-weight: 900; line-height: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-preview-slot.orange span { color: #1c0c02; }
.timezone-help { margin: -7px 0 15px; color: #7f8da3; font-size: 11px; line-height: 1.55; }.timezone-help strong { color: #b9c7da; }
.team-schedule-toolbar strong { color: #dce9f4; }

@media (max-width: 900px) {
  .member-role-inline { grid-column: 3; }
  .team-preview-heading { flex-direction: column; }
}
@media (max-width: 620px) {
  .roster-row { grid-template-columns: auto minmax(0,1fr); }
  .member-role-inline { grid-column: 1 / -1; justify-content: flex-start; padding-left: 56px; }
}

/* v0.2.0 social + messaging */
.social-messages{height:calc(100vh - 128px);min-height:620px;overflow:hidden}.social-messages .people-list{display:flex;flex-direction:column;min-width:300px}.conversation-list{overflow:auto;min-height:0}.user-search{display:flex;align-items:center;gap:9px;margin:0 12px 10px;padding:0 12px;height:42px;border:1px solid rgba(148,163,184,.18);border-radius:13px;background:#0d1523;color:#7dd3fc}.user-search input{width:100%;border:0!important;background:transparent!important;padding:0!important;outline:none;color:#edf7ff}.user-search-results{margin:0 12px 10px;padding:6px;border:1px solid rgba(80,220,255,.18);border-radius:14px;background:#07101d;max-height:260px;overflow:auto}.search-user-row{display:flex;width:100%;gap:10px;align-items:center;padding:9px;border:0;border-radius:10px;background:transparent;color:inherit;text-align:left;cursor:pointer}.search-user-row:hover{background:rgba(255,255,255,.05)}.search-user-row span,.person-row span{display:grid}.search-user-row small,.person-row small{color:#7891b2}.social-chat-header{display:flex;align-items:center;justify-content:space-between;gap:14px}.chat-profile-link{display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none;min-width:0}.chat-profile-link>div{display:grid}.chat-profile-link span{color:#7992b4;font-size:12px}.social-chat-header .profile-actions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.social-chat-header .profile-actions .compact-button{padding:8px 10px;font-size:12px}.message-wrap{display:flex;flex-direction:column;align-items:flex-start;margin:7px 0;max-width:76%}.message-wrap.mine{margin-left:auto;align-items:flex-end}.message-actions{display:flex;gap:4px;margin-top:3px;opacity:.25;transition:.15s}.message-wrap:hover .message-actions{opacity:1}.message-actions button{border:1px solid rgba(148,163,184,.14);background:#09111e;color:#9fb0c8;border-radius:8px;min-width:28px;height:27px;display:grid;place-items:center;cursor:pointer}.message-actions button:hover{border-color:rgba(80,220,255,.4);color:#dffaff}.reply-preview{display:flex;gap:6px;align-items:center;padding:7px 9px;margin-bottom:7px;border-left:2px solid #54dffc;background:rgba(4,9,18,.28);border-radius:7px;color:#b8c7db;font-size:12px;max-width:100%}.reply-preview span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-meta{display:flex;gap:7px;align-items:center}.message-meta span{font-size:10px;color:#8aa0bb}.message-bubble.deleted{opacity:.55;font-style:italic}.reaction-row{display:flex;gap:5px;flex-wrap:wrap;margin-top:4px}.reaction-row button{border:1px solid rgba(148,163,184,.15);background:#0a1321;border-radius:999px;color:#c8d5e6;padding:3px 8px;cursor:pointer}.reaction-row button.mine{border-color:#52ddfb;background:rgba(82,221,251,.1)}.composer-area{position:relative;border-top:1px solid rgba(148,163,184,.12)}.composer-area .composer{border-top:0}.composer-reply{display:flex;gap:8px;align-items:center;padding:9px 15px;background:#08111e;color:#9eb1ca;border-bottom:1px solid rgba(148,163,184,.1)}.composer-reply span{flex:1 1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer-reply button,.composer-icon{border:0;background:transparent;color:#8fa4be;cursor:pointer}.emoji-control{position:relative;display:grid;place-items:center}.emoji-menu{position:absolute;bottom:44px;left:0;display:grid;grid-template-columns:repeat(5,38px);padding:8px;border:1px solid rgba(148,163,184,.18);background:#07101d;border-radius:14px;box-shadow:0 18px 45px rgba(0,0,0,.45);z-index:20}.emoji-menu button{border:0;background:transparent;font-size:20px;cursor:pointer;border-radius:8px;height:34px}.emoji-menu button:hover{background:rgba(255,255,255,.06)}.chat-notice{margin:10px auto;padding:8px 12px;border-radius:10px;background:rgba(248,113,113,.08);color:#fca5a5;font-size:12px}.small{font-size:12px}.profile-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.profile-teams{margin-top:20px}.profile-team-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));grid-gap:12px;gap:12px}.profile-team-card{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid rgba(148,163,184,.14);border-radius:14px;background:#0a1321;color:inherit;text-decoration:none}.profile-team-card:hover{border-color:rgba(80,220,255,.35)}.profile-team-card img,.profile-team-card>span{width:44px;height:44px;border-radius:12px;object-fit:cover;display:grid;place-items:center;background:#102235;color:#58defa;font-weight:900}.profile-team-card div{display:grid}.profile-team-card small{color:#7e93ae;text-transform:capitalize}.danger-zone{border-color:rgba(248,113,113,.18)!important}.danger-button{color:#fecaca!important;border-color:rgba(248,113,113,.3)!important;background:rgba(127,29,29,.18)!important}
.social-messages .composer{grid-template-columns:42px 1fr 48px}.social-messages .composer-icon{height:42px;width:42px;display:grid;place-items:center;border-radius:10px}.social-messages .composer-icon:hover{background:rgba(255,255,255,.05);color:#dffaff}

/* v0.2.1 chat polish, profile teams, compact team removal */
.user-search input:focus { border: 0 !important; box-shadow: none !important; outline: none !important; }
.user-search:focus-within { border-color: rgba(148,163,184,.18); box-shadow: none; }

.team-removal-card { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 18px; border-color:var(--line)!important; background:rgba(255,255,255,.018); }
.team-removal-card > div { min-width:0; }
.team-removal-card h2 { margin:3px 0 3px; font-size:17px; }
.team-removal-card p { margin:0; font-size:11px; }
.team-removal-card .danger-button { flex:0 0 auto; min-height:36px; padding:0 12px; border-radius:10px; }

.profile-team-grid-v2 { grid-template-columns: repeat(auto-fit, minmax(290px, 360px)); align-items:stretch; }
.profile-team-card-v2 { min-height:74px; padding:10px 12px; display:grid; grid-template-columns:54px minmax(0,1fr) auto; grid-gap:12px; gap:12px; align-items:center; }
.profile-team-card-v2 img, .profile-team-card-v2 > span { width:54px; height:54px; border-radius:15px; }
.profile-team-main { display:grid!important; grid-gap:3px; gap:3px; min-width:0; }
.profile-team-main strong { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:13px; }
.profile-team-main small { color:#70839f!important; text-transform:none!important; font-size:10px; }
.profile-team-badges { display:flex!important; align-items:flex-end; flex-direction:column; gap:5px; }
.profile-role-badge, .profile-owner-badge { display:inline-flex; align-items:center; gap:4px; min-height:23px; padding:0 8px; border-radius:999px; border:1px solid rgba(155,123,255,.18); background:rgba(155,123,255,.07); color:#c9baff; font-size:9px; font-weight:850; text-transform:capitalize; white-space:nowrap; }
.profile-owner-badge { border-color:rgba(255,216,74,.16); background:rgba(255,216,74,.06); color:#ffd978; }

.chat-scroll-v2 { padding:18px 22px 30px; }
.message-entry { width:100%; }
.chat-date-separator { display:flex; align-items:center; gap:12px; margin:15px 0 13px; color:#6f8098; font-size:10px; font-weight:800; letter-spacing:.04em; }
.chat-date-separator::before, .chat-date-separator::after { content:""; height:1px; flex:1 1; background:rgba(148,163,184,.10); }
.chat-date-separator span { flex:0 0 auto; }
.message-row-v2 { width:100%; display:flex; align-items:flex-end; gap:8px; margin:2px 0; }
.message-row-v2.mine { justify-content:flex-start; }
.message-row-v2.theirs { justify-content:flex-end; }
.message-row-v2 > .avatar { flex:0 0 auto; margin-bottom:2px; }
.message-avatar-spacer { width:34px; height:1px; flex:0 0 34px; }
.message-stack-v2 { position:relative; display:flex; flex-direction:column; min-width:0; max-width:min(690px,72%); }
.message-row-v2.mine .message-stack-v2 { align-items:flex-start; }
.message-row-v2.theirs .message-stack-v2 { align-items:flex-end; }
.message-bubble-v2 { min-width:88px; max-width:100%; padding:9px 11px 7px; border-radius:14px; border:1px solid var(--line); background:rgba(255,255,255,.05); color:#e8f1fb; }
.message-bubble-v2.mine { background:rgba(66,232,255,.105); border-color:rgba(66,232,255,.17); border-bottom-left-radius:5px; }
.message-bubble-v2.theirs { background:#0d1625; border-color:rgba(148,163,184,.14); border-bottom-right-radius:5px; }
.message-bubble-v2 p { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.45; font-size:13px; }
.message-bubble-v2.deleted { opacity:.56; font-style:italic; }
.message-copy-line { display:flex; align-items:flex-end; gap:8px; min-width:0; }
.message-copy-line > p { min-width:0; flex:1 1 auto; }
.message-time-inline { display:inline-flex; align-items:center; gap:5px; flex:0 0 auto; padding-bottom:1px; color:#64768f; font-size:9px; line-height:1.2; white-space:nowrap; }
.message-time-inline span { color:#788ba6; }
.message-time-row { display:flex; justify-content:flex-end; align-items:center; gap:6px; min-height:13px; margin-top:4px; color:#64768f; font-size:9px; }
.message-time-row span { color:#788ba6; }
.message-hover-tools { position:absolute; top:-30px; display:flex; gap:3px; padding:3px; border:1px solid rgba(148,163,184,.13); border-radius:9px; background:#080f1a; box-shadow:0 8px 24px rgba(0,0,0,.32); opacity:0; pointer-events:none; transition:.12s ease; z-index:8; }
.message-row-v2.mine .message-hover-tools { left:0; }
.message-row-v2.theirs .message-hover-tools { right:0; }
.message-row-v2:hover .message-hover-tools, .message-hover-tools:focus-within { opacity:1; pointer-events:auto; }
.message-hover-tools button { width:27px; height:25px; display:grid; place-items:center; border:0; border-radius:6px; background:transparent; color:#8799b2; cursor:pointer; }
.message-hover-tools button:hover { background:rgba(255,255,255,.055); color:#dcf9ff; }
.reaction-picker-anchor { position:relative; }
.full-emoji-popover { position:absolute; z-index:60; filter:drop-shadow(0 22px 40px rgba(0,0,0,.42)); }
.reaction-popover { top:31px; }
.reaction-popover.left { left:0; }
.reaction-popover.right { right:0; }
.composer-emoji-popover { bottom:48px; left:0; }
.discord-reactions { margin-top:4px; gap:4px; }
.discord-reactions button { min-height:25px; display:inline-flex; align-items:center; gap:5px; padding:2px 7px; border-radius:8px; background:#0a1422; border:1px solid rgba(148,163,184,.14); color:#b8c6d9; }
.discord-reactions button.mine { border-color:rgba(66,232,255,.42); background:rgba(66,232,255,.09); color:#dffbff; }
.discord-reactions button span { font-size:15px; line-height:1; }
.discord-reactions button b { font-size:10px; font-weight:800; }
.discord-reactions .reaction-add-chip { padding:0 7px; color:#7890ab; }

.message-attachments { display:grid; grid-gap:7px; gap:7px; margin-top:7px; }
.image-attachment { display:block; color:#8ca0ba; font-size:9px; text-decoration:none; }
.image-attachment img { display:block; max-width:min(330px,100%); max-height:260px; border-radius:10px; object-fit:cover; border:1px solid rgba(255,255,255,.08); background:#050a12; }
.image-attachment > span { display:none; }
.file-attachment { min-width:210px; display:flex; align-items:center; gap:9px; padding:9px 10px; border-radius:10px; border:1px solid rgba(148,163,184,.14); background:rgba(0,0,0,.18); color:#cbd7e7; text-decoration:none; }
.file-attachment > span { display:grid; min-width:0; }
.file-attachment strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.file-attachment small { color:#71839d; font-size:9px; }

.composer-v2 { grid-template-columns:42px 42px minmax(0,1fr) 48px!important; }
.hidden-file-input { display:none!important; }
.pending-files { display:flex; gap:6px; flex-wrap:wrap; padding:9px 14px 0; background:#07101b; }
.pending-file { max-width:330px; display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; grid-gap:6px; gap:6px; align-items:center; min-height:31px; padding:0 8px; border-radius:9px; border:1px solid rgba(148,163,184,.13); background:#0b1523; color:#b8c7d9; }
.pending-file span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }
.pending-file small { color:#667b95; font-size:9px; }
.pending-file button { border:0; background:transparent; color:#7f91aa; cursor:pointer; display:grid; place-items:center; }
.uploading-note { padding:0 15px 8px; color:#7490ad; font-size:9px; background:#07101b; }

@media (max-width:760px){
 .team-removal-card{align-items:flex-start;flex-direction:column}.profile-team-grid-v2{grid-template-columns:1fr}.profile-team-card-v2{grid-template-columns:48px minmax(0,1fr)}.profile-team-card-v2 img,.profile-team-card-v2>span{width:48px;height:48px}.profile-team-badges{grid-column:1/-1;align-items:flex-start;flex-direction:row;padding-left:60px}.message-stack-v2{max-width:82%}.chat-scroll-v2{padding:14px 10px 24px}.full-emoji-popover{position:fixed;left:50%!important;right:auto!important;bottom:80px!important;top:auto!important;transform:translateX(-50%)}
}


/* v0.2.2 live messages, attachment composer, profile team layout */
.chat-pane {
  grid-template-rows: 67px minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}
.chat-scroll-v2 {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.composer-area-v2 {
  position: relative;
  z-index: 12;
  background: #07101b;
  border-top: 1px solid rgba(148,163,184,.12);
  overflow: visible;
}
.composer-area-v2 .composer {
  background: #07101b;
}
.pending-files-v2 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px 6px;
  background: #07101b;
  max-height: 150px;
  overflow-y: auto;
}
.pending-file-v2 {
  position: relative;
  width: min(260px, 100%);
  min-height: 58px;
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) 28px;
  grid-gap: 9px;
  gap: 9px;
  align-items: center;
  padding: 7px 7px 7px 8px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 11px;
  background: #0b1523;
  color: #c9d6e7;
}
.pending-file-thumb,
.pending-file-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.07);
  background: #050b13;
}
.pending-file-thumb { object-fit: cover; display: block; }
.pending-file-icon { display: grid; place-items: center; color: #79dcf4; }
.pending-file-copy { min-width: 0; display: grid; grid-gap: 3px; gap: 3px; }
.pending-file-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.pending-file-copy small { color: #71849e; font-size: 9px; }
.pending-file-v2 > button {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #7f92ab;
  cursor: pointer;
}
.pending-file-v2 > button:hover { background: rgba(255,255,255,.05); color: #d8f8ff; }
.composer-inline-error {
  margin: 4px 14px 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(248,113,113,.16);
  border-radius: 9px;
  background: rgba(127,29,29,.10);
  color: #fca5a5;
  font-size: 10px;
}
.composer-inline-error span { flex: 1 1; }
.composer-inline-error button { border: 0; background: transparent; color: #fca5a5; cursor: pointer; display: grid; place-items: center; }

.profile-team-grid-v2 {
  grid-template-columns: 1fr;
  gap: 10px;
}
.profile-team-card-v2 {
  width: 100%;
  min-height: 82px;
  padding: 12px 14px;
  grid-template-columns: 58px minmax(0,1fr) auto;
  gap: 14px;
  border-radius: 16px;
}
.profile-team-card-v2 img,
.profile-team-card-v2 > span {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}
.profile-team-main { gap: 4px; }
.profile-team-main strong { font-size: 14px; }
.profile-team-main small { font-size: 10px; }
.profile-team-badges {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.profile-role-badge,
.profile-owner-badge {
  min-height: 25px;
  padding: 0 9px;
  font-size: 9px;
}

@media (max-width: 760px) {
  .profile-team-card-v2 { grid-template-columns: 50px minmax(0,1fr); }
  .profile-team-card-v2 img, .profile-team-card-v2 > span { width: 50px; height: 50px; }
  .profile-team-badges { grid-column: 1 / -1; justify-content: flex-start; padding-left: 64px; }
  .pending-file-v2 { width: 100%; }
}

/* v0.2.6 live notifications + incoming friend requests */
.friend-requests-menu { position: relative; }
.friend-requests-trigger { cursor: pointer; color: #c8d4e7; }
.friend-requests-dropdown {
  position: absolute;
  z-index: 95;
  top: calc(100% + 9px);
  right: 0;
  width: 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #08111f;
  box-shadow: 0 24px 70px rgba(0,0,0,.52);
}
.friend-requests-title {
  min-height: 58px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.friend-requests-title strong { font-size: 12px; }
.friend-requests-title span { color: #718097; font-size: 10px; }
.friend-requests-list { max-height: 330px; overflow-y: auto; padding: 6px; }
.friend-request-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 11px;
}
.friend-request-row:hover { background: rgba(255,255,255,.035); }
.friend-request-user { min-width: 0; flex: 1 1; display: flex; align-items: center; gap: 9px; }
.friend-request-user > div:last-child { min-width: 0; display: grid; }
.friend-request-user strong, .friend-request-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-request-user strong { font-size: 11px; }
.friend-request-user span { color: #718097; font-size: 9px; }
.friend-request-actions { display: flex; gap: 5px; }
.friend-request-action {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  cursor: pointer;
}
.friend-request-action.accept { color: var(--cyan); }
.friend-request-action.accept:hover { background: rgba(66,232,255,.09); border-color: rgba(66,232,255,.22); }
.friend-request-action.decline { color: #ff8f99; }
.friend-request-action.decline:hover { background: rgba(255,95,109,.08); border-color: rgba(255,95,109,.22); }
.friend-request-action:disabled { opacity: .45; cursor: wait; }
.friend-requests-empty { padding: 18px; color: #718097; text-align: center; font-size: 10px; }

@media (max-width: 720px) {
  .friend-requests-dropdown { position: fixed; top: 64px; right: 12px; left: 12px; width: auto; }
}

/* v0.2.7 profile team section + paginated bottom-anchored chat */
.profile-teams-section {
  margin-top: 22px;
}
.profile-teams-heading {
  margin: 0 0 11px;
}
.profile-teams-heading h2 {
  margin: 4px 0 0;
  font-size: 22px;
}
.profile-team-grid-v3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
  grid-gap: 10px;
  gap: 10px;
  justify-content: start;
}
.profile-team-card-v3 {
  min-height: 74px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 15px;
  background: #0a1321;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
a.profile-team-card-v3:hover {
  border-color: rgba(80,220,255,.35);
  background: #0c1726;
}
.profile-team-card-v3 img,
.profile-team-logo-fallback {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  object-fit: cover;
}
.profile-team-logo-fallback {
  display: grid;
  place-items: center;
  background: #102235;
  color: #58defa;
  font-weight: 900;
  font-size: 13px;
}
.profile-team-main-v3 {
  min-width: 0;
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}
.profile-team-main-v3 strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.profile-team-main-v3 small {
  color: #71839d;
  font-size: 10px;
}
.profile-team-badges-v3 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
.profile-team-empty-v3 {
  width: min(360px, 100%);
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  border: 1px dashed rgba(148,163,184,.16);
  border-radius: 14px;
  background: rgba(10,19,33,.58);
  color: #71839d;
  font-size: 11px;
}

.chat-scroll-v2 {
  display: flex;
  flex-direction: column;
}
.chat-history-spacer {
  flex: 1 1 auto;
  min-height: 0;
}
.chat-show-more {
  align-self: center;
  margin: 7px auto 14px;
  min-height: 31px;
  padding: 0 13px;
  border: 1px solid rgba(148,163,184,.15);
  border-radius: 10px;
  background: #0b1523;
  color: #aebdd0;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.chat-show-more:hover:not(:disabled) {
  border-color: rgba(80,220,255,.32);
  color: #dffaff;
}
.chat-show-more:disabled {
  opacity: .55;
  cursor: wait;
}
.chat-loading {
  margin: auto;
}
.chat-scroll-v2 > .chat-empty {
  margin: auto;
}

@media (max-width: 760px) {
  .profile-team-grid-v3 { grid-template-columns: 1fr; }
  .profile-team-card-v3 { grid-template-columns: 48px minmax(0,1fr); }
  .profile-team-card-v3 img, .profile-team-logo-fallback { width: 48px; height: 48px; }
  .profile-team-badges-v3 { grid-column: 1 / -1; flex-direction: row; align-items: center; padding-left: 60px; }
}

/* v0.2.8 schedule notes + per-viewer team schedule polish */
.note-modal { width: min(680px, 100%); }
.note-modal textarea { min-height: 190px; resize: vertical; }
.note-availability-block { margin-top: 14px; }
.field-label { display: block; margin-bottom: 7px; color: #aebbd0; font-size: 11px; font-weight: 800; }
.note-status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 8px; gap: 8px; }
.note-status { min-height: 42px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); color: #a9b7ca; font-size: 10px; font-weight: 900; }
.note-status:hover { border-color: rgba(66,232,255,.28); }
.note-status.active { box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 0 16px rgba(255,255,255,.08); color: #fff; }
.note-status.white { background: rgba(255,255,255,.035); }
.note-status.green { background: rgba(69,224,138,.26); color: #dffff0; }
.note-status.yellow { background: rgba(255,216,74,.25); color: #fff6c4; }
.note-status.red { background: rgba(255,95,109,.27); color: #ffd6da; }
.team-visible-toggle { margin-top: 15px; display: flex !important; align-items: flex-start; gap: 10px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.018); cursor: pointer; }
.team-visible-toggle input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--cyan); flex: 0 0 auto; }
.team-visible-toggle > span { display: grid; grid-gap: 2px; gap: 2px; }
.team-visible-toggle strong { color: #dfe7f3; font-size: 11px; }
.team-visible-toggle small { color: #718097; font-size: 10px; line-height: 1.4; }
.slot-note-indicator, .team-note-indicator { position: absolute !important; top: 4px !important; right: 5px !important; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 6px; color: #f4fbff !important; background: rgba(5,12,24,.45); border: 1px solid rgba(255,255,255,.12); }
.slot.note-open { z-index: 30 !important; }
.slot-note-popover { position: absolute !important; z-index: 50; left: calc(100% - 8px); top: 50%; transform: translateY(-50%); width: 240px; padding: 11px 12px; display: grid !important; grid-gap: 6px; gap: 6px; border: 1px solid rgba(66,232,255,.22); border-radius: 12px; background: #08111f; box-shadow: 0 16px 45px rgba(0,0,0,.45); color: #cbd7e8 !important; text-align: left; white-space: normal; pointer-events: none; }
.slot-note-popover::before { content: ""; position: absolute; left: -6px; top: 50%; width: 10px; height: 10px; transform: translateY(-50%) rotate(45deg); background: #08111f; border-left: 1px solid rgba(66,232,255,.22); border-bottom: 1px solid rgba(66,232,255,.22); }
.slot-note-popover strong { color: #fff; font-size: 10px; }
.slot-note-popover > span { position: static !important; display: grid; grid-gap: 2px; gap: 2px; color: #aab8ca !important; font-size: 10px !important; line-height: 1.45; }
.slot-note-popover > span b { color: var(--cyan); font-size: 9px; }
.slot-note-popover small { color: #7890ad; font-size: 9px; }
.team-note-popover { width: 260px; }
.team-preview-slot.has-team-note { overflow: visible; }
.team-preview-note { position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; display: grid; place-items: center; border-radius: 4px; color: #fff; background: rgba(5,12,24,.5); }

@media (max-width: 720px) {
  .note-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-note-popover { left: 6px; top: calc(100% + 8px); transform: none; }
  .slot-note-popover::before { left: 16px; top: -6px; transform: rotate(135deg); }
}

/* v0.2.9 dashboard, events, trials, stratbook and team chat */
.dashboard-lower-clean { margin-top: 16px; }
.dashboard-notification-list { display: grid; grid-gap: 7px; gap: 7px; }
.dashboard-notification-row { min-height: 58px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; grid-gap: 10px; gap: 10px; padding: 9px 10px; border: 1px solid transparent; border-radius: 13px; background: rgba(255,255,255,.012); }
.dashboard-notification-row:hover { border-color: rgba(66,232,255,.13); background: rgba(255,255,255,.028); }
.dashboard-notification-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--cyan); background: rgba(66,232,255,.07); }
.dashboard-notification-row > div { min-width: 0; display: grid; grid-gap: 2px; gap: 2px; }
.dashboard-notification-row strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-notification-row span:not(.dashboard-notification-icon) { color: #8292aa; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-notification-row small { color: #52647f; font-size: 9px; }
.dashboard-notification-row .unread-dot { width: 7px; height: 7px; }

/* Keep the messages workspace exactly inside the viewport so opening a chat has no page-level scroll remainder. */
.messages-layout.social-messages { height: calc(100dvh - 146px); min-height: 0; }
.chat-scroll-v2 { scroll-behavior: auto; }

/* Team feature settings */
.team-feature-toggle { display: flex !important; align-items: flex-start; gap: 10px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.018); cursor: pointer; }
.team-feature-toggle input { width: 16px; height: 16px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--cyan); }
.team-feature-toggle > span { display: grid; grid-gap: 2px; gap: 2px; }
.team-feature-toggle strong { color: #dfe7f3; font-size: 11px; }
.team-feature-toggle small { color: #718097; font-size: 10px; line-height: 1.4; }

/* Trials */
.trials-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 420px)); grid-gap: 14px; gap: 14px; }
.trials-team-card { min-height: 116px; padding: 17px; display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; grid-gap: 13px; gap: 13px; }
.trials-team-card:hover { border-color: rgba(66,232,255,.22); transform: translateY(-1px); }
.trials-team-card > img, .trials-team-card > span { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; display: grid; place-items: center; background: rgba(66,232,255,.08); color: var(--cyan); font-size: 12px; font-weight: 900; }
.trials-team-card > div { min-width: 0; display: grid; grid-gap: 3px; gap: 3px; }
.trials-team-card strong { font-size: 15px; }
.trials-team-card small { color: #7c8da7; font-size: 10px; text-transform: capitalize; }
.trials-team-card p { margin: 5px 0 0; color: #6e8099; font-size: 10px; line-height: 1.45; }
.trials-empty { min-height: 210px; padding: 28px; display: grid; place-items: center; align-content: center; text-align: center; }
.trials-empty svg { color: var(--cyan); }
.trials-empty h2 { margin: 10px 0 4px; }
.trials-empty p { margin: 0; color: var(--muted); }

/* Flexible blue / violet team-event palette. */
.event-violet { --event-a: #8b5cf6; --event-b: #a78bfa; }
.event-lavender { --event-a: #a78bfa; --event-b: #c4b5fd; }
.event-indigo { --event-a: #7277f5; --event-b: #8b91ff; }
.event-blue { --event-a: #4f8ff7; --event-b: #73a7ff; }
.event-sky { --event-a: #38bdf8; --event-b: #7dd3fc; }
.event-cyan { --event-a: #22d3ee; --event-b: #67e8f9; }
.dot.event-dot { background: linear-gradient(135deg, #8b5cf6, #38bdf8); }
.slot.team-event, .team-preview-slot.team-event { background: linear-gradient(145deg, color-mix(in srgb, var(--event-a) 78%, transparent), color-mix(in srgb, var(--event-b) 62%, transparent)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.slot.team-event:hover { box-shadow: inset 0 0 0 2px rgba(255,255,255,.48), 0 0 16px color-mix(in srgb, var(--event-a) 20%, transparent); }
.event-modal { width: min(610px, 100%); }
.event-color-field { display: grid; grid-gap: 8px; gap: 8px; margin: 12px 0 2px; }
.event-color-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-gap: 8px; gap: 8px; }
.event-color-swatch { height: 42px; border-radius: 12px; border: 2px solid transparent; background: linear-gradient(135deg, var(--event-a), var(--event-b)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.event-color-swatch:hover { transform: translateY(-1px); filter: brightness(1.06); }
.event-color-swatch.active { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.09), 0 0 22px color-mix(in srgb, var(--event-a) 28%, transparent); }
.gameday-button.event-violet, .gameday-button.event-lavender, .gameday-button.event-indigo, .gameday-button.event-blue, .gameday-button.event-sky, .gameday-button.event-cyan { background: linear-gradient(135deg, var(--event-a), var(--event-b)); color: #041019; }

/* Extend the team workspace below roster + schedule. */
.team-workspace-bottom { display: grid; grid-gap: 16px; gap: 16px; margin-top: 16px; }

/* Stratbook */
.stratbook-panel { padding: 22px; overflow: hidden; }
.stratbook-panel .panel-heading > svg { color: var(--cyan); }
.stratbook-map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); grid-gap: 9px; gap: 9px; }
.stratbook-map-card { position: relative; min-height: 82px; overflow: hidden; border: 1px solid rgba(148,163,184,.13); border-radius: 13px; background: #08111d; color: #fff; text-align: left; }
.stratbook-map-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2,5,13,.9), rgba(2,5,13,.08) 72%); }
.stratbook-map-card img, .stratbook-map-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; color: #61dbf2; background: linear-gradient(145deg,#12233a,#09111e); }
.stratbook-map-card strong { position: absolute; z-index: 2; left: 10px; bottom: 8px; font-size: 11px; }
.stratbook-map-card:hover, .stratbook-map-card.active { border-color: rgba(66,232,255,.45); transform: translateY(-1px); }
.stratbook-map-card.active { box-shadow: inset 0 0 0 1px rgba(66,232,255,.25), 0 10px 30px rgba(0,0,0,.18); }
.stratbook-selected { margin-top: 14px; display: grid; grid-template-columns: minmax(220px, .7fr) 1fr; grid-gap: 14px; gap: 14px; }
.stratbook-selected-visual { position: relative; min-height: 180px; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: #08111d; }
.stratbook-selected-visual img, .stratbook-selected-visual > span { width: 100%; height: 100%; min-height: 180px; object-fit: cover; display: grid; place-items: center; color: var(--cyan); }
.stratbook-selected-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2,5,13,.86), transparent 70%); }
.stratbook-selected-visual strong { position: absolute; z-index: 2; left: 15px; bottom: 12px; font-size: 20px; }
.stratbook-strats { min-height: 180px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.012); }
.stratbook-strats h3 { margin: 5px 0 8px; font-size: 22px; }
.stratbook-strats p { margin: 0; color: #74859e; line-height: 1.55; font-size: 12px; }

/* Team chat */
.team-chat-panel { padding: 22px; }
.team-chat-live { min-height: 25px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 999px; border: 1px solid rgba(69,224,138,.18); background: rgba(69,224,138,.06); color: #78e8a8; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.team-chat-scroll { height: 330px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(1,5,12,.38); }
.team-chat-row { display: flex; align-items: flex-end; gap: 8px; }
.team-chat-row.mine { justify-content: flex-end; }
.team-chat-avatar-gap { width: 30px; flex: 0 0 30px; }
.team-chat-message { max-width: min(720px, 76%); display: grid; grid-gap: 3px; gap: 3px; }
.team-chat-message > strong { color: #94a8c3; font-size: 9px; }
.team-chat-message > div { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px; border: 1px solid rgba(148,163,184,.12); border-radius: 12px; background: #0b1523; }
.team-chat-row.mine .team-chat-message > div { background: rgba(66,232,255,.08); border-color: rgba(66,232,255,.15); }
.team-chat-message span { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; }
.team-chat-message time { color: #5e718b; font-size: 8px; white-space: nowrap; }
.team-chat-empty { margin: auto; color: #657790; font-size: 11px; }
.team-chat-composer { margin-top: 10px; display: grid; grid-template-columns: 1fr 46px; grid-gap: 8px; gap: 8px; }
.team-chat-composer input { height: 44px; }
.team-chat-composer .primary-button { min-height: 44px; height: 44px; padding: 0; }
.team-chat-error { margin-top: 8px; }

@media (max-width: 760px) {
  .nav-list { grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)) !important; }
  .messages-layout.social-messages { height: auto; min-height: calc(100dvh - 175px); }
  .event-color-grid { grid-template-columns: repeat(3, 1fr); }
  .stratbook-selected { grid-template-columns: 1fr; }
  .team-chat-scroll { height: 300px; }
}

/* v0.2.10 dashboard polish */
.dashboard-lower-v2 { margin-top: 16px; align-items: start; }
.dashboard-panel-compact { min-height: 0 !important; padding: 23px; }
.dashboard-team-list, .dashboard-note-list { display: grid; grid-gap: 10px; gap: 10px; }
.dashboard-team-row { min-height: 74px; padding: 13px; border: 1px solid rgba(148,163,184,.11); border-radius: 16px; background: rgba(255,255,255,.018); }
.dashboard-team-row:hover { background: rgba(255,255,255,.035); border-color: rgba(66,232,255,.18); }
.dashboard-note-row { display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-gap: 12px; gap: 12px; align-items: start; padding: 13px; border-radius: 16px; border: 1px solid rgba(148,163,184,.11); background: rgba(255,255,255,.018); color: inherit; text-decoration: none; }
.dashboard-note-row:hover { background: rgba(255,255,255,.035); border-color: rgba(66,232,255,.18); }
.dashboard-note-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(66,232,255,.08); border: 1px solid rgba(66,232,255,.13); color: var(--cyan); }
.dashboard-note-copy { min-width: 0; display: grid; grid-gap: 4px; gap: 4px; }
.dashboard-note-topline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dashboard-note-topline strong { min-width: 0; font-size: 14px; line-height: 1.35; }
.dashboard-note-copy p { margin: 0; color: #90a0b7; font-size: 12px; line-height: 1.55; }
.dashboard-note-copy time { color: #667992; font-size: 10px; font-weight: 700; }
.dashboard-note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px rgba(66,232,255,.65); flex: 0 0 auto; }
@media (max-width: 900px) { .dashboard-panel-compact { min-height: 0 !important; } }

/* v0.2.11 cleanup, confirmations and stratbook redesign */
.confirm-backdrop { z-index: 180; }
.confirm-dialog { width: min(500px, 100%); padding: 24px; }
.confirm-dialog-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 14px; background: rgba(66,232,255,.09); border: 1px solid rgba(66,232,255,.16); color: var(--cyan); }
.confirm-dialog-icon.danger { background: rgba(255,95,109,.09); border-color: rgba(255,95,109,.2); color: #ff8290; }
.confirm-dialog-copy h2 { margin: 5px 0 8px; font-size: 25px; letter-spacing: -.8px; }
.confirm-dialog-copy p { margin: 0; color: #8e9db3; line-height: 1.55; font-size: 12px; }
.confirm-dialog-actions { margin-top: 20px; }
.confirm-danger-button { min-height: 43px; border-radius: 13px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; color: #ffd9dd; background: rgba(255,95,109,.14); border: 1px solid rgba(255,95,109,.28); }
.confirm-danger-button:hover:not(:disabled) { background: rgba(255,95,109,.2); }
.confirm-danger-button:disabled { opacity: .5; cursor: not-allowed; }
.confirm-text-field { margin-top: 18px; display: grid; grid-gap: 7px; gap: 7px; }
.confirm-text-field > span { color: #aebbd0; font-size: 11px; font-weight: 800; }
.compact-inline-error { margin-top: 8px; font-size: 10px; padding: 8px 10px; }
.profile-actions-wrap { display: grid; grid-gap: 7px; gap: 7px; justify-items: end; }

.stratbook-panel-v2 { padding: 22px; overflow: hidden; }
.stratbook-heading { align-items: flex-start; margin-bottom: 16px; }
.stratbook-heading h2 { margin-bottom: 4px; }
.stratbook-heading p { margin: 0; color: #73859f; font-size: 11px; }
.stratbook-heading-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(66,232,255,.07); border: 1px solid rgba(66,232,255,.14); color: var(--cyan); }
.stratbook-map-grid-v2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); grid-gap: 9px; gap: 9px; }
.stratbook-map-card-v2 { min-width: 0; height: 82px; padding: 8px; display: grid; grid-template-columns: 54px minmax(0,1fr); grid-gap: 9px; gap: 9px; align-items: center; border: 1px solid rgba(148,163,184,.12); border-radius: 13px; background: rgba(255,255,255,.018); color: #cfd9e7; text-align: left; cursor: pointer; overflow: hidden; }
.stratbook-map-card-v2:hover { background: rgba(255,255,255,.035); border-color: rgba(66,232,255,.22); }
.stratbook-map-card-v2.active { background: rgba(66,232,255,.065); border-color: rgba(66,232,255,.38); box-shadow: inset 0 0 0 1px rgba(66,232,255,.08); }
.stratbook-map-thumb { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #07111d; border: 1px solid rgba(255,255,255,.06); }
.stratbook-map-thumb img, .stratbook-map-thumb .stratbook-map-fallback { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; }
.stratbook-map-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 900; }
.stratbook-active-v2 { margin-top: 14px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-gap: 12px; gap: 12px; }
.stratbook-active-map, .stratbook-empty-state { min-height: 108px; border: 1px solid rgba(148,163,184,.11); border-radius: 15px; background: rgba(255,255,255,.016); }
.stratbook-active-map { display: grid; grid-template-columns: 100px minmax(0,1fr); grid-gap: 13px; gap: 13px; align-items: center; padding: 12px; }
.stratbook-active-thumb { width: 100px; height: 76px; overflow: hidden; display: grid; place-items: center; border-radius: 11px; background: #07111d; color: var(--cyan); border: 1px solid rgba(255,255,255,.06); }
.stratbook-active-thumb img { width: 100%; height: 100%; object-fit: cover; }
.stratbook-active-map h3 { margin: 4px 0 4px; font-size: 20px; }
.stratbook-active-map p { margin: 0; color: #70819a; font-size: 10px; }
.stratbook-empty-state { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #a9b8cb; text-align: left; cursor: default; }
.stratbook-empty-state > span { display: grid; grid-gap: 4px; gap: 4px; }
.stratbook-empty-state strong { color: #e4ebf5; font-size: 13px; }
.stratbook-empty-state small { color: #70819a; font-size: 10px; }
.stratbook-empty-state svg { color: #5f728c; }

@media (max-width: 760px) {
  .stratbook-map-grid-v2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stratbook-active-v2 { grid-template-columns: 1fr; }
}

/* v0.2.12 team chat + stratbook navigation polish */
.team-chat-panel-v2 {
  padding: 20px;
}
.team-chat-heading {
  margin-bottom: 12px;
}
.team-chat-scroll-v2 {
  height: 230px;
  min-height: 230px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.team-chat-history-spacer {
  flex: 1 1 auto;
  min-height: 0;
}
.team-chat-scroll-v2 .team-chat-row {
  flex: 0 0 auto;
}
.team-chat-panel-v2 .team-chat-composer {
  margin-top: 8px;
}

.stratbook-panel-v3 {
  padding: 22px;
  overflow: hidden;
}
.stratbook-heading-v3 {
  margin-bottom: 15px;
}
.stratbook-map-grid-v3 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}
.stratbook-map-card-v3 {
  min-width: 0;
  min-height: 104px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border-radius: 15px;
  border: 1px solid rgba(148,163,184,.12);
  background: rgba(255,255,255,.018);
  color: #e3eaf4;
  text-decoration: none;
  transition: .16s ease;
}
.stratbook-map-card-v3:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.035);
  border-color: rgba(66,232,255,.28);
}
.stratbook-map-thumb-v3 {
  width: 78px;
  height: 78px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07);
  background: #07111d;
}
.stratbook-map-thumb-v3 img,
.stratbook-map-thumb-v3 .stratbook-map-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: grid;
  place-items: center;
}
.stratbook-map-card-v3 strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.stratbook-map-page-heading {
  align-items: center;
}
.stratbook-map-empty-page {
  min-height: 300px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
}
.stratbook-map-empty-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 7px;
  border-radius: 17px;
  border: 1px solid rgba(66,232,255,.15);
  background: rgba(66,232,255,.07);
  color: var(--cyan);
}
.stratbook-map-empty-page strong {
  font-size: 18px;
}
.stratbook-map-empty-page > span {
  color: #75869d;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .stratbook-map-grid-v3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .stratbook-map-grid-v3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-chat-scroll-v2 { height: 220px; min-height: 220px; }
}
@media (max-width: 520px) {
  .stratbook-map-grid-v3 { grid-template-columns: 1fr; }
}

/* v0.2.13 advanced team chat */
.team-chat-advanced {
  padding: 22px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  overflow: visible;
}
.advanced-team-chat-heading {
  margin-bottom: 12px;
}
.team-chat-view-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.team-chat-scroll-advanced {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 16px 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(1,5,12,.38);
}
.team-chat-embedded .team-chat-scroll-advanced {
  height: 520px;
  min-height: 520px;
}
.team-chat-full {
  min-height: calc(100vh - 210px);
  height: calc(100vh - 210px);
}
.team-chat-full .team-chat-scroll-advanced,
.team-chat-popout .team-chat-scroll-advanced {
  height: auto;
  min-height: 0;
}
.team-chat-popout-shell {
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
  background: #050a12;
  overflow: hidden;
}
.team-chat-popout {
  width: 100%;
  height: 100vh;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 12px;
}
.team-chat-popout .advanced-team-chat-heading {
  margin: 0 0 9px;
}
.team-chat-popout .advanced-team-chat-heading .eyebrow {
  display: none;
}
.team-chat-popout .advanced-team-chat-heading h2 {
  font-size: 16px;
}
.team-chat-page-heading {
  align-items: center;
}
.team-chat-history-spacer {
  flex: 1 1 auto;
  min-height: 0;
}
.team-message-entry {
  width: 100%;
}
.team-message-author {
  margin: 0 5px 3px;
  color: #7f91aa;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}
.team-message-author:hover {
  color: var(--cyan);
}
.team-message-author.mine {
  align-self: flex-start;
}
.team-message-author.theirs {
  align-self: flex-end;
}
.team-message-bubble {
  min-width: 92px;
}
.team-chat-composer-area {
  position: relative;
  z-index: 14;
  margin-top: 10px;
  border-radius: 14px;
  background: #07101b;
  overflow: visible;
}
.team-chat-composer-v2 {
  margin-top: 0;
  display: grid;
  grid-template-columns: 42px 42px minmax(0, 1fr) 48px;
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
}
.team-chat-composer-v2 > input:not(.hidden-file-input) {
  min-width: 0;
  height: 46px;
}
.team-chat-composer-v2 .primary-button {
  min-height: 46px;
  height: 46px;
  padding: 0;
}
.team-plus-control {
  position: relative;
}
.team-plus-button.active {
  background: rgba(66,232,255,.09);
  color: var(--cyan);
}
.team-composer-dropup {
  position: absolute;
  z-index: 80;
  left: 0;
  bottom: 52px;
  width: 250px;
  padding: 6px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 14px;
  background: #08111f;
  box-shadow: 0 18px 50px rgba(0,0,0,.48);
}
.team-composer-dropup::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: -5px;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: #08111f;
  border-right: 1px solid rgba(148,163,184,.16);
  border-bottom: 1px solid rgba(148,163,184,.16);
}
.team-composer-dropup > button {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #cbd7e7;
  text-align: left;
  cursor: pointer;
}
.team-composer-dropup > button:hover {
  background: rgba(255,255,255,.055);
}
.team-composer-dropup > button > svg {
  color: var(--cyan);
}
.team-composer-dropup > button > span {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}
.team-composer-dropup strong {
  font-size: 11px;
}
.team-composer-dropup small {
  color: #71839b;
  font-size: 9px;
}
.team-poll-card {
  min-width: min(420px, 58vw);
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}
.team-poll-heading {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.team-poll-heading > svg {
  color: var(--violet);
  margin-top: 2px;
  flex: 0 0 auto;
}
.team-poll-heading > div {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}
.team-poll-heading strong {
  font-size: 13px;
  line-height: 1.35;
}
.team-poll-heading span {
  color: #71839b;
  font-size: 9px;
}
.team-poll-options {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}
.team-poll-option {
  position: relative;
  min-height: 36px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid rgba(148,163,184,.15);
  border-radius: 10px;
  background: rgba(2,8,17,.56);
  color: #d5dfed;
  cursor: pointer;
  text-align: left;
}
.team-poll-option:hover {
  border-color: rgba(155,123,255,.4);
}
.team-poll-option.selected {
  border-color: rgba(155,123,255,.64);
  box-shadow: inset 0 0 0 1px rgba(155,123,255,.12);
}
.team-poll-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(155,123,255,.13);
  pointer-events: none;
}
.team-poll-option.selected .team-poll-fill {
  background: rgba(155,123,255,.22);
}
.team-poll-option-label,
.team-poll-count {
  position: relative;
  z-index: 2;
}
.team-poll-option-label {
  flex: 1 1;
  font-size: 11px;
  font-weight: 750;
}
.team-poll-count {
  color: #8c9cb1;
  font-size: 10px;
  font-weight: 900;
}
.team-poll-footer {
  color: #6f8199;
  font-size: 9px;
}
.team-poll-modal {
  width: min(620px, 100%);
}
.poll-builder-options {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}
.poll-builder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  grid-gap: 7px;
  gap: 7px;
}
.poll-add-option {
  width: max-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  color: #b6c5d8;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.poll-add-option:hover {
  border-color: rgba(66,232,255,.28);
  color: #e4faff;
}
.poll-multiple-toggle {
  margin-top: 2px;
}
.team-chat-advanced .pending-files-v2 {
  border-radius: 14px 14px 0 0;
}
.team-chat-advanced .composer-inline-error {
  margin: 8px 10px 0;
}
@media (max-width: 760px) {
  .team-chat-embedded .team-chat-scroll-advanced { height: 420px; min-height: 420px; }
  .team-chat-full { height: calc(100vh - 170px); min-height: calc(100vh - 170px); }
  .team-chat-composer-v2 { grid-template-columns: 40px 40px minmax(0,1fr) 46px; }
  .team-poll-card { min-width: min(320px, 68vw); }
  .team-composer-dropup { width: 230px; }
}
.team-chat-standalone-page {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-rows: 72px minmax(0,1fr);
  background: #050a12;
  overflow: hidden;
}
.team-chat-standalone-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  grid-gap: 16px;
  gap: 16px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(4,9,17,.96);
}
.team-chat-standalone-header > div {
  display: grid;
  justify-items: center;
  grid-gap: 2px;
  gap: 2px;
}
.team-chat-standalone-header strong {
  font-size: 14px;
}
.team-chat-standalone-body {
  min-height: 0;
  padding: 14px;
}
.team-chat-standalone-body .team-chat-full {
  height: 100%;
  min-height: 0;
}
@media (max-width: 700px) {
  .team-chat-standalone-header { grid-template-columns: auto 1fr; padding: 0 10px; }
  .team-chat-standalone-header > div { justify-items: start; }
  .team-chat-standalone-body { padding: 8px; }
}

/* v0.2.14 messages team-chat pin + HUD full chat */
.conversation-list {
  flex: 1 1 auto;
  min-height: 0;
}
.messages-team-pin {
  flex: 0 0 auto;
  padding: 11px 12px 12px;
  border-top: 1px solid var(--line);
  background: rgba(3,8,16,.72);
}
.messages-team-pin-label {
  display: block;
  margin: 0 4px 7px;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .16em;
}
.messages-team-pin-list {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  max-height: 150px;
  overflow-y: auto;
}
.messages-team-row {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: rgba(255,255,255,.018);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.messages-team-row:hover,
.messages-team-row.active {
  background: rgba(66,232,255,.055);
  border-color: rgba(66,232,255,.19);
}
.messages-team-row.active {
  box-shadow: inset 3px 0 0 var(--cyan);
}
.messages-team-row img,
.messages-team-logo-fallback {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: rgba(66,232,255,.08);
  border: 1px solid rgba(66,232,255,.14);
  color: var(--cyan);
  font-size: 9px;
  font-weight: 1000;
}
.messages-team-row > span:last-child {
  min-width: 0;
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}
.messages-team-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.messages-team-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #72849d;
  font-size: 10px;
}
.chat-pane.team-chat-selected {
  display: block;
  min-height: 0;
  overflow: hidden;
}
.messages-team-chat-host {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.team-chat-messages {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 18px 20px 12px;
}
.team-chat-messages .team-chat-scroll-advanced {
  height: auto;
  min-height: 0;
}
.dm-plus-control {
  position: relative;
}
.dm-composer-dropup {
  z-index: 120;
}
.team-chat-anchor {
  scroll-margin-top: 92px;
}
.team-chat-full-page {
  min-height: calc(100vh - 110px);
}
.team-chat-full-page .team-chat-full {
  height: calc(100vh - 220px);
  min-height: 560px;
}
@media (max-width: 760px) {
  .messages-team-pin { display: none; }
  .team-chat-messages { min-height: 560px; padding: 12px 10px 8px; }
  .team-chat-full-page .team-chat-full { height: calc(100vh - 190px); min-height: 520px; }
}

/* v0.2.15 shared schedule note popovers */
.team-note-indicator {
  z-index: 12 !important;
  cursor: pointer;
  pointer-events: auto;
  transition: .14s ease;
}
.team-note-indicator:hover {
  color: var(--cyan) !important;
  border-color: rgba(66,232,255,.36);
  background: rgba(7,20,34,.88);
  transform: translateY(-1px);
}
.team-preview-slot.clickable-note {
  cursor: pointer;
}
.team-preview-slot.clickable-note:hover .team-preview-note {
  color: var(--cyan);
  border-color: rgba(66,232,255,.35);
}
.team-preview-note {
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.10);
}
.team-note-floating {
  position: fixed;
  z-index: 1400;
  width: 286px;
  max-height: min(320px, calc(100vh - 24px));
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(66,232,255,.25);
  border-radius: 15px;
  background: #08111f;
  box-shadow: 0 20px 55px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.02) inset;
  color: #dce7f5;
}
.team-note-floating::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  background: #08111f;
  transform: translateY(-50%) rotate(45deg);
}
.team-note-floating.right::before {
  left: -6px;
  border-left: 1px solid rgba(66,232,255,.25);
  border-bottom: 1px solid rgba(66,232,255,.25);
}
.team-note-floating.left::before {
  right: -6px;
  border-right: 1px solid rgba(66,232,255,.25);
  border-top: 1px solid rgba(66,232,255,.25);
}
.team-note-floating-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: #8597af;
  cursor: pointer;
}
.team-note-floating-close:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.team-note-floating-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 28px;
  color: var(--cyan);
}
.team-note-floating-title strong {
  color: #f3f7fc;
  font-size: 12px;
}
.team-note-floating-list {
  display: grid;
  grid-gap: 9px;
  gap: 9px;
  margin-top: 11px;
}
.team-note-floating-entry {
  padding: 10px 11px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
}
.team-note-floating-entry b {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 10px;
  line-height: 1.2;
}
.team-note-floating-entry p {
  margin: 0;
  color: #c3cfdf;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .team-note-floating {
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 82px;
    width: auto;
  }
  .team-note-floating::before { display: none; }
}

/* v0.2.16 schedule, public teams and profile connections */
.selection-bar-idle {
  opacity: .82;
}
.selection-bar button:disabled {
  opacity: .38;
  cursor: not-allowed;
  filter: saturate(.55);
}
.team-public-content {
  margin-top: 16px;
}
.team-public-roster {
  padding: 24px;
}
.roster-profile-link {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}
.roster-profile-link > div:last-child {
  min-width: 0;
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}
.roster-profile-link strong { font-size: 13px; }
.roster-profile-link span { font-size: 11px; color: #75839a; }
.public-roster-role {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-edit-grid-v2 {
  align-items: start;
}
.profile-edit-stack {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}
.connections-panel {
  gap: 10px;
}
.connection-row {
  min-height: 70px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(148,163,184,.13);
  border-radius: 15px;
  background: rgba(255,255,255,.018);
}
.connection-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(66,232,255,.075);
  border: 1px solid rgba(66,232,255,.14);
}
.connection-icon.twitch { color:#c4aeff; background:rgba(145,70,255,.09); border-color:rgba(145,70,255,.2); }
.connection-icon.youtube { color:#ff8a92; background:rgba(255,45,45,.08); border-color:rgba(255,80,80,.17); }
.connection-icon.riot { color:#f1f5f9; background:rgba(255,255,255,.045); border-color:rgba(255,255,255,.1); }
.connection-copy {
  min-width: 0;
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}
.connection-copy strong { font-size: 13px; }
.connection-copy span { color:#74869f; font-size:10px; line-height:1.4; }
.connection-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.connection-unavailable {
  padding: 7px 9px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 10px;
  color: #6f8199;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.connection-row-editable {
  grid-template-columns: 44px minmax(170px, 1fr) minmax(220px, .7fr);
}
.discord-user-field {
  min-height: 42px;
  display: grid !important;
  grid-template-columns: 28px minmax(0,1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  overflow: hidden;
}
.discord-user-field > span {
  height: 100%;
  display: grid;
  place-items: center;
  color: #7890ad;
  border-right: 1px solid var(--line);
  font-size: 12px;
}
.discord-user-field input {
  min-height: 40px !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 10px !important;
  outline: none;
}
.profile-social-static {
  cursor: default;
  grid-template-columns: auto 1fr;
}
@media (max-width: 900px) {
  .connection-row,
  .connection-row-editable { grid-template-columns: 42px minmax(0,1fr); }
  .connection-actions,
  .discord-user-field { grid-column: 1 / -1; margin-left: 54px; }
  .connection-actions { justify-content: flex-start; }
  .public-roster-role { flex-wrap: wrap; justify-content: flex-end; }
}

/* v0.2.17 roster owner/functional role alignment */
.roster-row {
  grid-template-columns: auto minmax(0, 1fr) minmax(230px, max-content);
}
.member-role-inline {
  width: max-content;
  max-width: none;
  flex-wrap: nowrap;
  white-space: nowrap;
  justify-self: end;
}
.member-role-inline .owner-role {
  flex: 0 0 auto;
}
.member-role-inline .inline-role-select,
.member-role-inline .functional-role {
  flex: 0 0 auto;
}
@media (max-width: 620px) {
  .roster-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .member-role-inline {
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
    justify-self: stretch;
  }
}

/* v0.2.18 simple profile links */
.profile-social-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.profile-social-icon-wrap {
  position: relative;
}
.profile-social-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(255,255,255,.025);
  color: #aab8ca;
  cursor: pointer;
  transition: .15s ease;
  text-decoration: none;
}
.profile-social-icon:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.055);
  border-color: rgba(66,232,255,.28);
  color: #fff;
}
.profile-social-icon.discord { color: #a9b9ff; }
.profile-social-icon.twitch { color: #b79cff; }
.profile-social-icon.youtube { color: #ff8c9a; }
.profile-social-icon.tracker { color: #74e9ff; }
.profile-social-copied {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 30;
  white-space: nowrap;
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid rgba(66,232,255,.22);
  background: #08111f;
  color: #dffaff;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.connection-row-editable > input {
  width: min(390px, 100%);
  justify-self: end;
}

@media (max-width: 900px) {
  .connection-row-editable > input {
    grid-column: 1 / -1;
    margin-left: 54px;
    width: calc(100% - 54px);
    justify-self: stretch;
  }
}

/* v0.2.19 automatic VALORANT rank from Tracker profile */
.profile-rank-badge {
  min-height: 62px;
  margin: 16px 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  overflow: visible;
}
.profile-rank-badge img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 7px 16px rgba(0,0,0,.32));
}
.profile-rank-badge span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.15);
  background: rgba(255,255,255,.025);
  color: #cbd7e8;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* v0.2.20 persistent VALORANT rank badge */
.profile-rank-badge.is-unranked { color: #8797ad; }
.profile-rank-fallback-icon {
  width: 48px;
  height: 48px;
  display: block;
  filter: drop-shadow(0 7px 16px rgba(0,0,0,.28));
}

/* v0.2.21 profile team badge order + rank spacing */
.profile-team-badges-v3 {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.profile-team-badges-v3 .profile-owner-badge {
  order: -1;
}
.profile-team-badges-v3 .profile-role-badge {
  order: 0;
}
.profile-rank-badge {
  width: 100%;
  align-self: center;
  justify-self: center;
  justify-content: center;
  margin: 16px 0 14px;
}
.profile-rank-badge img,
.profile-rank-fallback-icon {
  margin: 0 auto;
}

.profile-view-card .profile-rank-badge {
  min-height: 62px;
}
.profile-view-card .profile-rank-badge img,
.profile-view-card .profile-rank-fallback-icon {
  width: 56px;
  height: 56px;
}

@media (max-width: 760px) {
  .profile-team-badges-v3 {
    justify-content: flex-start;
  }
}

/* v0.2.22 profile links vertical alignment */
.profile-view-content {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-content: initial;
}
.profile-view-content > .profile-view-section:last-child {
  width: 100%;
  margin-top: auto;
  text-align: center;
}
.profile-view-content > .profile-view-section:last-child .profile-social-icons {
  justify-content: center;
}
.profile-view-content > .profile-view-section:last-child > p {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 760px) {
  .profile-view-content {
    min-height: 330px;
  }
}

/* v0.2.23 team roster rank + owner/role alignment */
.team-roster-row-ranked {
  grid-template-columns: minmax(0, 1fr) 58px minmax(230px, max-content) !important;
  gap: 14px;
}
.team-roster-row-ranked .roster-profile-link {
  min-width: 0;
}
.team-roster-rank {
  width: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}
.team-roster-rank .profile-rank-badge {
  width: 44px;
  min-height: 44px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-roster-rank .profile-rank-badge img,
.team-roster-rank .profile-rank-fallback-icon {
  width: 40px;
  height: 40px;
  margin: 0;
}
.team-roster-row-ranked .member-role-inline,
.team-roster-row-ranked .public-roster-role {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  width: max-content;
  min-width: 230px;
  justify-self: end;
  white-space: nowrap;
}
.team-roster-row-ranked .member-role-inline .owner-role,
.team-roster-row-ranked .public-roster-role .profile-owner-badge {
  order: -1;
  flex: 0 0 auto;
}
.team-roster-row-ranked .member-role-inline .inline-role-select,
.team-roster-row-ranked .member-role-inline .functional-role,
.team-roster-row-ranked .public-roster-role .role-pill {
  order: 0;
  flex: 0 0 auto;
}
@media (max-width: 760px) {
  .team-roster-row-ranked {
    grid-template-columns: minmax(0, 1fr) 48px !important;
  }
  .team-roster-rank {
    grid-column: 2;
    grid-row: 1;
    width: 48px;
  }
  .team-roster-row-ranked .member-role-inline,
  .team-roster-row-ranked .public-roster-role {
    grid-column: 1 / -1;
    width: auto;
    min-width: 0;
    justify-self: start;
    justify-content: flex-start !important;
    padding-left: 0;
  }
}

/* v0.2.24 tracker Riot ID fields + roster rank position */
.tracker-connection-row {
  align-items: start;
}
.tracker-edit-fields {
  width: min(440px, 100%);
  justify-self: end;
  display: grid;
  grid-gap: 9px;
  gap: 9px;
}
.tracker-riot-id-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  grid-gap: 8px;
  gap: 8px;
}
.tracker-riot-id-fields label,
.tracker-link-field {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
}
.tracker-riot-id-fields label > span,
.tracker-link-field > span {
  color: #7f91a9;
  font-size: 9px;
  font-weight: 800;
}
.tracker-riot-id-fields input,
.tracker-link-field input {
  width: 100%;
}
.tracker-tag-input {
  min-height: 42px;
  display: grid;
  grid-template-columns: 27px minmax(0,1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  overflow: hidden;
}
.tracker-tag-input > span {
  height: 100%;
  display: grid;
  place-items: center;
  color: #7890ad;
  border-right: 1px solid var(--line);
  font-size: 12px;
}
.tracker-tag-input input {
  min-height: 40px !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 9px !important;
  outline: none;
}

/* Keep the rank directly beside the player identity instead of centering it in the roster row. */
.team-roster-row-ranked {
  grid-template-columns: max-content 52px minmax(230px, 1fr) !important;
  column-gap: 12px !important;
}
.team-roster-row-ranked .roster-profile-link {
  width: max-content;
  max-width: 280px;
}
.team-roster-rank {
  width: 52px;
  justify-self: start !important;
}
.team-roster-row-ranked .member-role-inline,
.team-roster-row-ranked .public-roster-role {
  justify-self: end !important;
}

@media (max-width: 900px) {
  .tracker-edit-fields {
    grid-column: 1 / -1;
    width: calc(100% - 54px);
    margin-left: 54px;
    justify-self: stretch;
  }
}
@media (max-width: 620px) {
  .tracker-riot-id-fields {
    grid-template-columns: 1fr;
  }
  .team-roster-row-ranked {
    grid-template-columns: minmax(0,1fr) 48px !important;
  }
  .team-roster-row-ranked .roster-profile-link {
    width: auto;
    max-width: none;
  }
  .team-roster-rank {
    grid-column: 2;
    grid-row: 1;
  }
}

/* v0.2.25 public team links */
.team-hero-side {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.team-external-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
  min-height: 52px;
}
.team-external-link {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(255,255,255,.025);
  color: #b9c7da;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.team-external-link span {
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: -.02em;
}
.team-external-link:hover {
  transform: translateY(-2px);
  border-color: rgba(66,232,255,.34);
  background: rgba(66,232,255,.07);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  color: #e9fbff;
}
.team-external-link.vlr:hover { border-color: rgba(255,96,96,.38); background: rgba(255,96,96,.07); }
.team-external-link.liquipedia:hover { border-color: rgba(76,180,255,.4); background: rgba(76,180,255,.08); }
.team-external-link.twitter span { font-size: 18px; font-weight: 800; }

.team-link-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(148,163,184,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.018);
}
.team-link-fields-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 2px;
}
.team-link-fields-heading small {
  color: #6f8098;
  font-size: 10px;
  font-weight: 600;
}
.team-link-fields label { min-width: 0; }
.team-link-fields input { min-width: 0; width: 100%; }

@media (max-width: 1050px) {
  .team-hero-side {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .team-external-links { justify-content: flex-start; }
  .team-link-fields { grid-template-columns: 1fr; }
  .team-link-fields-heading { display: grid; grid-gap: 4px; gap: 4px; }
}

/* v0.2.26 branded team link icons */
.team-external-link .team-link-logo {
  width: 25px;
  height: 25px;
  display: block;
  object-fit: contain;
}
.team-external-link.vlr .team-link-logo {
  border-radius: 5px;
}
.team-external-link.liquipedia .team-link-logo {
  border-radius: 0;
}
.team-external-link.twitter .team-link-logo {
  width: 22px;
  height: 22px;
  color: #f3f7fb;
}
.team-external-link:hover .team-link-logo {
  transform: scale(1.06);
}
.team-external-link .team-link-logo {
  transition: transform .15s ease;
}

/* v0.2.28 transparent Liquipedia logo */
.team-external-link.liquipedia .team-link-logo {
  width: 24px;
  height: 24px;
}


/* v0.2.32 member management + rank emblem spacing */
.member-management-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.kick-member-button {
  color: #ff9ca5;
  border-color: rgba(255,95,109,.22);
  background: rgba(255,95,109,.055);
}
.kick-member-button:hover {
  color: #ffc0c6;
  border-color: rgba(255,95,109,.4);
  background: rgba(255,95,109,.11);
}
.roster-row-manage {
  grid-template-columns: auto minmax(140px,1fr) minmax(330px,auto);
}

/* Profile rank: give tall emblems room so Ascendant/Immortal etc. never clip. */
.profile-view-card .profile-rank-badge {
  width: 76px;
  min-height: 76px;
  height: 76px;
  margin: 18px auto 16px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  line-height: 0;
}
.profile-view-card .profile-rank-badge img,
.profile-view-card .profile-rank-fallback-icon {
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Team roster rank: same no-crop behavior, just smaller. */
.team-roster-rank {
  overflow: visible;
}
.team-roster-rank .profile-rank-badge {
  width: 50px;
  min-height: 50px;
  height: 50px;
  padding: 6px;
  margin: 0;
  overflow: visible;
  line-height: 0;
}
.team-roster-rank .profile-rank-badge img,
.team-roster-rank .profile-rank-fallback-icon {
  width: 38px;
  height: 38px;
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .roster-row-manage {
    grid-template-columns: auto minmax(0,1fr);
  }
  .member-management-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 56px;
  }
}

