/* The supplied Aideo workspace design, applied to the existing live views.
   State classes, native controls and platform/status colors keep their meaning. */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
  --workspace-ink: #0b0b0f;
  --workspace-muted: #71717a;
  --workspace-border: #e6e5e0;
  --workspace-paper: #fbfbf8;
  --workspace-purple: #5b4bff;
  --workspace-lime: #d4ff4f;
}
body {
  font-family: 'Bricolage Grotesque', 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
  background: var(--workspace-paper);
  color: var(--workspace-ink);
}
#app-sidebar {
  width: 248px;
  padding: 24px 16px;
  border-color: #ecebe6;
  background: #fff;
}
#app-sidebar .nav-wordmark { font-size: 22px; letter-spacing: -.02em; color: var(--workspace-ink); }
.workspace-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--workspace-ink);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  transform: rotate(-6deg);
}
#app-sidebar nav { gap: 6px; }
#app-sidebar .nav-item {
  min-height: 46px;
  padding: 10px 14px;
  gap: 12px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #3f3f46;
}
#app-sidebar .nav-item:hover { background: #f4f4f1; color: var(--workspace-ink); }
#app-sidebar .nav-item.is-active {
  background: #f1efff;
  color: #3b2fc9;
  border-color: #c9c3ff;
  font-weight: 800;
  box-shadow: 3px 3px 0 #e3dfff;
}
#app-sidebar .nav-item-danger:hover { background: #fff1f2; color: #be123c; }
#app-sidebar .nav-tour { border: 1px dashed #c9c3ff; background: #f7f6ff; color: #3b2fc9; margin-bottom: 8px; }
#app-workspace { background: var(--workspace-paper); }
#workspace-header {
  min-height: 80px;
  padding: 18px 32px;
  border-color: #ecebe6;
  background: #fff;
}
#workspace-title { font-family: inherit; font-size: 21px; font-weight: 800; letter-spacing: -.01em; color: var(--workspace-ink); }
#workspace-header button { border-color: var(--workspace-border); }
#notif-center > button { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--workspace-ink); }
#workspace-header button[onclick="toggleLanguage()"] { min-height: 44px; border-radius: 999px; background: #f4f4f5; color: var(--workspace-ink); }
#tab-container { padding: 32px; }
#tab-container > [id^='tab-'] { max-width: 1280px; margin-left: auto; margin-right: auto; }
#tab-container .font-display { font-family: inherit; }
#tab-container :is(.text-slate-800, .text-slate-900, .text-aideo-primary) { color: var(--workspace-ink); }
#tab-container .text-slate-400 { color: var(--workspace-muted); }
#tab-container :is(.text-indigo-600, .text-indigo-700, .text-blue-600) { color: #3b2fc9; }
#tab-container :is(.border-slate-200, .border-slate-200\/80, .border-slate-200\/85) { border-color: var(--workspace-border); }
#tab-container :is(.border-slate-100, .border-slate-200\/60) { border-color: #ecebe6; }
#tab-container :is(.bg-slate-50, .bg-slate-50\/80) { background-color: #f8f8f5; }
#tab-container .bg-slate-100 { background-color: #f2f1ec; }
#tab-container :is(.bg-indigo-50, .bg-blue-50) { background-color: #f1efff; }
#tab-container :is(.rounded-3xl, .rounded-2xl).bg-white { border-radius: 18px; }
#tab-container :is(.shadow-sm, .premium-shadow, .active-glow) { box-shadow: none; }
#tab-container button { transition: background-color .15s, border-color .15s, box-shadow .15s; }
/* Only application actions change color; platform badges and warning states do not. */
#tab-container button:is(.bg-indigo-600, .bg-blue-600, .bg-slate-900) {
  background: var(--workspace-ink);
  color: #fff;
  border-color: var(--workspace-ink);
}
#tab-container button:is(.bg-indigo-600, .bg-blue-600, .bg-slate-900):hover:not(:disabled) { background: #29292f; }
#tab-container button:disabled { cursor: not-allowed; }
#app-workspace :is(button, a, input, textarea, select):focus-visible,
#app-sidebar button:focus-visible { outline: 3px solid var(--workspace-purple); outline-offset: 3px; }
#tab-container :is(input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='file']), textarea, select):focus {
  border-color: var(--workspace-purple);
  box-shadow: 0 0 0 3px #5b4bff20;
}
/* Overview: separate metric cards and generous account/activity rows. */
#tab-dashboard > * + * { margin-top: 22px; }
#overview-totals { gap: 14px; background: transparent; border: 0; border-radius: 0; }
#overview-totals > div { border: 1px solid var(--workspace-border); border-radius: 16px; padding: 20px 22px; background: #fff; }
#overview-totals > div:last-child { border-right: 1px solid var(--workspace-border); }
#overview-totals > div > p:first-child { font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: #52525b; }
#overview-totals > div > p:first-child::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 3px; background: #3b2fc9; }
#overview-totals > div:nth-child(2) > p:first-child::before { background: #9a3412; }
#overview-totals > div:nth-child(3) > p:first-child::before { background: #075985; }
#overview-totals > div:nth-child(4) > p:first-child::before { background: #a1a1aa; }
#overview-totals > div > p:nth-child(2) { font-size: 34px; margin-top: 8px; }
#overview-totals > div > p:last-child { font-size: 12px; }
#tab-dashboard > .grid:not(#overview-totals) { gap: 22px; }
#tab-dashboard [data-trn='overview_accounts'], #tab-dashboard [data-trn='overview_activity'] { font-size: 16px; font-weight: 800; color: var(--workspace-ink); text-transform: none; letter-spacing: 0; }
#overview-alerts > div { border-radius: 14px; font-size: 14px; padding: 14px 20px; }
#overview-alerts > div.bg-amber-50 { border: 1px solid #f2e2b8; background: #fff8e8; }
#overview-alerts button { border-radius: 999px; background: var(--workspace-ink); color: #fff; padding: 10px 18px; font-size: 13px; }
#overview-refresh-btn, #overview-manage-connections { border: 1px solid var(--workspace-border); border-radius: 999px; padding: 8px 14px; font-size: 13px; color: var(--workspace-ink); }
#overview-accounts button { padding: 14px 22px; }
#overview-accounts button:hover { background: #fafaf7; }
#overview-accounts button > span:first-child { width: 36px; height: 36px; border-radius: 11px; }
#overview-activity > p { font-size: 14px; line-height: 1.7; }
/* The existing studio modes and filter states remain owned by their modules. */
#studio-mode-switcher { padding: 4px; background: #f2f1ec; border: 0; border-radius: 14px; }
#studio-mode-switcher button { min-height: 44px; border-radius: 11px; font-size: 13px; }
#studio-mode-switcher button.bg-slate-900 { background: #fff; color: var(--workspace-ink); box-shadow: 0 1px 4px #0b0b0f14; }
#studio-stepper { border-color: var(--workspace-border); }
#calendar-month-year { font-family: inherit; font-size: 20px; letter-spacing: 0; text-transform: none; }
#calendar-platform-filters { flex-wrap: wrap; background: #f2f1ec; border: 0; border-radius: 999px; padding: 4px; }
#calendar-platform-filters button { min-height: 34px; padding: 6px 12px; border-radius: 999px; font-size: 12px; }
#tab-calendar button[onclick^='appChangeCalendarMonth'] { width: 40px; height: 40px; border-radius: 50%; background: #fff; }
#tab-hotlist { width: 100%; }
#tab-hotlist [data-platform] { min-height: 38px; font-size: 13px; }
#tab-hotlist [data-board] { min-height: 38px; }
#tab-inbox > .bg-white { border-radius: 18px; }
.driver-popover.aideo-tour { background: #fff; color: var(--workspace-ink); border: 1px solid var(--workspace-border); border-radius: 18px; box-shadow: 6px 6px 0 #e3dfff; }
.aideo-tour .driver-popover-footer .driver-popover-next-btn { background: var(--workspace-ink); color: #fff; border-color: var(--workspace-ink); }
@media (max-width: 1100px) and (min-width: 641px) {
  #app-sidebar { width: 212px; padding: 24px 12px; }
  #tab-container { padding: 24px; }
}
@media (max-width: 640px) {
  #app-sidebar { width: 100%; padding: 8px; gap: 4px; overflow-x: auto; }
  #app-sidebar .nav-item { min-width: 42px; min-height: 42px; padding: 0; border-radius: 12px; }
  #app-sidebar > div { flex-shrink: 0; }
  #app-sidebar .nav-tour { margin: 0; }
  #workspace-header { min-height: 72px; padding: 14px 16px; gap: 10px; flex-wrap: wrap; }
  #workspace-title { font-size: 18px; }
  #tab-container { padding: 20px 16px; }
  #overview-totals { gap: 10px; }
  #overview-totals > div { padding: 16px; }
  #overview-totals > div > p:nth-child(2) { font-size: 28px; }
  #overview-alerts > div { flex-wrap: wrap; gap: 10px; }
  #overview-alerts button { margin-left: auto; }
  #studio-mode-switcher { flex-wrap: wrap; }
  #studio-mode-switcher button { flex: 1 1 45%; }
  #calendar-platform-filters { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #app-workspace *, #app-sidebar * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Reference details: quiet navigation, letter platform tiles and pill actions. */
#app-sidebar { width: 220px; }
#app-sidebar .nav-item.is-active { border-color: transparent; box-shadow: none; color: #0b0b0f; }
#app-sidebar .nav-item.is-active .nav-icon { color: #5b4bff; }
#app-sidebar .nav-item { font-weight: 700; }
:is(#app-workspace, #app-sidebar) .platform-icon {
  width: 32px; height: 32px; border-radius: 10px;
  display: inline-grid; place-items: center;
  background: var(--platform-tile, #0b0b0f); color: var(--platform-tile-ink, #fff);
  mask: none; -webkit-mask: none; font-size: 12px; font-style: normal;
}
:is(#app-workspace, #app-sidebar) .platform-icon::before {
  content: var(--platform-initials, 'A'); font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px; font-weight: 800; line-height: 1;
}
#app-workspace .platform-icon--dy { --platform-initials: '抖'; --platform-tile: #0b0b0f; }
#app-workspace .platform-icon--xhs { --platform-initials: '红'; --platform-tile: #e11d48; }
#app-workspace .platform-icon--wxc { --platform-initials: '视'; --platform-tile: #ffd166; --platform-tile-ink: #7c2d12; }
#app-workspace .platform-icon--yt { --platform-initials: 'YT'; --platform-tile: #dc2626; }
#app-workspace .platform-icon--ig { --platform-initials: 'IG'; --platform-tile: #db2777; }
#app-workspace .platform-icon--fb { --platform-initials: 'FB'; --platform-tile: #2563eb; }
#app-workspace .platform-icon--tt { --platform-initials: 'TT'; --platform-tile: #0f766e; }
#overview-accounts .overview-platform-mark { width:36px; height:36px; background:transparent; }
#overview-accounts .platform-icon { width:36px; height:36px; border-radius:11px; }
#overview-accounts button { gap:14px; padding:12px 22px; }
#overview-accounts button .truncate { font-size:15px; }
#overview-accounts button > span:nth-last-child(2) { border-radius:999px; font-size:12px; }
.overview-connect-chip { padding:6px 14px; border:1px solid #e6e5e0; border-radius:999px; font-size:13px; font-weight:700; color:#0b0b0f; background:#fff; }
#overview-accounts .overview-account-disconnected > .w-16 { display:none; }
#overview-activity > .overview-empty { display:flex; flex-direction:column; align-items:center; gap:16px; text-align:center; padding:48px 22px 30px; }
.overview-empty-symbol { display:grid; place-items:center; width:52px; height:52px; background:#0b0b0f; border-radius:50%; color:#d4ff4f; }
.overview-empty-symbol svg { width:20px; height:20px; fill:currentColor; }
#overview-activity .overview-empty strong { font-size:18px; color:#0b0b0f; }
#overview-activity .overview-empty p { font-size:14px; line-height:1.7; color:#52525b; }
#tab-dashboard [onclick="switchTab('studio')"] { background:#5b4bff; border-radius:999px; font-size:14px; padding:12px 20px; }
#tab-dashboard [onclick="switchTab('hotlist')"] { border-radius:999px; font-size:14px; padding:12px 20px; }
#tab-dashboard > .grid:not(#overview-totals) > div > div:first-child { padding:18px 22px; border-bottom:1px solid #ecebe6; }
#overview-refresh-status:empty { display:none; }
#overview-accounts { margin-top:0; }
#overview-activity + div { border-top:0; padding:0 22px 22px; }
#tab-dashboard #overview-refresh-btn, #tab-dashboard #overview-manage-connections { display:inline-flex; align-items:center; gap:6px; color:#0b0b0f; }
#app-workspace #workspace-header button[onclick="toggleLanguage()"],
#page-auth .auth-language { padding:3px; border:0; }
#workspace-header [onclick="toggleLanguage()"] > i { display:none; }
:is(#workspace-header, #page-auth) [data-lang-btn-text] { display:flex; gap:0; }
:is(#workspace-header, #page-auth) [data-lang-btn-text] > [aria-hidden] { display:none; }
:is(#workspace-header, #page-auth) [data-lang-btn-text] > [lang] { display:flex; align-items:center; justify-content:center; min-width:54px; height:36px; padding:0 12px; border-radius:999px; font-size:13px; }
html[lang='zh-CN'] #workspace-header [data-lang-btn-text] > [lang='zh-CN'],
html[lang='en'] #workspace-header [data-lang-btn-text] > [lang='en'] { color:#fff; background:#0b0b0f; }
html[lang='zh-CN'] #page-auth [data-lang-btn-text] > [lang='zh-CN'],
html[lang='en'] #page-auth [data-lang-btn-text] > [lang='en'] { color:#0b0b0f; background:#fff; box-shadow:0 1px 3px #0b0b0f1f; }
#app-workspace #analytics-refresh-btn { min-height:42px; padding:0 18px; border-radius:999px; font-size:14px; }
#analytics-refresh-btn i, #social-inbox-refresh i { color:#d4ff4f; }
#tab-analytics .analytics-channel-grid { gap:10px; }
#tab-analytics .analytics-channel-grid > [role='button'] { background:#fff; border-radius:16px; padding:14px; }
#tab-analytics .analytics-channel-grid > [aria-pressed='true'] { background:#f1efff; box-shadow:0 0 0 2px #5b4bff; }
#tab-analytics [id^='drill-card-'] p:first-child { font-size:15px; color:#0b0b0f; }
#tab-analytics [id^='drill-card-'] p + p { font-size:12px; }
#tab-hotlist > div { padding:26px; border-radius:18px; background:#fff; }
#tab-hotlist h2 { font-size:26px; }
#tab-hotlist [data-trn='hotlist_subtitle'] { max-width:none; font-size:14px; color:#52525b; }
#tab-hotlist [data-trn='hotlist_title'] + p { line-height:1.7; }
#hotlist-tabs > div { border:0; border-radius:999px; background:#f2f1ec; }
#hotlist-tabs button { padding:0 16px; border-radius:999px; font-size:14px; }
#hotlist-board-tabs button { border-radius:999px; font-size:14px; padding:8px 16px; }
#hotlist-toolbar :is(input, select) { min-height:46px; border-radius:999px; font-size:14px; }
#hotlist-content > article { border-radius:14px; padding:12px 16px; }
#hotlist-content [data-item-title] { font-size:15px; line-height:1.5; font-weight:700; }
#hotlist-content [data-write-copy] { min-height:38px; border-radius:999px; background:#f1efff; color:#3b2fc9; font-size:13px; }
#app-workspace .inbox-support summary { padding:16px 20px; gap:14px; }
#app-workspace .inbox-support-avatar { width:42px; height:42px; border-radius:13px; background:#f1efff; color:#3b2fc9; font-size:18px; }
#app-workspace .inbox-support-copy strong { font-size:16px; }
#app-workspace .inbox-support-copy > span { font-size:13px; }
#app-workspace .inbox-toolbar h3 { font-size:18px; }
#app-workspace .inbox-toolbar select { min-height:38px; border-radius:999px; font-size:13px; background:#fff; }
#app-workspace #social-inbox-refresh { min-height:38px; border:1px solid #0b0b0f; background:#0b0b0f; color:#fff; border-radius:999px; padding:8px 14px; font-size:13px; }
#app-workspace .inbox-message-detail { background:#fbfbf8; }
#app-workspace .inbox-conversation { border-radius:0; margin:0; padding:14px 18px; border-bottom:1px solid #ededea; }
#app-workspace .inbox-conversation[aria-pressed='true'] { background:#f1efff; }
#app-workspace .inbox-conversation-name { font-size:14px; font-weight:800; }
#app-workspace .inbox-conversation-preview { font-size:13px; color:#52525b; }
#app-workspace .inbox-conversations { padding:0; }
@media(min-width:1001px) { #page-auth .auth-shell { min-height:max(900px, 100svh); } }
@media(max-width:640px) {
  #app-sidebar { width:100%; }
  #overview-accounts button { gap:8px; padding:12px; flex-wrap:wrap; }
  #overview-accounts button > .flex-1 { flex-basis:35%; }
  .overview-connect-chip { padding:6px 10px; }
  #tab-hotlist > div { padding:18px; }
  #hotlist-content [data-item-title] { font-size:14px; }
  #app-workspace .inbox-toolbar { flex-wrap:wrap; }
  #app-workspace .inbox-toolbar-actions { flex-wrap:wrap; gap:8px; }
}
#tab-container #tab-dashboard [onclick="switchTab('studio')"] { background:#5b4bff; }
#tab-container #tab-dashboard [onclick="switchTab('studio')"]:hover { background:#4938e8; }
#page-auth .auth-password-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:6px; }
#page-auth .auth-password-heading .form-label { margin-bottom:0; }
#page-auth .auth-password-heading button { font-size:13px; font-weight:700; }
#page-auth .password-toggle { width:40px; height:40px; right:4px; display:flex; align-items:center; justify-content:center; font-size:18px; padding:0; }
/* Compact marks in inline actions; account cards retain the reference tiles. */
#app-workspace .platform-icon { width:1.8em; height:1.8em; border-radius:.5em; font-size:10px; }
#app-workspace .platform-icon::before { font-size:inherit; }
#tab-analytics [id^='drill-card-'] .platform-icon { width:32px; height:32px; font-size:12px; border-radius:10px; }
#overview-accounts .platform-icon { width:36px; height:36px; font-size:13px; border-radius:11px; }
