/* Optional Activity layout. Every rule is gated by the root layout attribute,
   so switching back to Standard restores the base styles without a reload. */

:root[data-layout="activity"] .workbench { padding-left: var(--gap); }

@media (max-width: 640px) {
  :root[data-layout="activity"] .sidebar { left: calc(50px + 2 * var(--gap)); }
}

:root[data-layout="activity"] .activitybar {
  width: 50px; margin-right: var(--gap); padding: 8px 0; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%), var(--side);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .05),
              0 12px 28px rgba(0, 0, 0, .38), 0 2px 6px rgba(0, 0, 0, .28);
}
:root[data-layout="activity"][data-mode="light"] .activitybar {
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 45%), var(--side);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .6),
              0 12px 28px rgba(30, 40, 80, .13), 0 2px 6px rgba(30, 40, 80, .1), 0 0 0 1px var(--border);
}

:root[data-layout="activity"] .activity { width: 38px; height: 38px; border-radius: 13px; }
:root[data-layout="activity"] .activity:hover { background: rgba(255, 255, 255, .05); }
:root[data-layout="activity"] .activity.active {
  color: var(--fg);                                                             /* the raised pill marks it; no accent color */
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 6px rgba(0, 0, 0, .35);
}
:root[data-layout="activity"][data-mode="light"] .activity:hover { background: rgba(20, 30, 60, .05); }
:root[data-layout="activity"][data-mode="light"] .activity.active {
  background: linear-gradient(180deg, #ffffff, #f3f5f9);
  box-shadow: inset 0 1px 0 #ffffff, 0 0 0 1px rgba(20, 30, 60, .06), 0 2px 6px rgba(20, 30, 60, .14);
}
:root[data-layout="activity"] .activity.active::before { display: none; }

/* The sidebar is the same extruded panel, so the two read as a pair. */
:root[data-layout="activity"] .activitybar,
:root[data-layout="activity"] .sidebar { border-radius: 18px; }
:root[data-layout="activity"] .sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%), var(--side);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .05),
              0 12px 28px rgba(0, 0, 0, .38), 0 2px 6px rgba(0, 0, 0, .28);
}
:root[data-layout="activity"][data-mode="light"] .sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 45%), var(--side);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .6),
              0 12px 28px rgba(30, 40, 80, .13), 0 2px 6px rgba(30, 40, 80, .1), 0 0 0 1px var(--border);
}

/* The editor and console islands take the same corners but stay flat. */
:root[data-layout="activity"] .editor-group,
:root[data-layout="activity"] .panel { border-radius: 18px; }

/* Run as a small flat capsule: one solid green, no sheen and no shadow. */
:root[data-layout="activity"] .run-button {
  height: 26px; border-radius: 13px; padding: 0 13px 0 10px; font-size: 12.5px;
  background: #2fb95d; box-shadow: none;
}
:root[data-layout="activity"] .run-button svg { width: 11px; height: 11px; }
:root[data-layout="activity"] .run-button:hover { filter: none; background: #34c764; }
:root[data-layout="activity"] .run-button:active { transform: none; filter: none; background: #29a653; }

/* The run configuration and the status pill become capsules too, rounded fully at both ends. */
:root[data-layout="activity"] .run-configuration { height: 30px; border-radius: 15px; }
:root[data-layout="activity"] .scheme { border-radius: 15px 0 0 15px; padding-left: 9px; }
:root[data-layout="activity"] .args input { border-radius: 0 15px 15px 0; }
:root[data-layout="activity"] .activity-pill { height: 30px; border-radius: 15px; }

/* The editor and console islands take the edge of the left panels, a hairline and a light top
   line, without their sheen or shadow. The edge is an overlay, because the tab bar and the
   console header would cover an inset shadow of the island itself. */
:root[data-layout="activity"] .panel { position: relative; }
:root[data-layout="activity"] .editor-group::after,
:root[data-layout="activity"] .panel::after {
  content: ""; position: absolute; inset: 0; z-index: 8; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
:root[data-layout="activity"][data-mode="light"] .editor-group::after,
:root[data-layout="activity"][data-mode="light"] .panel::after {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(20, 30, 60, .08);
}

/* The logo column spans the gap, the floating activity bar and the next gap, so the run
   configuration starts at the sidebar's left edge here too. */
:root[data-layout="activity"] { --brand-width: calc(var(--gap) + 50px + var(--gap)); }
:root[data-layout="activity"] .brand { padding-left: var(--gap); padding-right: var(--gap); box-sizing: border-box; }
