@font-face {
  font-family: Local;
  src: local("Inter");
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  font-family:
    Local,
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #273142;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.38;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
input,
textarea,
select {
  min-width: 0;
  outline: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #86acff;
  outline-offset: 3px;
}
button:hover:not(:disabled) {
  filter: brightness(0.96);
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 550;
  padding: 10px 14px;
  line-height: 1.2;
  white-space: nowrap;
}
.primary {
  background: #3166ec;
  color: white;
  box-shadow: 0 1px 3px #1d49b133;
}
.primary span {
  font-size: 15px;
}
.secondary {
  background: #fff;
  border: 1px solid #e3e6ed;
  color: #465063;
}
.quiet {
  padding: 8px 12px;
  color: #7c8596;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 21px;
  letter-spacing: -0.8px;
  font-weight: 450;
}
.brand b {
  font-weight: 650;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  background: #3166ec;
  color: white;
  border-radius: 8px;
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -4px;
  padding-right: 6px;
  line-height: 1;
}
.brand-mark span {
  font-size: 17px;
  align-self: flex-start;
  margin-top: 3px;
  letter-spacing: 0;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.8px;
  color: #758399;
}
.blue {
  color: #3166ec;
}
.status-dot,
.blue-dot,
.error-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #4ea67a;
  flex-shrink: 0;
}
.blue-dot {
  background: #497bea;
}
.error-dot {
  background: #de7348;
}
.login {
  min-height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  padding: 45px;
  background:
    radial-gradient(ellipse at 70% 25%, #e7efff70, transparent 60%), #f7f9fc;
}
.login-card {
  width: min(100%, 430px);
  padding: 36px 10px;
}
.login h1 {
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -2px;
  font-weight: 550;
  margin: 20px 0;
}
.login p {
  color: #7a8497;
  line-height: 1.8;
  margin: 0 0 32px;
}
.login label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin: 0 0 10px;
}
.login select {
  width: 100%;
  padding: 12px;
  border: 1px solid #dce2eb;
  background: white;
  border-radius: 7px;
}
.login .primary {
  width: 100%;
  padding: 14px;
  margin-top: 18px;
  justify-content: space-between;
}
.login small {
  display: block;
  text-align: center;
  font-size: 10px;
  color: #929aab;
  margin-top: 22px;
}
.login footer {
  color: #a2aaba;
  font-size: 11px;
}
.workspace {
  min-height: 100%;
  background: #f8f9fc;
}
.workspace header {
  height: 84px;
  padding: 0 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e7eaf0;
  background: #fff;
}
.workspace main {
  max-width: 1240px;
  padding: 70px 40px;
  margin: auto;
}
.workspace h1 {
  font-size: 38px;
  letter-spacing: -1.4px;
  font-weight: 550;
  margin: 18px 0 12px;
}
.workspace p {
  color: #8891a3;
}
.site-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 350px));
  gap: 24px;
}
.site-card {
  border: 1px solid #e1e6ee;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.site-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px #2430470b;
}
.site-thumb {
  height: 226px;
  background: linear-gradient(135deg, #e9eff7, #d9e7f6);
  padding: 35px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  color: #233b5b;
}
.site-thumb > span {
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -1.2px;
}
.site-thumb > div {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.7px;
}
.site-info {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-info > span {
  font-size: 10px;
  color: #8490a3;
}
.local-note {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #8b95a6;
}
.editor-app {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.editor-header {
  height: 62px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e8ef;
  background: #fff;
  z-index: 5;
  padding: 0 20px 0 18px;
  gap: 10px;
}
.header-left,
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.back-brand .brand-mark {
  width: 29px;
  height: 29px;
  font-size: 25px;
  border-radius: 7px;
}
.header-divider {
  height: 19px;
  width: 1px;
  background: #e6e9ef;
}
.site-name {
  font-size: 12px;
  font-weight: 600;
}
.chevron {
  color: #8d95a4;
  font-size: 16px;
  margin-left: -7px;
}
.local-badge {
  font-size: 8px;
  letter-spacing: 1px;
  background: #f3f5f8;
  color: #8a96a7;
  padding: 4px 6px;
  border-radius: 4px;
}
.header-actions {
  gap: 10px;
}
#save-status {
  font-size: 10px;
  color: #8b94a3;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 10px;
  max-width: 290px;
}
.retry {
  color: #3166ec;
  font-size: 10px;
  text-decoration: underline;
}
.icon-button {
  font-size: 23px;
  color: #788398;
  width: 25px;
  padding: 0;
  font-weight: 300;
}
.editor-body {
  display: flex;
  flex: 1;
  min-height: 0;
}
.left-panel {
  width: 238px;
  flex-shrink: 0;
  border-right: 1px solid #e5e8ef;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.right-panel {
  width: 270px;
  flex-shrink: 0;
  border-left: 1px solid #e5e8ef;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.panel-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid #edf0f4;
}
.panel-tabs button {
  font-size: 11px;
  color: #8d95a4;
  padding: 18px 0 16px;
  position: relative;
  white-space: nowrap;
}
.panel-tabs button.active {
  color: #2a3446;
  font-weight: 600;
}
.panel-tabs button.active:after {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  content: "";
  height: 2px;
  background: #3166ec;
}
.panel-tabs button span {
  margin-left: 3px;
}
.page-picker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 550;
  margin: 16px 14px 8px;
  border: 1px solid #e7eaf1;
  border-radius: 6px;
  padding: 10px;
  background: #fbfcfd;
}
.page-picker > span:last-child {
  color: #a2aaba;
}
.list-heading {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #a2aaba;
  font-weight: 600;
  padding: 20px 18px 13px;
}
#left-content {
  flex: 1;
  overflow: auto;
  padding-bottom: 20px;
  scrollbar-width: thin;
}
.layer-row {
  height: 34px;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  color: #657087;
}
.layer-select {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  height: 100%;
  padding: 0 10px 0 13px;
  text-align: left;
}
.layer-arrow {
  font-size: 13px;
  color: #9da5b5;
  width: 10px;
}
.layer-symbol {
  font-size: 13px;
  color: #8994a6;
  display: inline-flex;
  justify-content: center;
  width: 15px;
}
.layer-name {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.layer-row.selected {
  background: #edf3ff;
  border-color: #dde8fc;
  color: #3268d9;
}
.layer-row.selected .layer-symbol {
  color: #5381e2;
}
.layer-row:hover {
  background: #f6f8fc;
}
.layer-row.selected:hover {
  background: #edf3ff;
}
.depth-1 .layer-select {
  padding-left: 24px;
}
.depth-2 .layer-select {
  padding-left: 36px;
}
.depth-3 .layer-select {
  padding-left: 48px;
}
.depth-4 .layer-select {
  padding-left: 60px;
}
.depth-5 .layer-select {
  padding-left: 72px;
}
.drag-over {
  border-bottom: 2px solid #3166ec !important;
  background: #edf3ff;
}
.add-block {
  width: calc(100% - 32px);
  margin: 20px 16px 0;
  padding: 10px 8px;
  border: 1px dashed #dae1ed;
  border-radius: 6px;
  color: #8d99ad;
  font-size: 10px;
  text-align: left;
}
.panel-bottom {
  height: 66px;
  flex-shrink: 0;
  border-top: 1px solid #edf0f4;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.workspace-avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: #e9f0fd;
  color: #5e82c5;
  font-size: 12px;
  border-radius: 8px;
}
.panel-bottom b {
  display: block;
  font-size: 10px;
  font-weight: 550;
}
.panel-bottom small {
  display: block;
  font-size: 9px;
  color: #9ca5b5;
  margin-top: 4px;
}
.panel-bottom a {
  margin-left: auto;
  color: #9ca5b5;
}
.canvas-area {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #eef0f4;
}
.canvas-toolbar {
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #fafbfc;
  border-bottom: 1px solid #e5e8ef;
  position: relative;
}
.device-switch {
  display: flex;
  gap: 3px;
  background: #f0f2f6;
  padding: 3px;
  border-radius: 6px;
}
.device-switch button {
  width: 30px;
  height: 25px;
  border-radius: 4px;
  font-size: 18px;
  color: #a2aaba;
  line-height: 1;
}
.device-switch button.active {
  color: #426fc4;
  background: #fff;
  box-shadow: 0 1px 3px #24304712;
}
.canvas-size {
  font-size: 10px;
  color: #626d82;
}
.canvas-size span {
  color: #a1a9b8;
  margin-left: 7px;
  font-size: 9px;
}
.zoom-switch {
  position: absolute;
  right: 17px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: #8993a6;
  font-size: 9px;
}
.zoom-switch button {
  font-size: 15px;
  width: 20px;
}
.canvas-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 44px 40px 80px;
  scrollbar-width: thin;
  background-image: radial-gradient(#ccd2df 0.65px, transparent 0.65px);
  background-size: 12px 12px;
}
.artboard-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  font-size: 10px;
  color: #8b96a9;
  letter-spacing: 0.1px;
}
#canvas-stage {
  margin: auto;
  position: relative;
}
#canvas-frame {
  display: block;
  border: 0;
  background: white;
  box-shadow: 0 3px 18px #1e2b4310;
  border-radius: 1px;
}
.canvas-footer {
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2e6ed;
  background: #f9fafc;
  color: #9ba4b3;
  font-size: 8px;
  padding: 0 18px;
}
.canvas-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.canvas-footer .blue-dot {
  width: 5px;
  height: 5px;
}
.inspector-header {
  height: 52px;
  border-bottom: 1px solid #edf0f4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 19px;
  font-size: 11px;
  font-weight: 550;
}
.inspector-header > span:last-child {
  color: #a1a9b6;
  font-size: 15px;
}
#inspector {
  flex: 1;
  overflow: auto;
  scrollbar-width: thin;
}
.selected-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  border-bottom: 1px solid #edf0f4;
}
.selected-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #f0f4fc;
  color: #6482bb;
  border: 1px solid #e4ebf7;
  border-radius: 7px;
  font-size: 15px;
}
.selected-summary b {
  font-size: 11px;
  font-weight: 550;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  white-space: nowrap;
}
.selected-summary small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  color: #a4adbb;
}
.type-badge {
  font-size: 8px;
  color: #a1aaba;
  border-radius: 3px;
  background: #f5f6f9;
  padding: 3px 5px;
  margin-left: auto;
}
.inspector-section {
  padding: 18px;
  border-bottom: 1px solid #edf0f4;
}
.section-title {
  font-weight: 600;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.section-title > span {
  color: #9ea7b6;
  font-weight: 400;
}
.bp-badge {
  font-size: 8px;
  background: #f3f6fd;
  color: #7b91b8 !important;
  border-radius: 3px;
  padding: 3px 5px;
}
.property-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #959eae;
  margin: 0 0 12px;
}
.property-field > span {
  width: 74px;
  flex-shrink: 0;
  font-size: 10px;
}
.property-field input,
.property-field select,
.property-field textarea {
  border: 1px solid #e9ecf1;
  border-radius: 5px;
  background: #f9fafc;
  color: #5f6c83;
  padding: 8px;
  width: 100%;
  font-size: 10px;
  height: 31px;
}
.property-field select {
  padding-right: 4px;
}
.property-field input:disabled {
  color: #a4acb9;
  background: #f4f6f9;
}
.property-field.vertical {
  display: block;
}
.property-field.vertical > span {
  display: block;
  margin-bottom: 8px;
}
.property-field textarea {
  height: auto;
  line-height: 1.7;
  resize: vertical;
  min-height: 80px;
}
.field-row {
  display: flex;
  gap: 10px;
}
.field-row .property-field {
  flex: 1;
  display: block;
}
.field-row .property-field > span {
  display: block;
  margin-bottom: 7px;
}
.reset-override {
  font-size: 9px;
  color: #8497ba;
  padding: 0;
  margin-top: 3px;
}
.color-field {
  display: flex;
  align-items: center;
  font-size: 10px;
  color: #959eae;
  gap: 7px;
  margin: 0 0 12px;
}
.color-field > span {
  width: 67px;
  flex-shrink: 0;
}
.color-field input[type="color"] {
  padding: 0;
  border: 0;
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  background: none;
  cursor: pointer;
}
.color-field input:not([type="color"]) {
  border: 1px solid #e9ecf1;
  border-radius: 4px;
  background: #f9fafc;
  padding: 7px;
  min-width: 0;
  width: 100%;
  font-size: 10px;
  color: #7e8a9f;
}
.organize-buttons {
  display: flex;
  gap: 8px;
}
.organize-buttons button {
  border: 1px solid #e6eaf2;
  background: #fafbfd;
  border-radius: 5px;
  width: 44px;
  height: 29px;
  color: #8996ac;
  font-size: 16px;
}
.inspector-tip {
  font-size: 9px;
  color: #a5aebe;
  line-height: 1.7;
  margin: 14px 0 0;
}
.empty-state {
  padding: 40px 18px;
  text-align: center;
  color: #a2aabc;
  font-size: 11px;
  line-height: 1.8;
}
.readonly-note {
  font-size: 10px;
  color: #bd8e3c;
  background: #fff9ed;
  padding: 12px;
  margin: 0;
}
.panel-help {
  font-size: 10px;
  color: #a0aabc;
  margin: 0 18px 20px;
  line-height: 1.6;
}
.insert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
}
.insert-item {
  border: 1px solid #e7ecf5;
  border-radius: 7px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 13px;
  padding: 18px 8px;
  color: #8390a8;
  font-size: 10px;
}
.insert-item > span {
  font-size: 24px;
  color: #5e7fb5;
}
.page-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  width: 100%;
  text-align: left;
  font-size: 11px;
  color: #748197;
}
.page-row.selected {
  background: #edf3ff;
  color: #3166ec;
}
.page-row > span {
  font-size: 17px;
}
.page-row small {
  display: block;
  font-size: 9px;
  color: #a2aaba;
  margin-top: 5px;
}
.previewing .left-panel,
.previewing .right-panel {
  display: none;
}
#toast {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  padding: 13px 20px;
  border: 1px solid #e0e5ee;
  background: white;
  color: #5d6c86;
  box-shadow: 0 7px 28px #24304719;
  border-radius: 9px;
  font-size: 11px;
  max-width: 560px;
}
dialog {
  border: 1px solid #e0e5ee;
  border-radius: 14px;
  padding: 30px;
  width: min(440px, calc(100vw - 30px));
  color: #3b4961;
  box-shadow: 0 25px 100px #14223c30;
}
dialog::backdrop {
  background: #18223855;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
  font-weight: 550;
  margin: 0 0 12px;
}
dialog p {
  font-size: 12px;
  color: #8894a8;
  line-height: 1.8;
  margin: 0 0 24px;
}
dialog label {
  display: block;
  font-size: 11px;
  color: #8a96a9;
  margin: 18px 0;
}
dialog input {
  display: block;
  width: 100%;
  padding: 11px;
  border: 1px solid #e0e5ef;
  border-radius: 6px;
  margin-top: 9px;
}
dialog .dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}
#release-dialog .secondary {
  margin-top: 15px;
  display: flex;
  width: 100%;
}
#release-dialog .primary {
  display: flex;
  width: 100%;
}
@media (max-width: 1100px) {
  .left-panel {
    width: 205px;
  }
  .right-panel {
    width: 245px;
  }
  .header-actions {
    gap: 6px;
  }
  #save-status {
    max-width: 155px;
    font-size: 9px;
  }
  .local-badge,
  .canvas-size {
    display: none;
  }
  .canvas-scroll {
    padding-left: 25px;
    padding-right: 25px;
  }
  .zoom-switch {
    right: 8px;
  }
}
@media (max-width: 800px) {
  .left-panel,
  .right-panel {
    display: none;
  }
  .header-left {
    gap: 9px;
  }
  .header-actions #undo,
  .header-actions #redo,
  .header-actions > .header-divider,
  #save-status,
  .chevron {
    display: none;
  }
  .editor-header {
    padding: 0 12px;
    height: 58px;
  }
  .editor-header .primary {
    font-size: 10px;
    padding: 10px;
  }
  .site-name {
    font-size: 11px;
  }
  .canvas-toolbar {
    justify-content: flex-start;
    padding-left: 16px;
  }
  .canvas-scroll {
    padding-top: 24px;
  }
  .canvas-footer #selection-path {
    display: none;
  }
  .workspace header {
    padding: 0 22px;
  }
  .workspace main {
    padding: 45px 22px;
  }
  .workspace h1 {
    font-size: 31px;
  }
  .login {
    padding: 30px 20px;
  }
  .login h1 {
    font-size: 38px;
  }
  .header-actions #preview {
    font-size: 10px;
    padding: 9px;
  }
  .canvas-area:before {
    content: "Prévia mobile · Abra em uma tela maior para editar";
    background: #eaf0fc;
    color: #7890ba;
    text-align: center;
    padding: 8px;
    font-size: 9px;
  }
}
/* Direct manipulation and compact layout controls */
.dimension-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.dimension-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  background: #f8f9fc;
  border: 1px solid #e5e9f0;
  border-radius: 5px;
  padding: 0 9px;
}
.dimension-row label > span {
  font-size: 10px;
  color: #9aa5b7;
}
.dimension-row input {
  width: 100%;
  height: 32px;
  border: 0;
  background: none;
  color: #53627c;
  font-size: 11px;
}
.dimension-row select {
  width: 90px;
  border: 1px solid #e5e9f0;
  border-radius: 5px;
  background: #f8f9fc;
  color: #71819b;
  font-size: 10px;
  padding: 6px;
}
.segmented {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #f1f3f8;
  border-radius: 6px;
  flex: 1;
}
.segmented button {
  height: 28px;
  flex: 1;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #9aa6ba;
}
.segmented svg {
  width: 22px;
  height: 18px;
  fill: currentColor;
}
.segmented button[aria-pressed="true"] {
  background: #fff;
  color: #5280dc;
  box-shadow: 0 1px 4px #26324713;
}
.color-swatch {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.color-swatch > span {
  display: block;
  width: 20px;
  height: 20px;
  border: 1px solid #00000015;
  border-radius: 4px;
}
.color-field input[data-color-hex] {
  flex: 1;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.color-popover {
  position: fixed;
  inset: auto;
  margin: 0;
  width: 268px;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  background: white;
  box-shadow: 0 12px 50px #152d4a28;
  padding: 13px;
  z-index: 40;
  color: #52617a;
  overflow: visible;
}
.picker-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 11px;
}
.picker-heading b {
  font-weight: 550;
}
.picker-heading button {
  font-size: 20px;
  color: #94a0b2;
  line-height: 1;
}
.sv-wrap {
  position: relative;
  width: 240px;
  height: 170px;
}
.sv-wrap canvas {
  display: block;
  width: 240px;
  height: 170px;
  border-radius: 6px;
  cursor: crosshair;
  touch-action: none;
}
.sv-cursor {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #0004;
  pointer-events: none;
}
.hue-label {
  display: block;
  margin: 15px 0;
}
.hue-label > span {
  font-size: 9px;
  color: #9aa4b5;
  display: block;
  margin-bottom: 8px;
}
.hue-label input {
  width: 100%;
  margin: 0;
  appearance: none;
  height: 11px;
  border-radius: 8px;
  background: linear-gradient(
    to right,
    #f00,
    #ff0,
    #0f0,
    #0ff,
    #00f,
    #f0f,
    #f00
  );
  cursor: pointer;
}
.hue-label input::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  border: 2px solid white;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 1px #0003;
}
.hue-label input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
}
.picker-hex-label {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7f9fc;
  border: 1px solid #e6eaf1;
  border-radius: 5px;
  padding: 8px;
}
.picker-hex-label span {
  font-size: 9px;
  color: #a0aabc;
}
.picker-hex-label input {
  border: 0;
  background: none;
  width: 100%;
  font-size: 11px;
  color: #61718c;
}
.picker-swatches {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.picker-swatches button {
  width: 23px;
  height: 23px;
  border-radius: 5px;
  border: 1px solid #00000014;
}
.color-popover > p {
  color: #a6afbe;
  font-size: 9px;
  text-align: center;
  margin: 14px 0 0;
}
.image-upload {
  display: block;
  width: 100%;
  border: 1px dashed #c8d8f4;
  border-radius: 7px;
  padding: 16px 10px;
  background: #f7faff;
  color: #6585bd;
  font-size: 11px;
}
.image-meta {
  font-size: 9px;
  color: #8e9bb0;
  line-height: 1.8;
  margin: 12px 0 16px;
  overflow-wrap: anywhere;
}
/* Framer-inspired size and layout inspector */
.dimension-row select {
  width: 112px;
}
.dimension-row label {
  gap: 6px;
  padding: 0 7px;
}
.dimension-row label small {
  font-size: 8px;
  color: #9aa6bb;
  flex-shrink: 0;
}
.dimension-row input:disabled {
  color: #99a5b8;
}
.layout-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
  min-height: 30px;
}
.layout-row > span {
  font-size: 10px;
  color: #919db0;
  width: 65px;
  flex-shrink: 0;
}
.layout-row > select {
  border: 1px solid #e5e9f0;
  border-radius: 5px;
  background: #f8f9fc;
  padding: 8px 6px;
  width: 100%;
  font-size: 10px;
  color: #63738e;
}
.layout-row .segmented {
  min-width: 0;
}
.layout-row .segmented button {
  font-size: 10px;
}
.align-control svg {
  width: 22px;
  height: 20px;
  fill: currentColor;
}
.compact-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.compact-field input {
  height: 31px;
  min-width: 0;
  width: 100%;
  font-size: 10px;
  color: #63738e;
  background: #f8f9fc;
  border: 1px solid #e5e9f0;
  border-radius: 5px;
  padding: 5px 7px;
}
.compact-field > span {
  font-size: 8px;
  color: #9ca7b9;
  line-height: 1.4;
}
.spacing-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #919db0;
  font-size: 10px;
  margin: 15px 0 8px;
}
.spacing-heading button {
  font-size: 16px;
  color: #8da0bd;
  line-height: 1;
  border-radius: 4px;
  padding: 3px 5px;
}
.spacing-heading button[aria-pressed="true"] {
  background: #eef3fe;
  color: #4e7ad3;
}
.four-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.four-fields input {
  padding: 5px;
}
.four-fields input::-webkit-inner-spin-button {
  appearance: none;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.size-limits {
  margin: 13px 0;
  color: #9aa6b9;
  font-size: 9px;
}
.size-limits summary {
  cursor: pointer;
  margin-bottom: 10px;
}
.size-limits .four-fields {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.size-limits + .reset-override {
  margin-top: 3px;
}

/* Canvas interaction, constant screen-sized selection, compact inspector. */
.canvas-scroll {
  padding: 0;
  position: relative;
  overscroll-behavior: contain;
  background: #eee;
}
#canvas-surface {
  position: relative;
  min-width: 100%;
  min-height: 100%;
}
#canvas-stage {
  position: absolute;
  left: 400px;
  top: 80px;
  margin: 0;
}
.artboard-label {
  cursor: default;
}
.artboard-label #artboard-name {
  cursor: pointer;
}
.zoom-switch #zoom-label {
  font: inherit;
  min-width: 44px;
  white-space: nowrap;
  padding: 4px;
  border-radius: 4px;
}
.zoom-switch #zoom-label:hover {
  background: #e9ecf1;
}
#zoom-menu {
  inset: auto 314px 46px auto;
  margin: 0;
  border: 1px solid #e4e6eb;
  border-radius: 10px;
  padding: 6px;
  width: 225px;
  box-shadow: 0 8px 30px #17203320;
  background: #fff;
  color: #283142;
}
#zoom-menu button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 9px 10px;
  text-align: left;
  border-radius: 5px;
  font-size: 12px;
}
#zoom-menu button:hover {
  background: #f0f4ff;
}
#zoom-menu kbd {
  font: 11px system-ui;
  color: #949baa;
}
#zoom-menu hr {
  border: 0;
  border-top: 1px solid #edf0f3;
}
.space-pan,
.pan-glass {
  cursor: grab;
}
.pan-glass {
  position: fixed;
  inset: 0;
  z-index: 10000;
  cursor: grabbing;
  touch-action: none;
}
.drag-glass {
  position: fixed;
  inset: 0;
  z-index: 10000;
  user-select: none;
  touch-action: none;
}
.drag-glass[hidden] {
  display: none;
}
.drag-ghost {
  position: fixed;
  pointer-events: none;
  background: #fff;
  color: #2478e5;
  border: 1px solid #b5d1f7;
  border-radius: 7px;
  padding: 9px 12px;
  box-shadow: 0 6px 24px #17203324;
  font: 12px system-ui;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drop-region {
  position: fixed;
  pointer-events: none;
  border: 1px solid #3988f1;
  background: #3988f10a;
  border-radius: 1px;
}
.drop-line {
  position: fixed;
  pointer-events: none;
  background: #2784ff;
  box-shadow: 0 0 0 1px #fff8;
}
.drop-line:before,
.drop-line:after {
  content: "";
  position: absolute;
  left: -2px;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #2784ff;
}
.drop-line:after {
  left: auto;
  top: auto;
  right: -2px;
  bottom: -2px;
}
.layer-row {
  display: flex;
  position: relative;
  height: 30px;
  user-select: none;
}
.layer-select {
  flex: 1;
  min-width: 0;
  padding-left: 0 !important;
  cursor: default;
  gap: 9px;
}
.layer-toggle,
.layer-toggle-placeholder {
  width: 20px;
  flex: 0 0 20px;
  height: 30px;
  color: #8f98a6;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.layer-toggle:hover {
  color: #246fe5;
}
.layer-row.selected {
  background: #e6f2ff;
  color: #1677e8;
  border-color: transparent;
}
.layer-row[data-drop="inside"] {
  background: #dcebff;
  outline: 1px solid #3486ed;
  outline-offset: -1px;
}
.layer-row[data-drop="before"]:before,
.layer-row[data-drop="after"]:after {
  content: "";
  position: absolute;
  height: 2px;
  background: #2886f5;
  left: 8px;
  right: 0;
  z-index: 1;
}
.layer-row[data-drop="before"]:before {
  top: 0;
}
.layer-row[data-drop="after"]:after {
  bottom: 0;
}
.dragging-element .layer-select {
  cursor: grabbing;
}
.layer-name {
  font-size: 12px;
}
.selected-summary {
  padding: 12px 14px;
  gap: 8px;
}
.selected-icon {
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 5px;
}
.selected-summary small {
  display: none;
}
.inspector-section {
  padding: 14px;
}
.section-title {
  font-size: 12px;
  margin-bottom: 13px;
}
.property-field,
.layout-row,
.color-field,
.spacing-heading {
  font-size: 11px;
}
.property-field {
  margin-bottom: 10px;
}
.inspector-section input,
.inspector-section select {
  background: #f5f5f5;
  border-color: transparent;
  color: #525b69;
  font-size: 11px;
  border-radius: 6px;
}
.inspector-section input:focus,
.inspector-section select:focus {
  border-color: #66a5fa;
  background: #fff;
  outline: none;
}
.inspector-section input:disabled {
  color: #929aaa;
}
.inspector-section .dimension-row {
  gap: 8px;
}
.inspector-section .dimension-row > label {
  background: #f5f5f5;
  border-color: transparent;
}
.inspector-section .segmented {
  background: #f3f3f3;
}
.inspector-section .segmented button[aria-pressed="true"] {
  color: #2788ed;
}
.inspector-empty {
  text-align: left;
  padding: 28px 20px;
  color: #8b94a2;
}
.inspector-empty > span {
  font-size: 28px;
  color: #a9bfd9;
}
.inspector-empty b {
  display: block;
  color: #556173;
  font-size: 12px;
  margin: 16px 0 8px;
}
.inspector-empty p {
  font-size: 12px;
  line-height: 1.6;
}
.inspector-empty dl {
  margin-top: 30px;
  font-size: 11px;
}
.inspector-empty dt {
  margin-top: 15px;
  color: #667183;
}
.inspector-empty dd {
  margin: 4px 0;
  color: #9ba3ae;
}

.layer-row.depth-0 {
  padding-left: 8px;
}
.layer-row.depth-1 {
  padding-left: 24px;
}
.layer-row.depth-2 {
  padding-left: 40px;
}
.layer-row.depth-3 {
  padding-left: 56px;
}
.layer-row.depth-4 {
  padding-left: 72px;
}
.layer-row.depth-5 {
  padding-left: 88px;
}
.layer-row.depth-6 {
  padding-left: 104px;
}
.layer-row.depth-7 {
  padding-left: 120px;
}
.layer-row.depth-8 {
  padding-left: 136px;
}
.layer-row.depth-9 {
  padding-left: 152px;
}
.layer-row.depth-10 {
  padding-left: 168px;
}
.layer-row.depth-11 {
  padding-left: 184px;
}
.layer-row.depth-12 {
  padding-left: 200px;
}
.layer-row.depth-13 {
  padding-left: 216px;
}
.layer-row.depth-14 {
  padding-left: 232px;
}
.layer-row.depth-15 {
  padding-left: 248px;
}
.layer-row.depth-16 {
  padding-left: 264px;
}
.inspector-section > summary.section-title {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.inspector-section > summary.section-title::-webkit-details-marker {
  display: none;
}
.inspector-section > summary.section-title:after {
  content: "−";
  margin-left: auto;
  color: #a4a8af;
  font-size: 14px;
  font-weight: 400;
}
.inspector-section:not([open]) > summary.section-title {
  margin-bottom: 0;
}
.inspector-section:not([open]) > summary.section-title:after {
  content: "+";
}
/* Layered backgrounds: native popover, no visitor runtime. */
.fill-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 9px;
  font-size: 11px;
}
.fill-heading button {
  font-size: 19px;
  color: #7c8799;
  width: 24px;
}
.fill-list {
  display: grid;
  gap: 4px;
}
.fill-row {
  position: relative;
  display: flex;
  gap: 4px;
  align-items: center;
  min-width: 0;
  height: 32px;
}
.fill-row button {
  flex-shrink: 0;
  color: #8d97a8;
  font-size: 12px;
}
.fill-handle {
  width: 12px;
  cursor: grab;
}
.fill-swatch {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #cbd2de;
  position: relative;
  overflow: hidden;
}
.fill-swatch:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
}
.fill-row .fill-name {
  flex: 1;
  min-width: 0;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #626d80;
  font-size: 10px;
}
.fill-alpha {
  display: flex;
  align-items: center;
  gap: 0;
  width: 47px;
  color: #929baa;
  font-size: 9px;
}
.fill-alpha input {
  min-width: 0;
  width: 34px;
  padding: 3px !important;
  text-align: right;
  height: 25px;
}
.fill-alpha input::-webkit-inner-spin-button {
  display: none;
}
.fill-hidden .fill-swatch,
.fill-hidden .fill-name {
  opacity: 0.35;
}
.fill-hint {
  font-size: 10px;
  color: #9aa3b3;
  line-height: 1.5;
  margin: 8px 0;
}
.fill-moving {
  opacity: 0.35;
}
.fill-row[data-insert="before"]:before,
.fill-row[data-insert="after"]:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #2b83ed;
}
.fill-row[data-insert="before"]:before {
  top: 0;
}
.fill-row[data-insert="after"]:after {
  bottom: 0;
}
#fill-popover {
  position: fixed;
  inset: auto;
  margin: 0;
  width: 320px;
  max-height: calc(100vh - 24px);
  overflow: auto;
  border: 1px solid #e2e6ed;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  color: #344054;
  box-shadow: 0 12px 44px #17203325;
  font-family: inherit;
  font-size: 12px;
  scrollbar-width: thin;
}
#fill-popover button {
  cursor: pointer;
}
#fill-popover button:disabled {
  opacity: 0.35;
  cursor: default;
}
.fill-pop-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.fill-pop-heading button {
  font-size: 20px;
  color: #8b95a6;
}
.fill-preview {
  height: 100px;
  border-radius: 6px;
  border: 1px solid #e2e6ed;
  margin: 12px 0;
  background-size: cover;
}
.fill-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  color: #7c8799;
}
.fill-field input,
.fill-field select {
  min-width: 0;
  width: 170px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f4f5f7;
  color: #525f73;
  padding: 7px 8px;
  font: 11px system-ui;
}
.fill-field input:focus,
.fill-field select:focus {
  border-color: #80b0f4;
  outline: none;
  background: white;
}
.fill-two {
  display: flex;
  gap: 10px;
}
.fill-two .fill-field {
  display: block;
  flex: 1;
  min-width: 0;
}
.fill-two input {
  width: 100%;
  margin-top: 6px;
}
.fill-color-line {
  display: flex;
  gap: 10px;
}
.fill-color-line button,
.gradient-stop button {
  border: 1px solid #e2e6ed;
  border-radius: 5px;
  background: #f4f5f7;
  padding: 5px;
}
.fill-color-line input {
  width: 100%;
  border: 1px solid #e2e6ed;
  border-radius: 5px;
  padding: 8px;
}
.gradient-ramp {
  height: 28px;
  border: 1px solid #dce2eb;
  border-radius: 5px;
  margin: 12px 0;
}
.stop-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  margin: 12px 0;
}
.stop-heading button {
  font-size: 18px;
  color: #7c8799;
}
.gradient-stop {
  display: grid;
  grid-template-columns: 26px 1fr 46px 46px 18px;
  gap: 4px;
  margin: 6px 0;
}
.gradient-stop input {
  min-width: 0;
  width: 100%;
  padding: 5px 3px;
  border: 1px solid #e2e6ed;
  border-radius: 4px;
  font: 10px system-ui;
}
.gradient-stop input::-webkit-inner-spin-button {
  display: none;
}
.fill-upload {
  display: block;
  width: 100%;
  padding: 11px;
  border: 1px dashed #a5bfeb;
  border-radius: 7px;
  background: #f3f7ff;
  color: #2a70cf;
}
.fill-order {
  display: flex;
  gap: 8px;
  border-top: 1px solid #edf0f4;
  padding-top: 12px;
  margin-top: 14px;
}
.fill-order button {
  flex: 1;
  padding: 7px;
  border-radius: 5px;
  background: #f3f5f8;
  color: #758197;
}

