/* ==========================================================================
   Interactive client preview.

   Ported from the Tauri client's own stylesheets (variables.css, layout.css,
   components.css) and scoped under .app-mock, so the preview stays visually
   identical to the real app. The app has one theme — dark — and it keeps it
   here in both site themes: this is a screenshot, not a page element.
   ========================================================================== */

.app-mock {
  --bg-app: #1a1a1a;
  --bg-gutter: #141414;
  --bg-panel: #303030;
  --bg-panel-header: #383838;
  --bg-panel-inner: #2a2a2a;
  --bg-toolbar: #333333;
  --bg-input: #222222;
  --bg-hover: rgba(255, 255, 255, 0.08);
  --bg-hover-strong: rgba(255, 255, 255, 0.14);
  --bg-selected: #5680c2;
  --bg-selected-row: rgba(86, 128, 194, 0.32);
  --bg-selected-row-hover: rgba(86, 128, 194, 0.48);
  --bg-ribbon-off: #3a3a3a;
  --bg-ribbon-on: #9a9a9a;
  --bg-row-alt: rgba(255, 255, 255, 0.025);

  --outline: #5a5a5a;
  --outline-hover: #ffffff;
  --outline-subtle: #454545;

  --text-primary: #ececec;
  --text-muted: #999999;
  --text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);

  --folder-repo-filter: brightness(0) saturate(100%) invert(56%) sepia(52%) saturate(500%)
    hue-rotate(176deg) brightness(95%) contrast(92%);
  --folder-workspace-filter: brightness(0) saturate(100%) invert(72%) sepia(28%) saturate(600%)
    hue-rotate(358deg) brightness(95%) contrast(90%);
  --icon-repo-filter: var(--folder-repo-filter);
  --icon-workspace-filter: var(--folder-workspace-filter);
  --icon-history-filter: brightness(0) saturate(100%) invert(68%) sepia(42%) saturate(650%)
    hue-rotate(152deg) brightness(95%) contrast(92%);
  --icon-revision-filter: brightness(0) saturate(100%) invert(56%) sepia(52%) saturate(500%)
    hue-rotate(176deg) brightness(95%) contrast(92%);
  --icon-time-filter: brightness(0) saturate(100%) invert(72%) sepia(48%) saturate(650%)
    hue-rotate(358deg) brightness(98%) contrast(92%);
  --icon-organization-filter: brightness(0) saturate(100%) invert(48%) sepia(34%) saturate(520%)
    hue-rotate(92deg) brightness(95%) contrast(90%);
  --icon-muted-filter: brightness(0) saturate(100%) invert(63%);

  --status-orange: #e2a54e;
  --status-pale-green: #b7e0ae;
  --status-red: #e05252;
  --status-green: #4fc35a;
  --status-grey: #b9b9b9;

  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'Consolas', monospace;

  --radius-sm: 5px;
  --radius-md: 8px;

  --menu-bar-height: 32px;
  --panel-header-height: 28px;
  --gutter-size: 3px;
  --tab-height: 32px;
  --toolbar-height: 58px;

  --transition: 0.12s ease;
  --shadow-panel: 0 1px 3px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);

  /* Design size. js/demo.js scales this to fit the hero column. */
  width: 1440px;
  height: 900px;

  display: flex;
  flex-direction: column;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: normal;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-demo);
  overflow: hidden;
  user-select: none;
}

.app-mock button {
  font-family: inherit;
  color: inherit;
}

/* Chrome the preview deliberately does not wire up. */
.app-mock [data-inert] {
  cursor: default;
}

.app-mock :focus-visible {
  outline: 1px solid var(--outline-hover);
  outline-offset: -1px;
}

/* ------------------------------------------------------------- menu bar */

.app-mock .menu-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--menu-bar-height);
  padding: 0 var(--gutter-size);
  background: var(--bg-gutter);
  flex-shrink: 0;
  gap: 1px;
}

/* Workspace page tabs. Time Tracking is off on this server and the account is
   not a server admin, so Revision Control and Organization are the two the
   client shows. */

