.project-home {
  height: 100%;
  overflow: auto;
  color: #17202a;
  background:
    radial-gradient(circle at 92% 2%, rgb(25 168 121 / 12%), transparent 30rem),
    #f4f6f8;
}
.project-home-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: rgb(23 32 42 / 96%);
  border-bottom: 1px solid #0d141b;
  backdrop-filter: blur(14px);
}
.project-home-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}
.project-home-components {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.project-home-actions { display: flex; align-items: center; gap: 8px; }
.project-home-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 80px;
}
.project-home-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.project-home-heading h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1; }
.project-home-heading p { margin: 11px 0 0; color: var(--muted); font-size: 15px; }
.project-home-status { min-height: 20px; margin-bottom: 10px; color: var(--muted); }
.project-home-status.error { color: #a52222; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.project-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 190px;
  padding: 20px;
  background: #fff;
  border: 1px solid #d8dee5;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgb(36 47 59 / 6%);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.project-card:hover { border-color: #aeb9c4; box-shadow: 0 14px 34px rgb(36 47 59 / 10%); }
.project-card.sortable-ghost { opacity: .35; }
.project-card.sortable-chosen { transform: scale(.99); }
.project-card-top { display: flex; align-items: center; gap: 10px; }
.project-card-drag {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #7b8793;
  background: #f4f6f8;
  border: 1px solid #d8dee5;
  border-radius: 4px;
  cursor: grab;
}
.project-card-drag:active { cursor: grabbing; }
.project-card-name {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 9px;
  color: #17202a;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
}
.project-card-name:hover { border-color: #d8dee5; }
.project-card-name:focus { border-color: var(--accent); outline: 2px solid rgb(8 120 209 / 14%); }
.project-card-id { align-self: start; margin: 15px 0; color: #85909b; font-size: 11px; overflow-wrap: anywhere; }
.project-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.project-card-open { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.project-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #c8d0d8;
  border-radius: 8px;
  text-align: center;
}
.catalog-order-main {
  width: min(1040px, calc(100% - 24px));
  margin: 0 auto;
  padding: 20px 0 32px;
}
.catalog-order-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.catalog-order-heading h1 { margin: 0; font-size: 24px; line-height: 1.1; }
.catalog-order-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.catalog-order-status { min-height: 16px; margin-bottom: 4px; color: var(--muted); }
.catalog-order-status.error { color: #a52222; }
.catalog-order-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.catalog-order-item {
  display: grid;
  grid-template-columns: 28px 28px minmax(0, 1fr);
  align-items: center;
  min-height: 38px;
  padding: 3px 8px;
  background: #fff;
  border: 1px solid #d8dee5;
  border-radius: 4px;
}
.catalog-order-item.sortable-ghost { opacity: .35; }
.catalog-order-item.sortable-chosen { border-color: #91bde0; box-shadow: 0 4px 12px rgb(36 47 59 / 12%); }
.catalog-order-position { color: #85909b; font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; }
.catalog-order-handle {
  width: 24px;
  height: 28px;
  padding: 0;
  color: #65717e;
  background: transparent;
  border: 0;
  border-radius: 3px;
  cursor: grab;
  touch-action: none;
}
.catalog-order-handle:hover { background: #eef2f5; }
.catalog-order-handle:active { cursor: grabbing; }
.catalog-order-identity { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding-left: 5px; }
.catalog-order-identity strong { flex: 0 1 auto; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-order-identity code { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-order-empty {
  padding: 48px 24px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #c8d0d8;
  border-radius: 8px;
  text-align: center;
}
.project-components-dialog { align-self: center; width: min(720px, 100%); max-height: calc(100vh - 40px); overflow: auto; }
.project-components-dialog h2 { margin: 0; }
.project-components-dialog p { margin: 5px 0 0; }
.project-component-picker { display: grid; gap: 8px; max-height: min(58vh, 620px); margin-top: 20px; overflow: auto; }
.project-component-picker-group { padding: 12px; background: #f7f9fa; border: 1px solid #dce2e8; border-radius: 5px; }
.project-component-picker-children { display: grid; gap: 5px; margin-top: 8px; padding-left: 24px; }
.project-component-picker-row { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.project-component-picker-row span { min-width: 0; overflow-wrap: anywhere; }
.project-component-picker-row small { color: var(--muted); }
.editor-home-link { display: grid; place-items: center; width: 30px; height: 30px; color: #fff; border-radius: 4px; text-decoration: none; font-size: 20px; }
.editor-home-link:hover { background: #263340; }