/* Native image file drops are independent of structural Pointer Events. */
#fill-popover.file-drag-over {
  outline: 2px solid #3977ed;
  outline-offset: -3px;
  background: #eff5ff;
}
#canvas-scroll.file-drag-over {
  outline: 2px solid #3977ed;
  outline-offset: -3px;
  background: #eaf1ff;
}
.viewport-width {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 10px;
  color: #7b8497;
}
.viewport-width input {
  width: 58px;
  border: 1px solid #e3e7ef;
  border-radius: 5px;
  padding: 5px;
  background: #fff;
  color: #172033;
}
.responsive-section summary {
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
.override-list > div {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 5px 0;
}
.override-list button {
  font-size: 10px;
  color: #3267ed;
  border: 0;
  background: transparent;
}
.override-list code {
  font-size: 10px;
}
.override-list small {
  font-size: 10px;
  color: #7b8497;
}
.panel-tabs {
  flex-wrap: wrap;
  height: auto;
  min-height: 52px;
}
.panel-tabs button {
  flex: 1 0 30%;
  font-size: 10px;
  min-height: 34px;
}
.library-form {
  margin: 14px;
  padding: 12px;
  border: 1px solid #e3e7ef;
  border-radius: 8px;
  display: grid;
  gap: 9px;
}
.library-form h3 {
  font-size: 12px;
  margin: 0;
}
.library-form label {
  font-size: 11px;
  display: grid;
  gap: 5px;
}
.library-form input,
.library-form textarea,
.asset-search input {
  min-width: 0;
  width: 100%;
  border: 1px solid #e3e7ef;
  background: #f8f9fc;
  border-radius: 5px;
  padding: 7px;
  font: inherit;
  font-size: 11px;
  line-height: 1.4;
}
.asset-search {
  display: flex;
  gap: 5px;
  margin: 12px;
}
.asset-card,
.version-card {
  margin: 12px;
  padding: 10px;
  border: 1px solid #e3e7ef;
  border-radius: 8px;
  display: grid;
  gap: 6px;
}
.asset-card img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  background: #f2f4f8;
}
.asset-card small,
.version-card small,
.asset-quota {
  font-size: 10px;
  color: #748095;
  overflow-wrap: anywhere;
}
.asset-quota {
  margin: 12px;
}
.asset-card .add-block,
.version-card .add-block {
  margin: 0;
  width: 100%;
}
.library-form button {
  padding: 7px;
  border-radius: 5px;
  border: 1px solid #e3e7ef;
  background: #fff;
}
.create-site,
.rename-site {
  border: 1px solid #e3e7ef;
  border-radius: 10px;
  padding: 15px;
  display: grid;
  gap: 10px;
  max-width: 400px;
  margin: 18px 0;
}
.create-site label,
.rename-site label {
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.create-site input,
.rename-site input {
  padding: 9px;
  border: 1px solid #e3e7ef;
  border-radius: 5px;
}
.create-site button,
.rename-site button {
  padding: 9px;
  border: 1px solid #e3e7ef;
  border-radius: 5px;
}
.rename-site {
  margin: 0;
}
.site-grid {
  align-items: start;
}
@media (max-width: 1023px) {
  .editor-header .site-name {
    display: none;
  }
  .editor-body {
    grid-template-columns: 180px minmax(300px, 1fr) 245px;
  }
  .viewport-width {
    display: none;
  }
  .panel-tabs button {
    font-size: 9px;
  }
  .editor-app {
    min-width: 760px;
  }
  .editor-header {
    min-width: 760px;
  }
}
@media (max-width: 800px) {
  .editor-app,
  .editor-header {
    min-width: 0;
  }
}
.panel-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0 8px;
  flex-shrink: 0;
}
.panel-tabs button {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 10px 2px;
  font-size: 10px;
}
.override-list {
  max-height: 112px;
  overflow: auto;
}
.override-list span {
  font-size: 10px;
}