.app-mock .menu-bar-tabs {
  position: absolute;
  left: 50%;
  top: calc(50% + 2px);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.app-mock .menu-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.6;
}

.app-mock .menu-tab-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  filter: var(--icon-muted-filter);
}

.app-mock .menu-tab-sep {
  width: 1px;
  height: 14px;
  background: var(--text-muted);
  opacity: 0.6;
  flex-shrink: 0;
}

.app-mock .menu-tab-btn--active {
  opacity: 1;
  background: var(--bg-panel);
  border-color: var(--outline);
  color: var(--text-primary);
  box-shadow: var(--shadow-panel);
}

.app-mock .menu-tab-btn--active.menu-tab-btn--revision .menu-tab-icon {
  filter: var(--icon-revision-filter);
}

.app-mock .menu-tab-btn--active.menu-tab-btn--organization .menu-tab-icon {
  filter: var(--icon-organization-filter);
}

/* macOS: the OS draws its traffic lights over the left of the bar (the app
   positions them there via traffic_light_position). */
.app-mock .menu-bar-traffic {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 9px;
  flex-shrink: 0;
}

.app-mock .traffic {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.app-mock .traffic--close { background: #ff5f57; }
.app-mock .traffic--min { background: #febc2e; }
.app-mock .traffic--max { background: #28c840; }

.app-mock .menu-bar-window-controls {
  display: flex;
  align-items: stretch;
  margin-right: calc(-1 * var(--gutter-size));
  margin-left: 4px;
}

.app-mock .menu-bar-window-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: var(--menu-bar-height);
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.app-mock .menu-bar-window-control img {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.app-mock .menu-bar-icons {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.app-mock .menu-bar-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
}

.app-mock .menu-bar-icon-btn img {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

/* --- platform chrome ---------------------------------------------------
   Only one platform's dressing shows at a time. These come last in the
   menu-bar section so they win against the equal-specificity base rules. */

.app-mock--mac .menu-bar-window-controls { display: none; }
.app-mock--win .menu-bar-traffic { display: none; }

/* Windows puts the icon cluster at the left of the bar (reversed, as the app
   does) and the frameless window controls flush in the top-right corner. */
.app-mock--win .menu-bar-icons {
  flex-direction: row-reverse;
  margin-left: 0;
  margin-right: auto;
}

/* ------------------------------------------------------ layout & panels */

.app-mock .layout-root {
  flex: 1;
  min-height: 0;
  padding: var(--gutter-size);
  background: var(--bg-gutter);
  overflow: hidden;
}

.app-mock .split {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.app-mock .split--horizontal {
  grid-template-columns: minmax(0, 0.6fr) var(--gutter-size) minmax(0, 0.4fr);
  grid-template-rows: minmax(0, 1fr);
}

.app-mock .split-pane {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

/* A split nested inside a pane has to fill it, or the inner grid collapses to
   its content height. Load-bearing for the Organization window, where the
   availability panel and Device Management share the left column. */
.app-mock .split-pane > .split,
.app-mock .split-pane > .panel-frame {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.app-mock .split-gutter { background: transparent; }

.app-mock .panel-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-panel);
}

.app-mock .panel-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--outline);
  pointer-events: none;
  z-index: 55;
}

.app-mock .panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--bg-panel);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.app-mock .panel-header {
  display: flex;
  align-items: center;
  height: var(--panel-header-height);
  min-height: var(--panel-header-height);
  padding: 0 8px;
  background: linear-gradient(180deg, #3e3e3e 0%, var(--bg-panel-header) 100%);
  border-bottom: 1px solid var(--outline-subtle);
  gap: 6px;
}

.app-mock .panel-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.9;
}

.app-mock .panel-icon--filetree-repo { filter: var(--icon-repo-filter); }
.app-mock .panel-icon--filetree-workspace { filter: var(--icon-workspace-filter); }
.app-mock .panel-icon--history { filter: var(--icon-history-filter); }

.app-mock .panel-title {
  font-weight: 600;
  font-size: 12px;
  text-shadow: var(--text-shadow);
}

.app-mock .panel-header-menus {
  display: flex;
  gap: 2px;
  margin-left: 8px;
}

.app-mock .panel-header-menu {
  padding: 2px 8px;
  font-size: 11px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
}

.app-mock .panel-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel-inner);
}

/* ---------------------------------------------------- repository panel */

.app-mock .panel-tabs {
  display: flex;
  height: var(--tab-height);
  padding: 4px 8px 0;
  gap: 4px;
  background: var(--bg-toolbar);
  border-bottom: 1px solid var(--outline-subtle);
  flex-shrink: 0;
}

.app-mock .panel-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 100%;
  font-size: 11px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.app-mock .panel-tab:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.app-mock .panel-tab--active {
  background: var(--bg-hover-strong);
  color: var(--text-primary);
}

.app-mock .tab-icon {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

.app-mock .panel-tab--active .tab-icon { opacity: 1; }
.app-mock .tab-icon--repo { filter: var(--icon-repo-filter); }
.app-mock .tab-icon--workspace { filter: var(--icon-workspace-filter); }

.app-mock .path-bar {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  flex-shrink: 0;
}

.app-mock .path-bar input {
  flex: 1;
  min-width: 0;
  background: var(--bg-input);
  border: 1px solid var(--outline-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  outline: none;
  cursor: default;
}

.app-mock .path-bar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 6px;
  border: 1px solid var(--outline-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  flex-shrink: 0;
}

.app-mock .path-bar-btn img {
  width: 13px;
  height: 13px;
  opacity: 0.8;
}

.app-mock .toolbar-wrap {
  position: relative;
  flex-shrink: 0;
}

.app-mock .toolbar {
  display: flex;
  align-items: stretch;
  height: var(--toolbar-height);
  padding: 4px 6px;
  gap: 2px;
  background: var(--bg-toolbar);
  border-bottom: 1px solid var(--outline-subtle);
  flex-shrink: 0;
  overflow: hidden;
}

.app-mock .toolbar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 4px 6px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  gap: 3px;
  font-size: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition);
}

.app-mock .toolbar-btn:hover { background: var(--bg-hover-strong); }

.app-mock .toolbar-btn img {
  width: 20px;
  height: 20px;
  opacity: 0.85;
}

.app-mock .toolbar-btn:hover img { opacity: 1; }

.app-mock .toolbar-btn--disabled,
.app-mock .toolbar-btn--disabled:hover {
  background: transparent;
  color: var(--text-muted);
  cursor: default;
}

.app-mock .toolbar-btn--disabled img,
.app-mock .toolbar-btn--disabled:hover img { opacity: 0.3; }

/* -------------------------------------------------------- the file tree */

.app-mock .file-tree-container {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #4d4d4d transparent;
}

.app-mock .file-tree-container::-webkit-scrollbar { width: 9px; }
.app-mock .file-tree-container::-webkit-scrollbar-track { background: transparent; }

.app-mock .file-tree-container::-webkit-scrollbar-thumb {
  background: #4d4d4d;
  border-radius: 5px;
  border: 2px solid var(--bg-panel-inner);
}

.app-mock .file-tree-header,
.app-mock .tree-node {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) 148px 72px 116px;
  align-items: center;
}

.app-mock .file-tree-header {
  padding: 4px 8px 4px 0;
  background: var(--bg-toolbar);
  border-bottom: 1px solid var(--outline-subtle);
  font-size: 11px;
  color: var(--text-muted);
  position: sticky;
  top: 0;
  z-index: 3;
}

.app-mock .file-tree-header-ribbon { display: block; }

.app-mock .file-tree-header-col {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-toolbar);
  border: none;
  text-align: left;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.app-mock .file-tree-header-col--active { color: var(--text-primary); }

.app-mock .file-tree-header-col.col-size,
.app-mock .file-tree-header-col.col-modified { text-align: right; }

.app-mock .file-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-mock .tree-node {
  padding: 0 8px 0 0;
  cursor: default;
  font-size: 11px;
  white-space: nowrap;
  height: 22px;
  transition: background var(--transition);
  position: relative;
  z-index: 0;
}

.app-mock .tree-node--alt { background: var(--bg-row-alt); }

.app-mock .tree-node:hover:not(.tree-node--selected) { background: var(--bg-hover); }

.app-mock .tree-node--selected { background: var(--bg-selected-row); }

.app-mock .tree-node--selected:hover { background: var(--bg-selected-row-hover); }

.app-mock .tree-ribbon {
  align-self: stretch;
  background: var(--bg-ribbon-off);
  border-radius: 0 2px 2px 0;
  transition: background var(--transition);
}

.app-mock .tree-ribbon--on { background: var(--bg-ribbon-on); }

.app-mock .tree-node-main {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.app-mock .tree-indent { flex-shrink: 0; }

.app-mock .tree-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  flex-shrink: 0;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.app-mock .tree-toggle:hover { background: var(--bg-hover); }

.app-mock .tree-toggle--empty {
  visibility: hidden;
  pointer-events: none;
}

.app-mock .tree-toggle-icon {
  width: 12px;
  height: 12px;
  opacity: 0.75;
  display: block;
}

.app-mock .tree-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-right: 5px;
}

.app-mock .tree-icon--repo { filter: var(--folder-repo-filter); }
.app-mock .tree-icon--workspace { filter: var(--folder-workspace-filter); }

.app-mock .tree-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-mock .tree-node--root .tree-label { font-weight: 600; }

.app-mock .tree-revision-count {
  flex-shrink: 0;
  margin-left: 5px;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.app-mock .tree-col-status {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  padding: 0 4px 0 2px;
}

.app-mock .status-chip {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 10px;
  cursor: pointer;
  padding: 1px 4px 1px 2px;
  white-space: nowrap;
}

/* The real chip opens an info popup; here it is a tooltip only, so it must
   not advertise a click. */
.app-mock span.status-chip {
  cursor: default;
}

.app-mock span.status-chip:hover { background: transparent; }

/* The chip glyph is an inline <svg> filled with currentColor, so it inherits
   the chip's status colour and needs no CSS mask (see js/demo.js). */
.app-mock .status-chip-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-right: 4px;
  display: block;
}

.app-mock .status-chip--orange { color: var(--status-orange); }
.app-mock .status-chip--pale-green { color: var(--status-pale-green); }
.app-mock .status-chip--red { color: var(--status-red); }
.app-mock .status-chip--green { color: var(--status-green); }
.app-mock .status-chip--grey { color: var(--status-grey); }

.app-mock .tree-node--deleted .tree-node-main { opacity: 0.5; }
.app-mock .tree-label--deleted { text-decoration: line-through; }

.app-mock .tree-col-size,
.app-mock .tree-col-modified {
  text-align: right;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  padding-right: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-mock .tree-node--selected .tree-col-size,
.app-mock .tree-node--selected .tree-col-modified { color: var(--text-primary); }

/* ------------------------------------------------------- history panel */

.app-mock .history-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.app-mock .history-table-wrap {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.app-mock .history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
}

.app-mock .history-table th {
  text-align: left;
  padding: 5px 10px;
  background: var(--bg-toolbar);
  border-bottom: 1px solid var(--outline-subtle);
  color: var(--text-muted);
  font-weight: 600;
  box-shadow: 0 1px 0 var(--outline-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-mock .history-table td {
  padding: 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
}

.app-mock .history-table tbody tr {
  transition: background var(--transition);
}

.app-mock .history-table tbody tr:hover { background: var(--bg-hover); }

.app-mock .history-row--alt { background: var(--bg-row-alt); }

.app-mock .history-revision-cell {
  display: flex;
  align-items: center;
  gap: 2px;
}

.app-mock .history-revision-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  background: transparent;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.app-mock .history-revision-toggle-icon {
  width: 12px;
  height: 12px;
  opacity: 0.75;
  display: block;
}

.app-mock .history-table th.col-revision,
.app-mock .history-table td.col-revision { padding-left: 6px; padding-right: 4px; }

.app-mock .history-table .col-revision {
  width: 58px;
  font-variant-numeric: tabular-nums;
}

.app-mock .history-table th.col-date,
.app-mock .history-table td.col-date { padding-left: 6px; padding-right: 6px; }

.app-mock .history-table .col-date {
  width: 112px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  white-space: nowrap;
}

.app-mock .history-table .col-author { width: 96px; }

.app-mock .history-author-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.app-mock .history-author-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-mock .history-table .col-description {
  white-space: normal;
  line-height: 1.35;
}

.app-mock .user-avatar {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #12160f;
}

.app-mock .history-footer {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  background: var(--bg-toolbar);
  border-top: 1px solid var(--outline-subtle);
  flex-shrink: 0;
  gap: 8px;
}

.app-mock .history-footer img {
  width: 14px;
  height: 14px;
  opacity: 0.55;
}

.app-mock .history-search {
  flex: 1;
  min-width: 0;
  background: var(--bg-input);
  border: 1px solid var(--outline-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 11px;
  padding: 3px 8px;
  outline: none;
  cursor: default;
}

.app-mock .history-search::placeholder { color: var(--text-muted); }


/* ==========================================================================
   Static panels used by the stacked screenshots: the Organization page's
   Availability and Members panels, and the History panel's graph view.
   Transcribed from availability.css and components.css.
   ========================================================================== */

/* The screenshots are decoration — only the graph view answers the mouse. */
.app-mock--static { cursor: default; }
.app-mock--static .menu-bar,
.app-mock--static .panel-header,
.app-mock--static .panel-tabs,
.app-mock--static .path-bar,
.app-mock--static .toolbar-wrap,
.app-mock--static .file-tree-container,
.app-mock--static .availability-container,
.app-mock--static .members-container { pointer-events: none; }

.app-mock--static .file-tree-container { overflow: hidden; }

/* The availability cells keep the app's hover highlight, so the grid feels
   alive even though nothing here is wired up. */
.app-mock--static .availability-cell { pointer-events: auto; }
.app-mock .availability-cell:hover { filter: brightness(1.08); }

/* The back window's tab strip is 15px wider than its repository panel, so any
   sliver of file tree left showing would drag a truncated tab out with it. The
   strip is all but covered anyway; drop it rather than clip it. */
.shot--back .menu-bar-tabs { display: none; }

.app-mock .split--org {
  grid-template-columns: minmax(0, 0.8fr) var(--gutter-size) minmax(0, 0.2fr);
}

/* ---- Device Management ----
   Transcribed from the devices block of the client's modals.css. The cards sit
   on the same --bg-panel-inner as the panel body they are in, exactly as in the
   app: the 1px --outline-subtle border is the only thing separating them. */

.app-mock .devices-panel {
  height: 100%;
  overflow: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-mock .device-card {
  position: relative;
  background: var(--bg-panel-inner);
  border: 1px solid var(--outline-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.app-mock .device-card-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.app-mock .device-card-remove img {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.app-mock .device-card-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 30px;
  margin-bottom: 10px;
}

.app-mock .device-card-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.app-mock .device-card-name {
  font-weight: 700;
  color: var(--text-primary);
}

.app-mock .device-card-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--status-pale-green);
  border: 1px solid var(--status-pale-green);
  border-radius: 999px;
  padding: 1px 7px;
}

.app-mock .device-card-host {
  font-size: 11px;
  color: var(--text-muted);
}

.app-mock .device-card-files {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-mock .device-card-nofiles {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

.app-mock .device-files-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  font-size: 11px;
  color: var(--text-muted);
  text-align: left;
}

.app-mock .device-files-toggle .tree-toggle-icon {
  width: 12px;
  height: 12px;
  opacity: 0.75;
  flex-shrink: 0;
}

.app-mock .panel-icon--availability,
.app-mock .panel-icon--devices,
.app-mock .panel-icon--members { filter: var(--icon-organization-filter); }

/* The photo covers the initial; if the file is missing it removes itself and
   the initial is what remains. */
.app-mock .user-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-mock .user-avatar--sm {
  width: 16px;
  height: 16px;
  font-size: 8px;
}

.app-mock .user-avatar--lg {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

/* -------------------------------------------------------- availability */

.app-mock .availability-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.app-mock .availability-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 8px;
  background: var(--bg-toolbar);
  border-bottom: 1px solid var(--outline-subtle);
  flex-shrink: 0;
  gap: 8px;
}

.app-mock .availability-week-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.app-mock .availability-week-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.app-mock .availability-week-btn img { width: 12px; height: 12px; opacity: 0.75; }

.app-mock .availability-week-label {
  display: inline-block;
  width: 200px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  flex-shrink: 0;
}

.app-mock .availability-week-label strong { color: var(--text-primary); font-weight: 600; }

.app-mock .availability-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.app-mock .availability-legend { display: flex; align-items: center; gap: 3px; }
.app-mock .availability-legend-label { font-size: 10px; color: var(--text-muted); }

.app-mock .availability-legend-swatch { width: 10px; height: 10px; border-radius: 2px; }
.app-mock .availability-legend-swatch--0 {
  background: var(--bg-input);
  border: 1px solid var(--outline-subtle);
}
.app-mock .availability-legend-swatch--1 { background: rgba(46, 160, 67, 0.35); }
.app-mock .availability-legend-swatch--2 { background: rgba(46, 160, 67, 0.55); }
.app-mock .availability-legend-swatch--3 { background: rgba(46, 160, 67, 0.75); }
.app-mock .availability-legend-swatch--4 { background: #2ea043; }

.app-mock .availability-timezone {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid var(--outline-subtle);
  border-radius: var(--radius-sm);
  padding: 2px 18px 2px 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23999999' d='M0 0h8L4 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
}

.app-mock .availability-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 6px 8px 8px;
}

.app-mock .availability-charts {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.app-mock .availability-section-block {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-mock .availability-section--team {
  position: relative;
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-mock .availability-section-header { flex-shrink: 0; padding-left: 36px; }

.app-mock .availability-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin: 0;
}

.app-mock .availability-section-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin: 1px 0 0;
}

.app-mock .availability-grid-wrap { flex: 1; min-height: 0; display: flex; gap: 4px; }

.app-mock .availability-hour-labels {
  display: flex;
  flex-direction: column;
  width: 32px;
  flex-shrink: 0;
  padding-top: 18px;
}

.app-mock .availability-hour-label {
  flex: 1;
  display: flex;
  align-items: flex-start;
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1;
  padding-top: 1px;
}

.app-mock .availability-grid-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.app-mock .availability-day-headers {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.app-mock .availability-day-header {
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.app-mock .availability-columns { flex: 1; min-height: 0; display: flex; gap: 2px; }

.app-mock .availability-column {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--outline-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-input);
}

.app-mock .availability-cell {
  flex: 1;
  min-height: 0;
  border-bottom: 1px solid var(--outline-subtle);
  background: var(--bg-input);
}

.app-mock .availability-cell:last-child { border-bottom: none; }
.app-mock .availability-cell--level-1 { background: rgba(46, 160, 67, 0.35); }
.app-mock .availability-cell--level-2 { background: rgba(46, 160, 67, 0.55); }
.app-mock .availability-cell--level-3 { background: rgba(46, 160, 67, 0.75); }
.app-mock .availability-cell--level-4 { background: #2ea043; }

.app-mock .availability-range-outline {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 2px;
  box-sizing: border-box;
  pointer-events: none;
}

.app-mock .availability-range-outline--meeting {
  background-color: #1e1e1e;
  background-image: repeating-linear-gradient(45deg, #1e1e1e, #1e1e1e 4px,
    rgba(232, 160, 64, 0.45) 4px, rgba(232, 160, 64, 0.45) 7px);
  box-shadow: inset 0 0 0 2px #e8a040;
}

.app-mock .availability-sidebar {
  flex: 0 0 auto;
  width: min(180px, 28%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.app-mock .availability-sidebar-section {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  background: var(--bg-toolbar);
  border: 1px solid var(--outline-subtle);
  border-radius: var(--radius-sm);
}

.app-mock .availability-sidebar-heading {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.app-mock .availability-name-list,
.app-mock .availability-meeting-list { list-style: none; margin: 0; padding: 0; }

.app-mock .availability-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 2px 0;
}

.app-mock .availability-meeting-item + .availability-meeting-item { margin-top: 4px; }

.app-mock .availability-meeting-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-align: left;
}

.app-mock .availability-meeting-time { font-size: 10px; font-weight: 600; color: #e8a040; }

.app-mock .availability-meeting-subject {
  font-size: 11px;
  color: var(--text-primary);
  margin-top: 1px;
  line-height: 1.3;
}

/* ------------------------------------------------------------- members */

.app-mock .members-container { flex: 1; overflow: hidden; min-height: 0; }
.app-mock .members-list { list-style: none; margin: 0; padding: 0; }

.app-mock .member-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.app-mock .member-card--alt { background: var(--bg-row-alt); }
.app-mock .member-avatar { grid-row: 1; grid-column: 1; align-self: start; }
.app-mock .member-main { grid-row: 1; grid-column: 2; min-width: 0; }

.app-mock .member-name {
  font-size: 12px;
  font-weight: 700;
  text-shadow: var(--text-shadow);
  line-height: 1.2;
}

.app-mock .member-you-tag { font-weight: 500; color: var(--text-muted); }
.app-mock .member-email { font-size: 10px; color: var(--text-muted); margin-top: 1px; }

.app-mock .member-presence {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  margin-top: 3px;
}

.app-mock .member-presence--online { color: #5ecf7a; }
.app-mock .member-presence--away { color: #e8a040; }
.app-mock .member-presence--offline { color: #888888; }

.app-mock .member-presence-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.app-mock .member-presence-dot--online { background: #5ecf7a; }
.app-mock .member-presence-dot--away { background: #e8a040; }
.app-mock .member-presence-dot--offline { background: #888888; }

.app-mock .member-status {
  grid-row: 2;
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  margin: 0;
  padding: 5px 7px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--text-muted);
  font-style: italic;
  background: var(--bg-panel-inner);
  border: 1px solid var(--outline-subtle);
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------- graph view */

.app-mock .graph-view {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-panel-inner);
  cursor: grab;
  user-select: none;
}

.app-mock .graph-view:active { cursor: grabbing; }

.app-mock .graph-view-file {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 2;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(48, 48, 48, 0.85);
  border-radius: var(--radius-sm);
}

.app-mock .graph-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; }

.app-mock .graph-edges { position: absolute; top: 0; left: 0; overflow: visible; }
.app-mock .graph-edge { fill: none; stroke: var(--outline); stroke-width: 2; }
.app-mock .graph-edge--dead { stroke: var(--outline-subtle); }

.app-mock .graph-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 176px;
  height: 118px;
  padding: 8px 10px;
  text-align: left;
  color: var(--text-primary);
  background: var(--bg-panel-header);
  border: 1px solid var(--outline-subtle);
  border-radius: var(--radius-md);
  box-sizing: border-box;
}

.app-mock .graph-card--current {
  border-color: var(--bg-selected);
  box-shadow: 0 0 0 1px var(--bg-selected);
}

.app-mock .graph-card--dead { opacity: 0.45; }

.app-mock .graph-card-version {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.app-mock .graph-card-author {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.app-mock .graph-card-author-name {
  min-width: 0;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-mock .graph-card-status {
  margin-left: auto;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.app-mock .graph-card-status--added { color: var(--status-green); }
.app-mock .graph-card-status--deleted { color: var(--status-red); }

.app-mock .graph-card-desc {
  flex: 1;
  min-height: 0;
  padding: 6px 8px;
  background: var(--bg-panel-inner);
  border: 1px solid var(--outline-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.app-mock .graph-card-desc-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.35;
  color: var(--text-muted);
}
