/* 550C 换上 550W 的权重窗口视觉：青灰标题栏、梯形缺口、深色面板 */
:root {
  --bg: #050908;
  --white: #9FC4BC;
  --white-hi: #E8F4F0;
  --accent: #9FC4BC;
  --accent-b: #C4DED7;
  --accent-d: #4A7170;
  --amber: #C9A227;
  --green: #A9C4A9;
  --green-b: #D7EBDD;
  --red: #B45454;
  --line: rgba(110, 135, 132, .74);
  --line-soft: rgba(110, 135, 132, .24);
  --fade: rgba(110, 135, 132, .16);
  --win-bg: #071113;
  --win-head: #4A7170;
  --win-line: rgba(110, 135, 132, .74);
  --win-txt: #E3F2EF;
  --win-shadow: none;
}
html, body {
  background-color: #050908;
  background-image:
    linear-gradient(rgba(110, 135, 132, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 135, 132, .045) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
}
.ide-menubar, .ide-toolbar {
  background: #071113;
  border-color: rgba(110, 135, 132, .58);
}
.ide-menubar {
  background: linear-gradient(180deg, #547C7A 0%, #4A7170 100%) !important;
  border-color: #6F918D !important;
}
.ide-menubar .ide-menu, .ide-menubar .ide-appname, .ide-menubar .ide-ver,
.ide-menubar .ide-admin, .ide-menubar .lang-sw .ls {
  color: #EDF8F5 !important;
}
.ide-menubar .ide-admin {
  background: rgba(7, 17, 19, .35) !important;
  border-color: rgba(220, 240, 236, .45) !important;
}
.ide-menubar .lang-sw .ls.active {
  background: #9FC4BC;
  color: #07100D;
}
.panel-head, .q-head, .ew-head {
  position: relative;
}
.panel-head {
  height: 22px;
  padding: 0 7px;
  background: linear-gradient(180deg, #547C7A 0%, #4A7170 100%) !important;
  border-bottom: 1px solid rgba(110, 135, 132, .8) !important;
  box-shadow: inset 0 1px 0 rgba(220, 240, 236, .22), inset 0 -1px 0 rgba(0, 0, 0, .32);
  color: #E3F2EF !important;
}
.panel-head::after, .q-head::after, .ew-head::after {
  content: "";
  position: absolute;
  right: 62px;
  top: 0;
  width: 104px;
  height: 5px;
  background: #050908;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 8px 100%);
  pointer-events: none;
  z-index: 4;
}
.code-win .panel-head, .eng-win .ew-head, .app-win .panel-head, .q-win .q-head {
  background: linear-gradient(180deg, #547C7A 0%, #4A7170 100%) !important;
  border-bottom-color: rgba(110, 135, 132, .8) !important;
  color: #E3F2EF !important;
}
.panel-head > *, .q-head > *, .ew-head > * {
  position: relative;
  z-index: 5;
}
.app-win, .panel, .term, .eng-win {
  box-shadow: none;
}
.winbtns .wbtn, .app-win .panel-head .wbtn {
  color: #DCE9E6;
  border-left-color: rgba(220, 240, 236, .18);
}
.winbtns .wbtn:hover, .app-win .panel-head .wbtn:hover {
  background: rgba(220, 240, 236, .12);
}
#stage-login .ops-box, #opsLogin .ops-box {
  border-color: #9FC4BC !important;
  box-shadow: 0 0 0 1px rgba(159, 196, 188, .16), 0 24px 70px rgba(0, 0, 0, .82) !important;
}
#stage-login .ops-amber, #opsLogin .ops-amber { background: #9FC4BC !important; }
#stage-login h2, #opsLogin h2 { color: #DCE9E6 !important; }
#opsLogin button { border-color: #6F918D !important; color: #DCE9E6 !important; }
.ide-admin, .ide-tb {
  border-color: rgba(110, 135, 132, .55);
}
.ide-tb:hover, .ide-admin:hover { border-color: #9FC4BC; }

/* ===== 直接套用 550W 的窗口皮肤 ===== */
:root {
  --rz-edge: 6px !important;
  --rz-corner: 10px !important;
}
.eng-win {
  --rz-edge: 6px !important;
  --rz-corner: 10px !important;
}
.app-win, .code-win, .eng-win, .q-win, .float, .ide-fedit, .modal, .panel.drag {
  border-radius: 0 !important;
  background: #071113 !important;
  border: 1px solid rgba(110, 135, 132, .74) !important;
  box-shadow: none !important;
}
.app-win .panel-head, .code-win .panel-head, .q-win .q-head,
.eng-win .ew-head, .ide-fedit .ide-fedit-head, .modal .modal-head,
.panel.drag .panel-head {
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 6px !important;
  gap: 8px !important;
  background: linear-gradient(180deg, #547C7A 0%, #4A7170 100%) !important;
  border-bottom: 1px solid rgba(110, 135, 132, .80) !important;
  color: #E3F2EF !important;
  font-size: 10px !important;
  letter-spacing: .05em !important;
  position: relative;
  overflow: visible !important;
}
.code-win .panel-head::before {
  display: none !important;
}
.panel-head .tag, .q-head .tag, .ew-head .tag {
  color: #DCE9E6 !important;
  border-color: rgba(220, 240, 236, .25) !important;
}
.app-win .panel-body, .code-win .cw-body, .eng-win .ew-body,
.q-win .q-body, .ide-fedit .ide-fedit-body, .modal .modal-body,
.panel.drag .panel-body {
  background: #071113 !important;
  color: #B9CFC6 !important;
  font: 11.5px/1.6 Consolas, Menlo, monospace !important;
  padding: 10px 12px !important;
}
/* 550W 的 12px 线性窗口按钮 */
.winbtns {
  gap: 8px !important;
  padding-left: 8px !important;
}
.winbtns .wbtn, .panel-head .wbtn, .q-head .wbtn, .ew-head .wbtn,
.ide-fedit-head .wbtn, .modal-head .wbtn {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #DCE9E6 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  opacity: .95 !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}
.winbtns .wbtn:hover, .panel-head .wbtn:hover, .q-head .wbtn:hover,
.ew-head .wbtn:hover, .ide-fedit-head .wbtn:hover, .modal-head .wbtn:hover {
  background: rgba(140, 253, 255, .16) !important;
  color: #FFFFFF !important;
}
.wbtn.mini::before {
  content: "" !important;
  position: absolute !important;
  left: 1px; right: 1px; top: 6px;
  height: 1.5px !important;
  background: currentColor !important;
}
.wbtn.maxi::before {
  content: "" !important;
  position: absolute !important;
  left: 2px; top: 2px;
  width: 9px; height: 8px;
  border: 1.5px solid currentColor !important;
  background: transparent !important;
  box-sizing: border-box;
}
.wbtn.maxi::after {
  content: "" !important;
  position: absolute !important;
  left: 2px; top: 2px;
  width: 9px; height: 2px;
  background: currentColor !important;
}
.wbtn.close::before, .wbtn.close::after {
  content: "" !important;
  position: absolute !important;
  left: 2px; top: 7px;
  width: 10px; height: 1.5px;
  background: currentColor !important;
}
.wbtn.close::before { transform: rotate(45deg) !important; }
.wbtn.close::after { transform: rotate(-45deg) !important; }
.wbtn.close:hover {
  background: rgba(180, 70, 70, .45) !important;
}
/* 550C 的缩放命中范围放大到接近 550W 的 6px / 10px */
.rsz-n, .rsz-s { height: 6px !important; }
.rsz-e, .rsz-w { width: 6px !important; }
.rsz-ne, .rsz-nw, .rsz-se, .rsz-sw {
  width: 10px !important;
  height: 10px !important;
}