/* P-10: compact inspector, geometric glyphs, native numeric scrubbing. */
.ui-icon {
  display: inline-block;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  pointer-events: none;
  fill: none;
}
.header-actions button,
.organize-buttons button,
.fill-order button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.layer-symbol .ui-icon,
.selected-icon .ui-icon {
  width: 16px;
  height: 16px;
}
.layer-toggle .ui-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.12s;
}
.layer-toggle[aria-expanded="false"] .ui-icon {
  transform: rotate(-90deg);
}
#inspector,
#fill-popover,
.color-popover,
.editor-app .left-panel {
  --control-height: 29px;
  --control-radius: 6px;
  --control-inset: 8px;
  --label-width: 74px;
  --field-gap: 8px;
}
#inspector {
  color: #333;
  font-size: 11px;
}
#inspector .inspector-section {
  padding: 14px 12px;
  border-color: #ececec;
}
#inspector .section-title {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
  gap: 6px;
}
#inspector summary.section-title {
  position: relative;
  padding-right: 18px;
}
#inspector summary.section-title::after {
  content: "−";
  position: absolute;
  right: 0;
  color: #999;
  font-size: 14px;
  font-weight: 400;
}
#inspector details:not([open]) > summary.section-title::after {
  content: "+";
}
#inspector .property-field {
  gap: var(--field-gap);
  margin-bottom: 9px;
  color: #666;
  font-size: 11px;
}
#inspector .property-field > span {
  font-size: 11px;
  width: var(--label-width);
  line-height: 16px;
  color: #666;
}
#inspector .property-field input,
#inspector .property-field select,
#inspector .property-field textarea,
#inspector .layout-row select,
#inspector .compact-field input,
#inspector .dimension-row label,
#inspector .dimension-row select {
  background: #f3f3f3;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #333;
  font-size: 11px;
  min-height: var(--control-height);
  height: var(--control-height);
  padding: 0 var(--control-inset);
  line-height: normal;
  box-shadow: none;
}
#inspector .property-field textarea {
  padding: 7px var(--control-inset);
  height: auto;
  min-height: 72px;
  line-height: 1.5;
}
#inspector input:focus,
#inspector select:focus,
#fill-popover input:focus {
  outline: 2px solid #b5d6ff;
  outline-offset: 0;
  background: #fff;
}
#inspector input[type="number"],
#fill-popover input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
  touch-action: none;
}
#inspector input[type="number"]::-webkit-inner-spin-button,
#inspector input[type="number"]::-webkit-outer-spin-button,
#fill-popover input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}
#inspector .layout-row {
  display: grid;
  grid-template-columns: var(--label-width) minmax(0, 1fr);
  gap: var(--field-gap);
  margin: 8px 0;
  min-height: 29px;
  color: #666;
}
#inspector .layout-row > span {
  width: auto;
  line-height: 16px;
  font-size: 11px;
  color: #666;
}
#inspector .segmented {
  background: #f3f3f3;
  border: 0;
  border-radius: 6px;
  min-height: 29px;
  padding: 2px;
  gap: 2px;
}
#inspector .segmented button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 25px;
  height: 25px;
  padding: 3px 4px;
  border: 0;
  border-radius: 4px;
  color: #999;
  font-size: 10px;
}
#inspector .segmented button[aria-pressed="true"] {
  background: #fff;
  color: #1684ed;
  box-shadow: 0 1px 3px #0002;
}
#inspector .segmented .ui-icon {
  width: 15px;
  height: 15px;
  fill: none;
}
#inspector .dimension-row {
  display: grid;
  grid-template-columns: var(--label-width) minmax(0, 1fr);
  gap: var(--field-gap);
  align-items: center;
  margin: 8px 0;
}
.dimension-caption {
  font-size: 11px;
  color: #666;
  cursor: ew-resize;
  user-select: none;
}
.dimension-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 6px;
  min-width: 0;
}
#inspector .dimension-controls label {
  display: flex;
  gap: 2px;
  align-items: center;
  min-width: 0;
  width: auto;
  padding: 0 var(--control-inset);
}
#inspector .dimension-controls input {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  height: 100%;
  min-height: 0;
  padding: 0;
  line-height: normal;
  background: transparent;
  border: 0;
  color: #333;
  font-size: 11px;
}
.dimension-controls small {
  flex: 0 0 auto;
  font-size: 9px;
  color: #999;
}
#inspector .dimension-controls select {
  width: 100%;
  min-width: 0;
}
#inspector .spacing-row {
  display: grid;
  grid-template-columns: var(--label-width) minmax(0, 1fr) 48px;
  align-items: start;
  gap: var(--field-gap);
  margin-top: 10px;
  min-height: 29px;
}
.spacing-row > span {
  padding-top: 6px;
  line-height: 17px;
  font-size: 11px;
  color: #666;
  cursor: ew-resize;
  user-select: none;
}
.spacing-values {
  min-width: 0;
}
.spacing-values > .compact-field > span {
  display: none;
}
.spacing-values .four-fields,
.spacing-values .two-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.spacing-values .compact-field > span {
  font-size: 9px;
  line-height: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#inspector .spacing-mode {
  display: flex;
  padding: 2px;
  gap: 0;
}
#inspector .spacing-mode button {
  flex: 1;
  min-width: 0;
  width: 22px;
  padding: 3px;
}
#inspector .numeric-control {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
  background: #f3f3f3;
  border-radius: 6px;
  border: 1px solid transparent;
  height: var(--control-height);
  padding: 0 var(--control-inset);
}
#inspector .numeric-control input {
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  line-height: normal;
  border: 0;
  background: transparent;
}
.scrub-grip {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a2a2a2;
  cursor: ew-resize;
  user-select: none;
}
.scrub-grip .ui-icon {
  width: 13px;
  height: 13px;
}
.scrubbable > span,
.scrubbable > small {
  cursor: ew-resize;
  user-select: none;
}
#inspector input[type="number"]:not(:focus):not(:disabled),
#fill-popover input[type="number"]:not(:focus):not(:disabled) {
  cursor: ew-resize;
}
.number-scrubbing,
.number-scrubbing * {
  cursor: ew-resize !important;
  user-select: none !important;
}
#inspector .selected-summary {
  padding: 10px 12px;
  gap: 7px;
}
#inspector .selected-icon {
  background: transparent;
  color: #777;
  width: 20px;
  height: 20px;
}
#inspector .color-field {
  gap: var(--field-gap);
  margin-bottom: 9px;
}
#inspector .color-field > span {
  width: var(--label-width);
  line-height: 16px;
  font-size: 11px;
  color: #666;
}
#inspector .fill-heading {
  font-size: 11px;
  color: #666;
  margin-top: 8px;
}
#inspector .reset-override {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
}
#inspector .reset-override .ui-icon {
  width: 11px;
  height: 11px;
}
#inspector .inspector-tip {
  font-size: 9px;
  line-height: 1.5;
  margin: 7px 0;
  color: #999;
}
#inspector .responsive-section .panel-help {
  font-size: 9px;
}
#inspector .organize-buttons button {
  height: 28px;
  min-width: 30px;
  border-radius: 5px;
  background: #f3f3f3;
  color: #777;
}
#fill-popover .fill-pop-heading button,
#inspector .fill-heading button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#fill-popover input:not([type="range"]),
#fill-popover select {
  font: inherit;
  font-size: 11px;
  line-height: normal;
  padding: 0 var(--control-inset);
  background: #f3f3f3;
  border-color: transparent;
  height: 29px;
  border-radius: 6px;
}
#fill-popover .fill-order .ui-icon {
  width: 13px;
  height: 13px;
}
#inspector .numeric-control:focus-within {
  outline: 2px solid #b5d6ff;
  background: #fff;
}
#inspector .numeric-control input:focus {
  outline: none;
  background: transparent;
}
#inspector .color-field input {
  height: var(--control-height);
  padding: 0 var(--control-inset);
  line-height: normal;
  background: #f3f3f3;
  border-color: transparent;
  font-size: 11px;
  color: #333;
  border-radius: 6px;
}
#inspector .position-tip.position-relative,
#inspector .organize-buttons + .inspector-tip {
  display: none;
}
.override-list button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.override-list button .ui-icon {
  width: 10px;
  height: 10px;
}

