:root {
  color-scheme: light;
  --guide-paper: #f8faf9;
  --guide-ink: #222b26;
  --guide-green: #2d6549;
  --guide-line: #dce2d8;
  --guide-top: 44px;
  --guide-bottom: 0px;
  --guide-side: 320px;
}
* {
  box-sizing: border-box;
}
#solidcraft_canvas {
  top: var(--guide-top) !important;
  height: calc(100% - var(--guide-top) - var(--guide-bottom)) !important;
}
#solidcraft_loading {
  top: var(--guide-top);
  bottom: var(--guide-bottom);
}
#guide-nav,
#guide-panel,
#guide-status,
#guide-error,
#guide-confirm,
#guide-focus-exit {
  font:
    13px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--guide-ink);
}
#guide-nav {
  position: fixed;
  inset: 0 0 auto;
  height: 44px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  background: var(--guide-paper);
  border-bottom: 1px solid var(--guide-line);
}
#guide-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
#guide-brand strong {
  font-size: 13px;
  letter-spacing: -0.35px;
}
#guide-brand span {
  font-weight: 400;
  color: #626d65;
}
.guide-version {
  display: block;
  padding: 8px 9px;
  color: #66736b;
  font:
    10px/1.4 ui-monospace,
    monospace;
}
#guide-cloud-slot {
  flex: 1;
  min-width: 0;
}
#guide-nav nav {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  align-items: center;
}
#guide-nav button,
#guide-nav summary,
#guide-panel button,
#guide-panel input,
#guide-confirm button,
#guide-error button,
#guide-error a {
  font: inherit;
}
#guide-nav button,
#guide-templates,
#guide-tools summary {
  border: 1px solid transparent;
  padding: 6px 9px;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}
