:root {
  color-scheme: dark;
  --bg: #101513;
  --panel: #19201c;
  --panel2: #202923;
  --border: #303c33;
  --text: #edf1e9;
  --muted: #a0aea1;
  --lime: #b7f578;
  --orange: #f6bd78;
  font-family:
    Inter,
    Segoe UI,
    system-ui,
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
a {
  color: var(--lime);
  text-underline-offset: 4px;
}
button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  transition:
    background 0.15s,
    color 0.15s;
}
button:hover:not(:disabled) {
  filter: brightness(1.12);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
  margin-bottom: 12px;
}
h2 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 10px 0;
}
p {
  color: var(--muted);
}
small {
  font-size: 0.875rem;
  color: var(--muted);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  padding: 34px 22px;
  background: #141a16;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.brand b {
  color: var(--lime);
}
.brand small {
  display: block;
  font-size: 0.61rem;
  letter-spacing: 0.13em;
  margin-top: 3px;
}
.nav-label {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  color: #839183;
  margin: 56px 12px 16px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: transparent;
  color: var(--muted);
  text-align: left;
  margin-bottom: 8px;
  font-size: 0.94rem;
  padding: 13px 15px;
}
.nav-item span {
  font-size: 1.3rem;
  line-height: 1;
}
.nav-item.selected {
  background: #283825;
  color: var(--lime);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 10px 0;
}
.sidebar-bottom p {
  margin: 16px 0 8px;
  color: #d0dacc;
}
.tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  border: 1px solid #536447;
  color: #cfdeb9;
  padding: 5px 9px;
  border-radius: 4px;
}
.workspace {
  margin-left: 250px;
}
.topbar {
  height: 88px;
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.breadcrumb {
  font-size: 0.875rem;
  color: #c0cbbd;
}
.breadcrumb span {
  margin: 0 12px;
  color: #667563;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile label {
  font-size: 0.875rem;
  color: var(--muted);
}
select,
input,
textarea {
  background: #131a16;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  padding: 10px 12px;
  min-width: 0;
}
select {
  max-width: 250px;
  padding-right: 32px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23a0aea1' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
input[type="checkbox"] {
  accent-color: var(--lime);
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
main {
  max-width: 1510px;
  margin: auto;
  padding: 40px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
}
.page-heading p {
  margin-bottom: 0;
  font-size: 0.94rem;
}
.eyebrow {
  font-size: 0.68rem;
  color: var(--lime);
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 14px;
}
.primary {
  background: var(--lime);
  color: #182213;
  font-weight: 650;
}
.secondary {
  background: #29352b;
  border: 1px solid #40503d;
  color: var(--text);
}
.light {
  background: #edf4e5;
  color: #182213;
  font-weight: 650;
}
.icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: #c3d0be;
  min-width: 40px;
  padding: 8px 11px;
}
.text-btn {
  padding: 4px 0;
  background: none;
  color: var(--lime);
  font-size: 0.875rem;
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  border: 1px solid #465d37;
  overflow: hidden;
  border-radius: 14px;
  padding: 34px 40px;
  background: linear-gradient(110deg, #2c3c28, #243220 65%, #35432a);
  min-height: 290px;
}
.hero h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin: 20px 0 14px;
}
.hero em {
  font-style: normal;
  color: var(--lime);
}
.hero p {
  color: #c0cbb6;
  font-size: 0.9rem;
}
.hero .light {
  font-size: 0.875rem;
  padding: 10px 16px;
}
.radar {
  position: relative;
  min-height: 240px;
  background:
    linear-gradient(transparent 49.5%, #bacf8a12 50%, transparent 50.5%),
    linear-gradient(90deg, transparent 49.5%, #bacf8a12 50%, transparent 50.5%);
  background-size: 35px 35px;
}
.radar-ring {
  position: absolute;
  left: 50%;
  top: 46%;
  border: 1px solid #b7f57845;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.ring-one {
  width: 230px;
  height: 230px;
  background: conic-gradient(
    from 25deg,
    transparent 0deg,
    #b7f5780a 40deg,
    #b7f57825 80deg,
    transparent 81deg
  );
}
.ring-two {
  width: 150px;
  height: 150px;
  box-shadow: 0 0 0 35px #b7f57805;
}
.radar-core {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #ddfac3;
  font-weight: 800;
  letter-spacing: -0.08em;
  border: 1px solid #b7f57899;
  border-radius: 14px;
  padding: 10px 15px;
  background: #354d2b;
}
.radar-point {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow:
    0 0 0 6px #b7f57815,
    0 0 20px #b7f57844;
}
.point-one {
  left: 29%;
  top: 29%;
}
.point-two {
  left: 70%;
  top: 65%;
}
.radar-caption {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  letter-spacing: 0.22em;
  font-size: 0.6rem;
  color: #b1c69e;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0 34px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #171e19;
}
.stats > div {
  padding: 20px 25px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  border-right: 1px solid var(--border);
}
.stats > div:last-child {
  border: 0;
}
.stats span {
  font-size: 0.875rem;
  color: #c4cdbf;
}
.stats strong {
  grid-column: 2;
  grid-row: 1/3;
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
}
.stats small {
  font-size: 0.75rem;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 28px 0 16px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading h2 > span {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 5px;
  margin-left: 10px;
  vertical-align: middle;
}
.timer-grid,
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.timer-card,
.collection-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  padding: 22px;
  min-width: 0;
}
.timer-card.done {
  border-color: var(--lime);
}
.timer-card.disabled {
  opacity: 0.65;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.category {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.switch {
  display: inline-flex;
  position: relative;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.switch span {
  width: 32px;
  height: 18px;
  background: #435041;
  border-radius: 15px;
  pointer-events: none;
}
.switch span:before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background: #cad3c4;
  border-radius: 50%;
  margin: 3px;
  transition: transform 0.15s;
}
.switch input:checked + span {
  background: #8cbd5c;
}
.switch input:checked + span:before {
  transform: translateX(14px);
  background: #172112;
}
.switch input:focus-visible + span {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
.timer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.state {
  font-size: 0.75rem;
  color: var(--muted);
}
.state.running,
.state.done {
  color: var(--lime);
}
.state.paused {
  color: var(--orange);
}
.clock {
  font-family: Consolas, ui-monospace, monospace;
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  letter-spacing: -0.05em;
  line-height: 1.5;
  margin: 16px 0 7px;
  font-variant-numeric: tabular-nums;
}
progress {
  width: 100%;
  height: 4px;
  display: block;
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: #354332;
}
progress::-webkit-progress-bar {
  background: #354332;
  border-radius: 10px;
}
progress::-webkit-progress-value {
  background: var(--lime);
  border-radius: 10px;
}
progress::-moz-progress-bar {
  background: var(--lime);
  border-radius: 10px;
}
.timer-actions {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.timer-actions button:first-child {
  flex: 1;
  font-size: 0.875rem;
}
.timer-card details {
  font-size: 0.875rem;
  margin-top: 18px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  font-size: 0.75rem;
}
details p {
  margin: 12px 0;
}
details a {
  font-size: 0.75rem;
}
.star {
  color: #879781;
  background: transparent;
  font-size: 1.5rem;
  padding: 0;
  line-height: 1;
}
.star.favorite {
  color: var(--orange);
}
.collection-card {
  display: flex;
  flex-direction: column;
}
.collection-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--orange);
  margin-top: 4px;
}
.collection-value span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}
.items {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.items li {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.875rem;
}
.item-check {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  border: 1px solid #45513f;
  border-radius: 4px;
  text-align: center;
  line-height: 17px;
  color: #869280;
}
.item-check.owned {
  background: #3a502a;
  color: var(--lime);
  border-color: #657f4d;
}
.items label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  line-height: 1.35;
}
.quantity {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.75rem;
}
.quantity input {
  width: 48px;
  padding: 5px;
  text-align: center;
  -moz-appearance: textfield;
}
.quantity input::-webkit-inner-spin-button {
  appearance: none;
}
.collection-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.collection-bottom > span {
  font-size: 0.75rem;
  color: var(--muted);
}
.collection-bottom button {
  font-size: 0.75rem;
  padding: 8px 10px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  font-size: 0.875rem;
}
.chip.active {
  background: #31432a;
  color: var(--lime);
  border-color: #5a7544;
}
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #19201c;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding-left: 16px;
  max-width: 540px;
  flex: 1;
}
.search span {
  font-size: 1.5rem;
  color: var(--muted);
}
.search input {
  width: 100%;
  border: 0;
  background: none;
  padding: 13px;
}
.collection-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 0.8rem;
  color: var(--muted);
}
.footnote {
  font-size: 0.8rem;
  line-height: 1.7;
  margin-top: 24px;
}
.notice {
  padding: 18px 22px;
  border: 1px solid #5b5235;
  border-radius: 8px;
  color: #d6c89d;
  background: #25271c;
  font-size: 0.875rem;
  margin-top: 24px;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.guide-card,
.notes,
.sources {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.guide-card .tag {
  margin-bottom: 18px;
}
.guide-card p {
  font-size: 0.94rem;
  line-height: 1.8;
}
.notes,
.sources {
  margin-top: 24px;
}
.notes label {
  display: block;
  color: var(--muted);
  margin-bottom: 12px;
}
.notes textarea {
  width: 100%;
  resize: vertical;
}
.sources a {
  display: inline-block;
  margin: 8px 24px 0 0;
  font-size: 0.875rem;
}
.setting {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.file-button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 8px;
}
.file-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-button:focus-within {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
.empty {
  padding: 36px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  grid-column: 1/-1;
  text-align: center;
}
.empty p {
  margin: 0;
}
footer {
  max-width: 1510px;
  margin: auto;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 26px 40px;
  border-top: 1px solid var(--border);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
footer span {
  flex: 1;
  letter-spacing: 0;
}
footer a {
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #dcf7c4;
  color: #172510;
  border: 1px solid #8cc166;
  padding: 14px 22px;
  border-radius: 9px;
  box-shadow: 0 8px 35px #0006;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  max-width: 90vw;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  width: min(610px, 92vw);
  max-height: 88vh;
  overflow: auto;
  background: #1a231c;
  color: var(--text);
  border: 1px solid #4f6445;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 20px 100px #0009;
}
dialog::backdrop {
  background: #080f0bc9;
  backdrop-filter: blur(4px);
}
dialog h2 {
  padding-right: 30px;
}
dialog > p {
  font-size: 0.875rem;
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
}
form label {
  display: block;
  font-size: 0.875rem;
  color: #bfceba;
  margin: 16px 0;
}
form input {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
form small {
  display: block;
  margin: 10px 0 18px;
}
form .primary {
  width: 100%;
  margin-top: 10px;
}
.hint {
  font-size: 0.8rem;
}
.danger {
  color: #f3a496;
  margin-top: 20px;
}
.preset-list {
  display: grid;
  gap: 8px;
}
.preset-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #243126;
  border: 1px solid #3c4b35;
  color: var(--text);
  text-align: left;
}
.preset-list small {
  display: block;
  margin-top: 4px;
}
.preset-list b {
  color: var(--lime);
  font-size: 1.5rem;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 30;
  background: var(--lime);
  color: #101513;
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
@media (min-width: 1600px) {
  .timer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 210px;
    padding: 28px 14px;
  }
  .workspace {
    margin-left: 210px;
  }
  main {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .timer-grid,
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats > div {
    padding: 18px 16px;
  }
  .hero {
    padding: 30px;
  }
  .brand {
    font-size: 1.1rem;
  }
  .stats span {
    font-size: 0.8rem;
  }
}
@media (max-width: 850px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .brand {
    font-size: 1.1rem;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-top: 20px;
  }
  .nav-item {
    width: auto;
    white-space: nowrap;
    margin: 0;
    padding: 9px 12px;
    font-size: 0.8rem;
    gap: 8px;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 68px;
    padding: 0 20px;
  }
  .breadcrumb {
    display: none;
  }
  .profile {
    width: 100%;
  }
  .profile select {
    flex: 1;
    max-width: none;
  }
  main {
    padding: 24px 20px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .primary {
    white-space: nowrap;
    font-size: 0.8rem;
  }
  .hero h2 {
    font-size: 2.5rem;
  }
  .hero {
    padding: 26px;
  }
  .radar .ring-one {
    width: 190px;
    height: 190px;
  }
  .radar .ring-two {
    width: 120px;
    height: 120px;
  }
  .stats {
    margin-top: 18px;
  }
  .stats > div {
    display: block;
  }
  .stats strong {
    display: block;
    margin: 5px 0;
  }
  .stats small {
    display: block;
  }
  .guide-grid {
    gap: 16px;
  }
  footer {
    padding: 24px 20px;
  }
}
@media (max-width: 560px) {
  .page-heading {
    display: block;
  }
  .page-heading > .primary {
    margin-top: 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 300px;
    padding: 28px;
  }
  .hero > div:first-child {
    position: relative;
    z-index: 1;
  }
  .radar {
    position: absolute;
    right: -110px;
    top: 35px;
    width: 260px;
    opacity: 0.3;
  }
  .hero h2 {
    font-size: 2.6rem;
  }
  .hero p {
    max-width: 210px;
  }
  .stats {
    gap: 0;
  }
  .stats > div {
    padding: 15px 10px;
  }
  .stats span {
    font-size: 0.72rem;
  }
  .stats small {
    font-size: 0.64rem;
  }
  .stats strong {
    font-size: 1.8rem;
  }
  .timer-grid,
  .collection-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .timer-card,
  .collection-card {
    padding: 22px;
  }
  .clock {
    font-size: 2.7rem;
  }
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .toolbar select {
    max-width: none;
  }
  .section-heading h2 {
    font-size: 1.1rem;
  }
  .section-heading .text-btn {
    font-size: 0.75rem;
  }
  .collection-summary {
    flex-direction: column;
    font-size: 0.75rem;
  }
  .guide-card,
  .notes,
  .sources {
    padding: 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid label {
    margin: 10px 0;
  }
  footer {
    flex-wrap: wrap;
  }
  footer span {
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Planning, inventory reservations and second-screen view */
.planning-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.planning-stats span {
  padding: 16px 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
}
.planning-stats b {
  font-size: 1.5rem;
  color: var(--lime);
  margin-right: 8px;
}
.goals-list {
  display: grid;
  gap: 18px;
}
.goal-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.goal-card h2 {
  margin-top: 12px;
}
.goal-card .danger {
  margin: 0;
}
.goal-detail label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.goal-detail input {
  width: 80px;
}
.goal-detail ul {
  list-style: none;
  padding: 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.goal-detail li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0;
}
.goal-detail li b {
  color: var(--text);
  white-space: nowrap;
}
.pending-list {
  padding: 0;
  list-style: none;
}
.pending-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.pending-list small {
  display: block;
  margin-top: 4px;
}
.missing-badge {
  flex-shrink: 0;
  color: var(--orange);
  font-size: 0.875rem;
}
.ready-message {
  color: var(--lime);
}
.warehouse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.warehouse-card {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.warehouse-card h2 {
  margin-top: 12px;
}
.warehouse-card p {
  font-size: 0.875rem;
}
.stock-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border-block: 1px solid var(--border);
  padding: 16px 0;
  margin: 20px 0;
}
.stock-summary span {
  font-size: 0.75rem;
  color: var(--muted);
}
.stock-summary b {
  display: block;
  color: var(--lime);
  font-size: 1.4rem;
}
.stock-fields {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
}
.stock-fields label {
  font-size: 0.875rem;
  color: var(--muted);
}
.stock-fields input {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.goal-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.goal-control button {
  font-size: 0.8rem;
  padding: 8px 10px;
}
.goal-control span {
  font-size: 0.75rem;
  color: var(--muted);
}
.compact-mode .sidebar {
  position: static;
  width: auto;
  padding: 16px 24px;
  border-right: 0;
  border-bottom: 1px solid var(--border);
}
.compact-mode .sidebar .brand,
.compact-mode .nav-label,
.compact-mode .sidebar-bottom {
  display: none;
}
.compact-mode .sidebar nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0;
}
.compact-mode .nav-item {
  width: auto;
  white-space: nowrap;
  margin: 0;
  font-size: 0.875rem;
}
.compact-mode .workspace {
  margin: 0;
}
.compact-mode main {
  max-width: none;
  padding: 24px;
}
.compact-mode .topbar {
  height: 60px;
}
.compact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
.compact-layout .notes {
  margin: 0;
  align-self: start;
}
.compact-layout .timer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.compact-layout details {
  display: none;
}
.compact-layout .timer-card {
  padding: 16px;
}
.compact-layout .clock {
  font-size: 2rem;
  margin: 10px 0;
}
.compact-layout .timer-actions {
  margin-top: 14px;
}
@media (max-width: 1000px) {
  .compact-layout {
    grid-template-columns: 1fr;
  }
  .warehouse-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .goal-card {
    grid-template-columns: 1fr;
  }
  .compact-layout .timer-grid {
    grid-template-columns: 1fr;
  }
  .stock-fields {
    grid-template-columns: 1fr;
  }
  .goal-control {
    flex-wrap: wrap;
  }
  .pending-list li {
    align-items: flex-start;
  }
  .planning-stats {
    display: grid;
  }
  .warehouse-card {
    padding: 18px;
  }
}
