* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--qt-canvas);
  color: var(--qt-ink);
  font: 14px/1.55 var(--qt-font-sans);
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  overflow-x: hidden;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  touch-action: manipulation;
  transition:
    background 0.14s,
    transform 0.14s;
}
button:hover {
  background: var(--qt-sidebar-hover);
}
button:active {
  transform: scale(0.98);
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--qt-accent);
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.4;
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(21px, 2vw, 29px);
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 15px;
}
.muted,
small,
.meta {
  color: var(--qt-ink-muted);
  font-size: 12px;
}
.inline,
.headtools,
.brand,
.top,
.heading,
.between,
.buttons,
.meta,
.line,
.tag,
.view,
.primary,
.secondary,
.back,
.sidehead,
.brandmark,
.focusmark,
.projectmark {
  display: flex;
  align-items: center;
}
.between,
.heading,
.sidehead {
  justify-content: space-between;
  gap: 10px;
}
.inline,
.meta,
.buttons {
  gap: 8px;
}
.line {
  gap: 9px;
}
.top {
  max-width: 1440px;
  margin: auto;
  padding: 0 clamp(24px, 4vw, 64px);
  justify-content: space-between;
  gap: 8px;
  height: 68px;
}
header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--qt-border);
  background: rgba(250, 249, 246, 0.84);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.brandbtn {
  padding: 4px 6px 4px 2px;
  margin-left: -2px;
  text-align: left;
  border-radius: 12px;
}
.iosback {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 10px 6px 2px;
  margin-left: -4px;
  border-radius: 12px;
  color: var(--qt-accent);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.iosback svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}