.layer-row .layer-rename {
  flex: 1;
  min-width: 0;
  width: 0;
  height: 26px;
  margin: 0 7px;
  padding: 0 6px;
  border: 1px solid #3268d9;
  border-radius: 4px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-size: 12px;
}

/* Shared field rhythm: compound controls own their height and focus ring. */
#inspector .layout-row > .compact-field > span {
  display: none;
}
#inspector .field-row .property-field {
  min-width: 0;
}
#inspector .field-row .property-field > span {
  width: auto;
}
#inspector .compact-field > span {
  font-size: 9px;
  color: #858e9a;
  line-height: 14px;
}
#inspector .color-swatch {
  width: var(--control-height);
  height: var(--control-height);
}
#inspector .dimension-controls label:focus-within {
  outline: 2px solid #b5d6ff;
  background: #fff;
}
#inspector .dimension-controls input:focus {
  outline: none;
  background: transparent;
}
#inspector .fill-alpha {
  height: var(--control-height);
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  background: #f3f3f3;
  padding-right: 5px;
  gap: 2px;
}
#inspector .fill-alpha input {
  width: 100%;
  height: 100%;
  padding: 0 0 0 4px !important;
  border: 0;
  background: transparent;
  line-height: normal;
}
#inspector .fill-alpha:focus-within {
  outline: 2px solid #b5d6ff;
  background: #fff;
}
#inspector .fill-alpha input:focus {
  outline: none;
  background: transparent;
}
#inspector input[type="number"],
#fill-popover input[type="number"] {
  font-variant-numeric: tabular-nums;
}
#fill-popover .fill-field input[type="range"] {
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
}
#fill-popover .fill-field > span {
  line-height: 16px;
}
.editor-app .library-form input,
.editor-app .asset-search input {
  height: var(--control-height);
  padding: 0 var(--control-inset);
  border-radius: var(--control-radius);
}
.editor-app .library-form textarea {
  min-height: 72px;
  padding: 7px var(--control-inset);
  resize: vertical;
}
.editor-app .library-form input:focus,
.editor-app .library-form textarea:focus,
.editor-app .asset-search input:focus {
  outline: 2px solid #b5d6ff;
  outline-offset: 0;
  background: #fff;
}

