:root {
  --bg: #0d1113;
  --panel: #151b1f;
  --panel-2: #1d252a;
  --line: #2f3a40;
  --text: #f3f7f4;
  --muted: #9daaa2;
  --accent: #d57a26;
  --accent-2: #f1b45b;
  --green: #43c478;
  --red: #e8574f;
  --blue: #4a9de8;
  --smoke: #cbd2d0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 15%, rgba(213, 122, 38, 0.16), transparent 32%),
    radial-gradient(circle at 80% 5%, rgba(74, 157, 232, 0.12), transparent 28%),
    linear-gradient(135deg, #0b0f11 0%, #111719 52%, #17110d 100%);
  font-family: "Segoe UI", Arial, sans-serif;
}

.app {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 22px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(560px, 1.05fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}


h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: 0;
}

.brandRow {
  --brand: clamp(24px, 3.4vw + 14px, 34px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.brandLeft {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.brandRight {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  text-align: right;
  flex-shrink: 0;
}

.userNavLeft {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brandTitle {
  margin: 0;
  font-size: var(--brand);
  letter-spacing: 0;
  white-space: nowrap;
  text-align: right;
  flex: 0 1 auto;
  min-width: 0;
  color: #e96d28;
  background: linear-gradient(180deg, #ffd36f 15%, #e96d28 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(233, 109, 40, 0.45));
}

.brandLogo {
  width: auto;
  max-width: none;
  height: 38px;
  flex: 0 0 auto;
}

@media (min-width: 761px) {
  .brandLogo {
    height: 64px;
  }
}

.statusCol {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.status {
  display: grid;
  align-items: center;
  min-height: 64px;
  padding: 14px 22px;
  background: rgba(21, 27, 31, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.status span,
.metric label,
.tempCard span,
.timeBox span,
.setTempPanel span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.status span,
.metric label,
.timeBox span,
.setTempPanel span {
  font-size: 12px;
}

.timeBox span {
  display: block;
  max-width: 92px;
  line-height: 1.15;
  white-space: normal;
}

.status strong {
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
}

.status.running {
  border-color: rgba(241, 180, 91, 0.72);
  background: linear-gradient(135deg, rgba(241, 180, 91, 0.14), rgba(21, 27, 31, 0.96) 48%);
}

.status.running strong {
  color: var(--accent-2);
}

.status.off strong {
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(560px, 1.05fr);
  gap: 18px;
}

.logsPanel {
  margin-top: 18px;
  padding: 14px;
  background: rgba(21, 27, 31, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.logsPanel[hidden] {
  display: none;
}

.logsHead {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

.logsHead span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.logsHead h2 {
  margin: 3px 0 0;
  font-size: 20px;
}

.logsBox {
  height: 220px;
  overflow: auto;
  padding: 10px 12px;
  background: #05090b;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  white-space: nowrap;
}

.logLine {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  min-height: 20px;
  align-items: baseline;
}

.logTime {
  color: var(--blue);
}

.logMsg {
  color: var(--text);
}

.logMsg.warn {
  color: var(--accent-2);
}

.logMsg.error {
  color: var(--red);
}

.smokerPanel,
.controlPanel,
.phasePanel,
.metric {
  background: rgba(21, 27, 31, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.smokerPanel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  padding: 0;
}

.smoke {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background:
    radial-gradient(ellipse at 20% 78%, var(--smoke) 0 5%, transparent 22%),
    radial-gradient(ellipse at 34% 65%, var(--smoke) 0 4%, transparent 18%),
    radial-gradient(ellipse at 58% 58%, var(--smoke) 0 5%, transparent 22%),
    radial-gradient(ellipse at 74% 44%, var(--smoke) 0 4%, transparent 20%);
  filter: blur(6px);
}

.smokerArt {
  position: absolute;
  left: 50%;
  top: 43%;
  width: min(92%, 620px);
  height: 360px;
  transform: translate(-50%, -50%);
}

.cabinet {
  position: absolute;
  left: 16%;
  bottom: 0;
  width: 48%;
  height: 82%;
  background: linear-gradient(145deg, #262f34, #101518);
  border: 3px solid #44525a;
  border-radius: 8px;
}

.door {
  position: absolute;
  left: 8%;
  top: 10%;
  width: 58%;
  height: 78%;
  border: 2px solid #5d6c73;
  background: linear-gradient(180deg, #141a1d, #0b0f11);
}

.window {
  position: absolute;
  left: 16%;
  top: 18%;
  width: 40%;
  height: 28%;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(180deg, rgba(142, 154, 160, 0.32), rgba(49, 58, 62, 0.18));
  border: 2px solid #68777d;
  box-shadow: none;
  transition: background 0.5s, box-shadow 0.5s;
}

#smokerPanel .window.heaterOn {
  background: linear-gradient(180deg, rgba(241, 180, 91, 0.85), rgba(213, 122, 38, 0.2));
  box-shadow: 0 0 28px rgba(241, 180, 91, 0.35);
}

.smokerPanel.off .window {
  background: linear-gradient(180deg, rgba(142, 154, 160, 0.32), rgba(49, 58, 62, 0.18));
  box-shadow: none;
}

.smokerPanel.off .window span {
  display: none;
}

.window strong {
  color: #fff3d9;
  font-size: 36px;
  line-height: 1;
}

.window span {
  color: #d4ddd9;
  font-size: 20px;
  font-weight: 900;
}

.controller {
  position: absolute;
  left: 70%;
  top: 34%;
  width: 52px;
  height: 82px;
  background: linear-gradient(145deg, #2c363b, #111518);
  border: 2px solid #44525a;
  border-radius: 6px;
  transition: border-color 0.5s, box-shadow 0.5s;
}

.controller .ctrlScreen {
  position: absolute;
  left: 7px;
  right: 7px;
  top: 7px;
  height: 24px;
  background: #0b0f11;
  border: 1px solid #4a585f;
  border-radius: 3px;
}

.controller .ctrlLed {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #3a454b;
  transition: background 0.5s, box-shadow 0.5s;
}

.controller.fresh {
  border-color: rgba(57, 211, 83, 0.65);
  box-shadow: 0 0 14px rgba(57, 211, 83, 0.35);
}

.controller.fresh .ctrlLed {
  background: #39d353;
  box-shadow: 0 0 12px rgba(57, 211, 83, 0.9);
}

.controller.fault {
  border-color: rgba(206, 92, 82, 0.8);
  box-shadow: 0 0 14px rgba(206, 92, 82, 0.5);
}

.controller.fault .ctrlLed {
  background: #e0483e;
  box-shadow: 0 0 12px rgba(224, 72, 62, 0.9);
}

.chimney {
  position: absolute;
  left: 53%;
  top: -48px;
  width: 46px;
  height: 78px;
  background: #263139;
  border: 2px solid #53636b;
}

.firebox {
  position: absolute;
  left: 63%;
  bottom: 0;
  width: 22%;
  height: 34%;
  background: linear-gradient(145deg, #2c363b, #111518);
  border: 3px solid #44525a;
  border-radius: 8px;
}

.fire {
  position: absolute;
  left: 28%;
  bottom: 20%;
  width: 44%;
  height: 44%;
  background: radial-gradient(circle, #ffd36f 0 20%, #e96d28 42%, transparent 70%);
  filter: blur(1px);
  transition: opacity 0.5s;
}

.fire.off {
  opacity: 0;
}

.miniFan {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0b0f11;
  border: 2px solid #4a585f;
}

.miniFan .blades {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    #8b979d 0deg 60deg, transparent 60deg 120deg,
    #8b979d 120deg 180deg, transparent 180deg 240deg,
    #8b979d 240deg 300deg, transparent 300deg 360deg);
}

.miniFan::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #c3cccc;
}

.miniFan.spin {
  border-color: #9aa6ab;
}

.miniFan.spin .blades {
  animation: fanSpin 0.8s linear infinite;
}

@keyframes fanSpin {
  to { transform: rotate(360deg); }
}

.pipe {
  position: absolute;
  left: 60%;
  bottom: 17%;
  width: 9%;
  height: 16px;
  background: #53636b;
}

.ground {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -24px;
  height: 54px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 50%;
}

.totalTimePanel {
  position: absolute;
  left: 50%;
  bottom: 58px;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 260px;
  padding: 14px 22px;
  background: rgba(16, 22, 26, 0.92);
  border: 1px solid rgba(241, 180, 91, 0.42);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
  transform: translateX(-50%);
}

.smokerPanel.off .totalTimePanel {
  display: none;
}

.totalTimePanel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.totalTimePanel strong {
  color: var(--accent-2);
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  padding: 14px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1;
}

.metric small,
.tempCard small,
.setTempPanel small {
  color: var(--muted);
  font-weight: 800;
}

.controlPanel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.tempGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tempCard {
  padding: 18px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.tempCard span {
  font-size: 13px;
}

.tempCard strong {
  display: block;
  margin-top: 8px;
  font-size: 48px;
  line-height: 1;
}

.startStop {
  min-height: 48px;
  width: 70%;
  max-width: 70%;
  justify-self: center;
  border: 0;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #17834c, #33bd71);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 8px 16px -8px rgba(67, 196, 120, 0.25);
}

.startStop.stop {
  background: linear-gradient(135deg, #b92b26, #e8574f);
  box-shadow: 0 8px 16px -8px rgba(232, 87, 79, 0.28);
}

.phaseList {
  display: grid;
  gap: 8px;
}

.phasePanel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 10px;
  align-items: stretch;
  padding: 12px 14px;
}

.phasePanel.active {
  border-color: rgba(241, 180, 91, 0.72);
  background: linear-gradient(135deg, rgba(241, 180, 91, 0.14), rgba(21, 27, 31, 0.96) 42%);
  box-shadow: 0 0 0 1px rgba(241, 180, 91, 0.22), 0 18px 42px rgba(0, 0, 0, 0.32);
}

.phasePanel.locked {
  opacity: 0.58;
}

.phasePanel.locked .timeSet,
.phasePanel.locked .tempSet,
.phasePanel.locked .smokeBadge {
  cursor: not-allowed;
  filter: grayscale(0.55);
}

.phaseMain {
  display: grid;
  align-content: space-between;
  gap: 8px;
  min-width: 0;
}

.phaseHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.phaseHead h2 {
  margin: 0;
  font-size: 17px;
}

.badge {
  border: 0;
  padding: 5px 9px;
  color: #111;
  background: var(--accent-2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.smokeBadge {
  position: relative;
  z-index: 3;
  color: #f3f7f4;
  background: #7f8a91;
  cursor: pointer;
  font-family: inherit;
  pointer-events: auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.smokeBadge:hover {
  filter: brightness(1.08);
}

.smokeBadge.smokeOn {
  color: #111;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(241, 180, 91, 0.14);
}

.smokeBadge.smokeEnabled:not(.smokeOn) {
  color: #ffe5b9;
  background: rgba(213, 122, 38, 0.28);
  box-shadow: inset 0 0 0 1px rgba(241, 180, 91, 0.22);
}

.badge.smokeOn:not(.smokeBadge) {
  color: white;
  background: #6b7378;
}

.badge.heat:not(.smokeBadge) {
  color: white;
  background: var(--red);
}

.timeGrid,
.tempStack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.timeBox,
.setTempPanel {
  min-height: 76px;
  padding: 10px 12px;
  background: #10161a;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeBox {
  color: var(--text);
  font: inherit;
  text-align: left;
}

.timeSet {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.phasePanel.active .timeSet,
.phasePanel.active .tempSet {
  border-color: rgba(241, 180, 91, 0.72);
  background: linear-gradient(180deg, rgba(213, 122, 38, 0.12), #10161a);
}

.phasePanel.active .timeSet strong,
.phasePanel.active .tempSet strong {
  color: var(--accent-2);
}

.timeSet:hover,
.tempSet:hover {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(241, 180, 91, 0.12);
  transform: translateY(-1px);
}

.timeSet:active,
.tempSet:active {
  transform: translateY(0);
}

.timeBox strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.tempMini {
  border-color: var(--line);
  background: #10161a;
}

.tempMini strong {
  color: var(--text);
}

.tempCurrent strong {
  color: var(--text);
}

.setTempPanel {
  display: grid;
  align-content: center;
  text-align: center;
  border-color: rgba(241, 180, 91, 0.48);
  background: linear-gradient(180deg, rgba(213, 122, 38, 0.16), #10161a);
}

.tempSet {
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.setTempPanel strong {
  display: block;
  margin-top: 8px;
  color: var(--accent-2);
  font-size: 42px;
  line-height: 1;
}

.setTempPanel em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.desc {
  margin: 0;
  color: #c8d2cc;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress {
  height: 7px;
  overflow: hidden;
  background: #0b1114;
  border-radius: 999px;
}

.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: inherit;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modalShade {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 10, 0.72);
  backdrop-filter: blur(6px);
}

.timeDialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 18px;
  background: #12191d;
  border: 1px solid rgba(241, 180, 91, 0.4);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.46);
}

.dialogHead {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.dialogHead span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dialogHead h3 {
  margin: 4px 0 0;
  font-size: 24px;
}

.iconBtn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #0c1215;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.timePicker {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
}

.dial {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 14px;
  background: #0c1215;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dial button,
.quickTimes button,
.ghostBtn,
.saveBtn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel-2);
  font-weight: 900;
  cursor: pointer;
}

.dial button {
  width: 100%;
  font-size: 24px;
}

.dial strong {
  font-size: 58px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.dial span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.colon {
  color: var(--accent-2);
  font-size: 46px;
  font-weight: 900;
}

.quickTimes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.quickTimes button:hover,
.dial button:hover {
  border-color: var(--accent-2);
}

.dialogActions {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
  margin-top: 18px;
}

.saveBtn {
  border-color: rgba(67, 196, 120, 0.55);
  background: linear-gradient(135deg, #17834c, #33bd71);
}

.tempPicker {
  display: grid;
  grid-template-columns: 76px 1fr 76px;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
}

.roundStep {
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel-2);
  font-size: 34px;
  font-weight: 900;
  cursor: pointer;
}

.roundStep:hover {
  border-color: var(--accent-2);
}

.tempValue {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  min-height: 116px;
  background: #0c1215;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tempValue strong {
  color: var(--accent-2);
  font-size: 82px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tempValue span {
  color: var(--muted);
  font-size: 24px;
  font-weight: 900;
}

.tempSlider {
  width: 100%;
  margin-top: 18px;
  accent-color: var(--accent-2);
}

.rangeText {
  margin-top: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.quickTemps {
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1100px) {
  .hero,
  .topbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app {
    padding: 12px;
  }

  .metrics,
  .tempGrid {
    grid-template-columns: 1fr;
  }

  .phasePanel {
    grid-template-columns: 1fr;
  }

  .timeGrid,
  .tempStack {
    grid-template-columns: 1fr 1fr;
  }

  .timeBox,
  .setTempPanel {
    min-height: 66px;
    padding: 9px 10px;
  }

  .timeBox span {
    max-width: 82px;
    font-size: 10px;
  }

  .timeBox strong {
    font-size: 18px;
  }

  .controller {
    width: 26px;
    height: 41px;
    border-width: 1px;
    border-radius: 3px;
  }

  .controller .ctrlScreen {
    left: 3px;
    right: 3px;
    top: 3px;
    height: 12px;
    border-radius: 2px;
  }

  .controller .ctrlLed {
    bottom: 5px;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
  }

  .status {
    text-align: left;
  }

  .quickTimes {
    grid-template-columns: repeat(3, 1fr);
  }

  .tempPicker {
    grid-template-columns: 58px 1fr 58px;
  }

  .roundStep {
    height: 62px;
  }

  .tempValue strong {
    font-size: 64px;
  }

  .smokerPanel {
    min-height: 300px;
  }

  .smokerArt {
    top: 44%;
    width: 96%;
    height: 260px;
  }

  .totalTimePanel {
    left: 28px;
    bottom: 22px;
    min-width: 182px;
    padding: 10px 14px;
    transform: none;
  }

  .totalTimePanel strong {
    font-size: 26px;
  }
}

/* Topbar left brand column & user navigation */
.brandCol {
  min-width: 0;
}

.userBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(21, 27, 31, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
}

.userBadge strong {
  color: var(--accent-2);
}

.topbarBtn {
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel-2);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.topbarBtn:hover {
  border-color: var(--accent-2);
}

.topbarBtn.navBtn {
  background: linear-gradient(135deg, rgba(233, 109, 40, 0.22), rgba(255, 211, 111, 0.12));
  border-color: rgba(233, 109, 40, 0.55);
  color: #ffd36f;
}

.topbarBtn.navBtn:hover {
  border-color: var(--accent-2);
  box-shadow: 0 0 10px rgba(233, 109, 40, 0.35);
}

.topbarBtn.logoutBtn:hover {
  border-color: #ff6b72;
  color: #ff6b72;
}

/* Settings modal */
.settingsDialog {
  width: min(560px, 100%);
}

.settingsContent {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.settingsSection {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sectionTitle {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.settingCard {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #0c1215;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.settingInfo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settingInfo strong {
  font-size: 15px;
  color: var(--text);
}

.settingInfo small {
  font-size: 12px;
  color: var(--muted);
}

.settingCard.userCard {
  background: rgba(255, 255, 255, 0.03);
}

.settingCard.userCard strong {
  color: var(--accent-2);
}

.timeMini {
  min-width: 125px;
  height: 50px;
  padding: 6px 12px;
}

.dialogActions.singleAction {
  grid-template-columns: 1fr;
}

