:root {
  --bg: #000000;
  --fg: #d9d9de;
  --dim: #7c7c85;
  --accent: #ff6eb4;
  --accent-2: #ecd9b0;
  --rule: #26262c;
  --panel: #0c0c0f;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas,
          "DejaVu Sans Mono", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background: #000000 url(/img/wallpapers/fuji1.jpg) center/cover no-repeat fixed;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.i3bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  z-index: 50;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.95);
  font-size: 11px;
  user-select: none;
}

.ws-group {
  display: flex;
  gap: 2px;
  padding-left: 4px;
}

.ws {
  min-width: 22px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #17171b;
  color: #8a8a93;
  font-weight: 600;
  cursor: pointer;
  border-top: 2px solid transparent;
  font-size: 11px;
}

.ws:hover { background: #2b2b31; color: #e6e6ea; }

.ws.active {
  background: var(--accent);
  color: #17000a;
  border-top-color: color-mix(in srgb, var(--accent) 55%, #ffffff);
}

.ws-logo { height: 14px; display: block; }

.bar-title {
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #b9b9c0;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 11px;
}

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

.mod {
  padding: 0 8px;
  display: flex;
  align-items: center;
  font-size: 11px;
}

.mod.dev { color: var(--accent); }
.mod.stat { color: #97979f; }
.mod.clock { color: #ffffff; font-weight: 700; }

.mod.dev { color: var(--accent); }
.mod.stat { color: #97979f; }
.mod.clock { color: #ffffff; font-weight: 700; }

.mod.launch {
  cursor: pointer;
  pointer-events: auto;
}

.mod.launch:hover { background: rgba(255, 255, 255, 0.07); }

body.hide-ver .mod-ver,
body.hide-state .mod-state,
body.hide-clock .mod-clock { display: none; }

.win {
  position: fixed;
  top: 13vh;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(620px, 94vw);
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-top: 0;
}

.win.maxed {
  top: 26px;
  bottom: 0;
  left: 0;
  right: 0;
  width: auto;
  margin: 0;
}

.win.min { bottom: auto; height: auto; }
.win.hidden { display: none; }

.win-title {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  flex-shrink: 0;
  padding: 0 5px 0 9px;
  background: var(--accent);
  color: #17000a;
  font-size: 12px;
  font-weight: 700;
  user-select: none;
  cursor: grab;
  touch-action: none;
}

.win.maxed .win-title { cursor: default; }
.win.dragging .win-title { cursor: grabbing; }

.wt-logo { height: 14px; display: block; }

.wt-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win-title .mod {
  background: rgba(23, 0, 10, 0.22);
  color: #17000a;
  height: 16px;
  padding: 0 7px;
  font-size: 10.5px;
}

.win-btns {
  display: flex;
  gap: 4px;
}

.wbtn {
  width: 15px;
  height: 15px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #17000a;
  color: #17000a;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--mono);
  line-height: 1;
  cursor: pointer;
}

.wbtn:hover { background: #17000a; color: var(--accent); }

.win-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-logo { width: 76px; height: 76px; }

.wordmark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--fg);
}

.tagline {
  font-size: 12px;
  color: var(--dim);
}

.search-row {
  display: flex;
  gap: 8px;
}

.search-row input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--rule);
  color: var(--fg);
  padding: 7px 11px;
  font: 13px/1.3 var(--mono);
  outline: none;
}

.search-row input:focus { border-color: var(--accent); }
.search-row input::placeholder { color: #55555e; }

.btn {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #17000a;
  padding: 6px 12px;
  font: 700 13px/1 var(--mono);
  cursor: pointer;
}

.btn:hover { background: #17000a; color: var(--accent); }

.hint {
  color: var(--dim);
  font-size: 13px;
}

.nagbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: #000000;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #d9d9de;
  z-index: 20;
}

.nagbar[hidden] { display: none; }

.nb-btn {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #17000a;
  padding: 6px 12px;
  font: 700 11px/1 var(--mono);
  cursor: pointer;
  margin-left: 8px;
}

.nb-btn:hover { background: #e6e6ea; color: #000000; }