.color-popover .picker-hex-label {
  height: var(--control-height);
  padding: 0 var(--control-inset);
  border-radius: var(--control-radius);
}
.color-popover .picker-hex-label input {
  height: 100%;
  padding: 0;
  line-height: normal;
}
.color-popover .picker-hex-label:focus-within {
  outline: 2px solid #b5d6ff;
  background: #fff;
}
.color-popover .picker-hex-label input:focus {
  outline: none;
}
#fill-popover .fill-color-line button,
#fill-popover .gradient-stop button {
  height: var(--control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 801px) and (max-width: 1100px) {
  #inspector {
    --label-width: 62px;
    --field-gap: 6px;
  }
}

/* Site templates: explicit conditions and shared-content editing. */
.template-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: grid;
  gap: 12px;
}
.template-form select {
  width: 100%;
  height: var(--control-height);
  padding: 0 8px;
  border: 1px solid #e3e7ef;
  background: #f8f9fc;
  border-radius: 6px;
  font: inherit;
}
.template-form .template-check {
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.5;
  margin: 7px 0;
}
.template-form .template-check input {
  width: 14px;
  height: 14px;
  padding: 0;
  flex: 0 0 auto;
}
.template-check span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.template-includes,
.template-exclusions {
  max-height: 180px;
  overflow: auto;
}
.template-impact {
  background: #edf4ff;
  border-radius: 6px;
  padding: 10px;
  color: #385b91;
  font-size: 11px;
  line-height: 1.5;
}
.template-impact ul {
  margin: 6px 0 0;
  padding-left: 16px;
  max-height: 130px;
  overflow: auto;
}
.template-conversion {
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
  color: #778395;
}
.template-card {
  margin: 12px;
  padding: 12px;
  display: grid;
  gap: 6px;
  border: 1px solid #e3e7ef;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.template-card small {
  color: #778395;
  font-size: 10px;
}
.template-card .add-block {
  width: 100%;
  margin: 0;
}
.template-layer {
  display: block;
  width: 100%;
  padding: 10px 18px;
  text-align: left;
  color: #6e4fc0;
  background: #f5f1ff;
  font-size: 11px;
}
#template-edit-banner {
  padding: 10px 16px;
  background: #f5f1ff;
  color: #6e4fc0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}
#template-edit-banner[hidden] {
  display: none;
}
#template-edit-banner button {
  text-decoration: underline;
  flex-shrink: 0;
}
.editor-app:has([data-tab="templates"]) .panel-tabs {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.editor-app:has([data-tab="templates"]) .panel-tabs button {
  grid-column: span 4;
  font-size: 10px;
}
.editor-app:has([data-tab="templates"]) .panel-tabs button:nth-child(-n + 4) {
  grid-column: span 3;
}

/* Editor entities: blue layout, purple component, teal site template. */
.library-intro {
  margin: 16px 14px;
  color: #657087;
  font-size: 11px;
  line-height: 1.6;
}
.library-intro > .ui-icon {
  width: 22px;
  height: 22px;
}
.library-intro h3 {
  margin: 6px 0;
  font-size: 13px;
  color: #273142;
}
.library-intro p {
  margin: 0;
}
.template-intro > .ui-icon,
.template-card .ui-icon {
  color: #168c88;
}
.component-intro > .ui-icon,
.component-card .ui-icon {
  color: #9555e8;
}
.library-card-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.library-card-title b {
  overflow-wrap: anywhere;
}
.library-secondary {
  margin: 16px 12px;
  font-size: 10px;
  color: #788398;
}
.library-secondary summary {
  cursor: pointer;
  line-height: 1.6;
}
.library-secondary .add-block {
  width: 100%;
  margin: 10px 0;
}
.component-card {
  border-left: 3px solid #a16bea;
}
.template-card {
  border-left: 3px solid #319c96;
}
.template-create-form select {
  width: 100%;
  height: 29px;
  border: 1px solid #e3e7ef;
  background: #f8f9fc;
  border-radius: 6px;
  padding: 0 8px;
  font: inherit;
}
.template-create-form .panel-help {
  margin: 0;
}
.layer-row.layout-layer .layer-symbol {
  color: #1684ed;
}
.layer-row.component-layer .layer-symbol {
  color: #9555e8;
}
.layer-row.component-layer.selected {
  background: #f1e8ff;
  color: #8041ce;
  border-color: #e5d4fa;
}
#inspector.component-inspector .selected-icon {
  color: #9555e8;
}
#inspector.component-inspector .type-badge {
  color: #8041ce;
  background: #f1e8ff;
}
.multi-inspector {
  padding: 18px 14px;
  font-size: 11px;
  color: #657087;
  line-height: 1.6;
}
.multi-inspector > .library-card-title {
  color: #1684ed;
}
.multi-inspector > .secondary {
  margin-top: 10px;
  width: 100%;
  justify-content: flex-start;
  padding: 9px 8px;
  font-size: 10px;
}
.multi-inspector kbd {
  margin-left: auto;
  font: inherit;
  color: #8b96a8;
}
.selection-reason {
  font-size: 10px;
}
#template-edit-banner {
  background: #ecf8f6;
  color: #157f78;
  flex-wrap: wrap;
}
#template-edit-banner small {
  color: #5d928c;
}
#template-edit-banner .template-conditions-action {
  margin-left: auto;
  padding: 7px 10px;
  border-radius: 5px;
  background: #168c88;
  color: white;
  text-decoration: none;
}
.template-layer {
  color: #168c88;
  background: #ecf8f6;
}
.template-card.component-card {
  border-left-color: #a16bea;
}

#shortcuts-menu {
  width: min(380px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid #e1e5eb;
  border-radius: 12px;
  box-shadow: 0 12px 48px #17203326;
  color: #344054;
  font: 12px/1.5 system-ui;
}
#shortcuts-menu h3 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 15px;
}
#shortcuts-menu p {
  color: #667085;
}
#shortcuts-menu dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 20px;
  margin: 18px 0;
}
#shortcuts-menu dd {
  margin: 0;
  text-align: right;
}
#shortcuts-menu kbd {
  font: 11px system-ui;
  color: #475467;
}
.shortcuts-trigger {
  padding: 5px 9px;
  font-size: 11px;
}

