/* Shared administration only. Document canvases and public pages retain their styling. */
@media screen {
  html body[data-experience="workspace"][data-workspace-design="team"] {
    --compact-surface:#fff; --compact-soft:#f6f6f8; --compact-text:#302e35;
    --compact-muted:#6d6b74; --compact-line:#e1e1e6; --compact-tint:#f2ecf6;
    --compact-accent:#643182; --accent-teal:#643182; --success:#456c94;
    background:var(--compact-soft); color:var(--compact-text);
  }
  html body[data-experience="workspace"][data-workspace-design="team"] .app-shell { grid-template-columns:160px minmax(0,1fr); }
  html body[data-experience="workspace"][data-workspace-design="team"] .sidebar {
    width:160px; padding:16px 8px 10px; background:#302d35!important; color:#f6f4f8;
    border-color:#423c4a!important;
  }
  html body[data-workspace-design="team"] .sidebar .brand { flex:0 0 54px; margin:0 0 12px; justify-content:center; }
  html body[data-workspace-design="team"] .sidebar .brand .workspace-brand-logo { width:44px; height:44px; max-width:44px; background:#fff; padding:5px; border-radius:6px; }
  html body[data-workspace-design="team"] .sidebar .branch-switcher { margin:0 0 12px; }
  html body[data-workspace-design="team"] .sidebar .branch-switcher>span { color:#bcb6c5; font-size:10px; text-align:center; }
  html body[data-workspace-design="team"] .sidebar .branch-switcher button { font-size:11px; padding:7px 5px; min-height:36px; color:#f0edf4; background:#39353f; border-color:#55505e; white-space:normal; overflow-wrap:anywhere; }
  html body[data-experience="workspace"][data-layout="calm"][data-workspace-design="team"] .sidebar .branch-switcher>span { color:#bcb6c5; }
  html body[data-experience="workspace"][data-layout="calm"][data-workspace-design="team"] .sidebar .brand { background:transparent; border:0; }
  html body[data-experience="workspace"][data-layout="calm"][data-workspace-design="team"] .sidebar .branch-switcher { background:transparent; }
  html body[data-workspace-design="team"] #nav { scrollbar-color:#655b70 #302d35; padding:0 3px 12px 0; }
  html body[data-workspace-design="team"] .calm-nav-section { margin:0 0 15px; }
  html body[data-workspace-design="team"] .calm-nav-section h2 { color:#b9b0c4; font-size:9px; text-align:center; overflow-wrap:anywhere; margin:12px 2px 8px; line-height:1.5; }
  html body[data-workspace-design="team"] .calm-nav-section:first-child h2 { display:none; }
  html body[data-experience="workspace"][data-workspace-design="team"] .sidebar .nav-button {
    position:relative; flex-direction:column; justify-content:center; gap:7px; width:100%; min-height:66px;
    padding:10px 4px; font-size:11px; text-align:center; line-height:1.35; color:#d0ccd5!important;
    background:transparent!important; border-radius:5px; overflow-wrap:anywhere;
  }
  html body[data-workspace-design="team"] .sidebar .nav-button svg { width:20px; height:20px; }
  html body[data-experience="workspace"][data-workspace-design="team"] .sidebar .nav-button:hover { background:#423d49!important; color:white!important; }
  html body[data-experience="workspace"][data-workspace-design="team"] .sidebar .nav-button.active { background:#643182!important; color:white!important; }
  html body[data-workspace-design="team"] .sidebar .nav-button .badge { position:absolute; right:5px; top:5px; min-width:16px; font-size:9px; padding:1px 4px; background:#554562; color:white; }
  html body[data-workspace-design="team"] .sidebar .user-card { grid-template-columns:32px 30px; justify-content:center; gap:10px; padding:12px 0 0; min-height:48px; }
  html body[data-workspace-design="team"] .sidebar .user-card>div { display:none; }
  html body[data-workspace-design="team"] .sidebar .user-card .icon-button { color:#eee7f3; }
  html body[data-workspace-design="team"] .sidebar .user-card .avatar { background:#ece6f2; color:#643182; }
  html body[data-workspace-design="team"] .topbar { padding-inline:32px; height:68px; min-height:68px; border-color:var(--compact-line); }
  html body[data-workspace-design="team"] .content { width:100%; min-width:0; padding:30px 32px; max-width:1900px; margin-inline:auto; }
  html body[data-workspace-design="team"] .global-search { background:var(--compact-soft); border-color:var(--compact-line); }
  html body[data-workspace-design="team"] .page-head h1 { font-size:27px; }
  html body[data-workspace-design="team"] .connection { color:var(--compact-muted); }
  html body[data-workspace-design="team"] .connection i { background:#718eb2; }
  html body[data-workspace-design="team"] .workspace-theme-switch { color:var(--compact-muted); }
  html body[data-workspace-design="team"] .workspace-theme-track { background:#e9e6ed; border-color:#a49aaf; }
  html body[data-workspace-design="team"] .workspace-theme-track:after { background:#70657b; }
  html body[data-workspace-design="team"] .status.success { background:#eaf0f8; color:#456c94; }
  html body[data-workspace-design="team"] .compact-progress>div>svg { color:var(--compact-accent); }
  html body[data-workspace-design="team"] .panel-head { background:var(--compact-surface); border-color:var(--compact-line); }
  html body[data-workspace-design="team"] .kanban-column { background:transparent; border:0; }
  html body[data-workspace-design="team"] .kanban-head { border-top:0; border-bottom:3px solid #d5d2dc; background:transparent; }
  html body[data-workspace-design="team"] .kanban-column:nth-child(3n+2) .kanban-head { border-bottom-color:#ae92bf; }
  html body[data-workspace-design="team"] .kanban-column:nth-child(3n) .kanban-head { border-bottom-color:#8aa6c4; }
  html body[data-workspace-design="team"] .kanban-card { border-radius:6px; box-shadow:none; border:1px solid var(--compact-line); background:var(--compact-surface); }
  .team-workspace { min-width:0; }
  .team-workspace h2 { font-size:16px; margin:0; }
  .team-workspace .page-head { margin-bottom:26px; }
  .team-agenda { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); background:var(--compact-surface); border-bottom:1px solid var(--compact-line); margin-bottom:22px; }
  .team-appointment { display:flex; flex-direction:column; align-items:flex-start; text-align:left; gap:8px; background:transparent; border:0; border-right:1px solid var(--compact-line); border-bottom:1px solid var(--compact-line); padding:19px 22px; color:var(--compact-text); min-width:0; }
  .team-appointment:hover { background:var(--compact-tint); }
  .team-appointment time { color:var(--compact-accent); font-size:12px; font-weight:600; }
  .team-appointment strong { font-size:14px; overflow-wrap:anywhere; }
  .team-appointment small { color:var(--compact-muted); line-height:1.5; }
  .team-calendar-link { grid-column:1/-1; display:flex; align-items:center; justify-content:flex-end; gap:8px; padding:10px 18px; border:0; background:transparent; color:var(--compact-accent); font-size:12px; }
  .team-day-empty { grid-column:1/-1; display:flex; align-items:center; gap:10px; padding:20px; color:var(--compact-muted); font-size:13px; }
  .team-summary { display:flex; flex-wrap:wrap; gap:10px 24px; margin:0 0 28px; }
  .team-summary button { display:flex; align-items:center; gap:9px; padding:8px 0; border:0; background:transparent; font-size:12px; color:var(--compact-muted); }
  .team-summary strong { color:var(--compact-text); }
  .team-summary svg { width:16px; color:var(--compact-accent); }
  .team-board-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:22px; }
  .team-scope { display:flex; border:1px solid var(--compact-line); padding:3px; background:var(--compact-surface); border-radius:5px; gap:3px; }
  .team-scope button { min-height:36px; padding:7px 13px; border:0; border-radius:3px; font-size:12px; color:var(--compact-muted); background:transparent; }
  .team-scope button[aria-pressed="true"] { background:var(--compact-tint); color:var(--compact-accent); font-weight:600; }
  .team-board { display:grid; grid-template-columns:repeat(var(--team-columns),minmax(0,1fr)); gap:24px; }
  .team-column { min-width:0; }
  .team-column-title { display:flex; align-items:center; justify-content:space-between; gap:10px; border-bottom:3px solid #d5d2dc; padding-bottom:14px; margin-bottom:15px; }
  .team-column-title h2 { font-size:14px; overflow-wrap:anywhere; }
  .team-column-title span { color:var(--compact-muted); font-size:12px; }
  .team-column-tone-1 { border-color:#ae92bf; }
  .team-column-tone-2 { border-color:#8aa6c4; }
  .team-task { background:var(--compact-surface); border:1px solid var(--compact-line); border-radius:6px; padding:20px; margin-bottom:14px; }
  .team-task>header { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
  .team-task small,.team-task p { color:var(--compact-muted); font-size:12px; }
  .team-task h3 { font-size:14px; line-height:1.5; margin:15px 0 8px; overflow-wrap:anywhere; }
  .team-task p { margin:0 0 16px; overflow-wrap:anywhere; }
  .team-task footer { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; border-top:1px solid var(--compact-line); padding-top:14px; margin-top:18px; }
  .team-assignee { display:flex; align-items:center; gap:8px; font-size:12px; min-width:0; overflow-wrap:anywhere; }
  .team-assignee small { display:block; margin-top:3px; font-size:11px; }
  .team-assignee svg { color:var(--compact-muted); flex:none; }
  .team-task select { width:auto; max-width:100%; min-height:34px; font-size:12px; padding:6px; }
  .team-empty { padding:25px 0; color:var(--compact-muted); font-size:13px; }
  .team-recent { margin-top:34px; border-top:1px solid var(--compact-line); padding-top:22px; overflow:auto; }
  .team-recent>header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
  html[data-workspace-theme="dark"] body[data-experience="workspace"][data-workspace-design="team"] {
    --compact-surface:#29262e; --compact-soft:#211e25; --compact-text:#eeebf1; --compact-muted:#b9b2c2;
    --compact-line:#48404f; --compact-tint:#3c2c48; --compact-accent:#deb6ef;
    --surface:#29262e; --soft:#333039; --line:#48404f; --muted:#b9b2c2;
    --theme-soft:#333039; --theme-input:#242129; --theme-text:#eeebf1; --theme-muted:#b9b2c2;
    --theme-tint:#3c2c48; --theme-accent:#deb6ef;
  }
  html[data-workspace-theme="dark"] body[data-workspace-design="team"] .status.success { background:#2d3949; color:#bdcee5; }
  @media(max-width:1100px) { .team-board { grid-template-columns:repeat(2,minmax(0,1fr)); } }
  @media(max-width:900px) {
    html body[data-experience="workspace"][data-workspace-design="team"] .app-shell { display:block; }
    html body[data-experience="workspace"][data-workspace-design="team"] .sidebar { width:min(290px,calc(100vw - 48px)); top:68px; height:calc(100dvh - 68px); padding:18px; }
    html body[data-experience="workspace"][data-workspace-design="team"] .sidebar .nav-button { flex-direction:row; justify-content:flex-start; text-align:left; min-height:44px; font-size:13px; padding:10px; }
    html body[data-workspace-design="team"] .calm-nav-section h2 { text-align:left; margin-left:10px; }
    html body[data-workspace-design="team"] .sidebar .user-card { grid-template-columns:32px minmax(0,1fr) 30px; }
    html body[data-workspace-design="team"] .sidebar .user-card>div { display:block; }
    html body[data-workspace-design="team"] .sidebar .user-card strong { color:white; }
    html body[data-workspace-design="team"] .sidebar .user-card div span { color:#d0ccd5; }
    html body[data-workspace-design="team"].compact-mobile-open #workspace-menu-backdrop { top:68px; height:calc(100dvh - 68px); }
    html body[data-workspace-design="team"] .content { padding:22px 18px; }
    html body[data-workspace-design="team"] .topbar { padding-inline:14px; }
  }
  @media(max-width:680px) {
    .team-board,.team-agenda { grid-template-columns:minmax(0,1fr); }
    .team-task { padding:16px; }
    .team-appointment { padding:16px; border-right:0; }
    .team-summary { gap:5px 18px; }
    html body[data-workspace-design="team"] .page-head h1 { font-size:23px; }
    html body[data-workspace-design="team"] .content { padding:20px 12px; }
    .team-recent>header { flex-wrap:wrap; }
  }
}
