/* Long-cook (時間のかかるもの) frame — manual start item timers. */

.longcook-root {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: var(--bg-dish, #f4f5f7);
}

.longcook-pane-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem 0.4rem;
  border-bottom: 1px solid var(--border-soft, #e5e7eb);
  flex-shrink: 0;
}

.longcook-pane-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--fg, #1c2430);
  letter-spacing: 0.04em;
}

.longcook-pane-status {
  font-size: 0.7rem;
  color: var(--fg-muted, #6b7280);
}

.longcook-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.55rem 0.7rem 0.85rem;
  -webkit-overflow-scrolling: touch;
}

.longcook-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--fg-muted, #6b7280);
  font-size: 0.85rem;
}

.longcook-empty[hidden] {
  display: none !important;
}

.longcook-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.longcook-row {
  display: grid;
  grid-template-columns: auto 3.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 0.55rem;
  min-height: 2.35rem;
  padding: 0.28rem 0.2rem;
  background: #fff;
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 0.3rem;
}

.longcook-table-no {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--fg, #1c2430);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.longcook-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg, #1c2430);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.longcook-timer-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-end;
}

.longcook-timer-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5b6472;
  font-variant-numeric: tabular-nums;
}

.longcook-timer-live {
  font-size: 1rem;
  font-weight: 800;
  color: #1c2430;
  font-variant-numeric: tabular-nums;
  min-width: 3.4rem;
  text-align: right;
}

.longcook-timer-overdue {
  font-size: 1rem;
  font-weight: 800;
  color: #b42318;
  font-variant-numeric: tabular-nums;
  min-width: 3.8rem;
  text-align: right;
}

.longcook-start-btn {
  appearance: none;
  border: 1px solid #b8c0cc;
  background: #f3f5f7;
  color: #374151;
  font-size: 0.72rem;
  font-weight: 700;
  min-height: 2.1rem;
  padding: 0.28rem 0.55rem;
  border-radius: 0.3rem;
  cursor: pointer;
  white-space: nowrap;
}

.longcook-start-btn:active {
  background: #e8ebef;
}

.longcook-screen {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.longcook-screen[hidden] {
  display: none !important;
}

.longcook-screen .longcook-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
