.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: stretch;
  min-height: 57px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 176px;
  padding-right: 18px;
}
.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 45%, transparent));
}
.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.brand-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.tabs {
  display: flex;
  align-items: stretch;
  gap: 3px;
  min-width: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-width: 112px;
  max-width: 220px;
  padding: 0 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.tab:hover {
  color: var(--text);
  background: var(--surface-2);
}
.tab.active {
  border-bottom-color: var(--accent);
  color: var(--text);
  background: var(--surface-2);
}
.tab-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tab-close {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}
.tab-close:hover {
  color: var(--red);
}
.tab-add {
  align-self: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.top-status {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 152px;
  justify-content: flex-end;
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.top-status span:last-child {
  max-width: 155px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace {
  flex: 1;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 23px 25px 31px;
}
.screen {
  min-width: 0;
}
.screen-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 13px;
  margin-bottom: 16px;
}
.screen-head h1 {
  margin: 5px 0 4px;
  font-size: clamp(18px, 3vw, 24px);
  letter-spacing: -0.04em;
}
.screen-head p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.head-actions {
  display: flex;
  gap: 7px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.data-list {
  display: grid;
  gap: 0;
}
.data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.data-row:last-child {
  border-bottom: 0;
}
.metric-card {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.metric-label {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.metric-value {
  margin: 7px 0 10px;
  font-size: 19px;
}
.resource-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 10px;
}
.table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.data-table th {
  padding: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.data-table td {
  padding: 10px 8px;
  border-top: 1px solid var(--line-soft);
  font-size: 10px;
}
.project-card {
  display: grid;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.project-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.project-title {
  font-size: 13px;
  font-weight: 700;
}
.project-meta {
  color: var(--muted);
  font-size: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.form-grid .wide {
  grid-column: 1 / -1;
}
.terminal {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #030805;
  color: #c5eed6;
}
:root[data-tema="claro"] .terminal {
  background: #13251a;
  color: #dff5e4;
}
.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-bottom: 1px solid rgba(100, 200, 130, 0.18);
  color: #7da88d;
  font-size: 10px;
}
.terminal-tools {
  display: flex;
  gap: 4px;
}
.terminal-body {
  height: 238px;
  overflow: auto;
  padding: 11px;
  font-size: 10px;
  line-height: 1.8;
}
.log-line {
  display: grid;
  grid-template-columns: 75px 48px minmax(0, 1fr);
  gap: 8px;
}
.log-time {
  color: #6a8974;
}
.log-level {
  color: var(--cyan);
}
.log-level.ok {
  color: var(--accent);
}
.log-level.warn {
  color: var(--amber);
}
.log-level.error {
  color: var(--red);
}
.deploy-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 11px 0;
}
.deploy-step {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}
.deploy-step.done {
  color: var(--accent);
}
.deploy-step.current {
  color: var(--amber);
}
.maint-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
}
.preview-bar {
  display: flex;
  gap: 4px;
  padding: 7px;
  border-bottom: 1px solid var(--line);
}
.preview-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}
.preview-content {
  padding: 20px;
  text-align: center;
}
.preview-content strong {
  display: block;
  margin: 8px;
  color: var(--amber);
  font-size: 17px;
}
.command-palette {
  width: min(600px, 100%);
}
.command-input {
  width: 100%;
  padding: 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  outline: 0;
}
.command-list {
  display: grid;
  padding: 7px;
}
.command-item {
  display: flex;
  justify-content: space-between;
  padding: 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.command-item:hover {
  background: var(--surface-3);
}
@media (max-width: 900px) {
  .top-status {
    min-width: auto;
  }
  .top-status span:last-child {
    display: none;
  }
  .brand {
    min-width: 119px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .topbar {
    min-height: 46px;
    padding: 0 7px;
  }
  .brand {
    min-width: auto;
    padding-right: 7px;
  }
  .brand img {
    width: 22px;
    height: 22px;
  }
  .brand-sub {
    display: none;
  }
  .tab {
    min-width: 39px;
    padding: 0 7px;
  }
  .tab:not(.active) .tab-name {
    max-width: 100px;
  }
  .top-status {
    padding-left: 7px;
  }
  .workspace {
    padding: 18px 11px 25px;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .screen-head {
    align-items: center;
  }
}
