:root {
  color-scheme: light;
  --bg: #e8effa; --surface: #f9fcffcc; --ink: #182b49;
  --muted: #526481; --line: #ffffffb3; --green: #275bc4;
  --soft-glass: #ffffff6b; --soft-inset: inset 0 1px 4px #47678c0b;
  --shadow: 0 12px 32px #3458820d, inset 0 1px 0 #ffffffde;
}
.team-banner,.team-card { padding:20px; border:1px solid #ffffffcf; border-radius:20px; background:#ffffff70; box-shadow:var(--shadow); min-width:0; }
.team-banner { margin-bottom:22px; background:#edf4ffad; }
.team-banner p { margin:10px 0 0; line-height:1.65; font-size:13px; }
.team-tag { display:inline-block; font-size:12px; color:#264f9c; background:#e1ecff; padding:6px 10px; border-radius:9px; }
.team-toolbar,.team-filters,.team-heading { display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-bottom:20px; }
#team label { display:grid; gap:8px; font-size:13px; min-width:0; }
#team input,#team select,#team textarea { width:100%; min-width:0; }
.team-toolbar label,.team-filters label { flex:1; min-width:160px!important; }
.team-toolbar p { flex:2; color:var(--muted); font-size:14px; line-height:1.6; }
.team-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:22px; }
.team-tabs [aria-selected=true] { background:#2d60c5; color:white; }
.team-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-bottom:20px; }
.team-card h3 { margin:14px 0; }
#team form { display:grid; gap:16px; }
#team small { display:block; color:var(--muted); font-size:12px; line-height:1.6; }
.team-inbox { display:grid; grid-template-columns:minmax(200px, .85fr) minmax(0,1.5fr); gap:18px; margin-bottom:20px; align-items:start; }
.team-thread { display:grid; gap:9px; width:100%; text-align:left; margin-bottom:10px; padding:16px; white-space:normal; overflow-wrap:anywhere; }
.team-thread span { font-size:12px; color:var(--muted); }
.team-thread[aria-pressed=true] { background:#e0ecff; border-color:#7b9ee2; }
.team-chat { padding:12px 0; max-height:360px; overflow-y:auto; }
.team-chat p { padding:14px; border-radius:14px; background:#ffffffb3; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; }
.team-chat .team-reply { background:#dceaff; margin-left:25px; }
.team-number { display:block; font-size:34px; margin-top:15px; }
.reference-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin:20px 0; }
.reference-card { display:grid; gap:16px; align-content:start; border:1px solid var(--line); background:var(--surface); border-radius:18px; padding:20px; min-width:0; }
#referencePreview { width:100%; max-height:350px; background:#111; border-radius:12px; }
.reference-cut { display:grid; grid-template-columns:24px 130px minmax(0,1fr) 44px; align-items:end; gap:12px; padding:14px 0; border-top:1px solid var(--line); }
.reference-cut label { display:grid; gap:8px; font-size:12px; min-width:0; }
.reference-cut input { min-width:0; width:100%; }
#referenceTool small,#referenceMeta,#referenceNotice { font-size:12px; line-height:1.7; color:var(--muted); }
#referenceNotice { padding-top:12px; }
.reference-consent { display:flex; align-items:center; gap:12px; margin:18px 0; font-size:13px; line-height:1.6; }
.reference-consent input { width:20px; height:20px; flex:0 0 20px; }
.leads-heading,.lead-actions,.lead-filters { display:flex; gap:14px; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-bottom:24px; }
.dash-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:16px; margin:36px 0 12px; }
.dash-toolbar>div { flex:1 1 320px; }.dash-toolbar h2 { margin:0 0 8px; font-size:25px; }.dash-toolbar p { margin:0; color:var(--muted); font-size:13px; line-height:1.6; max-width:60ch; }
.dash-toolbar label { display:grid;gap:7px;font-size:11px;color:var(--muted); }.dash-toolbar select { min-height:44px; }
#dashNotice { color:var(--muted); font-size:12px; min-height:18px; }
.dash-history { margin-top:18px;font-size:12px;color:var(--muted); }.dash-history summary { cursor:pointer;min-height:36px;display:flex;align-items:center; }.dash-stale { color:#ffbf99;font-size:12px;line-height:1.6; }
#platformOverview { margin-bottom:24px; }
.dash-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:20px 0; }
.dash-kpis article,.dash-panel { padding:24px; border:1px solid #ffffff18; border-radius:20px; background:linear-gradient(135deg,#ffffff09,#ffffff04); min-width:0; }
.dash-kpis article>span { font-size:13px; color:var(--muted); }.dash-kpis article>strong { display:block;font-size:36px; margin:18px 0 12px; letter-spacing:-1px; }.dash-kpis small,.dash-panel small { display:block; font-size:11px; color:var(--muted); line-height:1.6; }
.dash-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-bottom:20px; }
.dash-panel-title { display:flex; gap:12px; align-items:center; justify-content:space-between; margin-bottom:20px; }.dash-panel-title h3 { margin:0;font-size:18px; }.dash-panel-title button { box-shadow:none; font-size:11px; padding:8px 12px; white-space:nowrap; }
.dash-label { color:var(--muted); font-size:10px; text-align:right; }
.dash-row { display:flex; align-items:center; gap:14px; justify-content:space-between; padding:14px 0; border-bottom:1px solid #ffffff0e; }.dash-row:last-child { border-bottom:0; }.dash-row>div { min-width:0; }.dash-row strong { font-size:13px; font-weight:500; overflow-wrap:anywhere; }.dash-row>span { font-size:14px; color:#ffd0ba; text-align:right; flex:0 0 auto; max-width:45%; overflow-wrap:anywhere; }
.dash-empty { font-size:13px; color:var(--muted); line-height:1.7; padding:12px 0; }
.dash-stage { margin:18px 0; }.dash-stage>div:first-child { display:flex;justify-content:space-between;font-size:13px;margin-bottom:10px; }.dash-track { height:7px; background:#ffffff0b; border-radius:8px;overflow:hidden; }.dash-track span { display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#ffa58b,#bd97dc); }
.dash-activity { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin:26px 0 16px; }.dash-day { text-align:center;min-width:0; }.dash-day>strong { font-size:13px; }.dash-column { height:110px;display:flex;align-items:end;background:#ffffff04;border-radius:9px;margin:12px auto 8px;max-width:38px;overflow:hidden; }.dash-column span { width:100%;background:linear-gradient(0deg,#a181be,#ffa58b);border-radius:7px; }.dash-day time { font-size:10px;color:var(--muted); }
.dash-post { display:grid;text-align:left;width:100%;gap:8px;box-shadow:none;padding:15px 0;background:transparent!important;border:0;border-bottom:1px solid #ffffff12;border-radius:0;white-space:normal; }.dash-post strong { font-size:14px;overflow-wrap:anywhere; }
@media(max-width:1000px) { .dash-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) { .dash-columns { grid-template-columns:minmax(0,1fr); }.dash-panel,.dash-kpis article { padding:18px; }.dash-panel-title { flex-wrap:wrap; }.dash-activity { gap:5px; }.dash-toolbar>label { flex:1; }.dash-kpis article>strong { font-size:30px; } }
.leads-heading h2 { font-size:32px; margin:14px 0 8px; }
.leads-heading p,.leads-info,#leadNotice { color:var(--muted); line-height:1.7; font-size:13px; }
.leads-info { padding:18px; border:1px solid var(--line); border-radius:14px; }
.lead-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:24px 0; }
.lead-stats article,.lead-box { background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:22px; min-width:0; }
.lead-stats span { color:var(--muted); font-size:12px; }.lead-stats strong { display:block; font-size:32px; margin-top:14px; }
.lead-actions { justify-content:flex-start; }.lead-file { display:grid; gap:8px; font-size:12px; }
.lead-filters { margin-top:24px; }.lead-filters input { flex:2; }.lead-filters select { flex:1; }.lead-filters>* { min-width:150px; }
.lead-workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; align-items:start; }
.lead-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:18px 0; }
#leads label,#leadEdit { display:grid; gap:10px; font-size:13px; }#leadEdit { gap:18px; }
#leads input,#leads textarea,#leads select { width:100%; min-width:0; }#leads small { font-size:12px; color:var(--muted); line-height:1.6; }
.lead-item { display:grid; width:100%; text-align:left; gap:10px; padding:20px; margin-bottom:12px; white-space:normal; overflow-wrap:anywhere; border:1px solid var(--line); background:var(--surface); }
.lead-item[aria-pressed=true] { border-color:#ffaa9370; background:#d7917b18; }.lead-item .team-tag { justify-self:start; }.lead-item em { font-size:12px; color:#ffae97; }
.lead-empty { text-align:center; padding:60px 20px; color:var(--muted); }.lead-box li { padding:8px 0; line-height:1.6; font-size:12px; }#leadDetail p { overflow-wrap:anywhere; }
@media(max-width:700px) { .lead-workspace,.lead-fields { grid-template-columns:minmax(0,1fr); }.lead-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }.lead-filters>* { flex:1 1 100%!important; }.lead-actions button { flex:1; } }
@media(max-width:700px) { .reference-grid { grid-template-columns:minmax(0,1fr); } .reference-cut { grid-template-columns:24px minmax(0,1fr) 44px; } .reference-cut label:nth-of-type(2) { grid-column:2; } .reference-cut button { grid-column:3;grid-row:1/3; } }
.team-demo-caption { grid-column:1/-1; margin:0; color:var(--muted); font-size:13px; }
.team-platforms { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.team-metric-list { margin:0; }
.team-metric-list div { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-top:1px solid var(--line); font-size:13px; }
.team-metric-list dd { font-weight:700; margin:0; white-space:nowrap; }
.team-room { min-height:260px; }
#teamRoleBadge { margin-top:10px; }
@media(max-width:850px) { .team-platforms { grid-template-columns:minmax(0,1fr); } }
#teamMessageList { display:grid; gap:12px; margin-top:20px; }
#teamMessageList p { white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:700px) { .team-inbox,.team-cards { grid-template-columns:minmax(0,1fr); } .team-toolbar { align-items:stretch; } .team-toolbar p { flex-basis:100%; } .team-tabs button { flex:1 1 40%; } }
html { min-height: 100%; scroll-behavior: auto; }
body { background: #e8effa; color: var(--ink); letter-spacing: 0; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: linear-gradient(120deg,#d9eff9,#dce9fc 28%,#e5e1fa 55%,#e3edff 78%,#e0f4f7); background-size: 250% 250%; animation: liquid-sky 24s ease-in-out infinite alternate; pointer-events: none; }
@keyframes liquid-sky { from { background-position: 0% 20%; } to { background-position: 100% 80%; } }
body.motion-off::before,body.tab-hidden::before { animation-play-state: paused; }
.app-shell { grid-template-columns: 248px minmax(0,1fr); padding: 20px; gap: 28px; }
.sidebar { top: 20px; height: calc(100dvh - 40px); padding: 25px 16px; border: 1px solid #ffffffcf; border-radius: 24px; background: #ffffff73; box-shadow: var(--shadow); gap: 32px; backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); }
.brand { padding: 0 8px; }
.brand strong { color: #1c3153; font-size: 21px; }
.brand-mark { color: #285fc0; background: #ffffff91; border: 1px solid #fff; border-radius: 14px; box-shadow: var(--shadow); }
.nav-list { gap: 7px; }
.nav-list a { display: flex; align-items: center; gap: 12px; border: 1px solid transparent; padding: 12px 14px; color: #4d6080; font-size: 14px; min-height: 46px; border-radius: 13px; transition: background .18s,transform .18s; }
.nav-list img { width: 21px; height: 21px; flex: 0 0 21px; filter: saturate(1.5) brightness(.65); }
.nav-list a:hover { background: #ffffff80; color: #234a96; transform: translateX(2px); }
.nav-list a.active { color: #204c9c; background: #ffffffb3; border-color: #ffffffeb; box-shadow: 0 4px 14px #5175a310; }
.motion-control { margin-top: auto; display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; padding: 12px; color: var(--muted); }
.motion-control input { width: 18px; height: 18px; accent-color: #3567cf; }
.workspace { padding: 22px 24px 12px 0; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.topbar > div { margin-right: auto; min-width: 0; }
.topbar h1 { margin: 0; font-size: 32px; line-height: 1.2; color: #1b3151; font-weight: 700; letter-spacing: 0; }
.topbar h1 em { font-family: Georgia,serif; font-weight: 400; color: #3562bf; }
#mobileMenu { display: none; }
button,.ghost-btn,.idea-form button,.card-actions button,.studio-section button,.audience-section button { min-height: 44px; color: #24436b; background: #ffffff85; border: 1px solid #ffffffdb; box-shadow: 0 4px 14px #456d930a,inset 0 1px #ffffffd9; border-radius: 12px; transition: transform .16s,background .16s,box-shadow .16s; }
button:hover,.ghost-btn:hover { background: #ffffffe8; color: #214c96; box-shadow: 0 6px 18px #426da617; transform: translateY(-1px); }
button:active,.ghost-btn:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.primary-btn,.primary-btn:hover { background: #3265c9; border-color: #5a82d7; color: #fff; box-shadow: 0 6px 16px #3265c92a,inset 0 1px #ffffff35; }
input,select,textarea { background: #ffffff85; color: #1c3152; border: 1px solid #ffffffdf; border-radius: 11px; box-shadow: var(--soft-inset); }
input::placeholder,textarea::placeholder { color: #6e7f99; }
select option { background: #f5f8ff; color: #1c3152; }
input[type=file]::file-selector-button { color: #355786; background: #e6eefb; border-color: #fff; }
.workspace-tools { margin-bottom: 18px; }
.content-grid { display: block; }
.content-grid > section { margin-bottom: 24px; }
.panel,.studio-section,.audience-section,.api-settings-section { background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; min-width: 0; }
.connections,.stats-grid article,.api-settings-card,.studio-preview,.studio-scene,.audience-channel,.calendar-item,.idea-item,.post-card,.inbox-detail { background: #ffffff70; border: 1px solid #ffffffc2; box-shadow: var(--shadow); border-radius: 18px; backdrop-filter: blur(14px) saturate(1.12); -webkit-backdrop-filter: blur(14px) saturate(1.12); }
.connections { padding: 22px 25px; margin-bottom: 30px; }
.stats-grid { gap: 18px; }
.stats-grid article { padding: 24px; }
.stats-grid strong,.stats-grid article:nth-child(n) strong { color: #275cc0; }
h1,h2,h3,.post-title,.audience-channel strong { color: #1c3152; letter-spacing: 0; }
h2 { font-size: 21px; }
h3 { font-size: 16px; }
.panel-header { margin-bottom: 20px; }
.studio-label,.studio-fields label,.auth-screen label,.studio-settings,.audience-history th,.audience-history td,#integrationStatus,#publicationHistory,#notice,.calendar-item time { color: var(--muted); }
.studio-settings { border-color: #9bb4da55; }
.studio-settings summary { min-height: 44px; padding-top: 12px; cursor: pointer; color: #355882; }
.studio-settings[open] { animation: glass-enter .25s ease-out; }
.lane,.bar-chart,.insights,.inbox-layout,#studioEmptyPreview { background: #ffffff35; border-color: #ffffffaa; box-shadow: none; }
.lane { border-radius: 15px; }
.lane h3 { font-size: 14px; color: #536988; }
.post-card { padding: 16px; }
.bar { background: #6992dd; }
.inbox-message { background: #ffffffad; color: var(--ink); border-color: #d2dff3; }
.inbox-message[data-direction=out],.inbox-threads button[aria-pressed=true] { background: #dfeafd; }
.auth-screen { background: transparent; }
.auth-screen form,dialog { background: #f4f8f5d9; border: 1px solid #ffffffe8; border-radius: 24px; backdrop-filter: blur(22px) saturate(1.2); box-shadow: 0 22px 70px #3f5e8530,inset 0 1px #fff; color: var(--ink); }
.auth-screen h1 { color: #2d5799; }
dialog form { background: transparent; border: 0; box-shadow: none; }
dialog::backdrop { background: #35558635; backdrop-filter: blur(5px); }
#closeDialog { background: #ffffff8c; border-color: #fff; color: #294b7f; }
.workspace-footer { margin-top: 46px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #ffffff6b; border: 1px solid #ffffffbf; border-radius: 18px; backdrop-filter: blur(14px); color: #536988; }
.workspace-footer > div { display: flex; gap: 10px; }
.workspace-footer a { display: inline-flex; align-items: center; padding: 10px 16px; text-decoration: none; }
.page-enter { animation: glass-enter .3s ease-out; }
@keyframes glass-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
body.motion-off *,body.tab-hidden * { animation: none !important; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline: 3px solid #527ce1; outline-offset: 3px; }
@supports not (backdrop-filter: blur(1px)) { .sidebar,.connections,.stats-grid article,.api-settings-card,.studio-preview,.studio-scene,.audience-channel,.calendar-item,.idea-item,.post-card,.inbox-detail,.workspace-footer { background: #f2f6fd; } }
@media(max-width:1100px) { .app-shell { grid-template-columns: 215px minmax(0,1fr); gap: 22px; } .workspace { padding-right: 0; } }
@media(max-width:850px) {
  .app-shell { display: block; padding: 16px; }
  .sidebar { display: none; height: auto; position: static; margin-bottom: 18px; border-radius: 18px; }
  .app-shell.menu-open .sidebar { display: flex; }
  .sidebar .nav-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nav-list a { text-align: left; font-size: 13px; }
  .workspace { padding: 4px 0 16px; }
  #mobileMenu { display: block; width: 44px; flex: 0 0 44px; padding: 0; font-size: 21px; }
  .topbar { flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
  .topbar > div { flex: 1; grid-column: auto; }
  .topbar h1 { font-size: 26px; overflow-wrap: anywhere; }
  .connections,.stats-grid article,.api-settings-card,.studio-scene,.audience-channel { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .workspace-footer { padding: 18px; flex-wrap: wrap; }
}
@media(max-width:560px) {
  .topbar h1 { font-size: 23px; }
  .topbar #newPostBtn { order: 3; margin-left: 54px; }
  .topbar #logoutBtn { order: 4; }
  .stats-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .stats-grid article { padding: 20px; }
  .connections { padding: 20px; }
  .sidebar .nav-list { grid-template-columns: minmax(0,1fr); }
  .workspace-footer > div { width: 100%; flex-wrap: wrap; }
  .workspace-footer > div > * { flex: 1; justify-content: center; }
  .auth-screen { padding: 18px; }
  .auth-screen form { padding: 24px; }
}

/* Finished glass workspace: consistent controls, restrained motion, compact mobile header. */
body { background-attachment: scroll; isolation: isolate; }
body::before { z-index: -1; }
button,input,select,textarea { font-family: inherit; }
button { cursor: pointer; }
.workspace-intro { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 58ch; }
.topbar > div { flex: 1 1 auto; }
.connections { background: linear-gradient(120deg,#ffffffa8,#ffffff54); }
#integrationStatus > * { padding: 7px 12px; background: #ffffff70; border: 1px solid #ffffffae; border-radius: 10px; }
.platform-stats article { display: flex; flex-direction: column; }
.platform-stats article h3 { font-size: 18px; }
.platform-stats article > p:last-child { margin-top: auto; }
.panel-header { align-items: center; }
.panel-header h2 { margin: 0; }
.workspace-footer { margin-top: 32px; }
body.motion-off *,body.motion-off *::before,body.motion-off *::after { animation: none!important; transition: none!important; }
dialog { opacity: 0; transform: translateY(12px) scale(.985); transition: opacity .2s ease,transform .24s cubic-bezier(.22,1,.36,1),display .24s allow-discrete,overlay .24s allow-discrete; }
dialog[open] { opacity: 1; transform: none; }
dialog::backdrop { backdrop-filter: none; opacity: 0; transition: opacity .2s,display .24s allow-discrete,overlay .24s allow-discrete; }
dialog[open]::backdrop { opacity: 1; }
@starting-style { dialog[open] { opacity: 0; transform: translateY(12px) scale(.985); } dialog[open]::backdrop { opacity: 0; } }
@media(max-width:850px) {
 .topbar { flex-direction: row; align-items: center; justify-content: flex-start; }
 .topbar > div { order: 0; flex: 1 1 calc(100% - 60px); }
 #mobileMenu { order: -1; }
 .topbar #newPostBtn { order: 1; margin-left: 0; }
 .topbar #logoutBtn { order: 2; margin-left: auto; }
 .topbar h1 { font-size: clamp(24px,5vw,30px); }
 .workspace-intro { font-size: 13px; }
 .sidebar { overflow: hidden; }
 .app-shell.menu-open .sidebar { animation: glass-enter .22s ease-out; }
 .panel-header { flex-direction: row; justify-content: space-between; }
 .panel-header button { width: auto; }
 .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .platform-stats { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:420px) { .stats-grid { grid-template-columns:minmax(0,1fr); } .topbar #newPostBtn,.topbar #logoutBtn { font-size:13px; padding-inline:15px; } }
@media(prefers-reduced-motion:reduce) { dialog,dialog::backdrop { transition:none!important; } }
@media(max-width:560px) {
 .topbar { display:grid; grid-template-columns:44px minmax(0,1fr) auto; }
 #mobileMenu { grid-column:1; grid-row:1; }
 .topbar > div { grid-column:2 / 4; grid-row:1; margin:0; }
 .topbar #newPostBtn { grid-column:2; grid-row:2; justify-self:start; }
 .topbar #logoutBtn { grid-column:3; grid-row:2; }
 .studio-fields { display:grid; grid-template-columns:minmax(0,1fr); }
 .studio-fields > * { min-width:0; width:100%; }
}

/* Team workspace — graphite glass, coral accents, consistent spacing. */
#team { --team-accent:#ff9c87; }
#team .team-banner { display:flex; justify-content:space-between; gap:32px; align-items:center; padding:32px; border-color:#ffffff18; background:radial-gradient(ellipse at top right,#ce796325,transparent 65%),linear-gradient(130deg,#ffffff09,#ffffff03); box-shadow:none; border-radius:24px; }
#team .team-banner h2 { font-size:clamp(25px,3vw,38px); line-height:1.15; letter-spacing:-1px; margin:14px 0; }
.team-eyebrow { font-size:10px; letter-spacing:2px; color:#ffaf99; }
#team .team-banner p { color:var(--muted); font-size:14px; }
.team-banner-status { flex:0 0 auto; font-size:13px; color:var(--ink); }
.team-banner-status small { margin-top:12px; max-width:210px; }
.team-status-dot { display:inline-block; width:7px; height:7px; margin-right:8px; border-radius:50%; background:#ffae97; box-shadow:0 0 12px #ff8b6760; }
#team .team-toolbar { padding:20px 0 6px; gap:24px; }
#team .team-toolbar label { flex:0 1 230px; font-size:11px; letter-spacing:.3px; }
#team .team-toolbar p { font-size:13px; }
#team .team-tabs { padding:6px; border:1px solid #ffffff14; border-radius:15px; background:#00000020; gap:4px; }
#team .team-tabs button { box-shadow:none; border:0; background:transparent; font-size:13px; padding:12px 18px; flex:1; white-space:nowrap; }
#team .team-tabs [aria-selected=true] { background:linear-gradient(120deg,#f0927636,#b28add30); color:#ffd3c4; box-shadow:inset 0 0 0 1px #ffd6c51c; }
#team .team-card { background:linear-gradient(135deg,#ffffff09,#ffffff04); border:1px solid #ffffff16; border-radius:20px; box-shadow:none; padding:24px; }
#team .team-tag,#teamRoleBadge { background:#e6a18b16; color:#ffc2ac; border:1px solid #f5ba9b20; font-size:11px; }
#teamRoleBadge { padding:5px 12px; }
#team .team-heading h2 { font-size:20px; margin:8px 0; }
#team .team-number { font-size:clamp(28px,3vw,39px); font-weight:650; letter-spacing:-1.5px; margin:18px 0; }
#team .team-demo-caption { font-size:10px; letter-spacing:1.4px; margin:8px 0; }
#team .team-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
#team .team-platforms .team-heading { gap:6px; margin-bottom:10px; }
#team .team-platforms h3 { font-size:16px; }
#team .team-metric-list div { border-color:#ffffff0d; line-height:1.5; }
#team .team-metric-list dt { color:var(--muted); }
#team .team-metric-list dd { color:#ffe1d5; }
#team .team-thread { border:1px solid #ffffff10; background:#ffffff04; box-shadow:none; border-radius:16px; padding:18px; }
#team .team-thread[aria-pressed=true] { background:#f0a28c12; border-color:#f6ab8a55; }
#team .team-thread strong { font-size:14px; color:var(--ink); }
#team .team-thread span { line-height:1.55; }
#team .team-chat { padding:4px 0 16px; }
#team .team-chat p { width:fit-content; max-width:85%; background:#ffffff08; border:1px solid #ffffff0b; border-radius:3px 16px 16px; padding:14px 18px; font-size:14px; margin:12px 0; }
#team .team-chat .team-reply { margin-left:auto; background:#d7917b18; border-color:#f4b19321; border-radius:16px 3px 16px 16px; }
#team .team-chat small { font-size:10px; margin-bottom:6px; letter-spacing:.3px; color:#d3a99b; }
#team .team-room { min-height:270px; max-height:420px; }
#team #teamChatForm { border-top:1px solid #ffffff12; padding-top:20px; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:12px; }
#team #teamChatForm small { grid-column:1/-1; font-size:11px; }
#team textarea { resize:vertical; }
#team form button { justify-self:start; }
#team #teamChatForm button { min-height:54px; align-self:end; }
#teamNotice:empty { display:none; }
#teamNotice { color:#ffc0a9; padding:12px 0; font-size:13px; }
@media(min-width:1400px) { #team #teamReportCards { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:700px) { #team .team-banner { padding:22px; align-items:start; flex-direction:column; gap:18px; } #team .team-banner h2 { font-size:28px; } #team .team-tabs button { flex:1 1 40%; padding:12px; } #team .team-card { padding:18px; } #team .team-platforms { grid-template-columns:minmax(0,1fr); } #team .team-toolbar label { flex:1 1 100%; } #team .team-inbox { grid-template-columns:minmax(0,1fr); } }
@media(max-width:420px) { #team .team-cards { grid-template-columns:minmax(0,1fr); } #team #teamChatForm { grid-template-columns:minmax(0,1fr); } #team .team-chat p { max-width:95%; } }

/* White Liquid Glass: shared by every workspace view. */
.account-connect { margin:24px 0; padding:24px; border-radius:22px; border:1px solid var(--line); background:var(--surface); }
.account-connect p,.account-connect small { font-size:13px;line-height:1.7;color:var(--muted); }
.account-connect-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0; }
.connect-provider { border:1px solid var(--line);border-radius:16px;padding:20px;min-width:0; }
.connect-provider h4 { margin:0;font-size:18px; }.connect-provider code { display:block;font-size:11px;line-height:1.6;overflow-wrap:anywhere;margin-top:6px; }.connect-provider small { display:block;margin-top:18px; }
@media(max-width:700px) { .account-connect-grid { grid-template-columns:minmax(0,1fr); } }

/* Single material system. Transparency is intentional: the sky stays visible. */
:root {
 color-scheme:light; --bg:#e4ebfb; --ink:#203354; --muted:#526583;
 --green:#365fba; --line:#ffffffb8; --surface:#ffffff42;
 --glass:linear-gradient(135deg,#ffffff70,#ffffff2e 55%,#eaf2ff45);
 --shadow:0 12px 36px #3a548714,inset 0 1px 0 #ffffffed,inset 0 -1px 0 #ffffff50;
 --soft-inset:inset 0 2px 8px #44648a08;
}
html { background:var(--bg); }
body { background:transparent; color:var(--ink); isolation:isolate; }
body::before {
 z-index:-1; inset:-15%;
 background:radial-gradient(ellipse at 12% 18%,#b5dbfa 0%,transparent 48%),radial-gradient(ellipse at 80% 15%,#d3c5f5 0%,transparent 48%),radial-gradient(ellipse at 75% 85%,#c5ddfa 0%,transparent 50%),linear-gradient(135deg,#eef5ff,#e6e3fa 55%,#d7e9fc);
 background-size:140% 140%; animation:liquid-sky 28s ease-in-out infinite alternate;
}
.sidebar,.connections,.stats-grid article,.api-settings-card,.studio-preview,.studio-scene,.audience-channel,.calendar-item,.idea-item,.post-card,.inbox-detail,.dash-panel,.dash-kpis article,.lead-box,.lead-stats article,.reference-card,.account-connect,.connect-provider,#team .team-card,#team .team-banner,.workspace-footer {
 background:var(--glass); border:1px solid var(--line); border-radius:24px;
 box-shadow:var(--shadow); backdrop-filter:blur(22px) saturate(145%); -webkit-backdrop-filter:blur(22px) saturate(145%);
}
.sidebar { overflow-y:auto; scrollbar-width:thin; border-radius:30px; background:linear-gradient(155deg,#ffffff8a,#ffffff39); gap:24px; }
.brand strong,h1,h2,h3,h4,.post-title,.audience-channel strong { color:var(--ink); }
.brand-mark { color:#4263ad;background:linear-gradient(135deg,#ffffffd9,#ffffff48);border:1px solid #fff;border-radius:16px;box-shadow:var(--shadow); }
.nav-list a { color:#536583;border-radius:16px; }
.nav-list a.active { background:linear-gradient(120deg,#ffffffbf,#ffffff57);border:1px solid #ffffffed;color:#2c55a4;box-shadow:0 5px 14px #5578a612,inset 0 1px #fff; }
.nav-list a:hover { background:#ffffff65;color:#2c55a4; }
.nav-list img { filter:saturate(.8) brightness(.72); }
.topbar { padding:8px 0 12px; }.topbar h1 { font-size:clamp(27px,3vw,36px);letter-spacing:-1.1px; }
.topbar h1 em { color:#456ac1; }.workspace-intro { max-width:65ch; }
button,.ghost-btn,.idea-form button,.card-actions button,.studio-section button,.audience-section button {
 color:#38567e;background:linear-gradient(145deg,#ffffffa6,#ffffff49);border:1px solid #ffffffce;
 box-shadow:0 4px 12px #46668c0a,inset 0 1px #fffffffa; border-radius:14px;min-height:44px;
}
button:hover,.ghost-btn:hover { color:#254d98;background:linear-gradient(145deg,#ffffffdf,#ffffff79);box-shadow:0 7px 18px #46668c17,inset 0 1px #fff; }
.primary-btn,.primary-btn:hover { color:#fff;background:linear-gradient(135deg,#5685dd,#5f6ac3);border-color:#ffffff65;box-shadow:0 7px 20px #4a70c52b,inset 0 1px #ffffff6b; }
button:disabled { opacity:.48;box-shadow:none; }
input,select,textarea { color:var(--ink);background:#ffffff67;border:1px solid #ffffffd9;border-radius:13px;box-shadow:var(--soft-inset);min-height:44px; }
input::placeholder,textarea::placeholder { color:#6a7b96;opacity:1; }
input[type=checkbox],input[type=range] { min-height:initial;accent-color:#5179c9; }
input[type=file]::file-selector-button { background:#ffffff91;color:#38567e;border:1px solid #fff; }
select option { color:var(--ink);background:#f2f5fc; }
.stats-grid strong,.stats-grid article:nth-child(n) strong,.dash-kpis article>strong,.team-number { color:#365ca5; }
.bar,.dash-track span,.dash-column span { background:linear-gradient(135deg,#779fdf,#aa99d8); }
.post-card { border-left:3px solid #92a9d3; }
.lane,.bar-chart,.insights,.inbox-layout,#studioEmptyPreview { background:#ffffff25;border-color:#ffffff7a;border-radius:20px; }
.dash-track,.dash-column { background:#7594c414; }.dash-row,.dash-post { border-color:#6e8db51a; }.dash-row>span { color:#4564a0; }
.inbox-message,#team .team-thread,#team .team-chat p { color:var(--ink);background:#ffffff57;border:1px solid #ffffffa3;box-shadow:inset 0 1px #fff; }
.inbox-message[data-direction=out],.inbox-threads button[aria-pressed=true],#team .team-chat .team-reply,#team .team-thread[aria-pressed=true],.lead-item[aria-pressed=true] { background:#d9e7ff75;border-color:#ffffffcf; }
#team { --team-accent:#5175b6; }#team .team-tabs { background:#ffffff30;border-color:#ffffff9a; }
#team .team-tabs [aria-selected=true] { color:#315ca8;background:linear-gradient(135deg,#ffffffbd,#ffffff64);box-shadow:inset 0 1px #fff; }
#team .team-tag,#teamRoleBadge { background:#ffffff76;color:#3a5e9e;border:1px solid #ffffffc9;border-radius:30px; }
.team-eyebrow,#team .team-chat small,#teamNotice { color:#5576ac; }.team-status-dot { background:#688fc8;box-shadow:0 0 12px #86a9dd70; }
#team .team-metric-list dd { color:#3a60a1; }#team .team-metric-list div,#team #teamChatForm { border-color:#6e8db51a; }
.studio-settings { border-color:#ffffffa1; }.studio-settings summary { color:#38567e; }
.lead-item { background:#ffffff42; }.dash-stale,.lead-item em { color:#826029; }
#integrationStatus>* { background:#ffffff67;border-color:#ffffffbd; }
.auth-screen { background:transparent; }.auth-screen form,dialog { color:var(--ink);background:linear-gradient(135deg,#ffffffb8,#eef3ff9e);border:1px solid #fff;border-radius:28px;box-shadow:0 26px 90px #34538126,inset 0 1px #fff;backdrop-filter:blur(32px) saturate(150%);-webkit-backdrop-filter:blur(32px) saturate(150%); }
.auth-screen h1 { color:#4266af; }dialog { max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto; }dialog::backdrop { background:#354e7933;backdrop-filter:blur(8px); }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #4a74c9;outline-offset:3px; }
body.tab-hidden::before,body.motion-off::before { animation-play-state:paused; }
@media(max-width:850px) {
 .sidebar,.connections,.stats-grid article,.api-settings-card,.studio-preview,.studio-scene,.audience-channel,.calendar-item,.idea-item,.post-card,.inbox-detail,.dash-panel,.dash-kpis article,.lead-box,.reference-card,.account-connect,.connect-provider,#team .team-card,#team .team-banner { backdrop-filter:blur(10px) saturate(125%);-webkit-backdrop-filter:blur(10px) saturate(125%); }
 .sidebar { max-height:80dvh;overflow-y:auto; }.topbar h1 { font-size:27px; }.app-shell { overflow-x:clip; }
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
 .sidebar,.connections,.stats-grid article,.api-settings-card,.studio-preview,.studio-scene,.audience-channel,.calendar-item,.idea-item,.post-card,.inbox-detail,.dash-panel,.dash-kpis article,.lead-box,.reference-card,.account-connect,.connect-provider,#team .team-card,#team .team-banner,.auth-screen form,dialog { background:#f0f4fc; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important;transition:none!important;scroll-behavior:auto!important; } }
.studio-fields > label.reference-consent { display:flex; align-items:center; margin:0; }
.quick-actions { display:flex; flex-wrap:wrap; gap:10px; margin:4px 0 18px; }
.quick-actions > a, .platform-actions > a { display:inline-flex; align-items:center; text-decoration:none; }
.platform-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.platform-actions > a { min-height:36px; padding:6px 12px; font-size:13px; }
.quick-actions > a, .quick-actions > button { font-size:14px; }
.panel-header-end { justify-content: flex-end; }
#studio .studio-preview #studioEmptyPreview { width: 100%; }
.inbox-filters input[type=search] { flex: 2 1 240px; }
#liveStatus:empty { display:none; }
.inbox-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:14px; }
.inbox-column > h3 { margin:0 0 10px; }
.inbox-columns .inbox-threads { max-height:640px; overflow-y:auto; }
.inbox-dialog { width:min(640px, calc(100vw - 32px)); max-height:calc(100vh - 48px); border:0; border-radius:20px; padding:24px; box-shadow:0 24px 60px #12305a33; }
.inbox-dialog::backdrop { background:#0b1b3340; }
.inbox-close { position:absolute; top:12px; right:12px; min-height:36px; width:36px; padding:0; }
@media (max-width:700px) { .inbox-columns { grid-template-columns:minmax(0,1fr); } }
/* Every expandable section opens with a real button instead of a bare "▶ text" line. */
details > summary, .dash-history summary, #instagramAnalyticsData summary, .audience-channel summary {
  list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px;
  border: 1px solid #cbd9e9; border-radius: 12px; background: #f8fbff; color: #0b3a8a;
  font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; transition: background .15s, box-shadow .15s;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::marker { content: ""; }
details > summary::after { content: "▾"; font-size: 12px; transition: transform .15s; }
details[open] > summary::after { transform: rotate(180deg); }
details > summary:hover { background: #eef4fc; box-shadow: 0 4px 12px #426da614; }
details[open] > summary { margin-bottom: 10px; }
/* Plain "open ↗" text links become small buttons too. */
.connect-provider a[target="_blank"], .inbox-context a[target="_blank"] {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; margin: 6px 0;
  border: 1px solid #cbd9e9; border-radius: 12px; background: #f8fbff; color: #0b3a8a;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.connect-provider a[target="_blank"]:hover, .inbox-context a[target="_blank"]:hover { background: #eef4fc; }
.niche-ideas { margin-top: 28px; padding-top: 20px; border-top: 1px solid #dbe6f2; }
.niche-help { color: #516178; font-size: 14px; margin: 4px 0 12px; }
.niche-accounts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.niche-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border: 1px solid #cbd9e9; border-radius: 999px; background: #f8fbff; font-size: 14px; font-weight: 600; color: #0b3a8a; }
.niche-chip button { min-height: 28px; width: 28px; padding: 0; border-radius: 999px; }
.niche-chip-error { border-color: #e9b4a8; color: #a3402c; }
.niche-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 12px; }
.niche-card { display: grid; gap: 8px; padding: 16px; border: 1px solid #dbe6f2; border-radius: 16px; background: #ffffffcc; }
.niche-card header { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: #516178; }
.niche-card header b { color: #0b3a8a; }
.niche-card p { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.niche-card footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.niche-card footer > span { margin-right: auto; color: #516178; }
.niche-card footer a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; text-decoration: none; font-size: 13px; }
.niche-card footer button { min-height: 36px; font-size: 13px; }
/* Statistika dashboard */
#platformOverview { display: grid; gap: 18px; }
#platformOverview .quick-actions { margin: 0; }
.dash-period { display: inline-flex; gap: 6px; justify-self: start; padding: 4px; border: 1px solid #dbe6f2; border-radius: 14px; background: #ffffffb0; }
.dash-period button { min-height: 34px; padding: 4px 14px; border: 0; background: transparent; box-shadow: none; font-size: 13px; font-weight: 600; }
.dash-period button[aria-pressed="true"] { background: #0b3a8a; color: #fff; }
#platformStatsNotice:empty { display: none; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dash-kpi, .dash-card { background: #ffffffe6; border: 1px solid #e3ebf5; border-radius: 18px; box-shadow: 0 10px 30px #1b3c6b0d; min-width: 0; }
.dash-kpi { padding: 16px 18px; display: grid; gap: 10px; }
.dash-kpi header { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #516178; font-weight: 600; }
.dash-kpi header a { margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; border: 1px solid #dbe6f2; text-decoration: none; color: #0b3a8a; font-size: 14px; }
.dash-kpi > div { display: flex; align-items: baseline; gap: 10px; }
.dash-kpi strong { font-size: 28px; line-height: 1.1; color: #142030; }
.dash-kpi em { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.dash-kpi em.up { background: #e3f6ec; color: #1d7a4a; }
.dash-kpi em.down { background: #fde9e5; color: #b2402a; }
.dash-kpi-foot { color: #6b7a8f; font-size: 12px; overflow-wrap: anywhere; }
.dash-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 10px; color: #fff; font-weight: 800; font-size: 13px; }
.dash-icon-instagram { background: linear-gradient(135deg, #f9a03f, #d6249f 55%, #6a3fd6); }
.dash-icon-youtube { background: #e62117; }
.dash-icon-telegram { background: #229ed9; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.dash-card { padding: 18px 20px; display: grid; gap: 14px; align-content: start; }
.dash-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dash-card header > div { display: grid; gap: 2px; }
.dash-card-title { font-size: 14px; font-weight: 700; color: #142030; }
.dash-card header strong { font-size: 26px; color: #142030; }
.dash-card header small { color: #6b7a8f; font-size: 12px; }
.dash-chart svg { width: 100%; height: auto; display: block; }
.dash-grid-lines line { stroke: #e6edf6; }
.dash-grid-lines text, .dash-axis text { fill: #8392a6; font-size: 11px; }
.dash-area { fill: url(#dashFill); }
.dash-line { fill: none; stroke: #2f6fe4; stroke-width: 2.5; }
.dash-dots circle { fill: #fff; stroke: #2f6fe4; stroke-width: 2; }
.dash-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.dash-tabs button { min-height: 32px; padding: 4px 12px; font-size: 13px; border-radius: 10px; }
.dash-tabs button[aria-pressed="true"] { background: #e6efff; border-color: #b9cff3; color: #0b3a8a; }
.dash-bars { display: grid; gap: 12px; }
.dash-bars h4 { margin: 4px 0 -4px; font-size: 13px; color: #516178; }
.dash-bar > div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.dash-bar b { font-weight: 600; color: #142030; white-space: nowrap; }
.dash-bar i { display: block; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #2f6fe4, #6aa2ff); }
.dash-insights { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.dash-insights > div { padding: 12px 14px; border: 1px solid #e3ebf5; border-radius: 14px; background: #f8fbff; display: grid; gap: 4px; }
.dash-insights span { font-size: 12px; color: #6b7a8f; }
.dash-insights strong { font-size: 20px; color: #142030; }
.dash-empty { color: #6b7a8f; font-size: 13px; }
@media (max-width: 1100px) { .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .dash-kpis { grid-template-columns: minmax(0, 1fr); } }
.dash-kpis > .dash-kpi { background:#ffffffe6 !important; color:#142030 !important; border-top:1px solid #e3ebf5 !important; }
.dash-kpis > .dash-kpi::before, .dash-kpis > .dash-kpi::after { display:none !important; }
.dash-actions-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dash-kpis > .dash-kpi { border: 1px solid #e3ebf5 !important; box-shadow: 0 10px 30px #1b3c6b0d !important; outline: 0; }
.dash-kpis > .dash-kpi .dash-kpi-foot { color: #6b7a8f !important; opacity: 1 !important; }
.dash-kpis > .dash-kpi header span:not(.dash-icon) { color: #516178 !important; }
/* Same white card look as the Statistika page on the other pages. */
#ideas .idea-form, #ideas .niche-ideas, #ideas .idea-list:not(:empty), #studio .studio-editor, #studio .studio-preview,
#audience .inbox-column, #audience .audience-channel {
  background: #ffffffe6 !important; border: 1px solid #e3ebf5 !important; border-radius: 18px !important;
  box-shadow: 0 10px 30px #1b3c6b0d !important; padding: 18px 20px !important;
}
#ideas .niche-ideas { margin-top: 18px; }
#ideas .idea-form { margin-bottom: 16px; }
#ideas .idea-list:not(:empty) { margin-bottom: 4px; }
#audience .inbox-columns .inbox-threads { border: 0; background: transparent; }
#studio .studio-layout { align-items: start; }
#ideas .niche-ideas .idea-form { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.studio-reel { display: grid; gap: 10px; margin-top: 12px; padding-top: 14px; border-top: 1px solid #e3ebf5; }
.studio-reel textarea { width: 100%; }
/* Instagram’ga joylash */
.publish-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.publish-layout .studio-label { display: grid; gap: 6px; }
.publish-layout textarea, .publish-layout select, .publish-layout input[type=file] { width: 100%; }
.pub-preview { max-height: 360px; max-width: 100%; border-radius: 14px; background: #0f1a2b; justify-self: start; }
.pub-list { display: grid; gap: 10px; }
.pub-item { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid #e3ebf5; border-radius: 14px; background: #f8fbff; }
.pub-item header { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.pub-item p { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.pub-item .pub-ok { color: #1d7a4a; font-weight: 700; } .pub-item .pub-bad { color: #b2402a; font-weight: 700; }
.pub-item a { font-weight: 600; }
@media (max-width: 900px) { .publish-layout { grid-template-columns: minmax(0, 1fr); } }
/* Uzbek file picker */
input.file-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; overflow: hidden; pointer-events: none; }
.file-pick { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 8px; border: 1px solid #cbd9e9; border-radius: 12px; background: #f8fbff; min-width: 0; }
.file-pick .file-button { flex: 0 0 auto; min-height: 36px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.file-pick .file-name { color: #52627a; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file-pick .file-name-set { color: #0f1a2b; font-weight: 600; }
/* Reklama */
#ads .ads-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
#ads .ads-top select { min-width: 220px; }
#ads .ads-section { display: grid; gap: 16px; }
.ads-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ads-table th, .ads-table td { padding: 10px 8px; text-align: right; border-bottom: 1px solid #e3ebf5; white-space: nowrap; }
.ads-table th:first-child, .ads-table td:first-child { text-align: left; white-space: normal; }
.ads-table th { color: #34445a; font-size: 12px; font-weight: 700; }
.ads-table-wrap { overflow-x: auto; }
.ads-empty { display: grid; gap: 10px; }
.ads-empty ol { margin: 0; padding-left: 20px; line-height: 1.7; }
.dash-ads header a { min-height: 34px; padding: 6px 12px; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; }
.ads-table td:first-child { min-width: 240px; }
.ads-table td:last-child { white-space: normal; min-width: 180px; }
.dash-insights small { display: block; color: #34445a; font-size: 12px; }
#ads .dash-grid { margin: 0; }
.ads-state { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fdf1e6; color: #8a4b12; font-size: 14px; font-weight: 600; }
.dash-accounts { justify-self: start; }
.dash-accounts button[aria-pressed="true"] { background: #0b3a8a; color: #fff; }
#inboxDirectTabs { margin-bottom: 10px; }
#inboxDirectTabs button[aria-pressed="true"] { background: #e6efff; border-color: #b9cff3; color: #0b3a8a; }
.inbox-account { color: #087c86 !important; font-weight: 700; }

/* Platform source labels, using original brand artwork without recoloring. */
.platform-heading { display:flex; align-items:center; gap:14px; margin:28px 0 18px; padding-top:20px; border-top:1px solid #dce5f1; }
.platform-heading img { object-fit:contain; flex-shrink:0; }
.platform-heading h2 { margin:0; font-size:22px; line-height:1.3; }
.platform-heading p { margin:4px 0 0; color:#63748b; font-size:14px; }
.dash-icon-instagram, .dash-icon-youtube { background:transparent; border-radius:0; }
.dash-icon img { display:block; width:30px; height:30px; object-fit:contain; }
#youtubeDashboard > .dash-grid { margin-top:18px; }
.studio-revise { display: grid; gap: 10px; margin-top: 12px; padding-top: 14px; border-top: 1px solid #e3ebf5; }
.studio-revise[hidden] { display: none; }

/* ---------- SMM / CRM mode chooser and CRM pages ---------- */
.mode-screen { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: var(--bg, #f4f7fb); }
.mode-screen[hidden] { display: none; }
.mode-box { width: min(100%, 760px); text-align: center; }
.mode-box h1 { margin: 0 0 6px; }
.mode-box p { margin: 0 0 22px; color: #5b6b7f; }
.mode-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.mode-cards button { display: grid; gap: 8px; text-align: left; padding: 26px; border-radius: 22px; border: 1px solid #dfe7f1; background: #fff; box-shadow: 0 10px 30px #1b2a4012; cursor: pointer; }
.mode-cards button:hover, .mode-cards button:focus-visible { border-color: #3d7be0; box-shadow: 0 12px 34px #3d7be026; }
.mode-cards strong { font-size: 26px; color: #17263a; }
.mode-cards span { color: #5b6b7f; font-size: 14px; line-height: 1.45; }
.mode-switch { margin-bottom: 8px; }
.crm-section .crm-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.crm-section .crm-toolbar input[type=search] { flex: 1 1 200px; min-width: 160px; }
.crm-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 12px; }
.crm-add[hidden] { display: none; }
.crm-add label { display: grid; gap: 4px; font-size: 13px; color: #4a5a6e; }
.crm-work { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .crm-work { grid-template-columns: 1fr; } }
.crm-list { display: grid; gap: 8px; max-height: 72vh; overflow: auto; padding-right: 4px; }
.crm-item { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid #e3ebf5; background: #fff; cursor: pointer; color: #1d2b3d; }
.crm-item.active { border-color: #3d7be0; box-shadow: 0 0 0 2px #3d7be033; }
.crm-item small { color: #6b7a8d; }
.crm-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.crm-badge { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: #eef2f7; color: #3c4b5e; white-space: nowrap; }
.crm-badge.new { background: #e6f0ff; color: #1f5fc4; }
.crm-badge.contacted { background: #fff4dd; color: #8a5a00; }
.crm-badge.booked { background: #e7f7ee; color: #1d7a45; }
.crm-badge.visited { background: #d6f5e3; color: #0f5e33; }
.crm-badge.lost { background: #fde8e8; color: #a42828; }
.crm-badge.muted { background: #f0f0f0; color: #666; }
.crm-detail { display: grid; gap: 12px; padding: 18px; border-radius: 18px; border: 1px solid #e3ebf5; background: #fff; color: #1d2b3d; }
.crm-detail header h3 { margin: 0; }
.crm-detail header small { color: #6b7a8d; }
.crm-contact { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.crm-contact a { text-decoration: none; }
.crm-status { display: flex; flex-wrap: wrap; gap: 6px; }
.crm-status button { padding: 7px 12px; border-radius: 999px; border: 1px solid #d5dfeb; background: #f7f9fc; color: #2c3a4c; cursor: pointer; }
.crm-status button[aria-pressed="true"] { background: #3d7be0; border-color: #3d7be0; color: #fff; }
.crm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 16px; margin: 0; }
.crm-facts div { display: grid; gap: 2px; }
.crm-facts dt { font-size: 12px; color: #6b7a8d; text-transform: capitalize; }
.crm-facts dd { margin: 0; overflow-wrap: anywhere; }
.crm-events { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: #3c4b5e; font-size: 14px; }
.crm-events time { color: #6b7a8d; font-size: 12px; margin-right: 6px; }
.crm-operator-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.crm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 999px; background: #eef4fd; color: #1d2b3d; }
.crm-chip button { border: 0; background: #d8e5f8; border-radius: 999px; width: 22px; height: 22px; cursor: pointer; line-height: 1; }
#crmReport { display: grid; gap: 16px; }
.whoami { margin: 0 0 8px; padding: 8px 10px; border-radius: 12px; background: #eef4fd; color: #1d2b3d; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.whoami:empty { display: none; }
.user-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.user-actions button { padding: 5px 10px; font-size: 13px; }
.crm-owner { margin: 0; padding: 8px 12px; border-radius: 12px; background: #f3f7fc; color: #3c4b5e; }

/* ---------- layout fixes: Studio preview column, motion option, responsive pages ---------- */
#studio .studio-preview { grid-template-columns: minmax(0, 1fr); }
#studio .studio-preview > * { min-width: 0; max-width: 100%; }
#studio .studio-preview #studioEmptyPreview { width: min(100%, 248px); height: auto; justify-self: center; }
#studio .studio-preview video { justify-self: center; max-width: 100%; }
#studio .studio-preview select, #studio .studio-preview textarea { width: 100%; min-width: 0; }
#studio .studio-motion { align-items: flex-start; margin: 0; }
#studio .studio-motion span { display: grid; gap: 2px; }
#studio .studio-motion small { color: #5b6b7f; font-size: 12px; line-height: 1.45; }
#studio .studio-fields > label.reference-consent { flex: 0 1 auto; min-width: 0; }
input[type=file] { max-width: 100%; min-width: 0; }
.sidebar .whoami { margin-top: 10px; }
@media (max-width: 860px) {
  .crm-section .crm-toolbar > * { flex: 1 1 140px; }
  .crm-section .crm-toolbar input[type=search] { flex-basis: 100%; }
  .crm-list { max-height: none; }
  .crm-add > label, .crm-add > button { flex: 1 1 100%; }
  .crm-add input, .crm-add select { width: 100%; }
  .user-actions button { flex: 1 1 auto; }
}
.dash-card table:not(.ads-table) { display: block; max-width: 100%; overflow-x: auto; }
/* Direct va izohlar: only the Direct and comment columns; channel cards and their period stay hidden. */
#audience #audienceChannels, #audience > .panel-header > h2, #audience .audience-toolbar label:has(#audienceDays) { display: none; }
#audience > .panel-header { justify-content: flex-end; }
#audience .inbox-more { width: 100%; margin-top: 8px; padding: 10px; border-radius: 12px; border: 1px dashed #b9cff3; background: #f3f7fd; color: #0b3a8a; cursor: pointer; }

/* CRM kanban */
#crm .crm-workspace, #crm .crm-layout { display:block; }
#crmList { display:flex; gap:14px; overflow-x:auto; max-height:none; align-items:flex-start; padding-bottom:18px; }
.crm-lane { flex:0 0 255px; min-width:0; padding:12px; border:1px solid #d6e2f0; border-radius:18px; background:#eaf1fa; }
.crm-lane h3 { display:flex; justify-content:space-between; margin:0 0 12px; font-size:16px; }
.crm-lane > div { display:grid; gap:10px; max-height:65vh; overflow:auto; }
.crm-lane .crm-item { width:100%; text-align:left; display:grid; gap:8px; padding:14px; }
.crm-reminder { color:#8a4a00; background:#fff1d8; padding:8px; border-radius:8px; font-size:13px; }
#crmDetail { margin-top:18px; }

#crm .crm-work { display:block; min-width:0; }
#crm { min-width:0; }

#crmVisitPicker { width:min(420px,calc(100vw - 32px)); padding:24px; border:1px solid #cfddf1; border-radius:22px; color:#17243a; }
#crmVisitPicker::backdrop { background:rgba(15,35,65,.35); }
#crmVisitPicker input { width:100%; margin-top:8px; }

/* CRM on phones: swipe columns, comfortable controls, report rows as cards. */
@media (max-width:700px) {
  .crm-section, #crmReport, #crmReport .dash-grid, #crmReport .dash-card { min-width:0; max-width:100%; }
  .crm-section .crm-toolbar { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .crm-section .crm-toolbar > * { min-width:0; width:100%; }
  .crm-section .crm-toolbar input[type=search] { grid-column:1/-1; }
  #crmOperator { grid-column:1/-1; }
  .crm-section input,.crm-section select,.crm-section textarea,#crmVisitPicker input { font-size:16px; }
  .crm-section button,.crm-section select { min-height:44px; }
  #crmNotice { font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
  #crmList { gap:10px; scroll-snap-type:x proximity; padding:2px 2px 14px; overscroll-behavior-x:contain; }
  #crmList .crm-lane { flex:0 0 min(82vw,300px); scroll-snap-align:start; padding:10px; }
  .crm-lane > div { max-height:55dvh; overscroll-behavior-y:contain; }
  .crm-lane .crm-item { min-height:90px; overflow-wrap:anywhere; }
  #crmDetail { padding:16px; scroll-margin-top:16px; }
  #crmDetail > *, .crm-facts > div { min-width:0; }
  .crm-detail header, .crm-events { overflow-wrap:anywhere; }
  .crm-contact a { width:100%; justify-content:center; font-size:15px; padding-inline:10px; }
  .crm-status { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .crm-status button { padding:10px 6px; font-size:14px; white-space:normal; }
  .crm-facts { grid-template-columns:minmax(0,1fr); gap:12px; }
  .crm-events time { display:block; font-size:13px; }
  #crmVisitPicker { padding:20px; max-height:calc(100dvh - 32px); overflow-y:auto; }
  #crmVisitCancel { width:100%; min-height:44px; }
  #crm-report .crm-toolbar { display:block; }
  #crm-report .dash-period { display:flex; width:100%; }
  #crm-report .dash-period button { flex:1; min-width:0; }
  #crmReport .dash-card { padding:16px; }
  #crmReport .dash-card header { flex-wrap:wrap; gap:8px; }
  #crmReport .dash-insights { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  #crmReport .dash-insights > * { min-width:0; padding:12px; overflow-wrap:anywhere; }
  #crmReport .dash-insights strong { font-size:23px; }
  #crmReport .ads-table-wrap { overflow:visible; }
  #crmReport .ads-table, #crmReport .ads-table tbody { display:block; width:100%; }
  #crmReport .ads-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  #crmReport .ads-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; padding:12px; margin-top:12px; border:1px solid #d9e4f3; border-radius:14px; background:#f7faff; }
  #crmReport .ads-table td { display:block; min-width:0; padding:10px 0; text-align:left; white-space:normal; overflow-wrap:anywhere; font-weight:600; }
  #crmReport .ads-table td::before { content:attr(data-label); display:block; margin-bottom:4px; font-size:12px; line-height:1.4; color:#52657e; font-weight:500; }
  #crmReport .ads-table td:first-child, #crmReport .ads-table td:last-child { grid-column:1/-1; min-width:0; }
  #crmReport .ads-table td:first-child { font-size:16px; color:#123d7e; }
  #crmReport .ads-table td:last-child { border-bottom:0; }
  #crmReport .dash-bar > div { gap:8px; flex-wrap:wrap; }
}
@media(max-width:360px) {
  .crm-section .crm-toolbar { grid-template-columns:minmax(0,1fr); }
  #crmReport .dash-insights { grid-template-columns:minmax(0,1fr); }
}

/* Campaign and ad outcomes: visible labels instead of a wide matrix. */
.pipeline-intro { margin:8px 0 20px; color:#52657e; font-size:14px; line-height:1.6; }
.pipeline-cards { display:grid; gap:16px; min-width:0; }
.pipeline-entry { min-width:0; border:1px solid #dae5f3; border-radius:18px; background:#fff; padding:20px; }
#crmReport .pipeline-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin:0 0 16px; }
.pipeline-heading > div { min-width:0; }
.pipeline-heading h3 { margin:0; color:#18365d; font-size:17px; line-height:1.5; overflow-wrap:anywhere; }
.pipeline-parent { margin:0 0 5px; color:#5b6e86; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.pipeline-total { flex-shrink:0; display:grid; justify-items:center; gap:2px; min-width:72px; padding:8px 12px; background:#edf4ff; border-radius:12px; color:#134c9b; }
.pipeline-total b { font-size:24px; line-height:1.2; }
.pipeline-total > span { font-size:12px; }
.pipeline-distribution { display:flex; height:7px; gap:2px; border-radius:8px; overflow:hidden; background:#edf2f8; margin-bottom:16px; }
.pipeline-distribution i { flex-basis:0; background:var(--stage-color); }
.pipeline-new { --stage-color:#377be2; }
.pipeline-contacted { --stage-color:#0097a7; }
.pipeline-no_answer { --stage-color:#dc8b18; }
.pipeline-informed { --stage-color:#8660cf; }
.pipeline-booked { --stage-color:#259c8a; }
.pipeline-visited { --stage-color:#25944e; }
.pipeline-lost { --stage-color:#cf5361; }
.pipeline-states { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:0; }
.pipeline-state { min-width:0; border:1px solid #e3eaf4; border-radius:12px; padding:12px; background:#f8faff; }
.pipeline-state dt { display:flex; align-items:center; gap:7px; color:#455b76; font-size:12px; line-height:1.45; }
.pipeline-state dt i { flex:0 0 7px; height:7px; border-radius:50%; background:var(--stage-color); }
.pipeline-state dd { margin:6px 0 0; color:#193451; font-size:23px; font-weight:700; line-height:1.2; }
.pipeline-state.is-empty { background:#fff; }
.pipeline-state.is-empty dd { color:#7b8b9f; }
.pipeline-movements { margin-top:16px; border-top:1px solid #e6edf6; padding-top:4px; }
#crmReport .pipeline-movements summary { display:list-item; padding:12px 0 4px; border:0; border-radius:0; background:transparent; color:#2055a0; font-size:14px; cursor:pointer; }
.pipeline-movements summary > span { display:inline-block; margin-left:8px; color:#61748c; font-size:12px; font-weight:500; }
.pipeline-movements p { color:#607189; font-size:12px; line-height:1.6; margin:12px 0; }
.pipeline-movements ul { display:grid; gap:0; margin:0; padding:0; list-style:none; }
.pipeline-movements li { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 0; border-top:1px solid #edf1f7; color:#344b67; font-size:13px; }
.pipeline-movements li > span { min-width:0; overflow-wrap:anywhere; }
.pipeline-movements li > b { white-space:nowrap; padding:4px 8px; background:#edf3fb; border-radius:7px; }
.pipeline-arrow { color:#869bb6; padding:0 4px; }
@media(max-width:1100px) { .pipeline-states { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) {
  .pipeline-entry { padding:14px; border-radius:14px; }
  #crmReport .pipeline-heading { flex-wrap:nowrap; gap:10px; }
  .pipeline-heading h3 { font-size:15px; }
  .pipeline-total { min-width:60px; padding:8px; }
  .pipeline-total b { font-size:22px; }
  .pipeline-states { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pipeline-state { padding:10px; }
  .pipeline-intro { margin-bottom:14px; }
  .pipeline-movements summary { line-height:1.7; }
}

/* Mobile navigation slides in from the right, without moving the page. */
.menu-backdrop,.menu-close { display:none; }
@media(max-width:850px) {
  .topbar { position:relative; }
  #mobileMenu { order:2; margin-left:auto; }
  .topbar > div { order:0; flex:1 1 0; }
  .menu-backdrop { display:block; position:fixed; inset:0; z-index:999; width:100%; height:100dvh; border:0; border-radius:0; margin:0; padding:0; background:rgba(15,32,58,.38); box-shadow:none; opacity:0; visibility:hidden; transition:opacity .45s ease,visibility 0s .55s; }
  .menu-backdrop:hover { background:rgba(15,32,58,.38); transform:none; box-shadow:none; }
  .app-shell .sidebar { display:flex; position:fixed; z-index:1000; top:12px; right:12px; left:auto; bottom:12px; width:min(340px,calc(100vw - 24px)); height:calc(100dvh - 24px); max-height:calc(100dvh - 24px); margin:0; padding:60px 18px 22px; overflow-y:auto; overscroll-behavior:contain; border-radius:22px; gap:20px; visibility:hidden; transform:translateX(calc(100% + 24px)); transition:transform .55s cubic-bezier(.22,.75,.2,1),visibility 0s .55s; box-shadow:-12px 0 40px #1028492b; }
  .app-shell.menu-open .sidebar { display:flex; visibility:visible; transform:translateX(0); animation:none!important; transition-delay:0s; }
  .app-shell.menu-open .menu-backdrop { opacity:1; visibility:visible; transition-delay:0s; }
  .sidebar .nav-list { grid-template-columns:minmax(0,1fr); }
  .sidebar .menu-close { display:grid; place-items:center; position:absolute; top:14px; right:14px; width:40px; height:40px; min-height:40px; padding:0; border:1px solid #ffffff55; border-radius:12px; background:#ffffff18; color:#fff; font-size:28px; line-height:1; }
  .sidebar .brand { padding-right:32px; }
  body:has(.app-shell.menu-open) { overflow:hidden; }
  body.motion-off .app-shell .sidebar { transition:transform .55s cubic-bezier(.22,.75,.2,1),visibility 0s .55s!important; }
  body.motion-off .app-shell.menu-open .sidebar { transition-delay:0s!important; }
  #mobileMenu { grid-column:3; grid-row:1; }
  .topbar > div { grid-column:1/3; grid-row:1; }
}
@media(prefers-reduced-motion:reduce) {
  .app-shell .sidebar,body.motion-off .app-shell .sidebar,.menu-backdrop { transition:none!important; }
}

#studio .studio-current { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #eef4fd; border: 1px solid #cfe0f7; }
#studio .studio-current[hidden] { display: none; }
#studio .studio-current p { margin: 0; color: #1d2b3d; font-weight: 600; overflow-wrap: anywhere; }
#studio #studioCancel { justify-self: start; border: 1px solid #e8b4b4; background: #fff5f5; color: #a42828; border-radius: 10px; padding: 7px 12px; cursor: pointer; }

/* ---------- team messages + popup ---------- */
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: auto; border-radius: 999px; background: #e5484d; color: #fff; font-size: 12px; font-weight: 700; }
.nav-badge[hidden] { display: none; }
.team-msg-form { display: grid; gap: 10px; max-width: 720px; }
.team-msg-form textarea, .team-msg-form select { width: 100%; }
.team-msg-form button { justify-self: start; }
.team-msg-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 12px; }
.team-msg-columns h3 { margin: 0 0 8px; }
.team-msg { display: grid; gap: 6px; padding: 12px 14px; margin-bottom: 8px; border-radius: 14px; border: 1px solid #e3ebf5; background: #fff; color: #1d2b3d; }
.team-msg header { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.team-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.team-msg small { color: #6b7a8d; }
.team-msg .team-msg-note { color: #1d7a45; }
.team-msg button { justify-self: start; }
.team-popup { width: min(92vw, 460px); border: 0; border-radius: 22px; padding: 22px; box-shadow: 0 24px 60px #0b1a3340; color: #1d2b3d; }
.team-popup::backdrop { background: #0b1a3366; }
.team-popup h2 { margin: 0 0 6px; font-size: 20px; }
.team-popup-from { margin: 0 0 10px; color: #3c4b5e; }
.team-popup-from small { color: #6b7a8d; }
.team-popup-text { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #f3f7fd; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.5; }
.team-popup input { width: 100%; }
.team-popup-actions { display: flex; gap: 10px; margin-top: 12px; }
.team-popup-actions .primary-btn { flex: 1; font-size: 16px; padding: 12px; }
