.projects-actions { display: flex; align-items: center; gap: .65rem; }

.project-nav .project-nav-link {
  display: block;
  width: 100%;
  padding: .48rem .6rem;
  border-radius: .35rem;
  background: transparent;
  color: #24415f;
  text-align: left;
  font-weight: 600;
}
.project-nav .project-nav-link:hover { background: #edf4fa; }

.operations-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}
.operations-nav {
  position: sticky;
  top: 5.2rem;
  background: #fff;
  border: 1px solid #dbe1e8;
  border-radius: .55rem;
  padding: .9rem;
}
.operations-nav > strong { display: block; padding: .35rem .45rem .75rem; color: #44566a; }
.operations-nav nav { display: grid; gap: .25rem; }
.operations-nav a {
  padding: .6rem .65rem;
  border-radius: .35rem;
  color: #24415f;
  text-decoration: none;
}
.operations-nav a:hover { background: #edf4fa; }
.operations-nav a.active { background: #dfeef9; color: #064e87; font-weight: 750; box-shadow: inset 3px 0 #0866b2; }
.operations-main { min-width: 0; }
.settings-section { margin-bottom: 1.25rem; }
.status-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: .25rem .58rem; font-size: .76rem; font-weight: 750; white-space: nowrap; }
.status-badge.read-only { background: #e7edf3; color: #405264; }
.status-badge.writable { background: #dff3e5; color: #165b2d; }
.eyebrow { display: block; color: #607386; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.section-heading h2, .section-heading p { margin-top: 0; }
.console-form { margin: 1rem 0; }
.operation-results { display: grid; gap: .5rem; }
.operation-results details, .steering-item, .sss-result { background: #fff; border: 1px solid #dbe1e8; border-radius: .45rem; padding: .8rem 1rem; }
.operation-results summary { display: flex; align-items: center; gap: .65rem; cursor: pointer; }
.operation-results time { margin-left: auto; color: #66717d; font-size: .82rem; }
.operation-results pre, .steering-item dl { max-height: 22rem; overflow: auto; }
.steering-loader { margin-bottom: 1rem; }
.steering-context { display: flex; gap: .6rem; align-items: center; margin: .8rem 0; }
.steering-list { display: grid; gap: .65rem; margin-top: 1rem; }
.steering-item header { display: flex; justify-content: space-between; gap: .75rem; }
.steering-item dl { font-size: .86rem; grid-template-columns: 9rem 1fr; }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.status-grid article { display: grid; gap: .2rem; background: #fff; border: 1px solid #dbe1e8; border-radius: .45rem; padding: .9rem; }
.status-grid article > span, .status-grid small { color: #607386; }

.explorer-dialog {
  width: min(1080px, calc(100vw - 2rem));
  height: min(780px, calc(100vh - 2rem));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid #9ba9b7;
  border-radius: .7rem;
  box-shadow: 0 24px 70px #08152266;
}
.explorer-dialog::backdrop { background: #10223599; backdrop-filter: blur(2px); }
.explorer-dialog-shell { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.explorer-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid #dbe1e8; background: #f8fafc; }
.explorer-dialog-header h2 { margin: .1rem 0 0; }
.icon-button { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border-radius: 50%; background: #e4eaf0; color: #23364a; font-size: 1.35rem; }
.explorer-dialog-body { min-height: 0; overflow: auto; padding: 1rem; }
.explorer-context { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.explorer-context h3, .explorer-context p { margin: .15rem 0; }
.explorer-root-tabs { display: flex; gap: .45rem; margin: 1rem 0; overflow: auto; }
.explorer-root-tabs button { display: grid; gap: .1rem; min-width: 9rem; background: #e8edf2; color: #263b50; text-align: left; }
.explorer-root-tabs button.active { background: #0866b2; color: #fff; }
.explorer-root-tabs small { font-size: .68rem; opacity: .8; }
.explorer-breadcrumb { display: flex; align-items: center; gap: .25rem; min-height: 2.3rem; padding: .35rem .5rem; background: #edf2f6; border-radius: .4rem; overflow: auto; }
.explorer-breadcrumb button { padding: .25rem .4rem; background: transparent; color: #075aa6; }
.explorer-workspace { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.35fr); gap: .8rem; min-height: 360px; margin-top: .75rem; }
.explorer-list, .explorer-preview { min-height: 0; max-height: 430px; overflow: auto; background: #fff; border: 1px solid #dbe1e8; border-radius: .45rem; }
.explorer-list { padding: .35rem; }
.explorer-row { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr) auto; gap: .45rem; align-items: center; width: 100%; padding: .52rem .6rem; background: transparent; color: #24384d; text-align: left; }
.explorer-row:hover { background: #edf4fa; }
.explorer-row.selected { background: #dfeef9; box-shadow: inset 3px 0 #0866b2; }
.explorer-row small { color: #607386; }
.explorer-row.unavailable { opacity: .58; }
.explorer-preview { display: grid; grid-template-rows: auto minmax(0, 1fr); padding: .75rem; }
.explorer-preview header h4 { margin: .2rem 0 .5rem; overflow-wrap: anywhere; }
.explorer-preview pre { min-height: 0; overflow: auto; margin: 0; white-space: pre; }
.explorer-placeholder { place-self: center; max-width: 22rem; color: #687b8e; text-align: center; }
.explorer-placeholder span { font-size: 2rem; }
.explorer-empty { padding: .5rem; }
.explorer-editor { margin-top: .8rem; background: #fff; border: 1px solid #dbe1e8; border-radius: .45rem; padding: .75rem; }
.explorer-editor summary { cursor: pointer; font-weight: 750; }
.explorer-editor form { margin-top: .75rem; }
.explorer-editor textarea { min-height: 12rem; font-family: ui-monospace, Consolas, monospace; }
.explorer-delete { display: flex; justify-content: flex-end; margin-top: .7rem; }
.explorer-local-error { margin: .75rem 0; }
.project-explorer-boundary .boundary-note { margin-top: 1.2rem; }

@media (max-width: 800px) {
  .operations-layout { grid-template-columns: 1fr; }
  .operations-nav { position: static; }
  .operations-nav nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explorer-workspace { grid-template-columns: 1fr; }
  .explorer-list, .explorer-preview { max-height: 280px; }
}

@media (max-width: 560px) {
  .projects-actions { align-items: stretch; flex-direction: column; }
  .operations-nav nav, .status-grid { grid-template-columns: 1fr; }
  .explorer-dialog { width: calc(100vw - .5rem); height: calc(100vh - .5rem); }
  .explorer-dialog-body { padding: .7rem; }
  .steering-loader { display: grid; }
}