#guide-nav nav > button,
#guide-tools summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  font-size: 12px;
}
#guide-nav .guide-icon-button {
  width: 30px;
  padding: 0;
}
#guide-nav button:hover,
#guide-templates:hover,
#guide-tools summary:hover,
#guide-tools[open] summary {
  background: #e9eeeb;
}
#guide-tools {
  position: relative;
}
#guide-tools summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
#guide-tools summary::-webkit-details-marker {
  display: none;
}
#guide-tools-panel {
  position: absolute;
  top: 36px;
  right: 0;
  width: min(280px, calc(100vw - 16px));
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--guide-line);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 12px 40px #17302624,
    0 2px 6px #1730260a;
}
.guide-menu-group {
  padding: 4px 0;
}
.guide-menu-group + .guide-menu-group {
  border-top: 1px solid #edf0ed;
}
.guide-menu-label {
  display: block;
  padding: 5px 9px 4px;
  color: #66736b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
#guide-tools-panel button,
#guide-tools-panel a {
  display: block;
  width: 100%;
  padding: 8px 9px;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  font-size: 12px;
}
#guide-nav .guide-primary {
  background: var(--guide-green);
  color: white;
}
#guide-nav .guide-primary:hover {
  background: #244f3b;
}
#guide-toggle[aria-expanded="true"] {
  background: #e3ece6;
  color: var(--guide-green);
}
#guide-nav button:disabled,
#guide-panel button:disabled {
  opacity: 0.5;
  cursor: wait;
}
#guide-nav [hidden],
#guide-nav[hidden],
#guide-panel [hidden],
#guide-panel[hidden],
#guide-error[hidden],
#guide-status[hidden],
#guide-focus-exit[hidden] {
  display: none !important;
}
#guide-status {
  position: fixed;
  inset: auto auto 18px 18px;
  z-index: 35;
  max-width: min(460px, calc(100vw - 36px));
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--guide-line);
  border-radius: 6px;
  box-shadow: 0 4px 24px #1934201a;
  pointer-events: none;
}
#guide-status[data-busy="true"]::before,
#guide-nav button[aria-busy="true"]:not(#cloud-editor-save)::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  margin-right: 7px;
  vertical-align: -1px;
  border: 1.5px solid #b8cbbc;
  border-top-color: var(--guide-green);
  border-radius: 50%;
  animation: guide-action-spin 0.8s linear infinite;
}
@keyframes guide-action-spin {
  to {
    transform: rotate(360deg);
  }
}
#guide-panel {
  position: fixed;
  right: 8px;
  top: calc(var(--guide-top) + 8px);
  max-height: calc(100dvh - var(--guide-top) - 16px);
  z-index: 28;
  width: var(--guide-side);
  padding: 22px;
  overflow: auto;
  background: var(--guide-paper);
  border: 1px solid var(--guide-line);
  border-radius: 8px;
  box-shadow: 0 12px 40px #17302624;
}
.guide-focus-mode {
  --guide-top: 0px;
}
#guide-focus-exit {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 50;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd5cf;
  border-radius: 5px;
  color: #355b46;
  background: #f8faf9ed;
  cursor: pointer;
  box-shadow: 0 2px 8px #16241d1a;
}
.guide-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--guide-green);
  font: 10px/1.4 monospace;
  letter-spacing: 1px;
}
#guide-close {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0 4px;
  font-size: 26px !important;
  cursor: pointer;
}
#guide-panel h1 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  margin: 16px 0;
}
#guide-panel p {
  margin: 0 0 15px;
  color: #526057;
  font-size: 13px;
}
.guide-samples {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}
.guide-samples button {
  padding: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--guide-line);
  border-radius: 5px;
  cursor: pointer;
  color: var(--guide-ink);
}
.guide-samples button:hover {
  border-color: var(--guide-green);
}
.guide-samples small {
  display: block;
  margin-top: 4px;
  color: #626d65;
}
.guide-steps {
  padding-left: 22px;
  margin: 24px 0;
}
.guide-steps li {
  padding: 0 0 16px 5px;
}
.guide-steps strong {
  font-size: 14px;
}
.guide-steps p {
  margin-top: 7px !important;
}
.guide-steps .complete::marker {
  color: var(--guide-green);
  font-weight: bold;
}
.guide-steps .complete > strong::after {
  content: " ✓";
  color: var(--guide-green);
}
#guide-dimension label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}
.guide-input-row {
  display: flex;
  gap: 6px;
}
#guide-width {
  min-width: 0;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--guide-line);
  background: white;
  border-radius: 4px;
  color: var(--guide-ink);
}
.guide-input-row button {
  border: 0;
  background: var(--guide-green);
  color: white;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
}
#guide-panel .guide-storage-note {
  padding: 13px;
  border: 1px solid var(--guide-line);
  background: #edf1e9;
  font-size: 12px;
}
#guide-panel > a {
  display: block;
  color: var(--guide-green);
  font-size: 12px;
  margin: 12px 0;
}
#guide-panel > small {
  display: block;
  color: #626d65;
  font-size: 11px;
  margin-top: 20px;
}
#guide-error {
  position: fixed;
  inset: var(--guide-top) 0 var(--guide-bottom);
  z-index: 40;
  display: grid;
  place-items: center;
  background: var(--guide-paper);
  padding: 20px;
  overflow: auto;
}
#guide-error > div {
  max-width: 540px;
  border: 1px solid var(--guide-line);
  background: white;
  padding: 32px;
  border-radius: 8px;
}
#guide-error h1 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -1px;
}
.guide-eyebrow {
  font-size: 10px !important;
  letter-spacing: 1px;
  color: var(--guide-green);
}
#guide-error a {
  display: block;
  color: var(--guide-green);
  margin: 15px 0;
}
.guide-error-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.guide-error-actions a,
.guide-error-actions button {
  display: inline-block !important;
  text-decoration: none;
  background: var(--guide-green);
  color: white !important;
  border: 0;
  border-radius: 4px;
  padding: 10px 16px;
  margin: 0 !important;
  cursor: pointer;
}
#guide-error p:last-child {
  font-size: 12px;
  color: #626d65;
}
#guide-confirm {
  border: 1px solid var(--guide-line);
  border-radius: 8px;
  padding: 26px;
  width: min(500px, calc(100% - 32px));
  background: var(--guide-paper);
  box-shadow: 0 20px 80px #0003;
}
#guide-confirm::backdrop {
  background: #16241dcc;
}
#guide-confirm h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 14px;
}
#guide-confirm form > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}
#guide-confirm button {
  border: 1px solid var(--guide-line);
  padding: 9px 12px;
  border-radius: 4px;
  background: white;
  color: var(--guide-ink);
  cursor: pointer;
}
#guide-confirm .guide-primary {
  background: var(--guide-green);
  color: white;
  border-color: var(--guide-green);
}
#guide-nav :focus-visible,
#guide-panel :focus-visible,
#guide-confirm :focus-visible,
#guide-error :focus-visible,
#guide-focus-exit:focus-visible {
  outline: 2px solid #6e9560;
  outline-offset: 2px;
}
@media (max-width: 850px) {
  #guide-nav {
    padding: 0 8px;
    gap: 8px;
  }
  #guide-panel {
    width: min(320px, calc(100% - 16px));
  }
}
@media (max-width: 600px) {
  #guide-brand strong {
    display: none;
  }
  #guide-nav {
    gap: 6px;
  }
  #guide-toggle span,
  #guide-tools summary span {
    display: none;
  }
  #guide-nav #guide-toggle,
  #guide-tools summary {
    width: 30px;
    padding: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #guide-status[data-busy="true"]::before,
  #guide-nav button[aria-busy="true"]:not(#cloud-editor-save)::before {
    animation: none;
  }
  #solidcraft_loading {
    transition: none;
  }
}
#guide-templates {
  text-decoration: none;
  font: inherit;
}
