/* [project]/src/app/globals.css [app-client] (css) */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  color: #e6e9f0;
  background: #0d1118;
  font-family: -apple-system, PingFang SC, Microsoft YaHei, sans-serif;
  overflow: hidden;
}

button {
  font-family: inherit;
}

.app {
  flex-direction: column;
  height: 100vh;
  display: flex;
}

.menubar {
  z-index: 30;
  background: #11161f;
  border-bottom: 1px solid #222a3a;
  flex-shrink: 0;
  align-items: center;
  gap: 2px;
  height: 42px;
  padding: 0 12px;
  display: flex;
  position: relative;
}

.brand {
  letter-spacing: .3px;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
}

.brand img {
  border-radius: 6px;
  width: 24px;
  height: 24px;
}

.menu {
  position: relative;
}

.menu-btn {
  color: #c8cfdd;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
}

.menu-btn:hover, .menu-btn.open {
  background: #1f2738;
}

.menu-drop {
  z-index: 40;
  background: #161c29;
  border: 1px solid #2a3245;
  border-radius: 9px;
  flex-direction: column;
  min-width: 168px;
  padding: 5px;
  display: flex;
  position: absolute;
  top: 34px;
  left: 0;
  box-shadow: 0 8px 24px #00000073;
}

.menu-drop button {
  color: #e6e9f0;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  font-size: 13px;
  display: flex;
}

.menu-drop button:hover {
  background: #2c4a8a;
}

.menu-drop button:disabled {
  opacity: .4;
  cursor: default;
}

.menu-drop .check {
  color: #7fd1ff;
  width: 14px;
  font-size: 9px;
}

.menu-backdrop {
  z-index: 25;
  position: fixed;
  inset: 0;
}

.menu-drop.wide {
  min-width: 232px;
}

.menu-input-row {
  gap: 6px;
  padding: 3px;
  display: flex;
}

.menu-input-row .name-input {
  color: #e6e9f0;
  background: #0d1118;
  border: 1px solid #2a3245;
  border-radius: 7px;
  outline: none;
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  font-size: 12px;
}

.menu-input-row .name-input:focus {
  border-color: #4a6cb3;
}

.menu-input-row > button {
  color: #e6e9f0;
  cursor: pointer;
  background: #1a2030;
  border: 1px solid #2a3245;
  border-radius: 7px;
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 12px;
}

.menu-input-row > button:hover {
  border-color: #3d4a66;
}

.menu-sep {
  background: #222a3a;
  height: 1px;
  margin: 4px 6px;
}

.menu-empty {
  color: #6b7488;
  padding: 8px 10px;
  font-size: 12px;
}

.menu-scheme-row {
  align-items: stretch;
  gap: 3px;
  display: flex;
}

.menu-scheme-row > button:first-child {
  color: #e6e9f0;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px 10px;
  font-size: 13px;
  display: flex;
}

.menu-scheme-row > button:first-child:hover {
  background: #2c4a8a;
}

.menu-scheme-row em {
  color: #6b7488;
  font-size: 10px;
  font-style: normal;
}

.menu-scheme-row .mini-del {
  color: #6b7488;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  flex-shrink: 0;
  width: 24px;
  font-size: 14px;
}

.menu-scheme-row .mini-del:hover {
  color: #f0b9a4;
  background: #2a1812;
}

.optionsbar.bgbar {
  background: #0d1320;
}

.menubar-right {
  align-items: center;
  gap: 8px;
  margin-left: auto;
  display: flex;
}

.sim-status {
  color: #6fcf8f;
  margin-right: 6px;
  font-size: 12px;
}

.sim-status.paused {
  color: #e2b34a;
}

.rec-dot {
  color: #e2603f;
  font-size: 12px;
  animation: 1s steps(2, end) infinite rec-blink;
}

@keyframes rec-blink {
  50% {
    opacity: .3;
  }
}

.menubar-right button {
  color: #e6e9f0;
  cursor: pointer;
  background: #1a2030;
  border: 1px solid #2a3245;
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 12px;
}

.menubar-right button:hover {
  border-color: #3d4a66;
}