.iosback:active {
  opacity: 0.55;
  transform: scale(0.97);
}
.swipe-stage {
  position: relative;
  z-index: 2;
  background: var(--qt-canvas);
  min-height: calc(100dvh - 56px - env(safe-area-inset-top));
  will-change: transform;
}
.swipe-stage.dragging {
  box-shadow: -14px 0 34px rgba(28, 25, 23, 0.16);
}
.swipe-underlay {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: calc(56px + env(safe-area-inset-top));
  bottom: 0;
  z-index: 1;
  background: var(--qt-canvas);
  padding: 12px max(12px, env(safe-area-inset-right)) calc(98px + env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  overflow: hidden;
  pointer-events: none;
  will-change: transform, opacity;
}
.swipe-underlay.active {
  display: block;
}
.swipe-underlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.08);
  opacity: var(--dim, 1);
  pointer-events: none;
}
.swipe-stage.anim-push {
  animation: iosPush 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.swipe-stage.anim-pop {
  animation: iosPop 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes iosPush {
  from {
    opacity: 0.65;
    transform: translate3d(26px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes iosPop {
  from {
    opacity: 0.65;
    transform: translate3d(-24px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.swipehint {
  text-align: center;
  font-size: 11px;
  color: var(--qt-ink-faint);
  margin-top: 14px;
}
.projchips {
  display: none;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 1px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.projchips::-webkit-scrollbar {
  display: none;
}
.projchip {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 550;
  background: white;
  border: 1px solid var(--qt-border);
  color: var(--qt-ink-secondary);
  white-space: nowrap;
}
.projchip.active {
  background: var(--qt-accent-soft);
  border-color: var(--qt-accent-border);
  color: var(--qt-accent-ink);
  font-weight: 650;
}
.brandtext {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brandtext strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brandtext small {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--qt-accent);
  margin-top: 2px;
}
.brandmark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #27221e, #151210);
  color: #faf9f6;
  border-radius: 11px;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.16);
}
.brandmark svg {
  width: 22px;
  height: 22px;
}
.headtools {
  gap: 14px;
}
#sync {
  color: var(--qt-ink-muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
#sync:before,
.syncmini:before {
  content: '';
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--qt-ink-faint);
}
#sync[data-live='yes']:before {
  background: var(--qt-success);
}
.view,
.primary,
.secondary,
.back {
  gap: 7px;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 550;
}
.view,
.secondary {
  background: white;
  border: 1px solid var(--qt-border-strong);
}
.primary {
  color: white;
  background: var(--qt-accent);
  box-shadow: var(--qt-shadow-xs);
}
.primary:hover {
  background: var(--qt-accent-hover);
}
.layout {
  max-width: 1360px;
  padding: 32px max(clamp(24px, 4vw, 64px), env(safe-area-inset-right))
    calc(64px + env(safe-area-inset-bottom))
    max(clamp(24px, 4vw, 64px), env(safe-area-inset-left));
  margin: auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
}
.layout > * {
  min-width: 0;
}
.rail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card,
.summary,
.phase,
.projectbox,
.inboxlink,
.focuscard {
  border: 1px solid var(--qt-border);
  box-shadow: var(--qt-shadow-sm);
  background: white;
  border-radius: 16px;
}
.sidehead {
  margin: 0 0 10px;
  padding: 0 3px;
  font-weight: 600;
}
.iconbtn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--qt-ink-secondary);
  flex: none;
}
.projectbox {
  padding: 8px;
}
.projectpick {
  width: 100%;
  text-align: left;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.projectpick.active {
  background: var(--qt-accent-soft);
  color: var(--qt-accent-ink);
}
.projectpick strong {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.45;
  font-size: 13.5px;
}
.projectpick small {
  display: block;
  margin-top: 4px;
}
.projectmark,
.focusmark {
  justify-content: center;
  background: white;
  border: 1px solid var(--qt-border);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  flex: none;
}
.newproject {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  color: var(--qt-ink-secondary);
  font-size: 13px;
}
.newproject svg {
  width: 15px;
}
.inboxlink {
  width: 100%;
  padding: 14px;
  gap: 10px;
  text-align: left;
  font-weight: 600;
}
.inboxlink .count {
  margin-left: auto;
}
.count {
  border-radius: 6px;
  background: var(--qt-surface-subtle);
  color: var(--qt-ink-secondary);
  font-size: 12px;
  padding: 1px 7px;
}
.summary {
  padding: 18px;
}
.summary h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.summaryrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  color: var(--qt-ink-secondary);
  font-size: 13px;
}
.summaryrow b {
  margin-left: auto;
  color: var(--qt-ink);
  font-weight: 550;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--qt-ink-faint);
  display: inline-block;
  flex: none;
}
.dot.in_progress {
  background: var(--qt-accent);
}
.dot.done {
  background: var(--qt-success);
}
.dot.blocked {
  background: var(--qt-danger);
}
.dot.review {
  background: var(--qt-warning);
}
.crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--qt-ink-muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.crumb svg {
  width: 14px;
}
.hero {
  padding: 24px 26px 20px;
  position: relative;
  overflow: hidden;
}
.hero .heading {
  align-items: flex-start;
}
.hero h1,
.taskname,
.titlebtn,
.phasehead b,
.idea-title {
  overflow-wrap: anywhere;
  text-align: left;
}
.hero .meta {
  margin-top: 7px;
}
.herobar {
  margin-top: 22px;
}
.meterhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12px;
  color: var(--qt-ink-secondary);
  margin-bottom: 6px;
}
.percent {
  color: var(--qt-ink);
  font-size: 22px;
  font-weight: 640;
  line-height: 1;
}
.percent small {
  font-size: 13px;
  color: inherit;
  margin-left: 2px;
}
progress {
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  appearance: none;
  border-radius: 10px;
  overflow: hidden;
  background: var(--qt-skeleton-base);
}
progress::-webkit-progress-bar {
  background: var(--qt-skeleton-base);
}
progress::-webkit-progress-value {
  border-radius: 10px;
  background: var(--qt-accent);
}
progress::-moz-progress-bar {
  background: var(--qt-accent);
}
.focuscard {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #faf5ee;
  border-color: var(--qt-accent-border);
  width: 100%;
  padding: 14px 18px;
  text-align: left;
  margin-top: 14px;
}
.focusmark {
  background: var(--qt-accent-soft);
  border: 0;
  color: var(--qt-accent-ink);
}
.focuscard small {
  color: var(--qt-accent-ink);
  display: block;
}
.focuscard strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.focuscard > svg:last-child {
  margin-left: auto;
  width: 16px;
}
.sectionhead {
  margin: 24px 2px 12px;
}
.sectionhead .secondary {
  min-height: 32px;
  font-size: 12px;
}
.phases {
  display: grid;
  gap: 10px;
}
.phase {
  overflow: hidden;
}
.phasehead {
  display: flex;
  align-items: center;
  padding: 9px 11px 9px 15px;
  gap: 2px;
  min-height: 58px;
}
.phasehead .toggle {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 5px 0;
}
.number {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--qt-ink-muted);
  background: var(--qt-surface-subtle);
  border: 1px solid var(--qt-border);
  border-radius: 8px;
  min-width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
}
.open .number {
  background: var(--qt-accent-soft);
  color: var(--qt-accent-ink);
  border-color: var(--qt-accent-border);
}
.phasehead b {
  flex: 1;
  font-size: 14px;
}
.phasehead .ratio {
  white-space: nowrap;
  font-size: 12px;
  color: var(--qt-ink-muted);
}
.toggle > svg {
  width: 15px;
  color: var(--qt-ink-muted);
}
.taskrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 15px;
  border-top: 1px solid var(--qt-border);
  min-height: 49px;
}
.check {
  display: grid;
  place-items: center;
  width: 35px;
  height: 40px;
  flex: none;
}
.check span {
  border: 1.5px solid var(--qt-border-strong);
  border-radius: 6px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  background: white;
}
.check.done span {
  background: var(--qt-success-bg);
  border-color: var(--qt-success-border);
  color: var(--qt-success);
}
.check svg {
  width: 14px;
  height: 14px;
}
.taskname {
  padding: 4px 0;
  min-width: 0;
  flex: 1;
  text-align: left;
  font-size: 13.5px;
}
.taskname small {
  display: block;
}
.tag {
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 9px;
  gap: 6px;
  white-space: nowrap;
  color: var(--qt-ink-secondary);
  background: var(--qt-surface-subtle);
}
.tag.done {
  color: var(--qt-success);
  background: var(--qt-success-bg);
}
.tag.in_progress {
  color: var(--qt-accent-ink);
  background: var(--qt-accent-soft);
}
.tag.blocked {
  color: var(--qt-danger);
  background: var(--qt-danger-bg);
}
.tag.review {
  color: var(--qt-warning);
  background: var(--qt-warning-bg);
}
.phasefoot {
  display: flex;
  justify-content: flex-start;
  padding: 4px 15px;
  border-top: 1px solid var(--qt-border);
  background: #fdfcfb;
}
.phasefoot button {
  font-size: 12px;
  color: var(--qt-ink-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
}
.phasefoot svg {
  width: 14px;
}
.mobilebar {
  display: none;
}
.empty {
  padding: 24px;
  color: var(--qt-ink-muted);
  text-align: center;
}
.idearow {
  padding: 14px 18px;
  display: flex;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid var(--qt-border);
}
.idearow:last-child {
  border: 0;
}
.idea-title {
  flex: 1;
  min-width: 0;
}
.idea-title small {
  display: block;
}
.idea-title button {
  padding: 0;
  text-align: left;
  overflow-wrap: anywhere;
}
.inboxtabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.inboxtabs button {
  padding: 5px 12px;
  border: 1px solid var(--qt-border);
  background: white;
}
.inboxtabs .active {
  background: var(--qt-accent-soft);
  color: var(--qt-accent-ink);
}
dialog {
  border: 1px solid var(--qt-border-strong);
  padding: 22px;
  border-radius: 18px;
  box-shadow: var(--qt-shadow-float);
  width: min(410px, calc(100% - 24px));
  max-height: 85dvh;
  color: var(--qt-ink);
  background: white;
}
dialog::backdrop {
  background: rgba(35, 29, 23, 0.23);
}
dialog h2 {
  font-size: 18px;
}
dialog .heading {
  margin-bottom: 16px;
}
label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: var(--qt-ink-secondary);
  margin: 12px 0;
}
input,
select,
textarea {
  border: 1px solid var(--qt-border-strong);
  border-radius: 9px;
  background: white;
  padding: 10px 11px;
  width: 100%;
  min-width: 0;
  font-size: 16px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--qt-accent-border);
  border-color: var(--qt-accent);
}
textarea {
  resize: vertical;
  min-height: 68px;
}
#formfooter {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.danger {
  color: var(--qt-danger);
}
.formtools {
  margin: 12px 0;
  border-top: 1px solid var(--qt-border);
  padding-top: 9px;
  display: flex;
  gap: 8px;
}
.formtools button {
  font-size: 12px;
  padding: 6px;
}
.formtools .danger {
  margin-left: auto;
}
#formerror {
  color: var(--qt-danger);
  font-size: 13px;
}
#toast {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--qt-ink);
  color: white;
  font-size: 13px;
  box-shadow: var(--qt-shadow-float);
  pointer-events: none;
}
#toast:empty {
  display: none;
}
.loading {
  text-align: center;
  padding: 50px;
}
.login {
  max-width: 360px;
  margin: 12vh auto;
  padding: 25px;
}
.login h1 {
  font-size: 21px;
}
.lock .headtools {
  visibility: hidden;
}
.sideproject {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.mobile-select {
  flex: 1;
  min-width: 0;
  font-weight: 550;
  text-overflow: ellipsis;
}
.wideonly {
  display: inline-flex;
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 212px minmax(0, 1fr);
    gap: 20px;
  }
}
@media (max-width: 960px) {
  .top {
    padding: 0 20px;
  }
  .layout {
    padding: 22px 20px 48px;
    grid-template-columns: 186px minmax(0, 1fr);
    gap: 16px;
  }
  .summary {
    padding: 14px;
  }
  .hero {
    padding: 20px;
  }
  .projectpick {
    padding: 9px;
    gap: 7px;
  }
  .projectmark {
    width: 30px;
    height: 30px;
  }
}
/* The narrow window uses the same components as a phone. */
@media (max-width: 730px) {
  #shell {
    container-type: inline-size;
  }
  .top {
    padding: 0 12px;
  }
  .layout {
    display: block;
  }
  .view {
    display: none;
  }
}
body.compact #shell {
  container-type: inline-size;
  width: min(100%, 430px);
  margin: auto;
  min-height: 100dvh;
  background: var(--qt-canvas);
  box-shadow: var(--qt-shadow-sm);
}
@container (max-width:730px) {
  .top {
    height: 56px;
    padding: 0 14px;
  }
  .brand {
    font-size: 16px;
    gap: 7px;
  }
  .brandmark {
    width: 29px;
    height: 29px;
    border-radius: 8px;
  }
  .brandmark svg {
    width: 19px;
    height: 19px;
  }
  .headtools {
    gap: 8px;
  }
  .headtools .primary {
    min-height: 36px;
    font-size: 12px;
    padding: 7px 9px;
  }
  .headtools #sync {
    font-size: 0;
    gap: 0;
  }
  .layout {
    display: block;
    padding: 0;
  }
  .swipe-stage {
    padding: 12px max(12px, env(safe-area-inset-right)) calc(98px + env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }
  .topquick {
    display: none !important;
  }
  .mobiledock {
    display: flex;
  }
  .widgetbtn {
    padding: 6px 9px;
    font-size: 12px;
    min-height: 34px;
  }
  .widgetbtn svg {
    width: 15px;
    height: 15px;
  }
  .rail {
    display: none;
  }
  .mobilebar {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
  }
  .mobilebar select {
    height: 40px;
    padding: 5px 8px;
    background: white;
  }
  .mobilebar .secondary,
  .mobilebar .iconbtn {
    height: 40px;
    background: white;
    border: 1px solid var(--qt-border);
  }
  .mobilebar .secondary {
    padding: 5px 8px;
  }
  .mobilebar .secondary svg {
    width: 16px;
  }
  .crumb {
    display: none;
  }
  .hero {
    padding: 17px 16px;
  }
  .hero h1 {
    font-size: 20px;
  }
  .hero .heading {
    gap: 1px;
  }
  .hero .meta {
    font-size: 11px;
  }
  .herobar {
    margin-top: 14px;
  }
  .percent {
    font-size: 20px;
  }
  .focuscard {
    padding: 10px 12px;
    gap: 9px;
    margin-top: 9px;
  }
  .focuscard strong {
    font-size: 13px;
  }
  .focusmark {
    width: 30px;
    height: 30px;
  }
  .sectionhead {
    margin: 17px 1px 9px;
  }
  .sectionhead h2 {
    font-size: 16px;
  }
  .phasehead {
    padding: 5px 5px 5px 10px;
    min-height: 51px;
  }
  .phasehead .toggle {
    gap: 7px;
    min-height: 44px;
  }
  .phasehead b {
    font-size: 13px;
  }
  .number {
    min-width: 24px;
    height: 26px;
    font-size: 11px;
  }
  .phasehead .iconbtn {
    width: 28px;
    height: 44px;
  }
  .taskrow {
    padding: 3px 7px;
    gap: 3px;
  }
  .check {
    width: 38px;
    height: 44px;
  }
  .taskname {
    font-size: 13px;
    line-height: 1.5;
    min-height: 42px;
  }
  .tag {
    min-height: 44px;
    padding: 4px 6px;
    background: transparent !important;
    font-size: 11px;
  }
  .phasefoot button {
    min-height: 40px;
  }
  .hero .iconbtn {
    height: 36px;
  }
  .phases {
    gap: 8px;
  }
  .view {
    padding: 6px;
  }
  .view span {
    display: none;
  }
  .inboxtabs {
    margin: 10px 0;
  }
  .idearow {
    padding: 10px;
  }
  .login {
    margin: 12vh 12px;
  }
}
@media (max-width: 390px) {
  .top {
    gap: 5px;
  }
  .layout {
    padding-left: 9px;
    padding-right: 9px;
  }
  .hero {
    padding: 15px 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.convertline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.convertline select {
  flex: 1;
  min-width: 80px;
  width: 180px;
  max-width: 100%;
  font-size: 12px;
  padding: 7px;
}
.convertline button {
  font-size: 12px;
}
.statuschoices {
  display: grid;
  margin-top: 10px;
}
.statuschoices button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px;
  text-align: left;
  min-height: 44px;
}
.statuschoices svg {
  margin-left: auto;
}
.status-title {
  overflow-wrap: anywhere;
}
.phasefoot .secondary {
  border: 0;
  background: none;
}
.iconbtn svg {
  width: 16px;
}
.hero .meta svg {
  width: 14px;
}
.number {
  font-family: var(--qt-font-mono);
}
dialog p {
  overflow-wrap: anywhere;
}
button[data-act='toggle']:focus-visible {
  outline-offset: -2px;
}
.phasefoot {
  align-items: center;
  justify-content: space-between;
}
.phasefoot > span {
  font-size: 11px;
  color: var(--qt-ink-muted);
}
.projectpick strong {
  line-height: 1.6;
}
.projectpick > span:last-child {
  min-width: 0;
}
.widgetsteps {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--qt-ink-secondary);
  font-size: 13px;
  line-height: 1.65;
}
.widgetcode {
  font-family: var(--qt-font-mono);
  font-size: 11px;
  line-height: 1.45;
  min-height: 92px;
  max-height: 140px;
  background: var(--qt-surface-subtle);
  color: var(--qt-ink-secondary);
  resize: none;
}
.widgetnote {
  margin-top: 8px;
  font-size: 12px;
  color: var(--qt-ink-muted);
}
.ideatext {
  min-height: 116px;
  line-height: 1.6;
  resize: vertical;
}
.voicebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: -4px;
  margin-bottom: 6px;
}
.voicebtn {
  flex: none;
  min-height: 36px;
  padding: 6px 12px;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--qt-border-strong);
  background: var(--qt-surface-subtle);
  color: var(--qt-ink-secondary);
  font-size: 13px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.voicebtn svg {
  width: 15px;
  height: 15px;
}
.voicebtn:hover {
  background: var(--qt-accent-soft);
  color: var(--qt-accent-ink);
  border-color: var(--qt-accent-border);
}
.voicebtn.listening {
  background: var(--qt-danger-bg);
  color: var(--qt-danger);
  border-color: var(--qt-danger-border);
  animation: voicepulse 1.2s ease-in-out infinite;
}
@keyframes voicepulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(197, 59, 43, 0.28);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(197, 59, 43, 0);
  }
}
.voicehint {
  font-size: 12px;
  color: var(--qt-ink-muted);
  flex: 1;
}
.voicehint.listening {
  color: var(--qt-danger);
}
/* ==========================================================================
   星轨 · Orbit — 120Hz ProMotion Flagship Mission Control UI
   ========================================================================== */
.pillbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--qt-border-strong);
  background: white;
  color: var(--qt-ink-secondary);
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), background 160ms, border-color 160ms, color 160ms;
}
.pillbtn svg {
  width: 14px;
  height: 14px;
}
.lockbtn.on {
  background: var(--qt-accent-soft);
  border-color: var(--qt-accent-border);
  color: var(--qt-accent-ink);
}
body.guarded .check,
body.guarded .tag,
body.guarded [data-act^='edit-'],
body.guarded [data-act^='new-'],
body.guarded [data-act='convert'] {
  opacity: 0.78;
}
body.lock .mobiledock {
  display: none !important;
}
.mobiledock {
  display: none;
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 30;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 24px;
  background: rgba(255, 253, 250, 0.88);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(28, 25, 23, 0.1);
  box-shadow: 0 8px 28px -6px rgba(28, 25, 23, 0.16), 0 1px 2px rgba(28, 25, 23, 0.06);
}
.dockbtn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 46px;
  border-radius: 18px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--qt-ink-muted);
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), color 160ms, background 160ms;
}
.dockbtn svg {
  width: 19px;
  height: 19px;
}
.dockbtn.active {
  color: var(--qt-accent-ink);
  background: var(--qt-accent-soft);
}
.dockfab {
  flex: 1.25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #c66727, #a34c14);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 4px 14px -2px rgba(184, 90, 27, 0.42);
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 160ms;
}
.dockfab:active,
.dockbtn:active,
.projthumb:active,
.focuscard:active {
  transform: scale(0.965);
}
.dockfab svg {
  width: 16px;
  height: 16px;
}
.orbithero {
  padding: 22px 22px 18px;
  border-radius: 22px;
  border: 1px solid rgba(184, 90, 27, 0.18);
  background:
    radial-gradient(circle at 92% 10%, rgba(184, 90, 27, 0.13), transparent 52%),
    linear-gradient(155deg, #fffefb 0%, #faf6ef 55%, #f4ede2 100%);
  box-shadow: 0 6px 24px -10px rgba(28, 25, 23, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  animation: fadeSlideUp 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.orbittop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.orbitbadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(184, 90, 27, 0.1);
  color: var(--qt-accent-ink);
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 8px;
}
.orbithero h1 {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.25;
}
.orbitring {
  position: relative;
  width: 78px;
  height: 78px;
  flex: none;
  display: grid;
  place-items: center;
}
.orbitring svg {
  width: 78px;
  height: 78px;
  transform: rotate(-90deg);
}
.orbitring circle {
  fill: none;
  stroke-width: 6.5;
  stroke-linecap: round;
}
.orbitring .ringbg {
  stroke: rgba(28, 25, 23, 0.08);
}
.orbitring .ringfg {
  stroke: var(--qt-accent);
  transition: stroke-dashoffset 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
.orbitring strong {
  position: absolute;
  font-size: 18px;
  font-weight: 750;
  color: var(--qt-ink);
  letter-spacing: -0.03em;
}
.orbitring strong small {
  font-size: 11px;
  color: var(--qt-accent);
  margin-left: 1px;
}
.statgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.statpill {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(28, 25, 23, 0.07);
  border-radius: 13px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.statpill span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--qt-ink-muted);
}
.statpill b {
  font-size: 17px;
  font-weight: 700;
  color: var(--qt-ink);
  line-height: 1.1;
}
.thumbgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 11px;
}
.projthumb {
  text-align: left;
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);
  border: 1px solid var(--qt-border);
  box-shadow: var(--qt-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms, box-shadow 180ms;
  animation: fadeSlideUp 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.projthumb:hover {
  border-color: var(--qt-accent-border);
  box-shadow: var(--qt-shadow-md);
  transform: translateY(-1px);
}
.projthumb .between strong {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--qt-ink);
  overflow-wrap: anywhere;
}
.projthumb .thumbpct {
  font-size: 16px;
  font-weight: 750;
  color: var(--qt-accent);
  flex: none;
}
.projthumb .thumbfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--qt-ink-muted);
}
.focuscard {
  background: linear-gradient(135deg, #fdf8f1 0%, #f7ecde 100%);
  border-radius: 16px;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 160ms;
}
.guardbanner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  margin-bottom: 12px;
  border-radius: 13px;
  background: rgba(184, 90, 27, 0.07);
  border: 1px solid rgba(184, 90, 27, 0.16);
  font-size: 12px;
  color: var(--qt-accent-ink);
}
.guardbanner button {
  font-size: 11.5px;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--qt-accent-border);
  color: var(--qt-accent-ink);
  flex: none;
}
dialog[open] {
  animation: dialogPop 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes dialogPop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 730px) {
  .mobiledock {
    display: flex;
  }
  .projchips {
    display: flex;
  }
  .mobilebar,
  .inboxback {
    display: none !important;
  }
  .topquick {
    display: none !important;
  }
  #toast {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
}
