body:has(> .git-unavailable-banner) { display: flex; flex-direction: column; height: 100vh; }
body:has(> .git-unavailable-banner) #app.app { height: auto; flex: 1; min-height: 0; }
.secure-store-banner {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 32px;
  padding: 4px 12px;
  background: var(--bg-panel);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.3;
  -webkit-app-region: no-drag;
}
.secure-store-message { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secure-store-banner button {
  flex: none;
  color: var(--text);
  background: var(--bg-element);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: inherit;
}
.secure-store-banner details { position: relative; flex: none; color: var(--text-muted); }
.secure-store-banner summary { cursor: pointer; white-space: nowrap; }
.secure-store-banner pre {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  right: 0;
  width: min(520px, calc(100vw - 32px));
  max-height: 120px;
  margin: 0;
  padding: 8px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
  user-select: text;
}

.git-unavailable-banner {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 12px;
  color: var(--text);
  background: var(--bg-chrome, var(--bg-panel));
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  -webkit-app-region: no-drag;
}
/* The banner precedes the app header, so native controls still occupy its
   first titlebar-height pixels. Keep content below that area on every desktop. */
[data-desktop="1"] .git-unavailable-banner {
  padding-top: calc(max(40px, env(titlebar-area-height, 40px)) + 6px);
  flex-wrap: wrap;
}
.git-unavailable-message { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.git-unavailable-status { color: var(--text-muted); }
.git-unavailable-banner button {
  flex: none;
  padding: 4px 10px;
  color: var(--text);
  background: var(--bg-element);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.git-unavailable-dismiss { background: transparent; }