.link-btn {
  color: #e6e9f0;
  background: #1a2030;
  border: 1px solid #2a3245;
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 12px;
  text-decoration: none;
}

.link-btn:hover {
  border-color: #3d4a66;
}

.vec-row {
  color: #9aa3b5;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  display: flex;
}

.vec-row span {
  flex-shrink: 0;
  width: 32px;
}

.vec-row input {
  color: #e6e9f0;
  background: #0d1118;
  border: 1px solid #2a3245;
  border-radius: 6px;
  outline: none;
  flex: 1;
  width: 0;
  min-width: 0;
  padding: 5px 6px;
  font-size: 12px;
}

.vec-row input:focus {
  border-color: #4a6cb3;
}

.prim-list {
  flex-direction: column;
  gap: 5px;
  display: flex;
}

.prim-list .custom-comp > button:first-child {
  color: #e6e9f0;
  cursor: pointer;
  background: #1a2030;
  border: 1px solid #2a3245;
  border-radius: 7px;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  font-size: 12px;
  display: flex;
}

.prim-list .custom-comp > button:first-child.active {
  background: #2c4a8a;
  border-color: #4a6cb3;
}

.prim-list em {
  color: #6b7488;
  font-size: 10px;
  font-style: normal;
}

.optionsbar {
  color: #9aa3b5;
  background: #0f141d;
  border-bottom: 1px solid #222a3a;
  flex-shrink: 0;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 14px;
  font-size: 12px;
  display: flex;
}

.opt-label {
  color: #c8cfdd;
  font-size: 12px;
  font-weight: 600;
}

.seg {
  background: #0d1118;
  border: 1px solid #222a3a;
  border-radius: 7px;
  gap: 2px;
  padding: 2px;
  display: flex;
}

.seg button {
  color: #9aa3b5;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 5px;
  padding: 4px 11px;
  font-size: 12px;
}

.seg button.active {
  color: #fff;
  background: #2c4a8a;
}

.opt-row {
  align-items: center;
  gap: 7px;
  display: flex;
}

.opt-row input[type="range"] {
  accent-color: #4a6cb3;
  width: 100px;
}

.opt-row em {
  color: #6b7488;
  min-width: 26px;
  font-size: 11px;
  font-style: normal;
}

.opt-note {
  color: #6b7488;
  align-items: center;
  gap: 5px;
  display: flex;
}

.opt-note .swatch {
  border-radius: 3px;
  width: 10px;
  height: 10px;
  display: inline-block;
}

.opt-btn {
  color: #e6e9f0;
  cursor: pointer;
  background: #1a2030;
  border: 1px solid #2a3245;
  border-radius: 6px;
  padding: 4px 11px;
  font-size: 12px;
}

.viz-tabs {
  background: #0d1118;
  border: 1px solid #222a3a;
  border-radius: 7px;
  gap: 2px;
  margin-left: auto;
  padding: 2px;
  display: flex;
}

.viz-tabs button {
  color: #9aa3b5;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 12px;
}

.viz-tabs button.active {
  color: #fff;
  background: #2c4a8a;
}

.viz-group {
  align-items: center;
  gap: 2px;
  display: flex;
}

.viz-sep {
  background: #2a3245;
  width: 1px;
  height: 16px;
  margin: 0 4px;
}

.workspace {
  flex: 1;
  min-height: 0;
  display: flex;
}

.toolbar {
  background: #11161f;
  border-right: 1px solid #222a3a;
  flex-direction: column;
  flex-shrink: 0;
  gap: 6px;
  width: 60px;
  padding: 10px 8px;
  display: flex;
}

.toolbar button {
  color: #c8cfdd;
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 8px;
  padding: 9px 0;
  font-size: 12px;
}

.toolbar button:hover {
  background: #1a2030;
}

.toolbar button.active {
  color: #fff;
  background: #2c4a8a;
  border-color: #4a6cb3;
}

.toolbar button:disabled {
  opacity: .35;
  cursor: default;
}

.tool-sep {
  background: #222a3a;
  height: 1px;
  margin: 4px 2px;
}

