.suite-brand {
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 6px 0;
}
.suite-brand > .icon:last-child { width: 12px; height: 12px; color: var(--muted); }
.suite-brand:hover > span { color: var(--accent); }
.app-header { position: relative; gap: 14px; }
.current-project-name {
  min-width: 0;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}
.start-menu {
  position: fixed;
  top: 54px;
  left: 16px;
  width: 215px;
  padding: 6px;
  z-index: 160;
  background: #162630;
  border: 1px solid #3b5362;
  border-radius: 5px;
  box-shadow: 0 12px 30px #0007;
}
.start-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 12px;
}
.start-menu button:hover { background: #254038; color: var(--accent); }
.start-menu .icon { width: 17px; height: 17px; }
.name-popover {
  position: fixed;
  z-index: 170;
  width: 330px;
  max-width: calc(100vw - 24px);
  padding: 19px;
  background: #152630;
  border: 1px solid #4b6574;
  border-radius: 5px;
  box-shadow: 0 14px 36px #0008;
}
.name-popover label { display: block; margin-bottom: 10px; font-size: 13px; }
.filename-input input, .projects-tools input, .rename-form input {
  width: 100%;
  min-width: 0;
  height: 37px;
  padding: 8px 10px;
  border: 1px solid #4d687a;
  border-radius: 3px;
  background: #0d1c26;
  color: var(--text);
  font-size: 13px;
}
input::placeholder { color: #a3b6c4; opacity: 1; }
.filename-input input[aria-invalid=true], .rename-form input[aria-invalid=true] { border-color: var(--error); }
.name-popover p { margin: 10px 0 0; color: #b7c9d6; font-size: 11px; line-height: 1.65; }
.name-popover .name-error, .name-error { color: var(--error); }
.name-error:empty { display: none; }
.name-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 19px; }
.local-save-state {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 50%;
  color: #a6bac9;
  font-size: 10px;
  pointer-events: none;
}
.local-save-state:empty { display: none; }
.projects-dialog {
  width: min(840px, calc(100vw - 40px));
  max-height: min(760px, calc(100svh - 64px));
  padding: 0;
  border: 1px solid #3c5362;
  border-radius: 6px;
  background: #101b24;
  color: var(--text);
  box-shadow: 0 24px 60px #0009;
}
.projects-dialog[open] { display: flex; flex-direction: column; }
.projects-dialog::backdrop { background: #03090eb8; }
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 23px 25px 18px;
  flex: none;
}
.projects-header h2 { font-size: 18px; font-weight: 500; }
.projects-header p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.projects-tools { display: flex; gap: 12px; padding: 0 25px 18px; flex: none; }
.projects-tools input { max-width: 340px; }
.projects-tools > button { margin-left: auto; }
.project-list { min-height: 130px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #415866 #101b24; }
.project-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 25px;
  border-top: 1px solid #2a3a45;
}
.project-thumbnail { width: 108px; height: 72px; object-fit: contain; background: #0c1720; border-radius: 3px; }
.project-thumbnail-placeholder { display: flex; align-items: center; justify-content: center; color: #7da3b6; }
.project-thumbnail-placeholder .icon { width: 32px; height: 32px; }
.project-detail { min-width: 0; }
.project-title { display: block; padding: 0; border: 0; background: transparent; color: #e1edf2; font-size: 14px; font-weight: 550; overflow-wrap: anywhere; text-align: left; }
.project-title:hover:not(:disabled) { color: var(--accent); }
.project-meta { display: flex; flex-wrap: wrap; gap: 3px 8px; margin: 8px 0 0; color: #afc2cf; font-size: 11px; line-height: 1.65; }
.project-meta > span { white-space: nowrap; }
.project-meta > span + span::before { content: '·'; margin-right: 8px; }
.project-states { display: flex; flex-wrap: wrap; gap: 5px 15px; margin-top: 7px; color: #a9bcc9; font-size: 10px; }
.project-states .cached { color: var(--accent); }
.project-states .failed { color: var(--error); }
.project-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; width: 158px; }
.project-actions button { min-height: 29px; padding: 5px 9px; font-size: 11px; font-weight: 400; }
.project-actions .quiet-action { border-color: transparent; background: transparent; color: #b2c6d3; }
.project-actions .quiet-action:hover { background: #283843; color: var(--text); }
.project-actions .delete-action:hover { color: var(--error); }
.projects-empty { padding: 36px 25px 45px; text-align: center; }
.projects-empty strong { display: block; font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.projects-empty p { font-size: 12px; color: var(--muted); margin: 0; }
.projects-footer { display: flex; gap: 20px; align-items: center; justify-content: space-between; border-top: 1px solid #2a3a45; padding: 17px 25px; flex: none; }
.projects-footer span { font-size: 11px; color: #c5d6e0; font-variant-numeric: tabular-nums; }
.projects-footer p { font-size: 11px; color: var(--muted); margin: 5px 0 0; }
.projects-footer button { font-size: 11px; font-weight: 400; }
.rename-form { display: flex; flex-wrap: wrap; gap: 7px; }
.rename-form input { flex: 1; min-width: 140px; }
.rename-form button { padding: 5px 9px; min-height: 30px; font-size: 11px; }
.rename-form p { width: 100%; margin: 0; font-size: 11px; line-height: 1.5; }
@media (max-width: 1050px) { .current-project-name { display: none; } }
@media (max-width: 620px) {
  .suite-brand > .icon:last-child { display: none; }
  .app-header { gap: 8px; }
  .projects-dialog { width: calc(100vw - 20px); max-height: calc(100svh - 28px); }
  .projects-header { padding: 19px 16px 16px; }
  .projects-tools { padding: 0 16px 15px; gap: 8px; }
  .projects-tools input, .filename-input input, .rename-form input { font-size: 16px; }
  .project-row { grid-template-columns: 74px minmax(0, 1fr); padding: 17px 16px; gap: 11px; }
  .project-thumbnail { width: 74px; height: 65px; }
  .project-title { font-size: 16px; }
  .project-meta { font-size: 14px; }
  .project-states { font-size: 14px; }
  .project-actions { grid-column: 2; justify-content: flex-start; width: auto; gap: 5px; }
  .project-actions button { font-size: 14px; min-height: 36px; }
  .projects-footer { padding: 15px 16px; flex-wrap: wrap; gap: 12px; }
  .local-save-state { bottom: 58px; left: 14px; transform: none; max-width: 76%; text-align: left; }
  .name-popover { padding: 17px; }
  .projects-header p, .projects-footer span, .projects-footer p, .projects-footer button { font-size: 14px; }
  .projects-empty strong { font-size: 16px; }
  .projects-empty p { font-size: 14px; }
  .name-popover label, .name-popover p { font-size: 14px; }
  .name-popover .name-actions button { min-height: 38px; font-size: 14px; }
}