.editor-popover {
  width: min(460px, calc(100vw - 32px));
  max-height: min(780px, calc(100dvh - 48px));
  overflow: auto;
  padding: 24px;
  border: 1px solid #dfe4ec;
  border-radius: 14px;
  box-shadow: 0 18px 70px #1720332b;
  color: #344054;
  font:
    12px/1.5 Inter,
    system-ui,
    sans-serif;
}
.editor-popover::backdrop {
  background: #17203312;
}
.editor-popover > h2 {
  margin: 0 24px 18px 0;
  font-size: 16px;
  color: #172033;
  outline: none;
}
.editor-popover .popover-close {
  position: absolute;
  right: 14px;
  top: 13px;
  border: 0;
  border-radius: 5px;
  padding: 4px 9px;
  color: #667085;
  background: #f2f4f7;
  font-size: 20px;
  cursor: pointer;
}
.editor-popover .library-form {
  margin: 12px 0;
  padding: 0;
  border: 0;
}
.editor-popover .library-form h3 {
  font-size: 13px;
}
.editor-popover .panel-help {
  margin: 12px 0;
  font-size: 12px;
}
.editor-popover .add-block {
  margin: 8px 0;
  width: 100%;
}
.editor-popover .insert-grid {
  margin: 12px 0 24px;
}
.editor-popover h3 {
  margin: 18px 0 12px;
  font-size: 12px;
}
.insertion-card {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid #e4e7ec;
  background: #fafbfc;
  padding: 14px;
  border-radius: 8px;
  margin: 8px 0;
  text-align: left;
  color: #344054;
  cursor: pointer;
}
.insertion-card > svg {
  color: #7451bf;
  flex: 0 0 18px;
}
.insertion-card span {
  display: grid;
  gap: 3px;
}
.insertion-card small {
  font-size: 10px;
  color: #667085;
}
.insertion-card:hover {
  border-color: #a5bbec;
  background: #f4f7ff;
}
.canvas-add-section {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 9px 15px;
  border: 1px dashed #bac8de;
  border-radius: 8px;
  color: #51729e;
  background: #f7f9fc;
  font: 11px system-ui;
  cursor: pointer;
}
.previewing .canvas-add-section {
  display: none;
}
.fit-limit-hint button {
  border: 0;
  background: none;
  padding: 4px 0;
  color: #3977ed;
  cursor: pointer;
  font: inherit;
}

.insertion-search {
  width: 100%;
  border: 1px solid #dde3ed;
  background: #f7f9fc;
  border-radius: 7px;
  padding: 10px 12px;
  color: #344054;
  font: 12px system-ui;
}
.insertion-search:focus {
  outline: 2px solid #b4c9ff;
  border-color: #6b96ed;
}
.insertion-tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0;
}
.insertion-tabs button {
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 11px;
  color: #667085;
}
.insertion-tabs button[aria-pressed="true"] {
  color: #3268d9;
  background: #edf3ff;
}
.editor-popover [hidden] {
  display: none !important;
}
.page-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: #8592aa;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.page-list-header .icon-button {
  width: 26px;
  height: 26px;
  color: #6d7f9b;
}

.contextual-search {
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  font-size: 11px;
  padding: 8px;
}
.insert-item[hidden] {
  display: none;
}

#inspector .typography-controls .numeric-control input {
  flex: 1 1 0;
  width: 0;
}
#inspector .typography-controls .numeric-control small {
  flex: 0 0 auto;
  color: #999;
  font-size: 9px;
}
#inspector .text-align-control button {
  flex: 1;
}
#inspector .text-align-control .ui-icon {
  width: 16px;
  height: 16px;
}
/* Optional size constraints follow the same row rhythm as Width / Height. */
#inspector .limit-controls {
  grid-template-columns: minmax(0, 1fr) 24px;
}
#inspector .limit-controls > button,
#inspector .fill-row > button:not(.fill-name):not(.fill-swatch),
#inspector .fill-heading button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
}
#inspector .limit-controls > button:hover,
#inspector .fill-row > button:not(.fill-name):not(.fill-swatch):hover {
  background: #e7e8eb;
  color: #555;
}
#inspector .size-limit-add {
  color: #777;
  font-size: 11px;
}
#inspector .add-limit {
  anchor-name: --size-limit-trigger;
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--control-height);
  padding: 0 var(--control-inset);
  background: #f3f3f3;
  border-radius: var(--control-radius);
  color: #888;
  text-align: left;
  font-size: 11px;
}
.size-limit-menu {
  position: fixed;
  position-anchor: --size-limit-trigger;
  inset: auto;
  top: anchor(bottom);
  left: anchor(left);
  position-try-fallbacks: flip-block, flip-inline;
  margin: 4px 0;
  width: 164px;
  padding: 5px;
  border: 1px solid #e3e7ef;
  border-radius: 9px;
  box-shadow: 0 5px 20px #1720331c;
  background: white;
}
.size-limit-menu button {
  display: block;
  width: 100%;
  padding: 7px 9px;
  border-radius: 5px;
  color: #555;
  font-size: 11px;
  text-align: left;
}
.size-limit-menu button:hover,
.size-limit-menu button:focus-visible {
  background: #edf4ff;
  color: #2472df;
}
#inspector #background-fills {
  margin: 8px 0 12px;
}
#inspector .fill-heading {
  min-height: 24px;
  margin: 0 0 6px;
}
#inspector .fill-heading b {
  font-weight: 400;
}
#inspector .fill-list {
  gap: 6px;
}
#inspector .fill-row {
  display: grid;
  grid-template-columns: 24px 24px minmax(0, 1fr) 42px 24px 24px;
  gap: 6px;
  height: 36px;
  padding: 4px;
  border-radius: 6px;
  background: #f7f7f8;
}
#inspector .fill-row .fill-handle {
  touch-action: none;
  cursor: grab;
}
#inspector .fill-row .fill-swatch {
  padding: 0;
  width: 24px;
  height: 24px;
  min-width: 24px;
}
#inspector .fill-row .fill-name {
  padding: 0;
  height: 28px;
  font-size: 11px;
  line-height: normal;
}
#inspector .fill-row .fill-alpha {
  width: 42px;
  height: 28px;
  padding-right: 4px;
  font-size: 10px;
}
#inspector .fill-row .ui-icon {
  width: 14px;
  height: 14px;
}
.mcp-settings {
  max-width: 720px;
  margin: 40px auto;
  padding: 24px;
  color: #344054;
  font: 14px/1.6 system-ui;
}
.mcp-settings h1 {
  font-size: 26px;
}
.mcp-settings .library-form {
  margin: 24px 0;
}
.mcp-settings .template-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.mcp-settings .template-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}
.mcp-settings .dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.mcp-settings .library-form .primary {
  color: white;
  background: #3264ee;
  border-color: #3264ee;
}
.mcp-settings .mcp-grant {
  padding: 18px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  margin: 14px 0;
}
.mcp-settings a {
  color: #3977ed;
}
.mcp-link {
  padding: 8px 10px;
  text-decoration: none;
  color: #667085;
}

.mcp-settings select {
  width: 100%;
  border: 1px solid #d9e1ed;
  border-radius: 6px;
  padding: 9px;
  color: #344054;
  font: inherit;
  margin-bottom: 14px;
}