.stage {
  background: #0d1118;
  flex: 1;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: 18px;
  display: flex;
}

.canvas-wrap {
  background: #fff;
  border: 1px solid #2a3245;
  border-radius: 10px;
  width: 100%;
  max-width: 1200px;
  line-height: 0;
  position: relative;
  overflow: hidden;
}

.canvas-wrap .bg {
  object-fit: contain;
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.canvas-wrap canvas {
  cursor: crosshair;
  touch-action: none;
  width: 100%;
  height: auto;
  position: relative;
}

.canvas-wrap .preview {
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.canvas-wrap .preview line, .canvas-wrap .preview rect {
  fill: none;
  stroke: #fff;
  stroke-width: 1px;
  stroke-dasharray: 4 3;
}

.canvas-wrap .preview.erase line, .canvas-wrap .preview.erase rect {
  stroke: #f06a5a;
}

.comp-label {
  color: #c8cfdd;
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
  background: #0d111ab8;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 10px;
  line-height: 1.5;
  position: absolute;
  transform: translate(-50%, -50%);
}

.figure {
  cursor: grab;
  z-index: 10;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  flex-direction: column;
  align-items: center;
  display: flex;
  position: absolute;
  transform: translate(-50%, -100%);
}

.figure:active {
  cursor: grabbing;
}

.figure svg {
  filter: drop-shadow(0 2px 4px #00000080);
  animation: 2.4s ease-in-out infinite figure-bob;
}

@keyframes figure-bob {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2.5px);
  }
}

.bubble {
  color: #e6e9f0;
  pointer-events: none;
  white-space: normal;
  background: #11161feb;
  border: 1px solid #3d4a66;
  border-radius: 11px 11px 11px 3px;
  width: max-content;
  max-width: 200px;
  margin-bottom: 5px;
  padding: 7px 11px;
  font-size: 12px;
  line-height: 1.55;
}

.canvas-wrap .compass {
  pointer-events: none;
  width: 72px;
  height: 72px;
  position: absolute;
  top: 12px;
  right: 12px;
}

.panel {
  background: #11161f;
  border-left: 1px solid #222a3a;
  flex-direction: column;
  flex-shrink: 0;
  gap: 18px;
  width: 248px;
  padding: 14px;
  display: flex;
  overflow-y: auto;
}

.panel h3 {
  color: #8b94a8;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
}

.panel section {
  border-bottom: 1px solid #1b2231;
  padding-bottom: 16px;
}

.panel section:last-child {
  border-bottom: none;
}

.mat-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  display: grid;
}

.mat-grid button {
  color: #e6e9f0;
  cursor: pointer;
  background: #1a2030;
  border: 1px solid #2a3245;
  border-radius: 7px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  font-size: 12px;
  display: flex;
}

.mat-grid button:hover {
  border-color: #3d4a66;
}

.mat-grid button.active {
  background: #2c4a8a;
  border-color: #4a6cb3;
}

.mat-grid button i {
  border-radius: 3px;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
}

.fan-dirs {
  gap: 4px;
  margin-top: 8px;
  display: flex;
}

.mat-grid.custom {
  margin-top: 8px;
}

.custom-comp {
  gap: 3px;
  min-width: 0;
  display: flex;
}

.custom-comp > button:first-child {
  flex: 1;
  min-width: 0;
}

.custom-comp .del {
  color: #8b94a8;
  cursor: pointer;
  background: #1a2030;
  border: 1px solid #2a3245;
  border-radius: 6px;
  flex-shrink: 0;
  width: 22px;
  padding: 0;
  font-size: 13px;
}

.custom-comp .del:hover {
  color: #f0b9a4;
  border-color: #b3563a;
}

.custom-comp .del.edit:hover {
  color: #7fd1ff;
  border-color: #3d6a96;
}

.scheme-list {
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  display: flex;
}

.scheme-list .custom-comp > button:first-child {
  color: #e6e9f0;
  cursor: pointer;
  background: #1a2030;
  border: 1px solid #2a3245;
  border-radius: 7px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 12px;
  display: flex;
}

.scheme-list .custom-comp > button:first-child:hover {
  border-color: #3d4a66;
}