/* Workspace organization uses SSR links, forms, details and native popovers. */
.projects-app {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
  background: #fff;
  color: #343943;
  font:
    13px/1.5 Inter,
    system-ui,
    sans-serif;
}
.projects-sidebar {
  display: flex;
  flex-direction: column;
  padding: 28px 16px 20px;
  border-right: 1px solid #eceef2;
  background: #fcfcfd;
}
.projects-sidebar .brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: #30343c;
  text-decoration: none;
}
.projects-sidebar .workspace-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #386ff2;
  background: #eaf0ff;
  border-radius: 8px;
}
.workspace-label {
  color: #9a9faa;
  margin: 7px 0 30px 40px;
  font-size: 10px;
}
.projects-sidebar nav {
  display: grid;
  gap: 4px;
}
.projects-sidebar nav a,
.workspace-bottom a,
.folder-create {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 7px;
  padding: 9px 10px;
  color: #737a87;
  text-decoration: none;
  font-size: 12px;
  min-width: 0;
}
.projects-sidebar nav a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.projects-sidebar nav a.active {
  background: #eef1f6;
  color: #343943;
  font-weight: 550;
}
.projects-sidebar nav a:hover,
.workspace-bottom a:hover {
  background: #f0f2f6;
}
.folder-heading {
  margin: 24px 10px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #9a9faa;
}
.folder-heading button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}
.workspace-bottom {
  margin-top: auto;
  padding-top: 36px;
  display: grid;
  gap: 4px;
}
.workspace-bottom form {
  margin: 8px 10px 0;
}
.workspace-bottom form button {
  font-size: 11px;
  color: #9299a6;
}
.projects-main {
  padding: 52px clamp(24px, 5vw, 80px);
  min-width: 0;
}
.projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.projects-header h1 {
  margin: 6px 0 0;
  font-size: 27px;
  letter-spacing: -0.8px;
  font-weight: 600;
}
.projects-header .eyebrow {
  font-size: 10px;
  color: #9299a6;
  letter-spacing: 1.5px;
}
.project-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.projects-app .primary,
.workspace-popover .primary,
.access-page .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 7px;
  background: #3264ee;
  border: 1px solid #3264ee;
  color: white;
  font-size: 12px;
  font-weight: 550;
  text-decoration: none;
}
.projects-app .secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid #e4e7ed;
  border-radius: 7px;
  font-size: 12px;
  color: #70798a;
  background: #fff;
  text-decoration: none;
}
.project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.project-toolbar > small {
  color: #9ba1ad;
  font-size: 11px;
}
.project-search {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 240px;
  width: 320px;
  border: 1px solid #eceef2;
  border-radius: 8px;
  background: #fafafb;
  padding: 8px 10px;
  color: #9ba1ac;
}
.project-search input {
  flex: 1;
  width: 0;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  outline: none;
}
.project-search:focus-within {
  outline: 2px solid #b5d6ff;
}
.project-search button {
  font-size: 10px;
  color: #7b8494;
  padding: 0;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px;
}
.project-record {
  position: relative;
  min-width: 0;
  border: 1px solid #e9ecf1;
  border-radius: 11px;
  background: #fff;
  transition: box-shadow 0.15s;
}
.project-record:hover {
  box-shadow: 0 5px 20px #1720330b;
}
.project-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.project-cover {
  height: auto;
  aspect-ratio: 8 / 5;
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #edf2fb;
  color: #87a2ce;
  display: grid;
  place-items: center;
}
.project-cover.cover-1 {
  background: #f2eef8;
  color: #b29bcf;
}
.project-cover.cover-2 {
  background: #edf4f1;
  color: #91b3a4;
}
.project-cover.cover-3 {
  background: #f7f1eb;
  color: #c5aa92;
}
.project-initial {
  font-size: 66px;
  font-weight: 500;
  letter-spacing: -4px;
  line-height: 1;
  opacity: 0.7;
}
.mini-browser {
  display: flex;
  gap: 4px;
  position: absolute;
  left: 12px;
  top: 12px;
}
.mini-browser i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.project-cover small {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 8px;
  letter-spacing: 2px;
  opacity: 0.7;
}
.project-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 16px 8px;
}
.project-info b {
  font-size: 13px;
  font-weight: 550;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.project-info > span {
  color: #929aa8;
  font-size: 10px;
}
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  margin: 0 12px 8px 16px;
  color: #9ba3af;
  font-size: 9px;
}
.project-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 3px 7px;
  color: #8b93a1;
  font-size: 13px;
  border-radius: 4px;
}
.project-menu summary::-webkit-details-marker {
  display: none;
}
.project-menu summary:hover {
  background: #f3f5f8;
}
.project-menu-content {
  position: absolute;
  right: 8px;
  top: calc(100% - 18px);
  z-index: 5;
  width: 250px;
  background: #fff;
  border: 1px solid #e5e8ee;
  border-radius: 9px;
  padding: 12px;
  box-shadow: 0 8px 28px #17203318;
  color: #687185;
}
.project-menu-content > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0 12px;
  color: #497bea;
  text-decoration: none;
  font-size: 11px;
}
.project-menu-content form {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid #eceef2;
}
.project-menu-content .rename-site {
  border: 0;
  border-top: 1px solid #eceef2;
  border-radius: 0;
  margin: 0;
}
.project-menu-content label {
  display: grid;
  gap: 5px;
  font-size: 10px;
}
.project-menu-content input,
.project-menu-content select {
  width: 100%;
  padding: 7px;
  border: 1px solid #e4e7ec;
  border-radius: 5px;
  font: inherit;
  min-width: 0;
}
.project-menu-content button {
  justify-self: start;
  font-size: 11px;
  color: #4879dd;
}
.projects-empty {
  text-align: center;
  padding: 80px 16px;
  color: #9ba3b1;
}
.projects-empty > .ui-icon {
  width: 32px;
  height: 32px;
}
.projects-empty h2 {
  font-size: 17px;
  color: #687389;
  font-weight: 500;
}
.projects-empty p {
  font-size: 12px;
}
.projects-local {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a3abb7;
  font-size: 10px;
  margin: 40px 0 0;
}
.workspace-popover {
  width: min(380px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid #e4e7ed;
  border-radius: 12px;
  background: white;
  color: #3e4758;
  box-shadow: 0 10px 45px #17203320;
  font: 13px/1.5 system-ui;
}
.workspace-popover header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.workspace-popover h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.5px;
}
.workspace-popover p {
  color: #929aab;
  font-size: 12px;
  margin-bottom: 22px;
}
.workspace-popover form {
  display: grid;
  gap: 16px;
}
.workspace-popover label {
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.workspace-popover input,
.access-page input,
.access-page select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #dfe4ed;
  border-radius: 6px;
  font: inherit;
  background: #fff;
  min-width: 0;
}
.workspace-popover::backdrop {
  background: #17203312;
}
.workspace-popover input:focus,
.access-page input:focus,
.access-page select:focus {
  outline: 2px solid #b5d6ff;
}
.access-page {
  max-width: 840px;
  margin: 40px auto;
  padding: 24px;
  color: #3b4659;
  font: 13px/1.6 system-ui;
}
.access-page > a {
  color: #497bea;
  display: inline-flex;
  margin-bottom: 22px;
  text-decoration: none;
}
.access-page .eyebrow {
  display: block;
  color: #929cad;
  font-size: 10px;
  letter-spacing: 1.5px;
  margin-top: 6px;
}
.access-page h1 {
  font-size: 27px;
  letter-spacing: -0.8px;
  font-weight: 600;
}
.access-page h2 {
  font-size: 16px;
  margin-top: 26px;
}
.access-page .access-note {
  padding: 12px 14px;
  background: #f6f8fb;
  border-radius: 7px;
  font-size: 12px;
  color: #7e899d;
}
.access-invite {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #e4e8ef;
  border-radius: 10px;
}
.access-invite h2,
.access-invite small {
  grid-column: 1/-1;
  margin: 0;
}
.access-invite small {
  color: #8d97a8;
  font-size: 11px;
}
.access-page label {
  display: grid;
  gap: 6px;
  font-size: 11px;
}
.access-invite button {
  justify-self: start;
}
.access-member {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #eceef2;
  padding: 16px 0;
}
.access-member > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.access-member b {
  overflow-wrap: anywhere;
}
.access-member small {
  color: #939dad;
  font-size: 11px;
}
.access-member form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.access-member form select {
  width: auto;
}
.access-member form button {
  font-size: 11px;
  color: #497bea;
}
@media (max-width: 800px) {
  .projects-app {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .projects-sidebar {
    padding: 20px 10px;
  }
  .projects-main {
    padding: 30px 22px;
  }
  .projects-header {
    margin-bottom: 24px;
  }
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }
  .access-member {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 560px) {
  .projects-app {
    display: block;
  }
  .projects-sidebar {
    border-right: 0;
    border-bottom: 1px solid #eceef2;
  }
  .projects-sidebar nav {
    grid-template-columns: 1fr 1fr;
  }
  .folder-heading,
  .workspace-label {
    margin: 6px 10px;
  }
  .workspace-bottom {
    padding-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .workspace-bottom form {
    margin: 8px;
  }
  .projects-main {
    padding: 24px 16px;
  }
  .project-search {
    width: 100%;
    min-width: 0;
  }
  .access-page {
    margin: 12px auto;
    padding: 18px;
  }
  .access-invite {
    grid-template-columns: 1fr;
  }
}
.workspace-switch {
  position: relative;
}
.workspace-switch > summary {
  cursor: pointer;
  list-style: none;
}
.workspace-switch > summary::-webkit-details-marker {
  display: none;
}
.workspace-switch .brand > .ui-icon {
  margin-left: auto;
  width: 12px;
  height: 12px;
  color: #9ba3af;
}
.workspace-switch-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 6;
  display: grid;
  gap: 3px;
  padding: 7px;
  border: 1px solid #e4e8ef;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px #17203312;
}
.workspace-switch-list a {
  color: #647087;
  font-size: 12px;
  text-decoration: none;
  padding: 7px 9px;
  border-radius: 5px;
}
.workspace-switch-list a:hover {
  background: #f0f4fd;
}
/* Page navigation: full-width names, with actions in the context menu. */
.page-row {
  gap: 6px;
  padding: 5px 10px 5px 12px;
  min-width: 0;
}
.page-select {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px 0;
  text-align: left;
  color: inherit;
  font: inherit;
}
.page-symbol {
  flex: 0 0 16px;
  display: flex;
  align-items: center;
  color: #9ba5b4;
}
.page-symbol .ui-icon {
  width: 15px;
  height: 15px;
}
.page-caption {
  flex: 1;
  min-width: 0;
}
.page-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-row .page-caption small {
  margin-top: 3px;
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-rename {
  flex: 1;
  min-width: 0;
  width: 0;
  height: 30px;
  border: 1px solid #4085e7;
  border-radius: 5px;
  background: white;
  padding: 0 7px;
  color: #35435a;
  font: inherit;
}
.page-rename[aria-invalid="true"] {
  border-color: #d67a68;
}
.page-actions {
  --control-height: 29px;
  --control-inset: 8px;
  --control-radius: 6px;
}
.page-actions .library-form select {
  min-width: 0;
  width: 100%;
  height: 29px;
  border: 1px solid #e3e7ef;
  border-radius: 6px;
  background: #f8f9fc;
  padding: 0 8px;
  color: #46536b;
  font: inherit;
}
.page-actions .page-action-button {
  display: block;
  width: 100%;
  height: 32px;
  text-align: left;
  padding: 0 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 11px;
  color: #69758b;
  margin: 2px 0;
}
.page-actions .page-action-button:hover:not(:disabled) {
  background: #edf3fd;
  color: #3472dc;
}
.page-actions .library-form > button {
  background: #3264ee;
  color: #fff;
  border-color: #3264ee;
  height: 31px;
}
/* Studio navigation and historical previews. */
.studio-workspace {
  anchor-name: --studio;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  border-radius: 6px;
  padding: 0 5px;
  color: #526079;
  font-size: 11px;
}
.studio-workspace .brand-mark {
  transform: scale(0.85);
}
.studio-workspace .ui-icon {
  width: 12px;
  height: 12px;
}
.studio-workspace-label {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-tool {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #7f8da3;
  border-radius: 5px;
}
.studio-tool:hover,
.studio-workspace:hover {
  background: #f1f4fa;
  color: #3271e0;
}
.studio-menu,
.page-picker-menu {
  position: fixed;
  inset: auto;
  padding: 7px;
  border: 1px solid #e2e7ef;
  border-radius: 9px;
  box-shadow: 0 8px 30px #17203320;
  background: white;
  color: #526079;
  max-height: 65vh;
  overflow: auto;
}
.studio-menu {
  position-anchor: --studio;
  top: anchor(bottom);
  left: anchor(left);
  width: 240px;
  margin: 6px 0;
}
.studio-menu b,
.studio-menu small {
  display: block;
  padding: 7px 9px;
}
.studio-menu b {
  font-size: 12px;
}
.studio-menu small {
  font-size: 9px;
  color: #9aa4b5;
}
.studio-menu a {
  display: block;
  padding: 8px 9px;
  color: #66758d;
  border-radius: 5px;
  font-size: 11px;
  text-decoration: none;
}
.studio-menu a:hover {
  background: #edf3fd;
  color: #3271e0;
}
#page-picker-trigger {
  anchor-name: --page-picker;
  text-align: left;
  width: calc(100% - 28px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
#current-page {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-picker-menu {
  position-anchor: --page-picker;
  top: anchor(bottom);
  left: anchor(left);
  width: 224px;
  margin: 5px 0;
}
.page-picker-menu button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px;
  border-radius: 5px;
  font-size: 11px;
  text-align: left;
  color: #64728a;
}
.page-picker-menu button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-picker-menu small {
  color: #9ba5b6;
  font-size: 9px;
}
.page-picker-menu button:hover,
.page-picker-menu button[aria-current="page"] {
  background: #edf3fd;
  color: #3271e0;
}
.editor-page-popover {
  width: min(380px, calc(100vw - 32px));
}
.editor-page-popover .dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.editor-page-popover .dialog-actions > button:not(.primary) {
  color: #7e899b;
  padding: 9px;
}
.layout-insert-menu {
  display: grid;
  gap: 5px;
}
.layout-insert-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e8ecf2;
  border-radius: 7px;
  color: #68758b;
  font-size: 12px;
}
.layout-insert-menu button:hover {
  background: #eff5ff;
  color: #3271e0;
}
.version-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}
.version-open {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 3px;
  text-align: left;
  color: #65728a;
}

/* Shared native context menus: compact rows, pointer placement and keyboard focus. */
.editor-popover.editor-context-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 5px;
  width: 238px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  box-shadow: 0 6px 24px #17203320;
}
.editor-context-menu > h2,
.editor-context-menu > .popover-close {
  display: none;
}
.editor-context-menu::backdrop {
  background: transparent;
}
.editor-context-menu > div {
  display: grid;
  gap: 1px;
}
.editor-context-menu [role="menuitem"] {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 7px 10px;
  color: #4b566b;
  font-size: 11px;
  font-weight: 400;
  text-align: left;
  border: 0;
  border-radius: 5px;
  background: transparent;
}
.editor-context-menu [role="menuitem"] .ui-icon {
  flex: 0 0 15px;
}
.editor-context-menu
  [role="menuitem"]:is(:hover, :focus-visible):not(:disabled) {
  color: #2362e7;
  background: #edf3ff;
  outline: none;
}
.editor-context-menu [role="menuitem"].danger {
  color: #d23d4e;
}
.editor-context-menu
  [role="menuitem"].danger:is(:hover, :focus-visible):not(:disabled) {
  background: #fff0f1;
  color: #bc2538;
}
.editor-context-menu [role="menuitem"]:disabled {
  opacity: 0.4;
  cursor: default;
}
.editor-context-menu [role="menuitem"].menu-separator {
  margin-top: 5px;
  border-top: 1px solid #edf0f5;
  border-radius: 0 0 5px 5px;
}
.template-card[role="button"] {
  cursor: pointer;
}
.template-card[role="button"]:is(:hover, :focus-visible) {
  background: #f4f7ff;
  border-color: #c5d5fa;
  outline: none;
}
.page-select:focus-visible {
  outline: 2px solid #729cff;
  outline-offset: 3px;
  border-radius: 4px;
}
.editor-app:not(.previewing) #canvas-stage.page-selected #canvas-frame {
  outline: 2px solid #3977ed;
}
.editor-app:not(.previewing) #canvas-stage.page-selected #artboard-name {
  color: #2673dc;
}

/* Project-level controls and local account personalization. */
.component-source-controls {
  display: grid;
  gap: 9px;
  margin: 0 0 16px;
  padding: 12px;
  background: #f6f2ff;
  border: 1px solid #e6dcfa;
  border-radius: 8px;
}
.component-source-controls > span {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #8d58cb;
}
.component-source-controls button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #8950cb;
}
.component-source-controls small {
  font-size: 10px;
  color: #a08cb5;
  line-height: 1.6;
}
#template-edit-banner.component-edit-banner {
  color: #8a53c5;
  background: #f6f1fe;
  border-color: #e6dbf6;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.studio-tool.project-settings-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.collaborator-avatar {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #dce4ef;
  border-radius: 50%;
  background: #e8efff;
  color: #3266d4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 30px;
  font-size: 12px;
  font-weight: 600;
}
.collaborator-avatar img,
.workspace-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.studio-preview {
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #e7eaf0;
  border-radius: 50%;
  background: #f8f9fb;
  color: #536073;
}
.studio-preview:hover {
  background: #eff3fb;
  color: #2469ec;
}
.header-actions .studio-publish {
  padding: 8px 15px;
  min-height: 32px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 7px;
}
.editor-popover.sharing-popover {
  position: fixed;
  inset: 65px 18px auto auto;
  margin: 0;
  width: min(500px, calc(100vw - 32px));
  padding: 22px;
  max-height: calc(100dvh - 90px);
}
.sharing-popover::backdrop {
  background: transparent;
}
.sharing-popover > div > [role="status"] {
  font-size: 11px;
  color: #52647f;
  margin-bottom: 0;
}
.sharing-invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 125px auto;
  gap: 7px;
  margin-bottom: 20px;
}
.sharing-invite input,
.sharing-invite select,
.sharing-permissions select,
.sharing-invite-link input {
  min-width: 0;
  height: 34px;
  font: inherit;
  font-size: 11px;
  color: #46536c;
  border: 1px solid #e1e6ef;
  border-radius: 6px;
  background: #f9fafc;
  padding: 6px 8px;
}
.sharing-invite button {
  padding: 7px 10px;
  font-size: 11px;
}
.sharing-person,
.settings-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eef1f5;
}
.sharing-person-name,
.settings-person > div {
  min-width: 0;
  flex: 1;
}
.sharing-person b,
.settings-person b {
  display: block;
  color: #344054;
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sharing-person small,
.settings-person small {
  display: block;
  font-size: 10px;
  color: #8a95a8;
  overflow-wrap: anywhere;
}
.person-initial {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eff3fb;
  color: #6b82aa;
  font-size: 12px;
  flex: 0 0 30px;
}
.sharing-permissions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.sharing-person button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 28px;
  padding: 4px;
  color: #94a0b4;
  border-radius: 5px;
}
.sharing-person button:hover {
  color: #ce3e51;
  background: #fff0f2;
}
.sharing-invite-link {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  font-size: 11px;
}
.sharing-popover h3 {
  font-size: 11px;
  color: #7b879b;
  margin-top: 18px;
}
.sharing-popover a {
  color: #326ce6;
  text-decoration: none;
  font-size: 11px;
}
.project-settings-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  color: #344054;
  font:
    13px/1.55 Inter,
    system-ui,
    sans-serif;
}
.project-settings-page > a {
  color: #7a879c;
  font-size: 12px;
  text-decoration: none;
}
.settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 22px;
}
.settings-heading small {
  color: #8b98ae;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.project-settings-page h1 {
  font-size: 28px;
  font-weight: 550;
  color: #172033;
  margin: 8px 0;
}
.settings-nav {
  display: flex;
  gap: 22px;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e8edf5;
}
.settings-nav a {
  color: #68778f;
  text-decoration: none;
  font-size: 12px;
}
.settings-card {
  background: #fff;
  border: 1px solid #e4e9f1;
  border-radius: 12px;
  padding: 24px;
  margin: 18px 0;
  scroll-margin-top: 20px;
}
.settings-card h2 {
  font-size: 15px;
  font-weight: 550;
  color: #344054;
  margin: 0 0 18px;
}
.settings-card p {
  color: #8a95a8;
  font-size: 11px;
}
.settings-card fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.settings-card .library-form {
  border: 0;
  margin: 0;
  padding: 0;
}
.settings-card label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #62718a;
  margin-bottom: 16px;
}
.settings-card input:not([type="hidden"]),
.settings-card textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid #dde4ee;
  border-radius: 7px;
  background: #fafbfd;
  color: #344054;
  padding: 10px 12px;
  font: inherit;
}
.settings-card .primary {
  padding: 9px 14px;
  font-size: 12px;
  width: auto;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
}
.settings-card .library-form button.primary {
  background: #3168ee;
  color: #fff;
  border: 1px solid #3168ee;
}
.workspace-avatar img {
  object-fit: contain;
}
.settings-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.settings-section-title button {
  font-size: 11px;
  padding: 7px 10px;
}
.settings-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3972dc;
  text-decoration: none;
}
.settings-card a {
  color: #3972dc;
}
.settings-card a.primary {
  color: #fff;
}
.settings-saved {
  padding: 10px 14px;
  border: 1px solid #d5ebdf;
  background: #f2faf5;
  border-radius: 7px;
  color: #28885c;
}
#social-image-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0 20px;
}
#social-image-preview img {
  max-width: 50%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  border: 1px solid #e3e8f0;
  border-radius: 6px;
}
#social-image-preview button {
  color: #c34a59;
  font-size: 11px;
}
.profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.profile-preview > img,
.profile-preview > span {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  background: #eff4ff;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #4675ce;
}
.profile-preview small {
  display: block;
  color: #8d99ad;
  margin-top: 4px;
}
.workspace-profile-link {
  color: #8592a8;
  font-size: 11px;
  padding: 6px 12px;
  text-decoration: none;
}
@media (max-width: 600px) {
  .sharing-invite {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .sharing-invite input {
    grid-column: 1 / -1;
  }
  .sharing-person {
    flex-wrap: wrap;
  }
  .settings-card {
    padding: 18px;
  }
  .project-settings-page {
    padding: 24px 16px 60px;
  }
  .settings-nav {
    gap: 14px;
    flex-wrap: wrap;
  }
}
.version-open b {
  color: #46536c;
  font-size: 12px;
}
.version-open time {
  font-size: 10px;
  color: #8290a5;
}
.version-open small {
  font-size: 9px;
  color: #a0a9b8;
}
.version-open:hover:not(:disabled) b {
  color: #3271e0;
}
.version-card > .add-block {
  grid-column: 1/-1;
}
.editor-popover.version-preview {
  width: min(1120px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
}
.version-preview > div > p {
  font-size: 11px;
  color: #8592a7;
}
.version-preview-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.version-preview-toolbar select {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #e2e7ef;
  border-radius: 6px;
  background: #f7f9fc;
  color: #59687f;
  font-size: 11px;
}
.version-preview-toolbar button {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.version-preview-viewport {
  width: 100%;
  height: min(65vh, 620px);
  overflow: hidden;
  background: #eef1f5;
  border: 1px solid #e2e7ef;
  border-radius: 7px;
}
.version-preview-frame {
  display: block;
  border: 0;
  background: white;
  transform-origin: top left;
}
@media (max-width: 1100px) {
  .studio-workspace-label,
  .header-left > .site-name,
  .header-left > .chevron {
    display: none;
  }
  .header-left {
    gap: 6px;
  }
}

.device-scope {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
  margin: 0;
  padding: 12px;
  border-bottom: 1px solid var(--border, #e6e6e6);
}
.device-scope-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent, #0969fa);
  margin-bottom: 10px;
  font-size: 12px;
}
.device-scope label {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.device-scope select {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f3f3f3;
  color: #333;
  font-size: 11px;
}
.device-scope select:focus-visible {
  outline: 2px solid #66a5fa;
  outline-offset: 1px;
}
.device-scope small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted, #777);
  margin-top: 8px;
}
#inspector .device-property-badge {
  display: inline-flex;
  margin-left: auto;
  color: var(--accent, #0969fa);
}
.device-property-badge svg {
  width: 13px;
  height: 13px;
}

.page-list-views {
  margin: 8px 12px 14px;
  display: flex;
  gap: 4px;
}
.page-list-views button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
}

.login-card form {
  display: grid;
  gap: 16px;
}
.login-card form + form {
  margin-top: 12px;
}
.login-card input {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 11px 13px;
  border: 1px solid #dde3ef;
  border-radius: 7px;
  background: #fff;
  color: #253046;
  font-size: 14px;
}
.login-card input[type="hidden"] {
  display: none;
}
.login-card input:focus-visible {
  outline: 2px solid #3166ec;
  outline-offset: 2px;
}
.login-card input[name="code"] {
  text-align: center;
  letter-spacing: 0.3em;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.login-card form .secondary {
  min-height: 42px;
  width: 100%;
}
.login-card form label {
  margin: 0;
}

.login:has(form[action="/admin/workspaces"]) .login-card {
  width: min(100%, 780px);
}

.canvas-area {
  position: relative;
}
.preview-status {
  position: absolute;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border: 1px solid #dae2f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 18px #17203312;
  font-size: 12px;
  color: #4b5568;
}
.preview-status[hidden],
.preview-status [hidden] {
  display: none;
}
.preview-status button {
  white-space: nowrap;
}

.brand-mark.rockfy-logo{background:transparent;padding:0;overflow:hidden;flex-shrink:0}
.rockfy-logo img{display:block;width:100%;height:100%;object-fit:contain}
.project-cover .project-thumbnail{display:block;width:100%;height:100%;object-fit:cover;object-position:top;position:absolute;inset:0}


.release-url{display:grid;gap:6px;margin:16px 0;font-size:12px}.release-url input{width:100%;padding:10px;border:1px solid #dce2ec;border-radius:6px;font:12px system-ui;color:#4b5568}