.scheme-list .custom-comp em {
  color: #6b7488;
  font-size: 10px;
  font-style: normal;
}

.panel .name-input {
  color: #e6e9f0;
  background: #0d1118;
  border: 1px solid #2a3245;
  border-radius: 7px;
  outline: none;
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  font-size: 12px;
}

.panel .name-input:focus {
  border-color: #4a6cb3;
}

.modal-overlay {
  z-index: 50;
  background: #05080e99;
  justify-content: center;
  align-items: center;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal {
  background: #11161f;
  border: 1px solid #2a3245;
  border-radius: 12px;
  width: 720px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 60px);
  padding: 18px 20px;
  overflow-y: auto;
}

.modal h2 {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
}

.modal.recipe-modal {
  width: 380px;
}

.editor-body {
  flex-wrap: wrap;
  gap: 18px;
  display: flex;
}

.editor-left {
  flex-shrink: 0;
}

.editor-left canvas {
  cursor: crosshair;
  touch-action: none;
  border: 1px solid #2a3245;
  border-radius: 8px;
  display: block;
}

.editor-left .btn-row {
  margin-top: 10px;
}

.editor-left .hint {
  max-width: 336px;
}

.editor-right {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  min-width: 240px;
  display: flex;
}

.editor-right .row {
  color: #9aa3b5;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  display: flex;
}

.editor-right .row input[type="range"] {
  accent-color: #4a6cb3;
  flex: 1;
  min-width: 0;
}

.editor-right .row em {
  color: #6b7488;
  text-align: right;
  width: 34px;
  font-size: 11px;
  font-style: normal;
}

.editor-right .fan-dirs {
  flex: 1;
  margin-top: 0;
}

.name-input {
  color: #e6e9f0;
  background: #0d1118;
  border: 1px solid #2a3245;
  border-radius: 7px;
  outline: none;
  flex: 1;
  padding: 6px 10px;
  font-size: 13px;
}

.name-input:focus {
  border-color: #4a6cb3;
}

.modal .btn-row button:disabled {
  opacity: .4;
  cursor: default;
}

.modal .btn-row button.active {
  background: #2c4a8a;
  border-color: #4a6cb3;
}

.fan-dirs button {
  color: #e6e9f0;
  cursor: pointer;
  background: #1a2030;
  border: 1px solid #2a3245;
  border-radius: 6px;
  flex: 1;
  padding: 5px 0;
  font-size: 12px;
}

.fan-dirs button.active {
  background: #2c4a8a;
  border-color: #4a6cb3;
}

.dial-wrap {
  justify-content: center;
  margin-bottom: 8px;
  display: flex;
}

.wind-dial {
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  width: 132px;
  height: 132px;
}

.wind-dial:active {
  cursor: grabbing;
}

.panel .row {
  color: #9aa3b5;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  display: flex;
}

.panel .row input[type="range"] {
  accent-color: #4a6cb3;
  flex: 1;
  min-width: 0;
}

.panel .row em {
  color: #6b7488;
  text-align: right;
  width: 30px;
  font-size: 11px;
  font-style: normal;
}

.btn-row {
  gap: 6px;
  display: flex;
}

.btn-row button {
  color: #e6e9f0;
  cursor: pointer;
  background: #1a2030;
  border: 1px solid #2a3245;
  border-radius: 7px;
  flex: 1;
  padding: 7px 0;
  font-size: 12px;
}

.btn-row button:hover {
  border-color: #3d4a66;
}

.hint {
  color: #6b7488;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.6;
}

.hint.air-warn {
  color: #e2b34a;
}

.statusbar {
  color: #6b7488;
  background: #11161f;
  border-top: 1px solid #222a3a;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  height: 26px;
  padding: 0 14px;
  font-size: 11px;
  display: flex;
}

.warn {
  color: #f0b9a4;
  background: #2a1812;
  border: 1px solid #b3563a;
  border-radius: 8px;
  margin: 10px 16px 0;
  padding: 10px 14px;
  font-size: 13px;
}

/*# sourceMappingURL=src_app_globals_162hn9o.css.map*/